diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-01-21 19:19:04 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-01-21 19:19:04 +0100 |
commit | f39ea21098340bd99c48669f152c9068046c2c99 (patch) | |
tree | d1166fce1a4a8c470dfaf364816f767678c4729e /src | |
parent | bc48a4cff815ed156b603c92e684779c317417ba (diff) | |
parent | a7ff7c49085c320c1e0a2ffb66cc6d283c5acb8e (diff) |
Merge tag 'upstream/0.25.3'
Upstream version 0.25.3
Diffstat (limited to 'src')
229 files changed, 30799 insertions, 29498 deletions
diff --git a/src/.unitize/_CameraInternals.c b/src/.unitize/_CameraInternals.c index 4b84aa5..43ec28c 100644 --- a/src/.unitize/_CameraInternals.c +++ b/src/.unitize/_CameraInternals.c @@ -1,4 +1,4 @@ -/* _CameraInternals.c generated by valac 0.32.1, the Vala compiler +/* _CameraInternals.c generated by valac 0.34.4, the Vala compiler * generated from _CameraInternals.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/.unitize/_ConfigInternals.c b/src/.unitize/_ConfigInternals.c index d7eb0e4..f9b89f0 100644 --- a/src/.unitize/_ConfigInternals.c +++ b/src/.unitize/_ConfigInternals.c @@ -1,4 +1,4 @@ -/* _ConfigInternals.c generated by valac 0.32.1, the Vala compiler +/* _ConfigInternals.c generated by valac 0.34.4, the Vala compiler * generated from _ConfigInternals.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/.unitize/_CoreInternals.c b/src/.unitize/_CoreInternals.c index f95207a..c2abfec 100644 --- a/src/.unitize/_CoreInternals.c +++ b/src/.unitize/_CoreInternals.c @@ -1,4 +1,4 @@ -/* _CoreInternals.c generated by valac 0.32.1, the Vala compiler +/* _CoreInternals.c generated by valac 0.34.4, the Vala compiler * generated from _CoreInternals.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/.unitize/_DataImportsInternals.c b/src/.unitize/_DataImportsInternals.c index 2d2fc94..f43d488 100644 --- a/src/.unitize/_DataImportsInternals.c +++ b/src/.unitize/_DataImportsInternals.c @@ -1,4 +1,4 @@ -/* _DataImportsInternals.c generated by valac 0.32.1, the Vala compiler +/* _DataImportsInternals.c generated by valac 0.34.4, the Vala compiler * generated from _DataImportsInternals.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/.unitize/_DbInternals.c b/src/.unitize/_DbInternals.c index 47e29a8..2038397 100644 --- a/src/.unitize/_DbInternals.c +++ b/src/.unitize/_DbInternals.c @@ -1,4 +1,4 @@ -/* _DbInternals.c generated by valac 0.32.1, the Vala compiler +/* _DbInternals.c generated by valac 0.34.4, the Vala compiler * generated from _DbInternals.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/.unitize/_DirectInternals.c b/src/.unitize/_DirectInternals.c index 2095fcb..287b158 100644 --- a/src/.unitize/_DirectInternals.c +++ b/src/.unitize/_DirectInternals.c @@ -1,4 +1,4 @@ -/* _DirectInternals.c generated by valac 0.32.1, the Vala compiler +/* _DirectInternals.c generated by valac 0.34.4, the Vala compiler * generated from _DirectInternals.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/.unitize/_Direct_unitize_entry.c b/src/.unitize/_Direct_unitize_entry.c index 148e461..1ef3c0d 100644 --- a/src/.unitize/_Direct_unitize_entry.c +++ b/src/.unitize/_Direct_unitize_entry.c @@ -1,4 +1,4 @@ -/* _Direct_unitize_entry.c generated by valac 0.32.1, the Vala compiler +/* _Direct_unitize_entry.c generated by valac 0.34.4, the Vala compiler * generated from _Direct_unitize_entry.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/.unitize/_EditingToolsInternals.c b/src/.unitize/_EditingToolsInternals.c index 5f351af..8b052de 100644 --- a/src/.unitize/_EditingToolsInternals.c +++ b/src/.unitize/_EditingToolsInternals.c @@ -1,4 +1,4 @@ -/* _EditingToolsInternals.c generated by valac 0.32.1, the Vala compiler +/* _EditingToolsInternals.c generated by valac 0.34.4, the Vala compiler * generated from _EditingToolsInternals.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/.unitize/_EventsInternals.c b/src/.unitize/_EventsInternals.c index 33088f7..3ae2e86 100644 --- a/src/.unitize/_EventsInternals.c +++ b/src/.unitize/_EventsInternals.c @@ -1,4 +1,4 @@ -/* _EventsInternals.c generated by valac 0.32.1, the Vala compiler +/* _EventsInternals.c generated by valac 0.34.4, the Vala compiler * generated from _EventsInternals.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/.unitize/_FoldersInternals.c b/src/.unitize/_FoldersInternals.c index 1a3988e..696ae50 100644 --- a/src/.unitize/_FoldersInternals.c +++ b/src/.unitize/_FoldersInternals.c @@ -1,4 +1,4 @@ -/* _FoldersInternals.c generated by valac 0.32.1, the Vala compiler +/* _FoldersInternals.c generated by valac 0.34.4, the Vala compiler * generated from _FoldersInternals.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/.unitize/_LibraryInternals.c b/src/.unitize/_LibraryInternals.c index 6d70073..4a6d4ef 100644 --- a/src/.unitize/_LibraryInternals.c +++ b/src/.unitize/_LibraryInternals.c @@ -1,4 +1,4 @@ -/* _LibraryInternals.c generated by valac 0.32.1, the Vala compiler +/* _LibraryInternals.c generated by valac 0.34.4, the Vala compiler * generated from _LibraryInternals.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/.unitize/_Library_unitize_entry.c b/src/.unitize/_Library_unitize_entry.c index 8e7246c..8f86bb1 100644 --- a/src/.unitize/_Library_unitize_entry.c +++ b/src/.unitize/_Library_unitize_entry.c @@ -1,4 +1,4 @@ -/* _Library_unitize_entry.c generated by valac 0.32.1, the Vala compiler +/* _Library_unitize_entry.c generated by valac 0.34.4, the Vala compiler * generated from _Library_unitize_entry.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/.unitize/_PhotosInternals.c b/src/.unitize/_PhotosInternals.c index 3710e7b..793acc8 100644 --- a/src/.unitize/_PhotosInternals.c +++ b/src/.unitize/_PhotosInternals.c @@ -1,4 +1,4 @@ -/* _PhotosInternals.c generated by valac 0.32.1, the Vala compiler +/* _PhotosInternals.c generated by valac 0.34.4, the Vala compiler * generated from _PhotosInternals.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/.unitize/_PluginsInternals.c b/src/.unitize/_PluginsInternals.c index 9a9ee42..64ca182 100644 --- a/src/.unitize/_PluginsInternals.c +++ b/src/.unitize/_PluginsInternals.c @@ -1,4 +1,4 @@ -/* _PluginsInternals.c generated by valac 0.32.1, the Vala compiler +/* _PluginsInternals.c generated by valac 0.34.4, the Vala compiler * generated from _PluginsInternals.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/.unitize/_PublishingInternals.c b/src/.unitize/_PublishingInternals.c index b1d0861..745bf59 100644 --- a/src/.unitize/_PublishingInternals.c +++ b/src/.unitize/_PublishingInternals.c @@ -1,4 +1,4 @@ -/* _PublishingInternals.c generated by valac 0.32.1, the Vala compiler +/* _PublishingInternals.c generated by valac 0.34.4, the Vala compiler * generated from _PublishingInternals.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/.unitize/_SearchesInternals.c b/src/.unitize/_SearchesInternals.c index 7b0f7e8..7af4ca2 100644 --- a/src/.unitize/_SearchesInternals.c +++ b/src/.unitize/_SearchesInternals.c @@ -1,4 +1,4 @@ -/* _SearchesInternals.c generated by valac 0.32.1, the Vala compiler +/* _SearchesInternals.c generated by valac 0.34.4, the Vala compiler * generated from _SearchesInternals.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/.unitize/_SidebarInternals.c b/src/.unitize/_SidebarInternals.c index f312282..309f5e9 100644 --- a/src/.unitize/_SidebarInternals.c +++ b/src/.unitize/_SidebarInternals.c @@ -1,4 +1,4 @@ -/* _SidebarInternals.c generated by valac 0.32.1, the Vala compiler +/* _SidebarInternals.c generated by valac 0.34.4, the Vala compiler * generated from _SidebarInternals.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/.unitize/_SlideshowInternals.c b/src/.unitize/_SlideshowInternals.c index 31b8124..f456df8 100644 --- a/src/.unitize/_SlideshowInternals.c +++ b/src/.unitize/_SlideshowInternals.c @@ -1,4 +1,4 @@ -/* _SlideshowInternals.c generated by valac 0.32.1, the Vala compiler +/* _SlideshowInternals.c generated by valac 0.34.4, the Vala compiler * generated from _SlideshowInternals.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/.unitize/_TagsInternals.c b/src/.unitize/_TagsInternals.c index 599fb26..663c289 100644 --- a/src/.unitize/_TagsInternals.c +++ b/src/.unitize/_TagsInternals.c @@ -1,4 +1,4 @@ -/* _TagsInternals.c generated by valac 0.32.1, the Vala compiler +/* _TagsInternals.c generated by valac 0.34.4, the Vala compiler * generated from _TagsInternals.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/.unitize/_ThreadsInternals.c b/src/.unitize/_ThreadsInternals.c index 69712a7..8b4682f 100644 --- a/src/.unitize/_ThreadsInternals.c +++ b/src/.unitize/_ThreadsInternals.c @@ -1,4 +1,4 @@ -/* _ThreadsInternals.c generated by valac 0.32.1, the Vala compiler +/* _ThreadsInternals.c generated by valac 0.34.4, the Vala compiler * generated from _ThreadsInternals.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/.unitize/_UnitInternals.c b/src/.unitize/_UnitInternals.c index 102107b..e79a416 100644 --- a/src/.unitize/_UnitInternals.c +++ b/src/.unitize/_UnitInternals.c @@ -1,4 +1,4 @@ -/* _UnitInternals.c generated by valac 0.32.1, the Vala compiler +/* _UnitInternals.c generated by valac 0.34.4, the Vala compiler * generated from _UnitInternals.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/.unitize/_UtilInternals.c b/src/.unitize/_UtilInternals.c index ddfb022..2656134 100644 --- a/src/.unitize/_UtilInternals.c +++ b/src/.unitize/_UtilInternals.c @@ -1,4 +1,4 @@ -/* _UtilInternals.c generated by valac 0.32.1, the Vala compiler +/* _UtilInternals.c generated by valac 0.34.4, the Vala compiler * generated from _UtilInternals.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/AppDirs.c b/src/AppDirs.c index c120815..7ac7928 100644 --- a/src/AppDirs.c +++ b/src/AppDirs.c @@ -1,4 +1,4 @@ -/* AppDirs.c generated by valac 0.32.1, the Vala compiler +/* AppDirs.c generated by valac 0.34.4, the Vala compiler * generated from AppDirs.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -394,11 +394,11 @@ void app_dirs_try_migrate_data (void) { #line 44 "/home/jens/Source/shotwell/src/AppDirs.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 397 "AppDirs.c" - goto __catch440_g_error; + goto __catch442_g_error; } } - goto __finally440; - __catch440_g_error: + goto __finally442; + __catch442_g_error: { GError* err = NULL; #line 43 "/home/jens/Source/shotwell/src/AppDirs.vala" @@ -409,7 +409,7 @@ void app_dirs_try_migrate_data (void) { _g_error_free0 (err); #line 411 "AppDirs.c" } - __finally440: + __finally442: #line 43 "/home/jens/Source/shotwell/src/AppDirs.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 43 "/home/jens/Source/shotwell/src/AppDirs.vala" @@ -437,11 +437,11 @@ void app_dirs_try_migrate_data (void) { #line 49 "/home/jens/Source/shotwell/src/AppDirs.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 440 "AppDirs.c" - goto __catch441_g_error; + goto __catch443_g_error; } } - goto __finally441; - __catch441_g_error: + goto __finally443; + __catch443_g_error: { GError* err = NULL; #line 48 "/home/jens/Source/shotwell/src/AppDirs.vala" @@ -452,7 +452,7 @@ void app_dirs_try_migrate_data (void) { _g_error_free0 (err); #line 454 "AppDirs.c" } - __finally441: + __finally443: #line 48 "/home/jens/Source/shotwell/src/AppDirs.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 48 "/home/jens/Source/shotwell/src/AppDirs.vala" @@ -539,11 +539,11 @@ void app_dirs_try_migrate_data (void) { #line 62 "/home/jens/Source/shotwell/src/AppDirs.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 542 "AppDirs.c" - goto __catch442_g_error; + goto __catch444_g_error; } } - goto __finally442; - __catch442_g_error: + goto __finally444; + __catch444_g_error: { GError* err = NULL; const gchar* _tmp35_ = NULL; @@ -584,7 +584,7 @@ void app_dirs_try_migrate_data (void) { _g_error_free0 (err); #line 586 "AppDirs.c" } - __finally442: + __finally444: #line 61 "/home/jens/Source/shotwell/src/AppDirs.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 61 "/home/jens/Source/shotwell/src/AppDirs.vala" @@ -666,11 +666,11 @@ void app_dirs_try_migrate_data (void) { #line 72 "/home/jens/Source/shotwell/src/AppDirs.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 669 "AppDirs.c" - goto __catch443_g_error; + goto __catch445_g_error; } } - goto __finally443; - __catch443_g_error: + goto __finally445; + __catch445_g_error: { GError* err = NULL; const gchar* _tmp61_ = NULL; @@ -719,7 +719,7 @@ void app_dirs_try_migrate_data (void) { _g_error_free0 (err); #line 721 "AppDirs.c" } - __finally443: + __finally445: #line 71 "/home/jens/Source/shotwell/src/AppDirs.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 71 "/home/jens/Source/shotwell/src/AppDirs.vala" @@ -895,12 +895,12 @@ void app_dirs_verify_data_dir (void) { #line 102 "/home/jens/Source/shotwell/src/AppDirs.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 898 "AppDirs.c" - goto __catch444_g_error; + goto __catch446_g_error; } } } - goto __finally444; - __catch444_g_error: + goto __finally446; + __catch446_g_error: { GError* err = NULL; const gchar* _tmp4_ = NULL; @@ -941,7 +941,7 @@ void app_dirs_verify_data_dir (void) { _g_error_free0 (err); #line 943 "AppDirs.c" } - __finally444: + __finally446: #line 100 "/home/jens/Source/shotwell/src/AppDirs.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 100 "/home/jens/Source/shotwell/src/AppDirs.vala" @@ -987,12 +987,12 @@ void app_dirs_verify_cache_dir (void) { #line 113 "/home/jens/Source/shotwell/src/AppDirs.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 990 "AppDirs.c" - goto __catch445_g_error; + goto __catch447_g_error; } } } - goto __finally445; - __catch445_g_error: + goto __finally447; + __catch447_g_error: { GError* err = NULL; const gchar* _tmp4_ = NULL; @@ -1033,7 +1033,7 @@ void app_dirs_verify_cache_dir (void) { _g_error_free0 (err); #line 1035 "AppDirs.c" } - __finally445: + __finally447: #line 111 "/home/jens/Source/shotwell/src/AppDirs.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 111 "/home/jens/Source/shotwell/src/AppDirs.vala" @@ -1591,12 +1591,12 @@ GFile* app_dirs_get_temp_dir (void) { #line 204 "/home/jens/Source/shotwell/src/AppDirs.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1594 "AppDirs.c" - goto __catch446_g_error; + goto __catch448_g_error; } } } - goto __finally446; - __catch446_g_error: + goto __finally448; + __catch448_g_error: { GError* err = NULL; const gchar* _tmp9_ = NULL; @@ -1637,7 +1637,7 @@ GFile* app_dirs_get_temp_dir (void) { _g_error_free0 (err); #line 1639 "AppDirs.c" } - __finally446: + __finally448: #line 202 "/home/jens/Source/shotwell/src/AppDirs.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 202 "/home/jens/Source/shotwell/src/AppDirs.vala" @@ -1725,12 +1725,12 @@ GFile* app_dirs_get_data_subdir (const gchar* name, const gchar* subname) { #line 221 "/home/jens/Source/shotwell/src/AppDirs.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1728 "AppDirs.c" - goto __catch447_g_error; + goto __catch449_g_error; } } } - goto __finally447; - __catch447_g_error: + goto __finally449; + __catch449_g_error: { GError* err = NULL; const gchar* _tmp12_ = NULL; @@ -1771,7 +1771,7 @@ GFile* app_dirs_get_data_subdir (const gchar* name, const gchar* subname) { _g_error_free0 (err); #line 1773 "AppDirs.c" } - __finally447: + __finally449: #line 219 "/home/jens/Source/shotwell/src/AppDirs.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 219 "/home/jens/Source/shotwell/src/AppDirs.vala" @@ -1825,7 +1825,7 @@ void app_dirs_ensure_writable (GFile* dir) { #line 233 "/home/jens/Source/shotwell/src/AppDirs.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1828 "AppDirs.c" - goto __catch448_g_error; + goto __catch450_g_error; } #line 234 "/home/jens/Source/shotwell/src/AppDirs.vala" _tmp4_ = info; @@ -1846,7 +1846,7 @@ void app_dirs_ensure_writable (GFile* dir) { #line 235 "/home/jens/Source/shotwell/src/AppDirs.vala" _g_object_unref0 (info); #line 1849 "AppDirs.c" - goto __catch448_g_error; + goto __catch450_g_error; } #line 235 "/home/jens/Source/shotwell/src/AppDirs.vala" if (!_tmp6_) { @@ -1881,8 +1881,8 @@ void app_dirs_ensure_writable (GFile* dir) { _g_object_unref0 (info); #line 1883 "AppDirs.c" } - goto __finally448; - __catch448_g_error: + goto __finally450; + __catch450_g_error: { GError* err = NULL; const gchar* _tmp16_ = NULL; @@ -1923,7 +1923,7 @@ void app_dirs_ensure_writable (GFile* dir) { _g_error_free0 (err); #line 1925 "AppDirs.c" } - __finally448: + __finally450: #line 232 "/home/jens/Source/shotwell/src/AppDirs.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 232 "/home/jens/Source/shotwell/src/AppDirs.vala" @@ -2008,12 +2008,12 @@ GFile* app_dirs_get_cache_subdir (const gchar* name, const gchar* subname) { #line 252 "/home/jens/Source/shotwell/src/AppDirs.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 2011 "AppDirs.c" - goto __catch449_g_error; + goto __catch451_g_error; } } } - goto __finally449; - __catch449_g_error: + goto __finally451; + __catch451_g_error: { GError* err = NULL; const gchar* _tmp13_ = NULL; @@ -2054,7 +2054,7 @@ GFile* app_dirs_get_cache_subdir (const gchar* name, const gchar* subname) { _g_error_free0 (err); #line 2056 "AppDirs.c" } - __finally449: + __finally451: #line 250 "/home/jens/Source/shotwell/src/AppDirs.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 250 "/home/jens/Source/shotwell/src/AppDirs.vala" diff --git a/src/AppWindow.c b/src/AppWindow.c index e49d245..b36bbbe 100644 --- a/src/AppWindow.c +++ b/src/AppWindow.c @@ -1,4 +1,4 @@ -/* AppWindow.c generated by valac 0.32.1, the Vala compiler +/* AppWindow.c generated by valac 0.34.4, the Vala compiler * generated from AppWindow.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -353,9 +353,9 @@ FullscreenWindow* fullscreen_window_new (Page* page); FullscreenWindow* fullscreen_window_construct (GType object_type, Page* page); PageWindow* page_window_construct (GType object_type); void page_window_set_current_page (PageWindow* self, Page* page); +void application_set_accels_for_action (const gchar* action, gchar** accel, int accel_length1); GType app_window_get_type (void) G_GNUC_CONST; AppWindow* app_window_get_instance (void); -void application_set_accels_for_action (const gchar* action, gchar** accel, int accel_length1); static void fullscreen_window_get_monitor_geometry (FullscreenWindow* self, GdkRectangle* result); GType configuration_facade_get_type (void) G_GNUC_CONST; GType config_facade_get_type (void) G_GNUC_CONST; @@ -622,57 +622,55 @@ static void _fullscreen_window_hide_toolbar_slideshow_page_hide_toolbar (Slidesh FullscreenWindow* fullscreen_window_construct (GType object_type, Page* page) { FullscreenWindow * self = NULL; Page* _tmp0_ = NULL; +#line 32 "/home/jens/Source/shotwell/src/AppWindow.vala" + static const gchar* accels[] = {"F11", NULL}; +#line 600 "AppWindow.c" AppWindow* _tmp1_ = NULL; AppWindow* _tmp2_ = NULL; -#line 32 "/home/jens/Source/shotwell/src/AppWindow.vala" - static const gchar* accels[] = {"F11"}; -#line 602 "AppWindow.c" - AppWindow* _tmp3_ = NULL; - AppWindow* _tmp4_ = NULL; - GdkScreen* _tmp5_ = NULL; + GdkScreen* _tmp3_ = NULL; GdkRectangle monitor = {0}; - GdkRectangle _tmp6_ = {0}; + GdkRectangle _tmp4_ = {0}; + GdkRectangle _tmp5_ = {0}; + gint _tmp6_ = 0; GdkRectangle _tmp7_ = {0}; gint _tmp8_ = 0; - GdkRectangle _tmp9_ = {0}; - gint _tmp10_ = 0; - ConfigFacade* _tmp11_ = NULL; - ConfigFacade* _tmp12_ = NULL; - gboolean _tmp13_ = FALSE; - GtkToggleToolButton* _tmp14_ = NULL; + ConfigFacade* _tmp9_ = NULL; + ConfigFacade* _tmp10_ = NULL; + gboolean _tmp11_ = FALSE; + GtkToggleToolButton* _tmp12_ = NULL; + GtkToggleToolButton* _tmp13_ = NULL; + const gchar* _tmp14_ = NULL; GtkToggleToolButton* _tmp15_ = NULL; const gchar* _tmp16_ = NULL; GtkToggleToolButton* _tmp17_ = NULL; - const gchar* _tmp18_ = NULL; + gboolean _tmp18_ = FALSE; GtkToggleToolButton* _tmp19_ = NULL; - gboolean _tmp20_ = FALSE; - GtkToggleToolButton* _tmp21_ = NULL; - GtkToolButton* _tmp22_ = NULL; + GtkToolButton* _tmp20_ = NULL; + GtkToolButton* _tmp21_ = NULL; + const gchar* _tmp22_ = NULL; GtkToolButton* _tmp23_ = NULL; - const gchar* _tmp24_ = NULL; - GtkToolButton* _tmp25_ = NULL; - Page* _tmp26_ = NULL; + Page* _tmp24_ = NULL; + GtkToolbar* _tmp25_ = NULL; + GtkToolbar* _tmp26_ = NULL; GtkToolbar* _tmp27_ = NULL; GtkToolbar* _tmp28_ = NULL; GtkToolbar* _tmp29_ = NULL; GtkToolbar* _tmp30_ = NULL; - GtkToolbar* _tmp31_ = NULL; - GtkToolbar* _tmp32_ = NULL; - Page* _tmp33_ = NULL; - Page* _tmp37_ = NULL; - Page* _tmp38_ = NULL; - GtkToolbar* _tmp39_ = NULL; - GtkToolButton* _tmp40_ = NULL; - GtkOverlay* _tmp41_ = NULL; + Page* _tmp31_ = NULL; + Page* _tmp35_ = NULL; + Page* _tmp36_ = NULL; + GtkToolbar* _tmp37_ = NULL; + GtkToolButton* _tmp38_ = NULL; + GtkOverlay* _tmp39_ = NULL; + GtkOverlay* _tmp40_ = NULL; + Page* _tmp41_ = NULL; GtkOverlay* _tmp42_ = NULL; - Page* _tmp43_ = NULL; - GtkOverlay* _tmp44_ = NULL; - GtkToolbar* _tmp45_ = NULL; + GtkToolbar* _tmp43_ = NULL; + GdkRectangle _tmp44_ = {0}; + gint _tmp45_ = 0; GdkRectangle _tmp46_ = {0}; gint _tmp47_ = 0; - GdkRectangle _tmp48_ = {0}; - gint _tmp49_ = 0; - Page* _tmp50_ = NULL; + Page* _tmp48_ = NULL; #line 26 "/home/jens/Source/shotwell/src/AppWindow.vala" g_return_val_if_fail (IS_PAGE (page), NULL); #line 27 "/home/jens/Source/shotwell/src/AppWindow.vala" @@ -682,181 +680,175 @@ FullscreenWindow* fullscreen_window_construct (GType object_type, Page* page) { #line 29 "/home/jens/Source/shotwell/src/AppWindow.vala" page_window_set_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow), _tmp0_); #line 31 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = app_window_get_instance (); -#line 31 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = _tmp1_; -#line 31 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_action_map_add_action_entries (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, g_action_map_get_type (), GActionMap), FULLSCREEN_WINDOW_entries, G_N_ELEMENTS (FULLSCREEN_WINDOW_entries), self); -#line 31 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp2_); + g_action_map_add_action_entries (G_TYPE_CHECK_INSTANCE_CAST (self, g_action_map_get_type (), GActionMap), FULLSCREEN_WINDOW_entries, G_N_ELEMENTS (FULLSCREEN_WINDOW_entries), self); #line 33 "/home/jens/Source/shotwell/src/AppWindow.vala" application_set_accels_for_action ("win.LeaveFullscreen", accels, G_N_ELEMENTS (accels)); #line 35 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp3_ = app_window_get_instance (); + _tmp1_ = app_window_get_instance (); #line 35 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp4_ = _tmp3_; + _tmp2_ = _tmp1_; #line 35 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp5_ = gtk_window_get_screen (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_window_get_type (), GtkWindow)); + _tmp3_ = gtk_window_get_screen (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_window_get_type (), GtkWindow)); #line 35 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_window_set_screen (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), _tmp5_); + gtk_window_set_screen (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), _tmp3_); #line 35 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp4_); + _g_object_unref0 (_tmp2_); #line 38 "/home/jens/Source/shotwell/src/AppWindow.vala" - fullscreen_window_get_monitor_geometry (self, &_tmp6_); + fullscreen_window_get_monitor_geometry (self, &_tmp4_); #line 38 "/home/jens/Source/shotwell/src/AppWindow.vala" - monitor = _tmp6_; + monitor = _tmp4_; #line 39 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp7_ = monitor; + _tmp5_ = monitor; #line 39 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp8_ = _tmp7_.x; + _tmp6_ = _tmp5_.x; #line 39 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp9_ = monitor; + _tmp7_ = monitor; #line 39 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp10_ = _tmp9_.y; + _tmp8_ = _tmp7_.y; #line 39 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_window_move (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), _tmp8_, _tmp10_); + gtk_window_move (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), _tmp6_, _tmp8_); #line 41 "/home/jens/Source/shotwell/src/AppWindow.vala" gtk_container_set_border_width (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_container_get_type (), GtkContainer), (guint) 0); #line 44 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp11_ = config_facade_get_instance (); + _tmp9_ = config_facade_get_instance (); #line 44 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp12_ = _tmp11_; + _tmp10_ = _tmp9_; #line 44 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp13_ = configuration_facade_get_pin_toolbar_state (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); + _tmp11_ = configuration_facade_get_pin_toolbar_state (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); #line 44 "/home/jens/Source/shotwell/src/AppWindow.vala" - self->priv->is_toolbar_dismissal_enabled = _tmp13_; + self->priv->is_toolbar_dismissal_enabled = _tmp11_; #line 44 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp12_); + _g_object_unref0 (_tmp10_); #line 46 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp14_ = self->priv->pin_button; + _tmp12_ = self->priv->pin_button; #line 46 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_tool_button_set_icon_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_tool_button_get_type (), GtkToolButton), "pin-toolbar"); + gtk_tool_button_set_icon_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_tool_button_get_type (), GtkToolButton), "pin-toolbar"); #line 47 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp15_ = self->priv->pin_button; + _tmp13_ = self->priv->pin_button; #line 47 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp16_ = _ ("Pin Toolbar"); + _tmp14_ = _ ("Pin Toolbar"); #line 47 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_tool_button_set_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_tool_button_get_type (), GtkToolButton), _tmp16_); + gtk_tool_button_set_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_tool_button_get_type (), GtkToolButton), _tmp14_); #line 48 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp17_ = self->priv->pin_button; + _tmp15_ = self->priv->pin_button; #line 48 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp18_ = _ ("Pin the toolbar open"); + _tmp16_ = _ ("Pin the toolbar open"); #line 48 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_tool_item_get_type (), GtkToolItem), _tmp18_); + gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_tool_item_get_type (), GtkToolItem), _tmp16_); #line 49 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp19_ = self->priv->pin_button; + _tmp17_ = self->priv->pin_button; #line 49 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp20_ = self->priv->is_toolbar_dismissal_enabled; + _tmp18_ = self->priv->is_toolbar_dismissal_enabled; #line 49 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_toggle_tool_button_set_active (_tmp19_, !_tmp20_); + gtk_toggle_tool_button_set_active (_tmp17_, !_tmp18_); #line 50 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp21_ = self->priv->pin_button; + _tmp19_ = self->priv->pin_button; #line 50 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_tool_button_get_type (), GtkToolButton), "clicked", (GCallback) _fullscreen_window_update_toolbar_dismissal_gtk_tool_button_clicked, self, 0); + g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_tool_button_get_type (), GtkToolButton), "clicked", (GCallback) _fullscreen_window_update_toolbar_dismissal_gtk_tool_button_clicked, self, 0); #line 52 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp22_ = self->priv->close_button; + _tmp20_ = self->priv->close_button; #line 52 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_tool_button_set_icon_name (_tmp22_, "view-restore"); + gtk_tool_button_set_icon_name (_tmp20_, "view-restore"); #line 53 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp23_ = self->priv->close_button; + _tmp21_ = self->priv->close_button; #line 53 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp24_ = _ ("Leave fullscreen"); + _tmp22_ = _ ("Leave fullscreen"); #line 53 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, gtk_tool_item_get_type (), GtkToolItem), _tmp24_); + gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_tool_item_get_type (), GtkToolItem), _tmp22_); #line 54 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp25_ = self->priv->close_button; + _tmp23_ = self->priv->close_button; #line 54 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_actionable_set_action_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, GTK_TYPE_ACTIONABLE, GtkActionable), "win.LeaveFullscreen"); + gtk_actionable_set_action_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GTK_TYPE_ACTIONABLE, GtkActionable), "win.LeaveFullscreen"); #line 56 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp26_ = page; + _tmp24_ = page; #line 56 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp27_ = page_get_toolbar (_tmp26_); + _tmp25_ = page_get_toolbar (_tmp24_); #line 56 "/home/jens/Source/shotwell/src/AppWindow.vala" _g_object_unref0 (self->priv->toolbar); #line 56 "/home/jens/Source/shotwell/src/AppWindow.vala" - self->priv->toolbar = _tmp27_; + self->priv->toolbar = _tmp25_; #line 57 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp28_ = self->priv->toolbar; + _tmp26_ = self->priv->toolbar; #line 57 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_toolbar_set_show_arrow (_tmp28_, FALSE); + gtk_toolbar_set_show_arrow (_tmp26_, FALSE); #line 58 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp29_ = self->priv->toolbar; + _tmp27_ = self->priv->toolbar; #line 58 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_END); + gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_END); #line 59 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp30_ = self->priv->toolbar; + _tmp28_ = self->priv->toolbar; #line 59 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_CENTER); + gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_CENTER); #line 60 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp31_ = self->priv->toolbar; + _tmp29_ = self->priv->toolbar; #line 60 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_object_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, gtk_widget_get_type (), GtkWidget), "expand", FALSE, NULL); + g_object_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, gtk_widget_get_type (), GtkWidget), "expand", FALSE, NULL); #line 61 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp32_ = self->priv->toolbar; + _tmp30_ = self->priv->toolbar; #line 61 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_widget_set_opacity (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, gtk_widget_get_type (), GtkWidget), RESOURCES_TRANSIENT_WINDOW_OPACITY); + gtk_widget_set_opacity (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_widget_get_type (), GtkWidget), RESOURCES_TRANSIENT_WINDOW_OPACITY); #line 63 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp33_ = page; + _tmp31_ = page; #line 63 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp33_, TYPE_SLIDESHOW_PAGE)) { -#line 775 "AppWindow.c" - Page* _tmp34_ = NULL; + if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp31_, TYPE_SLIDESHOW_PAGE)) { +#line 767 "AppWindow.c" + Page* _tmp32_ = NULL; #line 65 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp34_ = page; + _tmp32_ = page; #line 65 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, TYPE_SLIDESHOW_PAGE, SlideshowPage), "hide-toolbar", (GCallback) _fullscreen_window_hide_toolbar_slideshow_page_hide_toolbar, self, 0); -#line 781 "AppWindow.c" + g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, TYPE_SLIDESHOW_PAGE, SlideshowPage), "hide-toolbar", (GCallback) _fullscreen_window_hide_toolbar_slideshow_page_hide_toolbar, self, 0); +#line 773 "AppWindow.c" } else { - GtkToolbar* _tmp35_ = NULL; - GtkToggleToolButton* _tmp36_ = NULL; + GtkToolbar* _tmp33_ = NULL; + GtkToggleToolButton* _tmp34_ = NULL; #line 68 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp35_ = self->priv->toolbar; + _tmp33_ = self->priv->toolbar; #line 68 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp36_ = self->priv->pin_button; + _tmp34_ = self->priv->pin_button; #line 68 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_toolbar_insert (_tmp35_, G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 791 "AppWindow.c" + gtk_toolbar_insert (_tmp33_, G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, gtk_tool_item_get_type (), GtkToolItem), -1); +#line 783 "AppWindow.c" } #line 71 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp37_ = page; + _tmp35_ = page; #line 71 "/home/jens/Source/shotwell/src/AppWindow.vala" - page_set_cursor_hide_time (_tmp37_, FULLSCREEN_WINDOW_TOOLBAR_DISMISSAL_SEC * 1000); + page_set_cursor_hide_time (_tmp35_, FULLSCREEN_WINDOW_TOOLBAR_DISMISSAL_SEC * 1000); #line 72 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp38_ = page; + _tmp36_ = page; #line 72 "/home/jens/Source/shotwell/src/AppWindow.vala" - page_start_cursor_hiding (_tmp38_); + page_start_cursor_hiding (_tmp36_); #line 74 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp39_ = self->priv->toolbar; + _tmp37_ = self->priv->toolbar; #line 74 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp40_ = self->priv->close_button; + _tmp38_ = self->priv->close_button; #line 74 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_toolbar_insert (_tmp39_, G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, gtk_tool_item_get_type (), GtkToolItem), -1); + gtk_toolbar_insert (_tmp37_, G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, gtk_tool_item_get_type (), GtkToolItem), -1); #line 76 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp41_ = self->priv->overlay; + _tmp39_ = self->priv->overlay; #line 76 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, gtk_widget_get_type (), GtkWidget)); + gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, gtk_widget_get_type (), GtkWidget)); #line 77 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp42_ = self->priv->overlay; + _tmp40_ = self->priv->overlay; #line 77 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp43_ = page; + _tmp41_ = page; #line 77 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, gtk_widget_get_type (), GtkWidget)); + gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, gtk_widget_get_type (), GtkWidget)); #line 78 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp44_ = self->priv->overlay; + _tmp42_ = self->priv->overlay; #line 78 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp45_ = self->priv->toolbar; + _tmp43_ = self->priv->toolbar; #line 78 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_overlay_add_overlay (_tmp44_, G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, gtk_widget_get_type (), GtkWidget)); + gtk_overlay_add_overlay (_tmp42_, G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, gtk_widget_get_type (), GtkWidget)); #line 83 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp46_ = monitor; + _tmp44_ = monitor; #line 83 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp47_ = _tmp46_.width; + _tmp45_ = _tmp44_.width; #line 83 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp48_ = monitor; + _tmp46_ = monitor; #line 83 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp49_ = _tmp48_.height; + _tmp47_ = _tmp46_.height; #line 83 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_window_set_default_size (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), _tmp47_, _tmp49_); + gtk_window_set_default_size (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), _tmp45_, _tmp47_); #line 86 "/home/jens/Source/shotwell/src/AppWindow.vala" gtk_window_fullscreen (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow)); #line 87 "/home/jens/Source/shotwell/src/AppWindow.vala" @@ -866,21 +858,21 @@ FullscreenWindow* fullscreen_window_construct (GType object_type, Page* page) { #line 93 "/home/jens/Source/shotwell/src/AppWindow.vala" fullscreen_window_invoke_toolbar (self); #line 96 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp50_ = page; + _tmp48_ = page; #line 96 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, gtk_widget_get_type (), GtkWidget)); + gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, gtk_widget_get_type (), GtkWidget)); #line 99 "/home/jens/Source/shotwell/src/AppWindow.vala" gtk_application_window_set_show_menubar (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_application_window_get_type (), GtkApplicationWindow), FALSE); #line 26 "/home/jens/Source/shotwell/src/AppWindow.vala" return self; -#line 849 "AppWindow.c" +#line 841 "AppWindow.c" } FullscreenWindow* fullscreen_window_new (Page* page) { #line 26 "/home/jens/Source/shotwell/src/AppWindow.vala" return fullscreen_window_construct (TYPE_FULLSCREEN_WINDOW, page); -#line 856 "AppWindow.c" +#line 848 "AppWindow.c" } @@ -889,7 +881,7 @@ void fullscreen_window_disable_toolbar_dismissal (FullscreenWindow* self) { g_return_if_fail (IS_FULLSCREEN_WINDOW (self)); #line 103 "/home/jens/Source/shotwell/src/AppWindow.vala" self->priv->is_toolbar_dismissal_enabled = FALSE; -#line 865 "AppWindow.c" +#line 857 "AppWindow.c" } @@ -904,7 +896,7 @@ void fullscreen_window_update_toolbar_dismissal (FullscreenWindow* self) { _tmp1_ = gtk_toggle_tool_button_get_active (_tmp0_); #line 107 "/home/jens/Source/shotwell/src/AppWindow.vala" self->priv->is_toolbar_dismissal_enabled = !_tmp1_; -#line 880 "AppWindow.c" +#line 872 "AppWindow.c" } @@ -941,7 +933,7 @@ static void fullscreen_window_get_monitor_geometry (FullscreenWindow* self, GdkR *result = monitor; #line 116 "/home/jens/Source/shotwell/src/AppWindow.vala" return; -#line 917 "AppWindow.c" +#line 909 "AppWindow.c" } @@ -966,7 +958,7 @@ static gboolean fullscreen_window_real_configure_event (GtkWidget* base, GdkEven _tmp2_ = self->priv->switched_to; #line 122 "/home/jens/Source/shotwell/src/AppWindow.vala" if (!_tmp2_) { -#line 942 "AppWindow.c" +#line 934 "AppWindow.c" Page* _tmp3_ = NULL; Page* _tmp4_ = NULL; #line 123 "/home/jens/Source/shotwell/src/AppWindow.vala" @@ -979,13 +971,13 @@ static gboolean fullscreen_window_real_configure_event (GtkWidget* base, GdkEven _g_object_unref0 (_tmp4_); #line 124 "/home/jens/Source/shotwell/src/AppWindow.vala" self->priv->switched_to = TRUE; -#line 955 "AppWindow.c" +#line 947 "AppWindow.c" } #line 127 "/home/jens/Source/shotwell/src/AppWindow.vala" result = _result_; #line 127 "/home/jens/Source/shotwell/src/AppWindow.vala" return result; -#line 961 "AppWindow.c" +#line 953 "AppWindow.c" } @@ -1019,11 +1011,11 @@ static gboolean fullscreen_window_real_key_press_event (GtkWidget* base, GdkEven result = TRUE; #line 135 "/home/jens/Source/shotwell/src/AppWindow.vala" return result; -#line 995 "AppWindow.c" +#line 987 "AppWindow.c" } #line 139 "/home/jens/Source/shotwell/src/AppWindow.vala" if (GTK_WIDGET_CLASS (fullscreen_window_parent_class)->key_press_event != NULL) { -#line 999 "AppWindow.c" +#line 991 "AppWindow.c" GdkEventKey* _tmp4_ = NULL; gboolean _tmp5_ = FALSE; #line 139 "/home/jens/Source/shotwell/src/AppWindow.vala" @@ -1032,11 +1024,11 @@ static gboolean fullscreen_window_real_key_press_event (GtkWidget* base, GdkEven _tmp5_ = GTK_WIDGET_CLASS (fullscreen_window_parent_class)->key_press_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow), gtk_widget_get_type (), GtkWidget), _tmp4_); #line 139 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp3_ = _tmp5_; -#line 1008 "AppWindow.c" +#line 1000 "AppWindow.c" } else { #line 139 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp3_ = FALSE; -#line 1012 "AppWindow.c" +#line 1004 "AppWindow.c" } #line 139 "/home/jens/Source/shotwell/src/AppWindow.vala" if (_tmp3_) { @@ -1044,7 +1036,7 @@ static gboolean fullscreen_window_real_key_press_event (GtkWidget* base, GdkEven result = TRUE; #line 140 "/home/jens/Source/shotwell/src/AppWindow.vala" return result; -#line 1020 "AppWindow.c" +#line 1012 "AppWindow.c" } #line 143 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp6_ = app_window_get_instance (); @@ -1062,7 +1054,7 @@ static gboolean fullscreen_window_real_key_press_event (GtkWidget* base, GdkEven result = _tmp10_; #line 143 "/home/jens/Source/shotwell/src/AppWindow.vala" return result; -#line 1038 "AppWindow.c" +#line 1030 "AppWindow.c" } @@ -1094,7 +1086,7 @@ static void fullscreen_window_on_close (FullscreenWindow* self) { app_window_end_fullscreen (_tmp4_); #line 150 "/home/jens/Source/shotwell/src/AppWindow.vala" _g_object_unref0 (_tmp4_); -#line 1070 "AppWindow.c" +#line 1062 "AppWindow.c" } @@ -1103,7 +1095,7 @@ void fullscreen_window_close (FullscreenWindow* self) { g_return_if_fail (IS_FULLSCREEN_WINDOW (self)); #line 154 "/home/jens/Source/shotwell/src/AppWindow.vala" fullscreen_window_on_close (self); -#line 1079 "AppWindow.c" +#line 1071 "AppWindow.c" } @@ -1124,7 +1116,7 @@ static void fullscreen_window_real_destroy (GtkWidget* base) { _tmp1_ = page; #line 161 "/home/jens/Source/shotwell/src/AppWindow.vala" if (_tmp1_ != NULL) { -#line 1100 "AppWindow.c" +#line 1092 "AppWindow.c" Page* _tmp2_ = NULL; Page* _tmp3_ = NULL; #line 162 "/home/jens/Source/shotwell/src/AppWindow.vala" @@ -1135,13 +1127,13 @@ static void fullscreen_window_real_destroy (GtkWidget* base) { _tmp3_ = page; #line 163 "/home/jens/Source/shotwell/src/AppWindow.vala" page_switching_from (_tmp3_); -#line 1111 "AppWindow.c" +#line 1103 "AppWindow.c" } #line 166 "/home/jens/Source/shotwell/src/AppWindow.vala" GTK_WIDGET_CLASS (fullscreen_window_parent_class)->destroy (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow), gtk_widget_get_type (), GtkWidget)); #line 157 "/home/jens/Source/shotwell/src/AppWindow.vala" _g_object_unref0 (page); -#line 1117 "AppWindow.c" +#line 1109 "AppWindow.c" } @@ -1168,7 +1160,7 @@ static gboolean fullscreen_window_real_delete_event (GtkWidget* base, GdkEventAn result = TRUE; #line 173 "/home/jens/Source/shotwell/src/AppWindow.vala" return result; -#line 1144 "AppWindow.c" +#line 1136 "AppWindow.c" } @@ -1177,7 +1169,7 @@ static gboolean _fullscreen_window_on_check_toolbar_invocation_gsource_func (gpo result = fullscreen_window_on_check_toolbar_invocation ((FullscreenWindow*) self); #line 182 "/home/jens/Source/shotwell/src/AppWindow.vala" return result; -#line 1153 "AppWindow.c" +#line 1145 "AppWindow.c" } @@ -1194,24 +1186,24 @@ static gboolean fullscreen_window_real_motion_notify_event (GtkWidget* base, Gdk _tmp0_ = self->priv->is_toolbar_shown; #line 177 "/home/jens/Source/shotwell/src/AppWindow.vala" if (!_tmp0_) { -#line 1170 "AppWindow.c" +#line 1162 "AppWindow.c" gboolean _tmp1_ = FALSE; gboolean _tmp2_ = FALSE; #line 181 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp2_ = self->priv->waiting_for_invoke; #line 181 "/home/jens/Source/shotwell/src/AppWindow.vala" if (!_tmp2_) { -#line 1177 "AppWindow.c" +#line 1169 "AppWindow.c" gboolean _tmp3_ = FALSE; #line 181 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp3_ = fullscreen_window_is_pointer_in_toolbar (self); #line 181 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp1_ = _tmp3_; -#line 1183 "AppWindow.c" +#line 1175 "AppWindow.c" } else { #line 181 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp1_ = FALSE; -#line 1187 "AppWindow.c" +#line 1179 "AppWindow.c" } #line 181 "/home/jens/Source/shotwell/src/AppWindow.vala" if (_tmp1_) { @@ -1219,12 +1211,12 @@ static gboolean fullscreen_window_real_motion_notify_event (GtkWidget* base, Gdk g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) FULLSCREEN_WINDOW_TOOLBAR_INVOCATION_MSEC, _fullscreen_window_on_check_toolbar_invocation_gsource_func, g_object_ref (self), g_object_unref); #line 183 "/home/jens/Source/shotwell/src/AppWindow.vala" self->priv->waiting_for_invoke = TRUE; -#line 1195 "AppWindow.c" +#line 1187 "AppWindow.c" } } #line 187 "/home/jens/Source/shotwell/src/AppWindow.vala" if (GTK_WIDGET_CLASS (fullscreen_window_parent_class)->motion_notify_event != NULL) { -#line 1200 "AppWindow.c" +#line 1192 "AppWindow.c" GdkEventMotion* _tmp5_ = NULL; gboolean _tmp6_ = FALSE; #line 187 "/home/jens/Source/shotwell/src/AppWindow.vala" @@ -1233,24 +1225,24 @@ static gboolean fullscreen_window_real_motion_notify_event (GtkWidget* base, Gdk _tmp6_ = GTK_WIDGET_CLASS (fullscreen_window_parent_class)->motion_notify_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow), gtk_widget_get_type (), GtkWidget), _tmp5_); #line 187 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp4_ = _tmp6_; -#line 1209 "AppWindow.c" +#line 1201 "AppWindow.c" } else { #line 187 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp4_ = FALSE; -#line 1213 "AppWindow.c" +#line 1205 "AppWindow.c" } #line 187 "/home/jens/Source/shotwell/src/AppWindow.vala" result = _tmp4_; #line 187 "/home/jens/Source/shotwell/src/AppWindow.vala" return result; -#line 1219 "AppWindow.c" +#line 1211 "AppWindow.c" } static gpointer _g_object_ref0 (gpointer self) { #line 191 "/home/jens/Source/shotwell/src/AppWindow.vala" return self ? g_object_ref (self) : NULL; -#line 1226 "AppWindow.c" +#line 1218 "AppWindow.c" } @@ -1293,7 +1285,7 @@ static gboolean fullscreen_window_is_pointer_in_toolbar (FullscreenWindow* self) _g_object_unref0 (devmgr); #line 195 "/home/jens/Source/shotwell/src/AppWindow.vala" return result; -#line 1269 "AppWindow.c" +#line 1261 "AppWindow.c" } #line 199 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp4_ = devmgr; @@ -1321,7 +1313,7 @@ static gboolean fullscreen_window_is_pointer_in_toolbar (FullscreenWindow* self) _g_object_unref0 (devmgr); #line 204 "/home/jens/Source/shotwell/src/AppWindow.vala" return result; -#line 1297 "AppWindow.c" +#line 1289 "AppWindow.c" } @@ -1341,7 +1333,7 @@ static gboolean fullscreen_window_on_check_toolbar_invocation (FullscreenWindow* result = FALSE; #line 211 "/home/jens/Source/shotwell/src/AppWindow.vala" return result; -#line 1317 "AppWindow.c" +#line 1309 "AppWindow.c" } #line 213 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp1_ = fullscreen_window_is_pointer_in_toolbar (self); @@ -1351,7 +1343,7 @@ static gboolean fullscreen_window_on_check_toolbar_invocation (FullscreenWindow* result = FALSE; #line 214 "/home/jens/Source/shotwell/src/AppWindow.vala" return result; -#line 1327 "AppWindow.c" +#line 1319 "AppWindow.c" } #line 216 "/home/jens/Source/shotwell/src/AppWindow.vala" fullscreen_window_invoke_toolbar (self); @@ -1359,7 +1351,7 @@ static gboolean fullscreen_window_on_check_toolbar_invocation (FullscreenWindow* result = FALSE; #line 218 "/home/jens/Source/shotwell/src/AppWindow.vala" return result; -#line 1335 "AppWindow.c" +#line 1327 "AppWindow.c" } @@ -1368,7 +1360,7 @@ static gboolean _fullscreen_window_on_check_toolbar_dismissal_gsource_func (gpoi result = fullscreen_window_on_check_toolbar_dismissal ((FullscreenWindow*) self); #line 226 "/home/jens/Source/shotwell/src/AppWindow.vala" return result; -#line 1344 "AppWindow.c" +#line 1336 "AppWindow.c" } @@ -1384,7 +1376,7 @@ static void fullscreen_window_invoke_toolbar (FullscreenWindow* self) { self->priv->is_toolbar_shown = TRUE; #line 226 "/home/jens/Source/shotwell/src/AppWindow.vala" g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) FULLSCREEN_WINDOW_TOOLBAR_CHECK_DISMISSAL_MSEC, _fullscreen_window_on_check_toolbar_dismissal_gsource_func, g_object_ref (self), g_object_unref); -#line 1360 "AppWindow.c" +#line 1352 "AppWindow.c" } @@ -1410,7 +1402,7 @@ static gboolean fullscreen_window_on_check_toolbar_dismissal (FullscreenWindow* result = FALSE; #line 231 "/home/jens/Source/shotwell/src/AppWindow.vala" return result; -#line 1386 "AppWindow.c" +#line 1378 "AppWindow.c" } #line 234 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp1_ = self->priv->is_toolbar_dismissal_enabled; @@ -1420,7 +1412,7 @@ static gboolean fullscreen_window_on_check_toolbar_dismissal (FullscreenWindow* result = TRUE; #line 235 "/home/jens/Source/shotwell/src/AppWindow.vala" return result; -#line 1396 "AppWindow.c" +#line 1388 "AppWindow.c" } #line 238 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp2_ = fullscreen_window_is_pointer_in_toolbar (self); @@ -1432,13 +1424,13 @@ static gboolean fullscreen_window_on_check_toolbar_dismissal (FullscreenWindow* result = TRUE; #line 241 "/home/jens/Source/shotwell/src/AppWindow.vala" return result; -#line 1408 "AppWindow.c" +#line 1400 "AppWindow.c" } #line 245 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp3_ = self->priv->left_toolbar_time; #line 245 "/home/jens/Source/shotwell/src/AppWindow.vala" if (_tmp3_ == ((time_t) 0)) { -#line 1414 "AppWindow.c" +#line 1406 "AppWindow.c" time_t _tmp4_ = 0; #line 246 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp4_ = time (NULL); @@ -1448,7 +1440,7 @@ static gboolean fullscreen_window_on_check_toolbar_dismissal (FullscreenWindow* result = TRUE; #line 248 "/home/jens/Source/shotwell/src/AppWindow.vala" return result; -#line 1424 "AppWindow.c" +#line 1416 "AppWindow.c" } #line 252 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp5_ = time (NULL); @@ -1470,7 +1462,7 @@ static gboolean fullscreen_window_on_check_toolbar_dismissal (FullscreenWindow* result = TRUE; #line 256 "/home/jens/Source/shotwell/src/AppWindow.vala" return result; -#line 1446 "AppWindow.c" +#line 1438 "AppWindow.c" } #line 258 "/home/jens/Source/shotwell/src/AppWindow.vala" fullscreen_window_hide_toolbar (self); @@ -1478,7 +1470,7 @@ static gboolean fullscreen_window_on_check_toolbar_dismissal (FullscreenWindow* result = FALSE; #line 260 "/home/jens/Source/shotwell/src/AppWindow.vala" return result; -#line 1454 "AppWindow.c" +#line 1446 "AppWindow.c" } @@ -1492,7 +1484,7 @@ static void fullscreen_window_hide_toolbar (FullscreenWindow* self) { gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); #line 265 "/home/jens/Source/shotwell/src/AppWindow.vala" self->priv->is_toolbar_shown = FALSE; -#line 1468 "AppWindow.c" +#line 1460 "AppWindow.c" } @@ -1513,7 +1505,7 @@ static void fullscreen_window_class_init (FullscreenWindowClass * klass) { ((GtkWidgetClass *) klass)->motion_notify_event = fullscreen_window_real_motion_notify_event; #line 7 "/home/jens/Source/shotwell/src/AppWindow.vala" G_OBJECT_CLASS (klass)->finalize = fullscreen_window_finalize; -#line 1489 "AppWindow.c" +#line 1481 "AppWindow.c" } @@ -1551,7 +1543,7 @@ static void fullscreen_window_instance_init (FullscreenWindow * self) { self->priv->left_toolbar_time = (time_t) 0; #line 19 "/home/jens/Source/shotwell/src/AppWindow.vala" self->priv->switched_to = FALSE; -#line 1527 "AppWindow.c" +#line 1519 "AppWindow.c" } @@ -1569,7 +1561,7 @@ static void fullscreen_window_finalize (GObject* obj) { _g_object_unref0 (self->priv->pin_button); #line 7 "/home/jens/Source/shotwell/src/AppWindow.vala" G_OBJECT_CLASS (fullscreen_window_parent_class)->finalize (obj); -#line 1545 "AppWindow.c" +#line 1537 "AppWindow.c" } @@ -1590,7 +1582,7 @@ static void page_window_real_switched_pages (PageWindow* self, Page* old_page, P g_return_if_fail ((old_page == NULL) || IS_PAGE (old_page)); #line 280 "/home/jens/Source/shotwell/src/AppWindow.vala" g_return_if_fail ((new_page == NULL) || IS_PAGE (new_page)); -#line 1566 "AppWindow.c" +#line 1558 "AppWindow.c" } @@ -1599,7 +1591,7 @@ void page_window_switched_pages (PageWindow* self, Page* old_page, Page* new_pag g_return_if_fail (IS_PAGE_WINDOW (self)); #line 280 "/home/jens/Source/shotwell/src/AppWindow.vala" PAGE_WINDOW_GET_CLASS (self)->switched_pages (self, old_page, new_page); -#line 1575 "AppWindow.c" +#line 1567 "AppWindow.c" } @@ -1629,7 +1621,7 @@ PageWindow* page_window_construct (GType object_type) { gtk_application_window_set_show_menubar (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_application_window_get_type (), GtkApplicationWindow), TRUE); #line 283 "/home/jens/Source/shotwell/src/AppWindow.vala" return self; -#line 1605 "AppWindow.c" +#line 1597 "AppWindow.c" } @@ -1647,7 +1639,7 @@ Page* page_window_get_current_page (PageWindow* self) { result = _tmp1_; #line 293 "/home/jens/Source/shotwell/src/AppWindow.vala" return result; -#line 1623 "AppWindow.c" +#line 1615 "AppWindow.c" } @@ -1666,13 +1658,13 @@ static void page_window_real_set_current_page (PageWindow* self, Page* page) { _tmp0_ = self->priv->current_page; #line 297 "/home/jens/Source/shotwell/src/AppWindow.vala" if (_tmp0_ != NULL) { -#line 1642 "AppWindow.c" +#line 1634 "AppWindow.c" Page* _tmp1_ = NULL; #line 298 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp1_ = self->priv->current_page; #line 298 "/home/jens/Source/shotwell/src/AppWindow.vala" page_clear_container (_tmp1_); -#line 1648 "AppWindow.c" +#line 1640 "AppWindow.c" } #line 300 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp2_ = self->priv->current_page; @@ -1698,7 +1690,7 @@ static void page_window_real_set_current_page (PageWindow* self, Page* page) { page_window_switched_pages (self, old_page, _tmp7_); #line 296 "/home/jens/Source/shotwell/src/AppWindow.vala" _g_object_unref0 (old_page); -#line 1674 "AppWindow.c" +#line 1666 "AppWindow.c" } @@ -1707,7 +1699,7 @@ void page_window_set_current_page (PageWindow* self, Page* page) { g_return_if_fail (IS_PAGE_WINDOW (self)); #line 296 "/home/jens/Source/shotwell/src/AppWindow.vala" PAGE_WINDOW_GET_CLASS (self)->set_current_page (self, page); -#line 1683 "AppWindow.c" +#line 1675 "AppWindow.c" } @@ -1720,13 +1712,13 @@ static void page_window_real_clear_current_page (PageWindow* self) { _tmp0_ = self->priv->current_page; #line 308 "/home/jens/Source/shotwell/src/AppWindow.vala" if (_tmp0_ != NULL) { -#line 1696 "AppWindow.c" +#line 1688 "AppWindow.c" Page* _tmp1_ = NULL; #line 309 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp1_ = self->priv->current_page; #line 309 "/home/jens/Source/shotwell/src/AppWindow.vala" page_clear_container (_tmp1_); -#line 1702 "AppWindow.c" +#line 1694 "AppWindow.c" } #line 311 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp2_ = self->priv->current_page; @@ -1742,7 +1734,7 @@ static void page_window_real_clear_current_page (PageWindow* self) { page_window_switched_pages (self, old_page, NULL); #line 307 "/home/jens/Source/shotwell/src/AppWindow.vala" _g_object_unref0 (old_page); -#line 1718 "AppWindow.c" +#line 1710 "AppWindow.c" } @@ -1751,7 +1743,7 @@ void page_window_clear_current_page (PageWindow* self) { g_return_if_fail (IS_PAGE_WINDOW (self)); #line 307 "/home/jens/Source/shotwell/src/AppWindow.vala" PAGE_WINDOW_GET_CLASS (self)->clear_current_page (self); -#line 1727 "AppWindow.c" +#line 1719 "AppWindow.c" } @@ -1771,7 +1763,7 @@ static gboolean page_window_real_key_press_event (GtkWidget* base, GdkEventKey* _tmp1_ = gtk_window_get_focus (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow)); #line 318 "/home/jens/Source/shotwell/src/AppWindow.vala" if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, gtk_entry_get_type ())) { -#line 1747 "AppWindow.c" +#line 1739 "AppWindow.c" GtkWidget* _tmp2_ = NULL; GdkEventKey* _tmp3_ = NULL; gboolean _tmp4_ = FALSE; @@ -1783,11 +1775,11 @@ static gboolean page_window_real_key_press_event (GtkWidget* base, GdkEventKey* g_signal_emit_by_name (_tmp2_, "key-press-event", _tmp3_, &_tmp4_); #line 318 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp0_ = _tmp4_; -#line 1759 "AppWindow.c" +#line 1751 "AppWindow.c" } else { #line 318 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp0_ = FALSE; -#line 1763 "AppWindow.c" +#line 1755 "AppWindow.c" } #line 318 "/home/jens/Source/shotwell/src/AppWindow.vala" if (_tmp0_) { @@ -1795,13 +1787,13 @@ static gboolean page_window_real_key_press_event (GtkWidget* base, GdkEventKey* result = TRUE; #line 319 "/home/jens/Source/shotwell/src/AppWindow.vala" return result; -#line 1771 "AppWindow.c" +#line 1763 "AppWindow.c" } #line 321 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp6_ = self->priv->current_page; #line 321 "/home/jens/Source/shotwell/src/AppWindow.vala" if (_tmp6_ != NULL) { -#line 1777 "AppWindow.c" +#line 1769 "AppWindow.c" Page* _tmp7_ = NULL; GdkEventKey* _tmp8_ = NULL; gboolean _tmp9_ = FALSE; @@ -1813,11 +1805,11 @@ static gboolean page_window_real_key_press_event (GtkWidget* base, GdkEventKey* _tmp9_ = page_notify_app_key_pressed (_tmp7_, _tmp8_); #line 321 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp5_ = _tmp9_; -#line 1789 "AppWindow.c" +#line 1781 "AppWindow.c" } else { #line 321 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp5_ = FALSE; -#line 1793 "AppWindow.c" +#line 1785 "AppWindow.c" } #line 321 "/home/jens/Source/shotwell/src/AppWindow.vala" if (_tmp5_) { @@ -1825,11 +1817,11 @@ static gboolean page_window_real_key_press_event (GtkWidget* base, GdkEventKey* result = TRUE; #line 322 "/home/jens/Source/shotwell/src/AppWindow.vala" return result; -#line 1801 "AppWindow.c" +#line 1793 "AppWindow.c" } #line 324 "/home/jens/Source/shotwell/src/AppWindow.vala" if (GTK_WIDGET_CLASS (page_window_parent_class)->key_press_event != NULL) { -#line 1805 "AppWindow.c" +#line 1797 "AppWindow.c" GdkEventKey* _tmp11_ = NULL; gboolean _tmp12_ = FALSE; #line 324 "/home/jens/Source/shotwell/src/AppWindow.vala" @@ -1838,17 +1830,17 @@ static gboolean page_window_real_key_press_event (GtkWidget* base, GdkEventKey* _tmp12_ = GTK_WIDGET_CLASS (page_window_parent_class)->key_press_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_application_window_get_type (), GtkApplicationWindow), gtk_widget_get_type (), GtkWidget), _tmp11_); #line 324 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp10_ = _tmp12_; -#line 1814 "AppWindow.c" +#line 1806 "AppWindow.c" } else { #line 324 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp10_ = FALSE; -#line 1818 "AppWindow.c" +#line 1810 "AppWindow.c" } #line 324 "/home/jens/Source/shotwell/src/AppWindow.vala" result = _tmp10_; #line 324 "/home/jens/Source/shotwell/src/AppWindow.vala" return result; -#line 1824 "AppWindow.c" +#line 1816 "AppWindow.c" } @@ -1868,7 +1860,7 @@ static gboolean page_window_real_key_release_event (GtkWidget* base, GdkEventKey _tmp1_ = gtk_window_get_focus (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow)); #line 328 "/home/jens/Source/shotwell/src/AppWindow.vala" if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, gtk_entry_get_type ())) { -#line 1844 "AppWindow.c" +#line 1836 "AppWindow.c" GtkWidget* _tmp2_ = NULL; GdkEventKey* _tmp3_ = NULL; gboolean _tmp4_ = FALSE; @@ -1880,11 +1872,11 @@ static gboolean page_window_real_key_release_event (GtkWidget* base, GdkEventKey g_signal_emit_by_name (_tmp2_, "key-release-event", _tmp3_, &_tmp4_); #line 328 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp0_ = _tmp4_; -#line 1856 "AppWindow.c" +#line 1848 "AppWindow.c" } else { #line 328 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp0_ = FALSE; -#line 1860 "AppWindow.c" +#line 1852 "AppWindow.c" } #line 328 "/home/jens/Source/shotwell/src/AppWindow.vala" if (_tmp0_) { @@ -1892,13 +1884,13 @@ static gboolean page_window_real_key_release_event (GtkWidget* base, GdkEventKey result = TRUE; #line 329 "/home/jens/Source/shotwell/src/AppWindow.vala" return result; -#line 1868 "AppWindow.c" +#line 1860 "AppWindow.c" } #line 331 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp6_ = self->priv->current_page; #line 331 "/home/jens/Source/shotwell/src/AppWindow.vala" if (_tmp6_ != NULL) { -#line 1874 "AppWindow.c" +#line 1866 "AppWindow.c" Page* _tmp7_ = NULL; GdkEventKey* _tmp8_ = NULL; gboolean _tmp9_ = FALSE; @@ -1910,11 +1902,11 @@ static gboolean page_window_real_key_release_event (GtkWidget* base, GdkEventKey _tmp9_ = page_notify_app_key_released (_tmp7_, _tmp8_); #line 331 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp5_ = _tmp9_; -#line 1886 "AppWindow.c" +#line 1878 "AppWindow.c" } else { #line 331 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp5_ = FALSE; -#line 1890 "AppWindow.c" +#line 1882 "AppWindow.c" } #line 331 "/home/jens/Source/shotwell/src/AppWindow.vala" if (_tmp5_) { @@ -1922,11 +1914,11 @@ static gboolean page_window_real_key_release_event (GtkWidget* base, GdkEventKey result = TRUE; #line 332 "/home/jens/Source/shotwell/src/AppWindow.vala" return result; -#line 1898 "AppWindow.c" +#line 1890 "AppWindow.c" } #line 334 "/home/jens/Source/shotwell/src/AppWindow.vala" if (GTK_WIDGET_CLASS (page_window_parent_class)->key_release_event != NULL) { -#line 1902 "AppWindow.c" +#line 1894 "AppWindow.c" GdkEventKey* _tmp11_ = NULL; gboolean _tmp12_ = FALSE; #line 334 "/home/jens/Source/shotwell/src/AppWindow.vala" @@ -1935,17 +1927,17 @@ static gboolean page_window_real_key_release_event (GtkWidget* base, GdkEventKey _tmp12_ = GTK_WIDGET_CLASS (page_window_parent_class)->key_release_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_application_window_get_type (), GtkApplicationWindow), gtk_widget_get_type (), GtkWidget), _tmp11_); #line 334 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp10_ = _tmp12_; -#line 1911 "AppWindow.c" +#line 1903 "AppWindow.c" } else { #line 334 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp10_ = FALSE; -#line 1915 "AppWindow.c" +#line 1907 "AppWindow.c" } #line 334 "/home/jens/Source/shotwell/src/AppWindow.vala" result = _tmp10_; #line 334 "/home/jens/Source/shotwell/src/AppWindow.vala" return result; -#line 1921 "AppWindow.c" +#line 1913 "AppWindow.c" } @@ -1963,7 +1955,7 @@ static gboolean page_window_real_focus_in_event (GtkWidget* base, GdkEventFocus* _tmp1_ = self->priv->current_page; #line 338 "/home/jens/Source/shotwell/src/AppWindow.vala" if (_tmp1_ != NULL) { -#line 1939 "AppWindow.c" +#line 1931 "AppWindow.c" Page* _tmp2_ = NULL; GdkEventFocus* _tmp3_ = NULL; gboolean _tmp4_ = FALSE; @@ -1975,11 +1967,11 @@ static gboolean page_window_real_focus_in_event (GtkWidget* base, GdkEventFocus* _tmp4_ = page_notify_app_focus_in (_tmp2_, _tmp3_); #line 338 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp0_ = _tmp4_; -#line 1951 "AppWindow.c" +#line 1943 "AppWindow.c" } else { #line 338 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp0_ = FALSE; -#line 1955 "AppWindow.c" +#line 1947 "AppWindow.c" } #line 338 "/home/jens/Source/shotwell/src/AppWindow.vala" if (_tmp0_) { @@ -1987,11 +1979,11 @@ static gboolean page_window_real_focus_in_event (GtkWidget* base, GdkEventFocus* result = TRUE; #line 339 "/home/jens/Source/shotwell/src/AppWindow.vala" return result; -#line 1963 "AppWindow.c" +#line 1955 "AppWindow.c" } #line 341 "/home/jens/Source/shotwell/src/AppWindow.vala" if (GTK_WIDGET_CLASS (page_window_parent_class)->focus_in_event != NULL) { -#line 1967 "AppWindow.c" +#line 1959 "AppWindow.c" GdkEventFocus* _tmp6_ = NULL; gboolean _tmp7_ = FALSE; #line 341 "/home/jens/Source/shotwell/src/AppWindow.vala" @@ -2000,17 +1992,17 @@ static gboolean page_window_real_focus_in_event (GtkWidget* base, GdkEventFocus* _tmp7_ = GTK_WIDGET_CLASS (page_window_parent_class)->focus_in_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_application_window_get_type (), GtkApplicationWindow), gtk_widget_get_type (), GtkWidget), _tmp6_); #line 341 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp5_ = _tmp7_; -#line 1976 "AppWindow.c" +#line 1968 "AppWindow.c" } else { #line 341 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp5_ = FALSE; -#line 1980 "AppWindow.c" +#line 1972 "AppWindow.c" } #line 341 "/home/jens/Source/shotwell/src/AppWindow.vala" result = _tmp5_; #line 341 "/home/jens/Source/shotwell/src/AppWindow.vala" return result; -#line 1986 "AppWindow.c" +#line 1978 "AppWindow.c" } @@ -2028,7 +2020,7 @@ static gboolean page_window_real_focus_out_event (GtkWidget* base, GdkEventFocus _tmp1_ = self->priv->current_page; #line 345 "/home/jens/Source/shotwell/src/AppWindow.vala" if (_tmp1_ != NULL) { -#line 2004 "AppWindow.c" +#line 1996 "AppWindow.c" Page* _tmp2_ = NULL; GdkEventFocus* _tmp3_ = NULL; gboolean _tmp4_ = FALSE; @@ -2040,11 +2032,11 @@ static gboolean page_window_real_focus_out_event (GtkWidget* base, GdkEventFocus _tmp4_ = page_notify_app_focus_out (_tmp2_, _tmp3_); #line 345 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp0_ = _tmp4_; -#line 2016 "AppWindow.c" +#line 2008 "AppWindow.c" } else { #line 345 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp0_ = FALSE; -#line 2020 "AppWindow.c" +#line 2012 "AppWindow.c" } #line 345 "/home/jens/Source/shotwell/src/AppWindow.vala" if (_tmp0_) { @@ -2052,11 +2044,11 @@ static gboolean page_window_real_focus_out_event (GtkWidget* base, GdkEventFocus result = TRUE; #line 346 "/home/jens/Source/shotwell/src/AppWindow.vala" return result; -#line 2028 "AppWindow.c" +#line 2020 "AppWindow.c" } #line 348 "/home/jens/Source/shotwell/src/AppWindow.vala" if (GTK_WIDGET_CLASS (page_window_parent_class)->focus_out_event != NULL) { -#line 2032 "AppWindow.c" +#line 2024 "AppWindow.c" GdkEventFocus* _tmp6_ = NULL; gboolean _tmp7_ = FALSE; #line 348 "/home/jens/Source/shotwell/src/AppWindow.vala" @@ -2065,17 +2057,17 @@ static gboolean page_window_real_focus_out_event (GtkWidget* base, GdkEventFocus _tmp7_ = GTK_WIDGET_CLASS (page_window_parent_class)->focus_out_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_application_window_get_type (), GtkApplicationWindow), gtk_widget_get_type (), GtkWidget), _tmp6_); #line 348 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp5_ = _tmp7_; -#line 2041 "AppWindow.c" +#line 2033 "AppWindow.c" } else { #line 348 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp5_ = FALSE; -#line 2045 "AppWindow.c" +#line 2037 "AppWindow.c" } #line 348 "/home/jens/Source/shotwell/src/AppWindow.vala" result = _tmp5_; #line 348 "/home/jens/Source/shotwell/src/AppWindow.vala" return result; -#line 2051 "AppWindow.c" +#line 2043 "AppWindow.c" } @@ -2092,7 +2084,7 @@ static gboolean page_window_real_configure_event (GtkWidget* base, GdkEventConfi _tmp0_ = self->priv->current_page; #line 352 "/home/jens/Source/shotwell/src/AppWindow.vala" if (_tmp0_ != NULL) { -#line 2068 "AppWindow.c" +#line 2060 "AppWindow.c" Page* _tmp1_ = NULL; GdkEventConfigure* _tmp2_ = NULL; gboolean _tmp3_ = FALSE; @@ -2108,12 +2100,12 @@ static gboolean page_window_real_configure_event (GtkWidget* base, GdkEventConfi result = TRUE; #line 354 "/home/jens/Source/shotwell/src/AppWindow.vala" return result; -#line 2084 "AppWindow.c" +#line 2076 "AppWindow.c" } } #line 357 "/home/jens/Source/shotwell/src/AppWindow.vala" if (GTK_WIDGET_CLASS (page_window_parent_class)->configure_event != NULL) { -#line 2089 "AppWindow.c" +#line 2081 "AppWindow.c" GdkEventConfigure* _tmp5_ = NULL; gboolean _tmp6_ = FALSE; #line 357 "/home/jens/Source/shotwell/src/AppWindow.vala" @@ -2122,17 +2114,17 @@ static gboolean page_window_real_configure_event (GtkWidget* base, GdkEventConfi _tmp6_ = GTK_WIDGET_CLASS (page_window_parent_class)->configure_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_application_window_get_type (), GtkApplicationWindow), gtk_widget_get_type (), GtkWidget), _tmp5_); #line 357 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp4_ = _tmp6_; -#line 2098 "AppWindow.c" +#line 2090 "AppWindow.c" } else { #line 357 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp4_ = FALSE; -#line 2102 "AppWindow.c" +#line 2094 "AppWindow.c" } #line 357 "/home/jens/Source/shotwell/src/AppWindow.vala" result = _tmp4_; #line 357 "/home/jens/Source/shotwell/src/AppWindow.vala" return result; -#line 2108 "AppWindow.c" +#line 2100 "AppWindow.c" } @@ -2157,7 +2149,7 @@ void page_window_set_busy_cursor (PageWindow* self) { if (_tmp0_ > 0) { #line 362 "/home/jens/Source/shotwell/src/AppWindow.vala" return; -#line 2133 "AppWindow.c" +#line 2125 "AppWindow.c" } #line 364 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp1_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); @@ -2185,7 +2177,7 @@ void page_window_set_busy_cursor (PageWindow* self) { _g_object_unref0 (cursor); #line 360 "/home/jens/Source/shotwell/src/AppWindow.vala" _g_object_unref0 (display); -#line 2161 "AppWindow.c" +#line 2153 "AppWindow.c" } @@ -2210,7 +2202,7 @@ void page_window_set_normal_cursor (PageWindow* self) { self->priv->busy_counter = 0; #line 373 "/home/jens/Source/shotwell/src/AppWindow.vala" return; -#line 2186 "AppWindow.c" +#line 2178 "AppWindow.c" } else { gint _tmp1_ = 0; gint _tmp2_ = 0; @@ -2224,7 +2216,7 @@ void page_window_set_normal_cursor (PageWindow* self) { if (_tmp2_ > 0) { #line 375 "/home/jens/Source/shotwell/src/AppWindow.vala" return; -#line 2200 "AppWindow.c" +#line 2192 "AppWindow.c" } } #line 378 "/home/jens/Source/shotwell/src/AppWindow.vala" @@ -2253,7 +2245,7 @@ void page_window_set_normal_cursor (PageWindow* self) { _g_object_unref0 (cursor); #line 370 "/home/jens/Source/shotwell/src/AppWindow.vala" _g_object_unref0 (display); -#line 2229 "AppWindow.c" +#line 2221 "AppWindow.c" } @@ -2280,7 +2272,7 @@ static void page_window_class_init (PageWindowClass * klass) { ((GtkWidgetClass *) klass)->configure_event = page_window_real_configure_event; #line 276 "/home/jens/Source/shotwell/src/AppWindow.vala" G_OBJECT_CLASS (klass)->finalize = page_window_finalize; -#line 2256 "AppWindow.c" +#line 2248 "AppWindow.c" } @@ -2291,7 +2283,7 @@ static void page_window_instance_init (PageWindow * self) { self->priv->current_page = NULL; #line 278 "/home/jens/Source/shotwell/src/AppWindow.vala" self->priv->busy_counter = 0; -#line 2267 "AppWindow.c" +#line 2259 "AppWindow.c" } @@ -2303,7 +2295,7 @@ static void page_window_finalize (GObject* obj) { _g_object_unref0 (self->priv->current_page); #line 276 "/home/jens/Source/shotwell/src/AppWindow.vala" G_OBJECT_CLASS (page_window_parent_class)->finalize (obj); -#line 2279 "AppWindow.c" +#line 2271 "AppWindow.c" } @@ -2322,84 +2314,84 @@ GType page_window_get_type (void) { static void _app_window_on_about_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 449 "/home/jens/Source/shotwell/src/AppWindow.vala" app_window_on_about ((AppWindow*) self); -#line 2298 "AppWindow.c" +#line 2290 "AppWindow.c" } static void _app_window_on_quit_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 449 "/home/jens/Source/shotwell/src/AppWindow.vala" app_window_on_quit ((AppWindow*) self); -#line 2305 "AppWindow.c" +#line 2297 "AppWindow.c" } static void _app_window_on_fullscreen_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 449 "/home/jens/Source/shotwell/src/AppWindow.vala" app_window_on_fullscreen ((AppWindow*) self); -#line 2312 "AppWindow.c" +#line 2304 "AppWindow.c" } static void _app_window_on_help_contents_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 449 "/home/jens/Source/shotwell/src/AppWindow.vala" app_window_on_help_contents ((AppWindow*) self); -#line 2319 "AppWindow.c" +#line 2311 "AppWindow.c" } static void _app_window_on_help_faq_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 449 "/home/jens/Source/shotwell/src/AppWindow.vala" app_window_on_help_faq ((AppWindow*) self); -#line 2326 "AppWindow.c" +#line 2318 "AppWindow.c" } static void _app_window_on_help_report_problem_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 449 "/home/jens/Source/shotwell/src/AppWindow.vala" app_window_on_help_report_problem ((AppWindow*) self); -#line 2333 "AppWindow.c" +#line 2325 "AppWindow.c" } static void _app_window_on_undo_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 449 "/home/jens/Source/shotwell/src/AppWindow.vala" app_window_on_undo ((AppWindow*) self); -#line 2340 "AppWindow.c" +#line 2332 "AppWindow.c" } static void _app_window_on_redo_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 449 "/home/jens/Source/shotwell/src/AppWindow.vala" app_window_on_redo ((AppWindow*) self); -#line 2347 "AppWindow.c" +#line 2339 "AppWindow.c" } static void _app_window_on_jump_to_file_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 449 "/home/jens/Source/shotwell/src/AppWindow.vala" app_window_on_jump_to_file ((AppWindow*) self); -#line 2354 "AppWindow.c" +#line 2346 "AppWindow.c" } static void _app_window_on_select_all_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 449 "/home/jens/Source/shotwell/src/AppWindow.vala" app_window_on_select_all ((AppWindow*) self); -#line 2361 "AppWindow.c" +#line 2353 "AppWindow.c" } static void _app_window_on_select_none_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 449 "/home/jens/Source/shotwell/src/AppWindow.vala" app_window_on_select_none ((AppWindow*) self); -#line 2368 "AppWindow.c" +#line 2360 "AppWindow.c" } static void _app_window_on_command_manager_altered_command_manager_altered (CommandManager* _sender, gboolean can_undo, gboolean can_redo, gpointer self) { #line 430 "/home/jens/Source/shotwell/src/AppWindow.vala" app_window_on_command_manager_altered ((AppWindow*) self); -#line 2375 "AppWindow.c" +#line 2367 "AppWindow.c" } @@ -2436,7 +2428,7 @@ AppWindow* app_window_construct (GType object_type) { gtk_window_set_default_icon_name ("shotwell"); #line 416 "/home/jens/Source/shotwell/src/AppWindow.vala" if (G_TYPE_CHECK_INSTANCE_TYPE (self, TYPE_LIBRARY_WINDOW)) { -#line 2412 "AppWindow.c" +#line 2404 "AppWindow.c" ConfigFacade* _tmp2_ = NULL; ConfigFacade* _tmp3_ = NULL; gboolean _tmp4_ = FALSE; @@ -2453,7 +2445,7 @@ AppWindow* app_window_construct (GType object_type) { self->dimensions = _tmp5_; #line 417 "/home/jens/Source/shotwell/src/AppWindow.vala" _g_object_unref0 (_tmp3_); -#line 2429 "AppWindow.c" +#line 2421 "AppWindow.c" } else { ConfigFacade* _tmp6_ = NULL; ConfigFacade* _tmp7_ = NULL; @@ -2473,7 +2465,7 @@ AppWindow* app_window_construct (GType object_type) { self->dimensions = _tmp9_; #line 420 "/home/jens/Source/shotwell/src/AppWindow.vala" _g_object_unref0 (_tmp7_); -#line 2449 "AppWindow.c" +#line 2441 "AppWindow.c" } #line 423 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp10_ = self->dimensions; @@ -2491,7 +2483,7 @@ AppWindow* app_window_construct (GType object_type) { if (_tmp14_) { #line 426 "/home/jens/Source/shotwell/src/AppWindow.vala" gtk_window_maximize (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow)); -#line 2467 "AppWindow.c" +#line 2459 "AppWindow.c" } #line 428 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp15_ = app_window_command_manager; @@ -2513,24 +2505,24 @@ AppWindow* app_window_construct (GType object_type) { _tmp18_ = gtk_css_provider_new (); #line 440 "/home/jens/Source/shotwell/src/AppWindow.vala" provider = _tmp18_; -#line 2489 "AppWindow.c" +#line 2481 "AppWindow.c" { GdkScreen* _tmp19_ = NULL; #line 442 "/home/jens/Source/shotwell/src/AppWindow.vala" gtk_css_provider_load_from_data (provider, RESOURCES_CUSTOM_CSS, (gssize) -1, &_inner_error_); #line 442 "/home/jens/Source/shotwell/src/AppWindow.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2496 "AppWindow.c" - goto __catch223_g_error; +#line 2488 "AppWindow.c" + goto __catch225_g_error; } #line 443 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp19_ = gdk_screen_get_default (); #line 443 "/home/jens/Source/shotwell/src/AppWindow.vala" gtk_style_context_add_provider_for_screen (_tmp19_, G_TYPE_CHECK_INSTANCE_CAST (provider, GTK_TYPE_STYLE_PROVIDER, GtkStyleProvider), (guint) GTK_STYLE_PROVIDER_PRIORITY_APPLICATION); -#line 2503 "AppWindow.c" +#line 2495 "AppWindow.c" } - goto __finally223; - __catch223_g_error: + goto __finally225; + __catch225_g_error: { GError* err = NULL; GError* _tmp20_ = NULL; @@ -2547,9 +2539,9 @@ AppWindow* app_window_construct (GType object_type) { g_debug ("AppWindow.vala:445: Unable to load custom CSS: %s", _tmp21_); #line 441 "/home/jens/Source/shotwell/src/AppWindow.vala" _g_error_free0 (err); -#line 2523 "AppWindow.c" +#line 2515 "AppWindow.c" } - __finally223: + __finally225: #line 441 "/home/jens/Source/shotwell/src/AppWindow.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 441 "/home/jens/Source/shotwell/src/AppWindow.vala" @@ -2560,13 +2552,13 @@ AppWindow* app_window_construct (GType object_type) { g_clear_error (&_inner_error_); #line 441 "/home/jens/Source/shotwell/src/AppWindow.vala" return NULL; -#line 2536 "AppWindow.c" +#line 2528 "AppWindow.c" } #line 407 "/home/jens/Source/shotwell/src/AppWindow.vala" _g_object_unref0 (provider); #line 407 "/home/jens/Source/shotwell/src/AppWindow.vala" return self; -#line 2542 "AppWindow.c" +#line 2534 "AppWindow.c" } @@ -2575,7 +2567,7 @@ static void app_window_real_on_fullscreen (AppWindow* self) { g_critical ("Type `%s' does not implement abstract method `app_window_on_fullscreen'", g_type_name (G_TYPE_FROM_INSTANCE (self))); #line 463 "/home/jens/Source/shotwell/src/AppWindow.vala" return; -#line 2551 "AppWindow.c" +#line 2543 "AppWindow.c" } @@ -2584,7 +2576,7 @@ void app_window_on_fullscreen (AppWindow* self) { g_return_if_fail (IS_APP_WINDOW (self)); #line 463 "/home/jens/Source/shotwell/src/AppWindow.vala" APP_WINDOW_GET_CLASS (self)->on_fullscreen (self); -#line 2560 "AppWindow.c" +#line 2552 "AppWindow.c" } @@ -2597,7 +2589,7 @@ gboolean app_window_has_instance (void) { result = _tmp0_ != NULL; #line 466 "/home/jens/Source/shotwell/src/AppWindow.vala" return result; -#line 2573 "AppWindow.c" +#line 2565 "AppWindow.c" } @@ -2613,7 +2605,7 @@ AppWindow* app_window_get_instance (void) { result = _tmp1_; #line 470 "/home/jens/Source/shotwell/src/AppWindow.vala" return result; -#line 2589 "AppWindow.c" +#line 2581 "AppWindow.c" } @@ -2629,7 +2621,7 @@ FullscreenWindow* app_window_get_fullscreen (void) { result = _tmp1_; #line 474 "/home/jens/Source/shotwell/src/AppWindow.vala" return result; -#line 2605 "AppWindow.c" +#line 2597 "AppWindow.c" } @@ -2645,7 +2637,7 @@ GtkBuilder* app_window_create_builder (const gchar* glade_filename, void* user) _tmp0_ = gtk_builder_new (); #line 478 "/home/jens/Source/shotwell/src/AppWindow.vala" builder = _tmp0_; -#line 2621 "AppWindow.c" +#line 2613 "AppWindow.c" { GFile* _tmp1_ = NULL; GFile* _tmp2_ = NULL; @@ -2686,12 +2678,12 @@ GtkBuilder* app_window_create_builder (const gchar* glade_filename, void* user) _g_object_unref0 (_tmp2_); #line 480 "/home/jens/Source/shotwell/src/AppWindow.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2662 "AppWindow.c" - goto __catch224_g_error; +#line 2654 "AppWindow.c" + goto __catch226_g_error; } } - goto __finally224; - __catch224_g_error: + goto __finally226; + __catch226_g_error: { GError* _error_ = NULL; GError* _tmp10_ = NULL; @@ -2708,9 +2700,9 @@ GtkBuilder* app_window_create_builder (const gchar* glade_filename, void* user) g_warning ("AppWindow.vala:483: Unable to create Gtk.Builder: %s\n", _tmp11_); #line 479 "/home/jens/Source/shotwell/src/AppWindow.vala" _g_error_free0 (_error_); -#line 2684 "AppWindow.c" +#line 2676 "AppWindow.c" } - __finally224: + __finally226: #line 479 "/home/jens/Source/shotwell/src/AppWindow.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 479 "/home/jens/Source/shotwell/src/AppWindow.vala" @@ -2721,7 +2713,7 @@ GtkBuilder* app_window_create_builder (const gchar* glade_filename, void* user) g_clear_error (&_inner_error_); #line 479 "/home/jens/Source/shotwell/src/AppWindow.vala" return NULL; -#line 2697 "AppWindow.c" +#line 2689 "AppWindow.c" } #line 486 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp12_ = user; @@ -2731,7 +2723,7 @@ GtkBuilder* app_window_create_builder (const gchar* glade_filename, void* user) result = builder; #line 488 "/home/jens/Source/shotwell/src/AppWindow.vala" return result; -#line 2707 "AppWindow.c" +#line 2699 "AppWindow.c" } @@ -2748,7 +2740,7 @@ void app_window_error_message (const gchar* message, GtkWindow* parent) { _tmp1_ = parent; #line 492 "/home/jens/Source/shotwell/src/AppWindow.vala" app_window_error_message_with_title (RESOURCES_APP_TITLE, _tmp0_, _tmp1_, TRUE); -#line 2724 "AppWindow.c" +#line 2716 "AppWindow.c" } @@ -2778,7 +2770,7 @@ void app_window_error_message_with_title (const gchar* title, const gchar* messa _tmp1_ = parent; #line 499 "/home/jens/Source/shotwell/src/AppWindow.vala" if (_tmp1_ != NULL) { -#line 2754 "AppWindow.c" +#line 2746 "AppWindow.c" GtkWindow* _tmp2_ = NULL; GtkWindow* _tmp3_ = NULL; #line 499 "/home/jens/Source/shotwell/src/AppWindow.vala" @@ -2789,7 +2781,7 @@ void app_window_error_message_with_title (const gchar* title, const gchar* messa _g_object_unref0 (_tmp0_); #line 499 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp0_ = _tmp3_; -#line 2765 "AppWindow.c" +#line 2757 "AppWindow.c" } else { AppWindow* _tmp4_ = NULL; #line 499 "/home/jens/Source/shotwell/src/AppWindow.vala" @@ -2798,7 +2790,7 @@ void app_window_error_message_with_title (const gchar* title, const gchar* messa _g_object_unref0 (_tmp0_); #line 499 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_window_get_type (), GtkWindow); -#line 2774 "AppWindow.c" +#line 2766 "AppWindow.c" } #line 499 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp5_ = title; @@ -2844,7 +2836,7 @@ void app_window_error_message_with_title (const gchar* title, const gchar* messa _g_object_unref0 (dialog); #line 495 "/home/jens/Source/shotwell/src/AppWindow.vala" _g_object_unref0 (_tmp0_); -#line 2820 "AppWindow.c" +#line 2812 "AppWindow.c" } @@ -2879,7 +2871,7 @@ gboolean app_window_negate_affirm_question (const gchar* message, const gchar* n _tmp1_ = parent; #line 512 "/home/jens/Source/shotwell/src/AppWindow.vala" if (_tmp1_ != NULL) { -#line 2855 "AppWindow.c" +#line 2847 "AppWindow.c" GtkWindow* _tmp2_ = NULL; GtkWindow* _tmp3_ = NULL; #line 512 "/home/jens/Source/shotwell/src/AppWindow.vala" @@ -2890,7 +2882,7 @@ gboolean app_window_negate_affirm_question (const gchar* message, const gchar* n _g_object_unref0 (_tmp0_); #line 512 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp0_ = _tmp3_; -#line 2866 "AppWindow.c" +#line 2858 "AppWindow.c" } else { AppWindow* _tmp4_ = NULL; #line 512 "/home/jens/Source/shotwell/src/AppWindow.vala" @@ -2899,7 +2891,7 @@ gboolean app_window_negate_affirm_question (const gchar* message, const gchar* n _g_object_unref0 (_tmp0_); #line 512 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_window_get_type (), GtkWindow); -#line 2875 "AppWindow.c" +#line 2867 "AppWindow.c" } #line 512 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp5_ = title; @@ -2953,7 +2945,7 @@ gboolean app_window_negate_affirm_question (const gchar* message, const gchar* n _g_object_unref0 (_tmp0_); #line 523 "/home/jens/Source/shotwell/src/AppWindow.vala" return result; -#line 2929 "AppWindow.c" +#line 2921 "AppWindow.c" } @@ -2989,7 +2981,7 @@ GtkResponseType app_window_negate_affirm_cancel_question (const gchar* message, _tmp1_ = parent; #line 528 "/home/jens/Source/shotwell/src/AppWindow.vala" if (_tmp1_ != NULL) { -#line 2965 "AppWindow.c" +#line 2957 "AppWindow.c" GtkWindow* _tmp2_ = NULL; GtkWindow* _tmp3_ = NULL; #line 528 "/home/jens/Source/shotwell/src/AppWindow.vala" @@ -3000,7 +2992,7 @@ GtkResponseType app_window_negate_affirm_cancel_question (const gchar* message, _g_object_unref0 (_tmp0_); #line 528 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp0_ = _tmp3_; -#line 2976 "AppWindow.c" +#line 2968 "AppWindow.c" } else { AppWindow* _tmp4_ = NULL; #line 528 "/home/jens/Source/shotwell/src/AppWindow.vala" @@ -3009,7 +3001,7 @@ GtkResponseType app_window_negate_affirm_cancel_question (const gchar* message, _g_object_unref0 (_tmp0_); #line 528 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_window_get_type (), GtkWindow); -#line 2985 "AppWindow.c" +#line 2977 "AppWindow.c" } #line 528 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp5_ = title; @@ -3065,7 +3057,7 @@ GtkResponseType app_window_negate_affirm_cancel_question (const gchar* message, _g_object_unref0 (_tmp0_); #line 542 "/home/jens/Source/shotwell/src/AppWindow.vala" return result; -#line 3041 "AppWindow.c" +#line 3033 "AppWindow.c" } @@ -3099,7 +3091,7 @@ GtkResponseType app_window_affirm_cancel_question (const gchar* message, const g _tmp1_ = parent; #line 547 "/home/jens/Source/shotwell/src/AppWindow.vala" if (_tmp1_ != NULL) { -#line 3075 "AppWindow.c" +#line 3067 "AppWindow.c" GtkWindow* _tmp2_ = NULL; GtkWindow* _tmp3_ = NULL; #line 547 "/home/jens/Source/shotwell/src/AppWindow.vala" @@ -3110,7 +3102,7 @@ GtkResponseType app_window_affirm_cancel_question (const gchar* message, const g _g_object_unref0 (_tmp0_); #line 547 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp0_ = _tmp3_; -#line 3086 "AppWindow.c" +#line 3078 "AppWindow.c" } else { AppWindow* _tmp4_ = NULL; #line 547 "/home/jens/Source/shotwell/src/AppWindow.vala" @@ -3119,7 +3111,7 @@ GtkResponseType app_window_affirm_cancel_question (const gchar* message, const g _g_object_unref0 (_tmp0_); #line 547 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_window_get_type (), GtkWindow); -#line 3095 "AppWindow.c" +#line 3087 "AppWindow.c" } #line 547 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp5_ = message; @@ -3143,17 +3135,17 @@ GtkResponseType app_window_affirm_cancel_question (const gchar* message, const g _tmp11_ = title; #line 552 "/home/jens/Source/shotwell/src/AppWindow.vala" if (_tmp11_ != NULL) { -#line 3119 "AppWindow.c" +#line 3111 "AppWindow.c" const gchar* _tmp12_ = NULL; #line 552 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp12_ = title; #line 552 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp10_ = _tmp12_; -#line 3125 "AppWindow.c" +#line 3117 "AppWindow.c" } else { #line 552 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp10_ = RESOURCES_APP_TITLE; -#line 3129 "AppWindow.c" +#line 3121 "AppWindow.c" } #line 552 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp13_ = dialog; @@ -3185,7 +3177,7 @@ GtkResponseType app_window_affirm_cancel_question (const gchar* message, const g _g_object_unref0 (_tmp0_); #line 560 "/home/jens/Source/shotwell/src/AppWindow.vala" return result; -#line 3161 "AppWindow.c" +#line 3153 "AppWindow.c" } @@ -3222,7 +3214,7 @@ GtkResponseType app_window_negate_affirm_all_cancel_question (const gchar* messa _tmp1_ = parent; #line 566 "/home/jens/Source/shotwell/src/AppWindow.vala" if (_tmp1_ != NULL) { -#line 3198 "AppWindow.c" +#line 3190 "AppWindow.c" GtkWindow* _tmp2_ = NULL; GtkWindow* _tmp3_ = NULL; #line 566 "/home/jens/Source/shotwell/src/AppWindow.vala" @@ -3233,7 +3225,7 @@ GtkResponseType app_window_negate_affirm_all_cancel_question (const gchar* messa _g_object_unref0 (_tmp0_); #line 566 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp0_ = _tmp3_; -#line 3209 "AppWindow.c" +#line 3201 "AppWindow.c" } else { AppWindow* _tmp4_ = NULL; #line 566 "/home/jens/Source/shotwell/src/AppWindow.vala" @@ -3242,7 +3234,7 @@ GtkResponseType app_window_negate_affirm_all_cancel_question (const gchar* messa _g_object_unref0 (_tmp0_); #line 566 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_window_get_type (), GtkWindow); -#line 3218 "AppWindow.c" +#line 3210 "AppWindow.c" } #line 566 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp5_ = message; @@ -3256,17 +3248,17 @@ GtkResponseType app_window_negate_affirm_all_cancel_question (const gchar* messa _tmp8_ = title; #line 568 "/home/jens/Source/shotwell/src/AppWindow.vala" if (_tmp8_ != NULL) { -#line 3232 "AppWindow.c" +#line 3224 "AppWindow.c" const gchar* _tmp9_ = NULL; #line 568 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp9_ = title; #line 568 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp7_ = _tmp9_; -#line 3238 "AppWindow.c" +#line 3230 "AppWindow.c" } else { #line 568 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp7_ = RESOURCES_APP_TITLE; -#line 3242 "AppWindow.c" +#line 3234 "AppWindow.c" } #line 568 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp10_ = dialog; @@ -3302,7 +3294,7 @@ GtkResponseType app_window_negate_affirm_all_cancel_question (const gchar* messa _g_object_unref0 (_tmp0_); #line 576 "/home/jens/Source/shotwell/src/AppWindow.vala" return result; -#line 3278 "AppWindow.c" +#line 3270 "AppWindow.c" } @@ -3329,7 +3321,7 @@ void app_window_database_error (GError* err) { app_window_panic (_tmp4_); #line 580 "/home/jens/Source/shotwell/src/AppWindow.vala" _g_free0 (_tmp4_); -#line 3302 "AppWindow.c" +#line 3294 "AppWindow.c" } @@ -3356,7 +3348,7 @@ void app_window_panic (const gchar* msg) { application_panic (_tmp3_); #line 588 "/home/jens/Source/shotwell/src/AppWindow.vala" _application_unref0 (_tmp3_); -#line 3329 "AppWindow.c" +#line 3321 "AppWindow.c" } @@ -3365,7 +3357,7 @@ static gchar* app_window_real_get_app_role (AppWindow* self) { g_critical ("Type `%s' does not implement abstract method `app_window_get_app_role'", g_type_name (G_TYPE_FROM_INSTANCE (self))); #line 591 "/home/jens/Source/shotwell/src/AppWindow.vala" return NULL; -#line 3338 "AppWindow.c" +#line 3330 "AppWindow.c" } @@ -3374,7 +3366,7 @@ gchar* app_window_get_app_role (AppWindow* self) { g_return_val_if_fail (IS_APP_WINDOW (self), NULL); #line 591 "/home/jens/Source/shotwell/src/AppWindow.vala" return APP_WINDOW_GET_CLASS (self)->get_app_role (self); -#line 3347 "AppWindow.c" +#line 3339 "AppWindow.c" } @@ -3405,7 +3397,7 @@ void app_window_on_about (AppWindow* self) { _g_object_unref0 (_tmp4_); #line 594 "/home/jens/Source/shotwell/src/AppWindow.vala" _g_free0 (_tmp1_); -#line 3378 "AppWindow.c" +#line 3370 "AppWindow.c" } @@ -3413,7 +3405,7 @@ static void app_window_on_help_contents (AppWindow* self) { GError * _inner_error_ = NULL; #line 608 "/home/jens/Source/shotwell/src/AppWindow.vala" g_return_if_fail (IS_APP_WINDOW (self)); -#line 3386 "AppWindow.c" +#line 3378 "AppWindow.c" { GdkScreen* _tmp0_ = NULL; #line 610 "/home/jens/Source/shotwell/src/AppWindow.vala" @@ -3422,12 +3414,12 @@ static void app_window_on_help_contents (AppWindow* self) { resources_launch_help (_tmp0_, NULL, &_inner_error_); #line 610 "/home/jens/Source/shotwell/src/AppWindow.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3395 "AppWindow.c" - goto __catch225_g_error; +#line 3387 "AppWindow.c" + goto __catch227_g_error; } } - goto __finally225; - __catch225_g_error: + goto __finally227; + __catch227_g_error: { GError* err = NULL; const gchar* _tmp1_ = NULL; @@ -3455,9 +3447,9 @@ static void app_window_on_help_contents (AppWindow* self) { _g_free0 (_tmp5_); #line 609 "/home/jens/Source/shotwell/src/AppWindow.vala" _g_error_free0 (err); -#line 3428 "AppWindow.c" +#line 3420 "AppWindow.c" } - __finally225: + __finally227: #line 609 "/home/jens/Source/shotwell/src/AppWindow.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 609 "/home/jens/Source/shotwell/src/AppWindow.vala" @@ -3466,7 +3458,7 @@ static void app_window_on_help_contents (AppWindow* self) { g_clear_error (&_inner_error_); #line 609 "/home/jens/Source/shotwell/src/AppWindow.vala" return; -#line 3439 "AppWindow.c" +#line 3431 "AppWindow.c" } } @@ -3475,18 +3467,18 @@ static void app_window_on_help_report_problem (AppWindow* self) { GError * _inner_error_ = NULL; #line 616 "/home/jens/Source/shotwell/src/AppWindow.vala" g_return_if_fail (IS_APP_WINDOW (self)); -#line 3448 "AppWindow.c" +#line 3440 "AppWindow.c" { #line 618 "/home/jens/Source/shotwell/src/AppWindow.vala" app_window_show_uri (self, RESOURCES_BUG_DB_URL, &_inner_error_); #line 618 "/home/jens/Source/shotwell/src/AppWindow.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3454 "AppWindow.c" - goto __catch226_g_error; +#line 3446 "AppWindow.c" + goto __catch228_g_error; } } - goto __finally226; - __catch226_g_error: + goto __finally228; + __catch228_g_error: { GError* err = NULL; const gchar* _tmp0_ = NULL; @@ -3514,9 +3506,9 @@ static void app_window_on_help_report_problem (AppWindow* self) { _g_free0 (_tmp4_); #line 617 "/home/jens/Source/shotwell/src/AppWindow.vala" _g_error_free0 (err); -#line 3487 "AppWindow.c" +#line 3479 "AppWindow.c" } - __finally226: + __finally228: #line 617 "/home/jens/Source/shotwell/src/AppWindow.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 617 "/home/jens/Source/shotwell/src/AppWindow.vala" @@ -3525,7 +3517,7 @@ static void app_window_on_help_report_problem (AppWindow* self) { g_clear_error (&_inner_error_); #line 617 "/home/jens/Source/shotwell/src/AppWindow.vala" return; -#line 3498 "AppWindow.c" +#line 3490 "AppWindow.c" } } @@ -3534,18 +3526,18 @@ static void app_window_on_help_faq (AppWindow* self) { GError * _inner_error_ = NULL; #line 624 "/home/jens/Source/shotwell/src/AppWindow.vala" g_return_if_fail (IS_APP_WINDOW (self)); -#line 3507 "AppWindow.c" +#line 3499 "AppWindow.c" { #line 626 "/home/jens/Source/shotwell/src/AppWindow.vala" app_window_show_uri (self, RESOURCES_FAQ_URL, &_inner_error_); #line 626 "/home/jens/Source/shotwell/src/AppWindow.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3513 "AppWindow.c" - goto __catch227_g_error; +#line 3505 "AppWindow.c" + goto __catch229_g_error; } } - goto __finally227; - __catch227_g_error: + goto __finally229; + __catch229_g_error: { GError* err = NULL; const gchar* _tmp0_ = NULL; @@ -3573,9 +3565,9 @@ static void app_window_on_help_faq (AppWindow* self) { _g_free0 (_tmp4_); #line 625 "/home/jens/Source/shotwell/src/AppWindow.vala" _g_error_free0 (err); -#line 3546 "AppWindow.c" +#line 3538 "AppWindow.c" } - __finally227: + __finally229: #line 625 "/home/jens/Source/shotwell/src/AppWindow.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 625 "/home/jens/Source/shotwell/src/AppWindow.vala" @@ -3584,7 +3576,7 @@ static void app_window_on_help_faq (AppWindow* self) { g_clear_error (&_inner_error_); #line 625 "/home/jens/Source/shotwell/src/AppWindow.vala" return; -#line 3557 "AppWindow.c" +#line 3549 "AppWindow.c" } } @@ -3600,7 +3592,7 @@ static void app_window_real_on_quit (AppWindow* self) { application_exit (_tmp1_); #line 633 "/home/jens/Source/shotwell/src/AppWindow.vala" _application_unref0 (_tmp1_); -#line 3573 "AppWindow.c" +#line 3565 "AppWindow.c" } @@ -3609,7 +3601,7 @@ void app_window_on_quit (AppWindow* self) { g_return_if_fail (IS_APP_WINDOW (self)); #line 632 "/home/jens/Source/shotwell/src/AppWindow.vala" APP_WINDOW_GET_CLASS (self)->on_quit (self); -#line 3582 "AppWindow.c" +#line 3574 "AppWindow.c" } @@ -3654,7 +3646,7 @@ void app_window_on_jump_to_file (AppWindow* self) { if (_tmp5_) { #line 638 "/home/jens/Source/shotwell/src/AppWindow.vala" return; -#line 3627 "AppWindow.c" +#line 3619 "AppWindow.c" } #line 640 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp6_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); @@ -3676,7 +3668,7 @@ void app_window_on_jump_to_file (AppWindow* self) { if (_tmp13_ == NULL) { #line 640 "/home/jens/Source/shotwell/src/AppWindow.vala" _g_object_unref0 (_tmp12_); -#line 3649 "AppWindow.c" +#line 3641 "AppWindow.c" } #line 640 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp14_ = _tmp13_; @@ -3696,7 +3688,7 @@ void app_window_on_jump_to_file (AppWindow* self) { _g_object_unref0 (media); #line 643 "/home/jens/Source/shotwell/src/AppWindow.vala" return; -#line 3669 "AppWindow.c" +#line 3661 "AppWindow.c" } { AppWindow* _tmp16_ = NULL; @@ -3722,12 +3714,12 @@ void app_window_on_jump_to_file (AppWindow* self) { _g_object_unref0 (_tmp17_); #line 646 "/home/jens/Source/shotwell/src/AppWindow.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3695 "AppWindow.c" - goto __catch228_g_error; +#line 3687 "AppWindow.c" + goto __catch230_g_error; } } - goto __finally228; - __catch228_g_error: + goto __finally230; + __catch230_g_error: { GError* err = NULL; GError* _tmp21_ = NULL; @@ -3749,9 +3741,9 @@ void app_window_on_jump_to_file (AppWindow* self) { _g_free0 (_tmp23_); #line 645 "/home/jens/Source/shotwell/src/AppWindow.vala" _g_error_free0 (err); -#line 3722 "AppWindow.c" +#line 3714 "AppWindow.c" } - __finally228: + __finally230: #line 645 "/home/jens/Source/shotwell/src/AppWindow.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 645 "/home/jens/Source/shotwell/src/AppWindow.vala" @@ -3762,11 +3754,11 @@ void app_window_on_jump_to_file (AppWindow* self) { g_clear_error (&_inner_error_); #line 645 "/home/jens/Source/shotwell/src/AppWindow.vala" return; -#line 3735 "AppWindow.c" +#line 3727 "AppWindow.c" } #line 636 "/home/jens/Source/shotwell/src/AppWindow.vala" _g_object_unref0 (media); -#line 3739 "AppWindow.c" +#line 3731 "AppWindow.c" } @@ -3776,20 +3768,20 @@ static void app_window_real_destroy (GtkWidget* base) { self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_APP_WINDOW, AppWindow); #line 653 "/home/jens/Source/shotwell/src/AppWindow.vala" app_window_on_quit (self); -#line 3749 "AppWindow.c" +#line 3741 "AppWindow.c" } static gchar* string_replace (const gchar* self, const gchar* old, const gchar* replacement) { gchar* result = NULL; GError * _inner_error_ = NULL; -#line 1380 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1380 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, NULL); -#line 1380 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1380 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (old != NULL, NULL); -#line 1380 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1380 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (replacement != NULL, NULL); -#line 3762 "AppWindow.c" +#line 3754 "AppWindow.c" { GRegex* regex = NULL; const gchar* _tmp0_ = NULL; @@ -3802,100 +3794,100 @@ static gchar* string_replace (const gchar* self, const gchar* old, const gchar* const gchar* _tmp7_ = NULL; gchar* _tmp8_ = NULL; gchar* _tmp9_ = NULL; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = old; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = g_regex_escape_string (_tmp0_, -1); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = _tmp1_; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = g_regex_new (_tmp2_, 0, 0, &_inner_error_); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = _tmp3_; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_free0 (_tmp2_); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" regex = _tmp4_; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_inner_error_->domain == G_REGEX_ERROR) { -#line 3793 "AppWindow.c" - goto __catch229_g_regex_error; +#line 3785 "AppWindow.c" + goto __catch231_g_regex_error; } -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_clear_error (&_inner_error_); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return NULL; -#line 3802 "AppWindow.c" +#line 3794 "AppWindow.c" } -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp6_ = regex; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp7_ = replacement; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp8_ = g_regex_replace_literal (_tmp6_, self, (gssize) -1, 0, _tmp7_, 0, &_inner_error_); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = _tmp8_; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_regex_unref0 (regex); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_inner_error_->domain == G_REGEX_ERROR) { -#line 3818 "AppWindow.c" - goto __catch229_g_regex_error; +#line 3810 "AppWindow.c" + goto __catch231_g_regex_error; } -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_regex_unref0 (regex); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_clear_error (&_inner_error_); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return NULL; -#line 3829 "AppWindow.c" +#line 3821 "AppWindow.c" } -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp9_ = _tmp5_; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = NULL; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp9_; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_free0 (_tmp5_); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_regex_unref0 (regex); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; -#line 3843 "AppWindow.c" +#line 3835 "AppWindow.c" } - goto __finally229; - __catch229_g_regex_error: + goto __finally231; + __catch231_g_regex_error: { GError* e = NULL; -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" e = _inner_error_; -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _inner_error_ = NULL; -#line 1385 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1385 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_assert_not_reached (); -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_error_free0 (e); -#line 3857 "AppWindow.c" +#line 3849 "AppWindow.c" } - __finally229: -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" + __finally231: +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_clear_error (&_inner_error_); -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return NULL; -#line 3868 "AppWindow.c" +#line 3860 "AppWindow.c" } } @@ -3920,7 +3912,7 @@ void app_window_show_file_uri (AppWindow* self, GFile* file, GError** error) { _g_free0 (_tmp1_); #line 661 "/home/jens/Source/shotwell/src/AppWindow.vala" if (_tmp2_) { -#line 3893 "AppWindow.c" +#line 3885 "AppWindow.c" GFile* _tmp3_ = NULL; gchar* _tmp4_ = NULL; gchar* _tmp5_ = NULL; @@ -3952,7 +3944,7 @@ void app_window_show_file_uri (AppWindow* self, GFile* file, GError** error) { _g_free0 (tmp); #line 663 "/home/jens/Source/shotwell/src/AppWindow.vala" return; -#line 3925 "AppWindow.c" +#line 3917 "AppWindow.c" } } else { GFile* _tmp8_ = NULL; @@ -3994,12 +3986,12 @@ void app_window_show_file_uri (AppWindow* self, GFile* file, GError** error) { _g_free0 (tmp); #line 666 "/home/jens/Source/shotwell/src/AppWindow.vala" return; -#line 3967 "AppWindow.c" +#line 3959 "AppWindow.c" } } #line 656 "/home/jens/Source/shotwell/src/AppWindow.vala" _g_free0 (tmp); -#line 3972 "AppWindow.c" +#line 3964 "AppWindow.c" } @@ -4026,7 +4018,7 @@ void app_window_show_uri (AppWindow* self, const gchar* url, GError** error) { g_propagate_error (error, _inner_error_); #line 671 "/home/jens/Source/shotwell/src/AppWindow.vala" return; -#line 3999 "AppWindow.c" +#line 3991 "AppWindow.c" } } @@ -4034,7 +4026,7 @@ void app_window_show_uri (AppWindow* self, const gchar* url, GError** error) { static void app_window_real_add_actions (AppWindow* self) { #line 675 "/home/jens/Source/shotwell/src/AppWindow.vala" g_action_map_add_action_entries (G_TYPE_CHECK_INSTANCE_CAST (self, g_action_map_get_type (), GActionMap), APP_WINDOW_common_actions, G_N_ELEMENTS (APP_WINDOW_common_actions), self); -#line 4007 "AppWindow.c" +#line 3999 "AppWindow.c" } @@ -4043,7 +4035,7 @@ void app_window_add_actions (AppWindow* self) { g_return_if_fail (IS_APP_WINDOW (self)); #line 674 "/home/jens/Source/shotwell/src/AppWindow.vala" APP_WINDOW_GET_CLASS (self)->add_actions (self); -#line 4016 "AppWindow.c" +#line 4008 "AppWindow.c" } @@ -4068,7 +4060,7 @@ void app_window_go_fullscreen (AppWindow* self, Page* page) { _tmp0_ = app_window_fullscreen_window; #line 680 "/home/jens/Source/shotwell/src/AppWindow.vala" if (_tmp0_ != NULL) { -#line 4041 "AppWindow.c" +#line 4033 "AppWindow.c" FullscreenWindow* _tmp1_ = NULL; #line 681 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp1_ = app_window_fullscreen_window; @@ -4076,7 +4068,7 @@ void app_window_go_fullscreen (AppWindow* self, Page* page) { gtk_window_present (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_window_get_type (), GtkWindow)); #line 683 "/home/jens/Source/shotwell/src/AppWindow.vala" return; -#line 4049 "AppWindow.c" +#line 4041 "AppWindow.c" } #line 686 "/home/jens/Source/shotwell/src/AppWindow.vala" gtk_window_get_position (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), &_tmp2_, &_tmp3_); @@ -4104,7 +4096,7 @@ void app_window_go_fullscreen (AppWindow* self, Page* page) { _g_object_unref0 (_tmp7_); #line 691 "/home/jens/Source/shotwell/src/AppWindow.vala" if (_tmp8_) { -#line 4077 "AppWindow.c" +#line 4069 "AppWindow.c" Page* _tmp9_ = NULL; Page* _tmp10_ = NULL; FullscreenWindow* _tmp11_ = NULL; @@ -4118,7 +4110,7 @@ void app_window_go_fullscreen (AppWindow* self, Page* page) { page_switching_to_fullscreen (_tmp10_, _tmp11_); #line 692 "/home/jens/Source/shotwell/src/AppWindow.vala" _g_object_unref0 (_tmp10_); -#line 4091 "AppWindow.c" +#line 4083 "AppWindow.c" } #line 694 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp12_ = fsw; @@ -4134,7 +4126,7 @@ void app_window_go_fullscreen (AppWindow* self, Page* page) { gtk_window_present (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_window_get_type (), GtkWindow)); #line 678 "/home/jens/Source/shotwell/src/AppWindow.vala" _g_object_unref0 (fsw); -#line 4107 "AppWindow.c" +#line 4099 "AppWindow.c" } @@ -4155,7 +4147,7 @@ void app_window_end_fullscreen (AppWindow* self) { if (_tmp0_ == NULL) { #line 700 "/home/jens/Source/shotwell/src/AppWindow.vala" return; -#line 4128 "AppWindow.c" +#line 4120 "AppWindow.c" } #line 702 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp1_ = self->pos_x; @@ -4175,7 +4167,7 @@ void app_window_end_fullscreen (AppWindow* self) { _g_object_unref0 (_tmp4_); #line 706 "/home/jens/Source/shotwell/src/AppWindow.vala" if (_tmp5_) { -#line 4148 "AppWindow.c" +#line 4140 "AppWindow.c" Page* _tmp6_ = NULL; Page* _tmp7_ = NULL; FullscreenWindow* _tmp8_ = NULL; @@ -4189,7 +4181,7 @@ void app_window_end_fullscreen (AppWindow* self) { page_returning_from_fullscreen (_tmp7_, _tmp8_); #line 707 "/home/jens/Source/shotwell/src/AppWindow.vala" _g_object_unref0 (_tmp7_); -#line 4162 "AppWindow.c" +#line 4154 "AppWindow.c" } #line 709 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp9_ = app_window_fullscreen_window; @@ -4205,7 +4197,7 @@ void app_window_end_fullscreen (AppWindow* self) { app_window_fullscreen_window = NULL; #line 713 "/home/jens/Source/shotwell/src/AppWindow.vala" gtk_window_present (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow)); -#line 4178 "AppWindow.c" +#line 4170 "AppWindow.c" } @@ -4228,7 +4220,7 @@ GAction* app_window_get_common_action (AppWindow* self, const gchar* name) { result = _tmp2_; #line 717 "/home/jens/Source/shotwell/src/AppWindow.vala" return result; -#line 4201 "AppWindow.c" +#line 4193 "AppWindow.c" } @@ -4252,7 +4244,7 @@ void app_window_set_common_action_sensitive (AppWindow* self, const gchar* name, if (_tmp2_ == NULL) { #line 721 "/home/jens/Source/shotwell/src/AppWindow.vala" _g_object_unref0 (_tmp1_); -#line 4225 "AppWindow.c" +#line 4217 "AppWindow.c" } #line 721 "/home/jens/Source/shotwell/src/AppWindow.vala" action = _tmp2_; @@ -4260,7 +4252,7 @@ void app_window_set_common_action_sensitive (AppWindow* self, const gchar* name, _tmp3_ = action; #line 722 "/home/jens/Source/shotwell/src/AppWindow.vala" if (_tmp3_ != NULL) { -#line 4233 "AppWindow.c" +#line 4225 "AppWindow.c" GSimpleAction* _tmp4_ = NULL; gboolean _tmp5_ = FALSE; #line 723 "/home/jens/Source/shotwell/src/AppWindow.vala" @@ -4269,11 +4261,11 @@ void app_window_set_common_action_sensitive (AppWindow* self, const gchar* name, _tmp5_ = sensitive; #line 723 "/home/jens/Source/shotwell/src/AppWindow.vala" g_simple_action_set_enabled (_tmp4_, _tmp5_); -#line 4242 "AppWindow.c" +#line 4234 "AppWindow.c" } #line 720 "/home/jens/Source/shotwell/src/AppWindow.vala" _g_object_unref0 (action); -#line 4246 "AppWindow.c" +#line 4238 "AppWindow.c" } @@ -4297,7 +4289,7 @@ void app_window_set_common_action_important (AppWindow* self, const gchar* name, if (_tmp2_ == NULL) { #line 727 "/home/jens/Source/shotwell/src/AppWindow.vala" _g_object_unref0 (_tmp1_); -#line 4270 "AppWindow.c" +#line 4262 "AppWindow.c" } #line 727 "/home/jens/Source/shotwell/src/AppWindow.vala" action = _tmp2_; @@ -4305,7 +4297,7 @@ void app_window_set_common_action_important (AppWindow* self, const gchar* name, _tmp3_ = action; #line 728 "/home/jens/Source/shotwell/src/AppWindow.vala" if (_tmp3_ != NULL) { -#line 4278 "AppWindow.c" +#line 4270 "AppWindow.c" GSimpleAction* _tmp4_ = NULL; gboolean _tmp5_ = FALSE; gboolean _tmp6_ = FALSE; @@ -4317,11 +4309,11 @@ void app_window_set_common_action_important (AppWindow* self, const gchar* name, _tmp6_ = _tmp5_; #line 729 "/home/jens/Source/shotwell/src/AppWindow.vala" g_simple_action_set_enabled (_tmp4_, _tmp6_); -#line 4290 "AppWindow.c" +#line 4282 "AppWindow.c" } #line 726 "/home/jens/Source/shotwell/src/AppWindow.vala" _g_object_unref0 (action); -#line 4294 "AppWindow.c" +#line 4286 "AppWindow.c" } @@ -4345,7 +4337,7 @@ void app_window_set_common_action_visible (AppWindow* self, const gchar* name, g if (_tmp2_ == NULL) { #line 733 "/home/jens/Source/shotwell/src/AppWindow.vala" _g_object_unref0 (_tmp1_); -#line 4318 "AppWindow.c" +#line 4310 "AppWindow.c" } #line 733 "/home/jens/Source/shotwell/src/AppWindow.vala" action = _tmp2_; @@ -4353,7 +4345,7 @@ void app_window_set_common_action_visible (AppWindow* self, const gchar* name, g _tmp3_ = action; #line 734 "/home/jens/Source/shotwell/src/AppWindow.vala" if (_tmp3_ != NULL) { -#line 4326 "AppWindow.c" +#line 4318 "AppWindow.c" GSimpleAction* _tmp4_ = NULL; gboolean _tmp5_ = FALSE; gboolean _tmp6_ = FALSE; @@ -4365,32 +4357,32 @@ void app_window_set_common_action_visible (AppWindow* self, const gchar* name, g _tmp6_ = _tmp5_; #line 735 "/home/jens/Source/shotwell/src/AppWindow.vala" g_simple_action_set_enabled (_tmp4_, _tmp6_); -#line 4338 "AppWindow.c" +#line 4330 "AppWindow.c" } #line 732 "/home/jens/Source/shotwell/src/AppWindow.vala" _g_object_unref0 (action); -#line 4342 "AppWindow.c" +#line 4334 "AppWindow.c" } static void _app_window_on_update_common_actions_data_collection_contents_altered (DataCollection* _sender, GeeIterable* added, GeeIterable* removed, gpointer self) { #line 742 "/home/jens/Source/shotwell/src/AppWindow.vala" app_window_on_update_common_actions ((AppWindow*) self); -#line 4349 "AppWindow.c" +#line 4341 "AppWindow.c" } static void _app_window_on_update_common_actions_view_collection_selection_group_altered (ViewCollection* _sender, gpointer self) { #line 743 "/home/jens/Source/shotwell/src/AppWindow.vala" app_window_on_update_common_actions ((AppWindow*) self); -#line 4356 "AppWindow.c" +#line 4348 "AppWindow.c" } static void _app_window_on_update_common_actions_view_collection_items_state_changed (ViewCollection* _sender, GeeIterable* changed, gpointer self) { #line 744 "/home/jens/Source/shotwell/src/AppWindow.vala" app_window_on_update_common_actions ((AppWindow*) self); -#line 4363 "AppWindow.c" +#line 4355 "AppWindow.c" } @@ -4418,7 +4410,7 @@ static void app_window_real_switched_pages (PageWindow* base, Page* old_page, Pa _tmp2_ = old_page; #line 741 "/home/jens/Source/shotwell/src/AppWindow.vala" if (_tmp2_ != NULL) { -#line 4391 "AppWindow.c" +#line 4383 "AppWindow.c" Page* _tmp3_ = NULL; ViewCollection* _tmp4_ = NULL; ViewCollection* _tmp5_ = NULL; @@ -4467,13 +4459,13 @@ static void app_window_real_switched_pages (PageWindow* base, Page* old_page, Pa g_signal_handlers_disconnect_matched (_tmp13_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp14_, 0, NULL, (GCallback) _app_window_on_update_common_actions_view_collection_items_state_changed, self); #line 744 "/home/jens/Source/shotwell/src/AppWindow.vala" _data_collection_unref0 (_tmp13_); -#line 4440 "AppWindow.c" +#line 4432 "AppWindow.c" } #line 747 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp15_ = new_page; #line 747 "/home/jens/Source/shotwell/src/AppWindow.vala" if (_tmp15_ != NULL) { -#line 4446 "AppWindow.c" +#line 4438 "AppWindow.c" Page* _tmp16_ = NULL; ViewCollection* _tmp17_ = NULL; ViewCollection* _tmp18_ = NULL; @@ -4546,7 +4538,7 @@ static void app_window_real_switched_pages (PageWindow* base, Page* old_page, Pa _data_collection_unref0 (_tmp32_); #line 752 "/home/jens/Source/shotwell/src/AppWindow.vala" _data_collection_unref0 (_tmp28_); -#line 4519 "AppWindow.c" +#line 4511 "AppWindow.c" } #line 756 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp34_ = old_page; @@ -4554,7 +4546,7 @@ static void app_window_real_switched_pages (PageWindow* base, Page* old_page, Pa _tmp35_ = new_page; #line 756 "/home/jens/Source/shotwell/src/AppWindow.vala" PAGE_WINDOW_CLASS (app_window_parent_class)->switched_pages (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow), _tmp34_, _tmp35_); -#line 4527 "AppWindow.c" +#line 4519 "AppWindow.c" } @@ -4573,7 +4565,7 @@ static void app_window_real_update_common_action_availability (AppWindow* self, app_window_set_common_action_sensitive (self, "CommonSelectAll", is_checkerboard); #line 766 "/home/jens/Source/shotwell/src/AppWindow.vala" app_window_set_common_action_sensitive (self, "CommonSelectNone", is_checkerboard); -#line 4546 "AppWindow.c" +#line 4538 "AppWindow.c" } @@ -4582,7 +4574,7 @@ void app_window_update_common_action_availability (AppWindow* self, Page* old_pa g_return_if_fail (IS_APP_WINDOW (self)); #line 762 "/home/jens/Source/shotwell/src/AppWindow.vala" APP_WINDOW_GET_CLASS (self)->update_common_action_availability (self, old_page, new_page); -#line 4555 "AppWindow.c" +#line 4547 "AppWindow.c" } @@ -4595,13 +4587,13 @@ static void app_window_real_update_common_actions (AppWindow* self, Page* page, _tmp0_ = page; #line 773 "/home/jens/Source/shotwell/src/AppWindow.vala" if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_CHECKERBOARD_PAGE)) { -#line 4568 "AppWindow.c" +#line 4560 "AppWindow.c" gint _tmp1_ = 0; #line 774 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp1_ = count; #line 774 "/home/jens/Source/shotwell/src/AppWindow.vala" app_window_set_common_action_sensitive (self, "CommonSelectAll", _tmp1_ > 0); -#line 4574 "AppWindow.c" +#line 4566 "AppWindow.c" } #line 775 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp2_ = selected_count; @@ -4611,7 +4603,7 @@ static void app_window_real_update_common_actions (AppWindow* self, Page* page, app_window_decorate_undo_action (self); #line 778 "/home/jens/Source/shotwell/src/AppWindow.vala" app_window_decorate_redo_action (self); -#line 4584 "AppWindow.c" +#line 4576 "AppWindow.c" } @@ -4620,7 +4612,7 @@ void app_window_update_common_actions (AppWindow* self, Page* page, gint selecte g_return_if_fail (IS_APP_WINDOW (self)); #line 772 "/home/jens/Source/shotwell/src/AppWindow.vala" APP_WINDOW_GET_CLASS (self)->update_common_actions (self, page, selected_count, count); -#line 4593 "AppWindow.c" +#line 4585 "AppWindow.c" } @@ -4638,7 +4630,7 @@ static void app_window_on_update_common_actions (AppWindow* self) { _tmp1_ = page; #line 783 "/home/jens/Source/shotwell/src/AppWindow.vala" if (_tmp1_ != NULL) { -#line 4611 "AppWindow.c" +#line 4603 "AppWindow.c" Page* _tmp2_ = NULL; Page* _tmp3_ = NULL; ViewCollection* _tmp4_ = NULL; @@ -4672,11 +4664,11 @@ static void app_window_on_update_common_actions (AppWindow* self) { _data_collection_unref0 (_tmp9_); #line 784 "/home/jens/Source/shotwell/src/AppWindow.vala" _data_collection_unref0 (_tmp5_); -#line 4645 "AppWindow.c" +#line 4637 "AppWindow.c" } #line 781 "/home/jens/Source/shotwell/src/AppWindow.vala" _g_object_unref0 (page); -#line 4649 "AppWindow.c" +#line 4641 "AppWindow.c" } @@ -4709,7 +4701,7 @@ void app_window_update_menu_item_label (AppWindow* self, const gchar* id, const if (_tmp3_ == NULL) { #line 789 "/home/jens/Source/shotwell/src/AppWindow.vala" _g_object_unref0 (_tmp2_); -#line 4682 "AppWindow.c" +#line 4674 "AppWindow.c" } #line 789 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp4_ = _tmp3_; @@ -4725,7 +4717,7 @@ void app_window_update_menu_item_label (AppWindow* self, const gchar* id, const _g_object_unref0 (bar); #line 792 "/home/jens/Source/shotwell/src/AppWindow.vala" return; -#line 4698 "AppWindow.c" +#line 4690 "AppWindow.c" } #line 795 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp6_ = bar; @@ -4733,19 +4725,19 @@ void app_window_update_menu_item_label (AppWindow* self, const gchar* id, const _tmp7_ = g_menu_model_get_n_items (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, g_menu_model_get_type (), GMenuModel)); #line 795 "/home/jens/Source/shotwell/src/AppWindow.vala" items = _tmp7_; -#line 4706 "AppWindow.c" +#line 4698 "AppWindow.c" { gint i = 0; #line 796 "/home/jens/Source/shotwell/src/AppWindow.vala" i = 0; -#line 4711 "AppWindow.c" +#line 4703 "AppWindow.c" { gboolean _tmp8_ = FALSE; #line 796 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp8_ = TRUE; #line 796 "/home/jens/Source/shotwell/src/AppWindow.vala" while (TRUE) { -#line 4718 "AppWindow.c" +#line 4710 "AppWindow.c" gint _tmp10_ = 0; gint _tmp11_ = 0; GMenuModel* model = NULL; @@ -4758,13 +4750,13 @@ void app_window_update_menu_item_label (AppWindow* self, const gchar* id, const gint _tmp17_ = 0; #line 796 "/home/jens/Source/shotwell/src/AppWindow.vala" if (!_tmp8_) { -#line 4731 "AppWindow.c" +#line 4723 "AppWindow.c" gint _tmp9_ = 0; #line 796 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp9_ = i; #line 796 "/home/jens/Source/shotwell/src/AppWindow.vala" i = _tmp9_ + 1; -#line 4737 "AppWindow.c" +#line 4729 "AppWindow.c" } #line 796 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp8_ = FALSE; @@ -4776,7 +4768,7 @@ void app_window_update_menu_item_label (AppWindow* self, const gchar* id, const if (!(_tmp10_ < _tmp11_)) { #line 796 "/home/jens/Source/shotwell/src/AppWindow.vala" break; -#line 4749 "AppWindow.c" +#line 4741 "AppWindow.c" } #line 797 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp12_ = bar; @@ -4794,7 +4786,7 @@ void app_window_update_menu_item_label (AppWindow* self, const gchar* id, const _g_object_unref0 (model); #line 799 "/home/jens/Source/shotwell/src/AppWindow.vala" continue; -#line 4767 "AppWindow.c" +#line 4759 "AppWindow.c" } #line 802 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp16_ = model; @@ -4802,19 +4794,19 @@ void app_window_update_menu_item_label (AppWindow* self, const gchar* id, const _tmp17_ = g_menu_model_get_n_items (_tmp16_); #line 802 "/home/jens/Source/shotwell/src/AppWindow.vala" model_items = _tmp17_; -#line 4775 "AppWindow.c" +#line 4767 "AppWindow.c" { gint j = 0; #line 803 "/home/jens/Source/shotwell/src/AppWindow.vala" j = 0; -#line 4780 "AppWindow.c" +#line 4772 "AppWindow.c" { gboolean _tmp18_ = FALSE; #line 803 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp18_ = TRUE; #line 803 "/home/jens/Source/shotwell/src/AppWindow.vala" while (TRUE) { -#line 4787 "AppWindow.c" +#line 4779 "AppWindow.c" gint _tmp20_ = 0; gint _tmp21_ = 0; GMenuModel* subsection = NULL; @@ -4827,13 +4819,13 @@ void app_window_update_menu_item_label (AppWindow* self, const gchar* id, const gint _tmp27_ = 0; #line 803 "/home/jens/Source/shotwell/src/AppWindow.vala" if (!_tmp18_) { -#line 4800 "AppWindow.c" +#line 4792 "AppWindow.c" gint _tmp19_ = 0; #line 803 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp19_ = j; #line 803 "/home/jens/Source/shotwell/src/AppWindow.vala" j = _tmp19_ + 1; -#line 4806 "AppWindow.c" +#line 4798 "AppWindow.c" } #line 803 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp18_ = FALSE; @@ -4845,7 +4837,7 @@ void app_window_update_menu_item_label (AppWindow* self, const gchar* id, const if (!(_tmp20_ < _tmp21_)) { #line 803 "/home/jens/Source/shotwell/src/AppWindow.vala" break; -#line 4818 "AppWindow.c" +#line 4810 "AppWindow.c" } #line 804 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp22_ = model; @@ -4863,7 +4855,7 @@ void app_window_update_menu_item_label (AppWindow* self, const gchar* id, const _g_object_unref0 (subsection); #line 807 "/home/jens/Source/shotwell/src/AppWindow.vala" continue; -#line 4836 "AppWindow.c" +#line 4828 "AppWindow.c" } #line 810 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp26_ = subsection; @@ -4871,19 +4863,19 @@ void app_window_update_menu_item_label (AppWindow* self, const gchar* id, const _tmp27_ = g_menu_model_get_n_items (_tmp26_); #line 810 "/home/jens/Source/shotwell/src/AppWindow.vala" sub_items = _tmp27_; -#line 4844 "AppWindow.c" +#line 4836 "AppWindow.c" { gint k = 0; #line 811 "/home/jens/Source/shotwell/src/AppWindow.vala" k = 0; -#line 4849 "AppWindow.c" +#line 4841 "AppWindow.c" { gboolean _tmp28_ = FALSE; #line 811 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp28_ = TRUE; #line 811 "/home/jens/Source/shotwell/src/AppWindow.vala" while (TRUE) { -#line 4856 "AppWindow.c" +#line 4848 "AppWindow.c" gint _tmp30_ = 0; gint _tmp31_ = 0; GMenuAttributeIter* it = NULL; @@ -4892,13 +4884,13 @@ void app_window_update_menu_item_label (AppWindow* self, const gchar* id, const GMenuAttributeIter* _tmp34_ = NULL; #line 811 "/home/jens/Source/shotwell/src/AppWindow.vala" if (!_tmp28_) { -#line 4865 "AppWindow.c" +#line 4857 "AppWindow.c" gint _tmp29_ = 0; #line 811 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp29_ = k; #line 811 "/home/jens/Source/shotwell/src/AppWindow.vala" k = _tmp29_ + 1; -#line 4871 "AppWindow.c" +#line 4863 "AppWindow.c" } #line 811 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp28_ = FALSE; @@ -4910,7 +4902,7 @@ void app_window_update_menu_item_label (AppWindow* self, const gchar* id, const if (!(_tmp30_ < _tmp31_)) { #line 811 "/home/jens/Source/shotwell/src/AppWindow.vala" break; -#line 4883 "AppWindow.c" +#line 4875 "AppWindow.c" } #line 812 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp32_ = subsection; @@ -4922,7 +4914,7 @@ void app_window_update_menu_item_label (AppWindow* self, const gchar* id, const it = _tmp34_; #line 813 "/home/jens/Source/shotwell/src/AppWindow.vala" while (TRUE) { -#line 4895 "AppWindow.c" +#line 4887 "AppWindow.c" GMenuAttributeIter* _tmp35_ = NULL; gboolean _tmp36_ = FALSE; gboolean _tmp37_ = FALSE; @@ -4937,7 +4929,7 @@ void app_window_update_menu_item_label (AppWindow* self, const gchar* id, const if (!_tmp36_) { #line 813 "/home/jens/Source/shotwell/src/AppWindow.vala" break; -#line 4910 "AppWindow.c" +#line 4902 "AppWindow.c" } #line 814 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp39_ = it; @@ -4945,7 +4937,7 @@ void app_window_update_menu_item_label (AppWindow* self, const gchar* id, const _tmp40_ = g_menu_attribute_iter_get_name (_tmp39_); #line 814 "/home/jens/Source/shotwell/src/AppWindow.vala" if (g_strcmp0 (_tmp40_, "id") == 0) { -#line 4918 "AppWindow.c" +#line 4910 "AppWindow.c" GMenuAttributeIter* _tmp41_ = NULL; GVariant* _tmp42_ = NULL; GVariant* _tmp43_ = NULL; @@ -4965,17 +4957,17 @@ void app_window_update_menu_item_label (AppWindow* self, const gchar* id, const _tmp38_ = g_strcmp0 (_tmp44_, _tmp45_) == 0; #line 814 "/home/jens/Source/shotwell/src/AppWindow.vala" _g_variant_unref0 (_tmp43_); -#line 4938 "AppWindow.c" +#line 4930 "AppWindow.c" } else { #line 814 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp38_ = FALSE; -#line 4942 "AppWindow.c" +#line 4934 "AppWindow.c" } #line 814 "/home/jens/Source/shotwell/src/AppWindow.vala" if (_tmp38_) { #line 814 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp37_ = TRUE; -#line 4948 "AppWindow.c" +#line 4940 "AppWindow.c" } else { gboolean _tmp46_ = FALSE; GMenuAttributeIter* _tmp47_ = NULL; @@ -4986,7 +4978,7 @@ void app_window_update_menu_item_label (AppWindow* self, const gchar* id, const _tmp48_ = g_menu_attribute_iter_get_name (_tmp47_); #line 815 "/home/jens/Source/shotwell/src/AppWindow.vala" if (g_strcmp0 (_tmp48_, "action") == 0) { -#line 4959 "AppWindow.c" +#line 4951 "AppWindow.c" GMenuAttributeIter* _tmp49_ = NULL; GVariant* _tmp50_ = NULL; GVariant* _tmp51_ = NULL; @@ -5017,19 +5009,19 @@ void app_window_update_menu_item_label (AppWindow* self, const gchar* id, const _g_free0 (_tmp55_); #line 815 "/home/jens/Source/shotwell/src/AppWindow.vala" _g_variant_unref0 (_tmp51_); -#line 4990 "AppWindow.c" +#line 4982 "AppWindow.c" } else { #line 815 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp46_ = FALSE; -#line 4994 "AppWindow.c" +#line 4986 "AppWindow.c" } #line 815 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp37_ = _tmp46_; -#line 4998 "AppWindow.c" +#line 4990 "AppWindow.c" } #line 814 "/home/jens/Source/shotwell/src/AppWindow.vala" if (_tmp37_) { -#line 5002 "AppWindow.c" +#line 4994 "AppWindow.c" GMenu* md = NULL; GMenuModel* _tmp57_ = NULL; GMenu* _tmp58_ = NULL; @@ -5092,37 +5084,37 @@ void app_window_update_menu_item_label (AppWindow* self, const gchar* id, const _g_object_unref0 (bar); #line 822 "/home/jens/Source/shotwell/src/AppWindow.vala" return; -#line 5065 "AppWindow.c" +#line 5057 "AppWindow.c" } } #line 811 "/home/jens/Source/shotwell/src/AppWindow.vala" _g_object_unref0 (it); -#line 5070 "AppWindow.c" +#line 5062 "AppWindow.c" } } } #line 803 "/home/jens/Source/shotwell/src/AppWindow.vala" _g_object_unref0 (subsection); -#line 5076 "AppWindow.c" +#line 5068 "AppWindow.c" } } } #line 796 "/home/jens/Source/shotwell/src/AppWindow.vala" _g_object_unref0 (model); -#line 5082 "AppWindow.c" +#line 5074 "AppWindow.c" } } } #line 787 "/home/jens/Source/shotwell/src/AppWindow.vala" _g_object_unref0 (bar); -#line 5088 "AppWindow.c" +#line 5080 "AppWindow.c" } static gpointer _command_manager_ref0 (gpointer self) { #line 833 "/home/jens/Source/shotwell/src/AppWindow.vala" return self ? command_manager_ref (self) : NULL; -#line 5095 "AppWindow.c" +#line 5087 "AppWindow.c" } @@ -5138,7 +5130,7 @@ CommandManager* app_window_get_command_manager (void) { result = _tmp1_; #line 833 "/home/jens/Source/shotwell/src/AppWindow.vala" return result; -#line 5111 "AppWindow.c" +#line 5103 "AppWindow.c" } @@ -5149,7 +5141,7 @@ static void app_window_on_command_manager_altered (AppWindow* self) { app_window_decorate_undo_action (self); #line 838 "/home/jens/Source/shotwell/src/AppWindow.vala" app_window_decorate_redo_action (self); -#line 5122 "AppWindow.c" +#line 5114 "AppWindow.c" } @@ -5185,7 +5177,7 @@ static void app_window_decorate_command_manager_action (AppWindow* self, const g if (_tmp2_ == NULL) { #line 843 "/home/jens/Source/shotwell/src/AppWindow.vala" _g_object_unref0 (_tmp1_); -#line 5158 "AppWindow.c" +#line 5150 "AppWindow.c" } #line 843 "/home/jens/Source/shotwell/src/AppWindow.vala" action = _tmp2_; @@ -5197,7 +5189,7 @@ static void app_window_decorate_command_manager_action (AppWindow* self, const g _g_object_unref0 (action); #line 845 "/home/jens/Source/shotwell/src/AppWindow.vala" return; -#line 5170 "AppWindow.c" +#line 5162 "AppWindow.c" } #line 848 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp4_ = prefix; @@ -5209,7 +5201,7 @@ static void app_window_decorate_command_manager_action (AppWindow* self, const g _tmp6_ = desc; #line 850 "/home/jens/Source/shotwell/src/AppWindow.vala" if (_tmp6_ != NULL) { -#line 5182 "AppWindow.c" +#line 5174 "AppWindow.c" const gchar* _tmp7_ = NULL; CommandDescription* _tmp8_ = NULL; gchar* _tmp9_ = NULL; @@ -5244,7 +5236,7 @@ static void app_window_decorate_command_manager_action (AppWindow* self, const g _tmp14_ = action; #line 852 "/home/jens/Source/shotwell/src/AppWindow.vala" g_simple_action_set_enabled (_tmp14_, TRUE); -#line 5217 "AppWindow.c" +#line 5209 "AppWindow.c" } else { const gchar* _tmp15_ = NULL; gchar* _tmp16_ = NULL; @@ -5261,7 +5253,7 @@ static void app_window_decorate_command_manager_action (AppWindow* self, const g _tmp17_ = action; #line 855 "/home/jens/Source/shotwell/src/AppWindow.vala" g_simple_action_set_enabled (_tmp17_, FALSE); -#line 5234 "AppWindow.c" +#line 5226 "AppWindow.c" } #line 857 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp18_ = name; @@ -5273,7 +5265,7 @@ static void app_window_decorate_command_manager_action (AppWindow* self, const g _g_free0 (label); #line 841 "/home/jens/Source/shotwell/src/AppWindow.vala" _g_object_unref0 (action); -#line 5246 "AppWindow.c" +#line 5238 "AppWindow.c" } @@ -5298,7 +5290,7 @@ void app_window_decorate_undo_action (AppWindow* self) { _g_object_unref0 (_tmp3_); #line 861 "/home/jens/Source/shotwell/src/AppWindow.vala" _command_manager_unref0 (_tmp1_); -#line 5271 "AppWindow.c" +#line 5263 "AppWindow.c" } @@ -5323,7 +5315,7 @@ void app_window_decorate_redo_action (AppWindow* self) { _g_object_unref0 (_tmp3_); #line 866 "/home/jens/Source/shotwell/src/AppWindow.vala" _command_manager_unref0 (_tmp1_); -#line 5296 "AppWindow.c" +#line 5288 "AppWindow.c" } @@ -5335,7 +5327,7 @@ static void app_window_on_undo (AppWindow* self) { _tmp0_ = app_window_command_manager; #line 871 "/home/jens/Source/shotwell/src/AppWindow.vala" command_manager_undo (_tmp0_); -#line 5308 "AppWindow.c" +#line 5300 "AppWindow.c" } @@ -5347,7 +5339,7 @@ static void app_window_on_redo (AppWindow* self) { _tmp0_ = app_window_command_manager; #line 875 "/home/jens/Source/shotwell/src/AppWindow.vala" command_manager_redo (_tmp0_); -#line 5320 "AppWindow.c" +#line 5312 "AppWindow.c" } @@ -5366,7 +5358,7 @@ static void app_window_on_select_all (AppWindow* self) { if (_tmp1_ == NULL) { #line 879 "/home/jens/Source/shotwell/src/AppWindow.vala" _g_object_unref0 (_tmp0_); -#line 5339 "AppWindow.c" +#line 5331 "AppWindow.c" } #line 879 "/home/jens/Source/shotwell/src/AppWindow.vala" page = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE, Page); @@ -5374,7 +5366,7 @@ static void app_window_on_select_all (AppWindow* self) { _tmp2_ = page; #line 880 "/home/jens/Source/shotwell/src/AppWindow.vala" if (_tmp2_ != NULL) { -#line 5347 "AppWindow.c" +#line 5339 "AppWindow.c" Page* _tmp3_ = NULL; ViewCollection* _tmp4_ = NULL; ViewCollection* _tmp5_ = NULL; @@ -5388,11 +5380,11 @@ static void app_window_on_select_all (AppWindow* self) { view_collection_select_all (_tmp5_); #line 881 "/home/jens/Source/shotwell/src/AppWindow.vala" _data_collection_unref0 (_tmp5_); -#line 5361 "AppWindow.c" +#line 5353 "AppWindow.c" } #line 878 "/home/jens/Source/shotwell/src/AppWindow.vala" _g_object_unref0 (page); -#line 5365 "AppWindow.c" +#line 5357 "AppWindow.c" } @@ -5411,7 +5403,7 @@ static void app_window_on_select_none (AppWindow* self) { if (_tmp1_ == NULL) { #line 885 "/home/jens/Source/shotwell/src/AppWindow.vala" _g_object_unref0 (_tmp0_); -#line 5384 "AppWindow.c" +#line 5376 "AppWindow.c" } #line 885 "/home/jens/Source/shotwell/src/AppWindow.vala" page = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE, Page); @@ -5419,7 +5411,7 @@ static void app_window_on_select_none (AppWindow* self) { _tmp2_ = page; #line 886 "/home/jens/Source/shotwell/src/AppWindow.vala" if (_tmp2_ != NULL) { -#line 5392 "AppWindow.c" +#line 5384 "AppWindow.c" Page* _tmp3_ = NULL; ViewCollection* _tmp4_ = NULL; ViewCollection* _tmp5_ = NULL; @@ -5433,11 +5425,11 @@ static void app_window_on_select_none (AppWindow* self) { view_collection_unselect_all (_tmp5_); #line 887 "/home/jens/Source/shotwell/src/AppWindow.vala" _data_collection_unref0 (_tmp5_); -#line 5406 "AppWindow.c" +#line 5398 "AppWindow.c" } #line 884 "/home/jens/Source/shotwell/src/AppWindow.vala" _g_object_unref0 (page); -#line 5410 "AppWindow.c" +#line 5402 "AppWindow.c" } @@ -5463,7 +5455,7 @@ static gboolean app_window_real_configure_event (GtkWidget* base, GdkEventConfig _tmp2_ = self->maximized; #line 893 "/home/jens/Source/shotwell/src/AppWindow.vala" if (!_tmp2_) { -#line 5436 "AppWindow.c" +#line 5428 "AppWindow.c" gint _tmp3_ = 0; gint _tmp4_ = 0; #line 894 "/home/jens/Source/shotwell/src/AppWindow.vala" @@ -5472,7 +5464,7 @@ static gboolean app_window_real_configure_event (GtkWidget* base, GdkEventConfig self->dimensions.width = _tmp3_; #line 894 "/home/jens/Source/shotwell/src/AppWindow.vala" self->dimensions.height = _tmp4_; -#line 5445 "AppWindow.c" +#line 5437 "AppWindow.c" } #line 896 "/home/jens/Source/shotwell/src/AppWindow.vala" _tmp5_ = event; @@ -5482,7 +5474,7 @@ static gboolean app_window_real_configure_event (GtkWidget* base, GdkEventConfig result = _tmp6_; #line 896 "/home/jens/Source/shotwell/src/AppWindow.vala" return result; -#line 5455 "AppWindow.c" +#line 5447 "AppWindow.c" } @@ -5509,7 +5501,7 @@ static void app_window_class_init (AppWindowClass * klass) { ((GtkWidgetClass *) klass)->configure_event = app_window_real_configure_event; #line 392 "/home/jens/Source/shotwell/src/AppWindow.vala" G_OBJECT_CLASS (klass)->finalize = app_window_finalize; -#line 5482 "AppWindow.c" +#line 5474 "AppWindow.c" } @@ -5520,7 +5512,7 @@ static void app_window_instance_init (AppWindow * self) { self->pos_x = 0; #line 405 "/home/jens/Source/shotwell/src/AppWindow.vala" self->pos_y = 0; -#line 5493 "AppWindow.c" +#line 5485 "AppWindow.c" } @@ -5530,7 +5522,7 @@ static void app_window_finalize (GObject* obj) { self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_APP_WINDOW, AppWindow); #line 392 "/home/jens/Source/shotwell/src/AppWindow.vala" G_OBJECT_CLASS (app_window_parent_class)->finalize (obj); -#line 5503 "AppWindow.c" +#line 5495 "AppWindow.c" } diff --git a/src/AppWindow.vala b/src/AppWindow.vala index 99f054d..3b69156 100644 --- a/src/AppWindow.vala +++ b/src/AppWindow.vala @@ -28,8 +28,8 @@ public class FullscreenWindow : PageWindow { set_current_page(page); - AppWindow.get_instance().add_action_entries (entries, this); - const string[] accels = { "F11" }; + this.add_action_entries (entries, this); + const string[] accels = { "F11", null }; Application.set_accels_for_action ("win.LeaveFullscreen", accels); set_screen(AppWindow.get_instance().get_screen()); diff --git a/src/Application.c b/src/Application.c index 8d958cc..9d858e4 100644 --- a/src/Application.c +++ b/src/Application.c @@ -1,4 +1,4 @@ -/* Application.c generated by valac 0.32.1, the Vala compiler +/* Application.c generated by valac 0.34.4, the Vala compiler * generated from Application.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -127,7 +127,6 @@ gboolean application_get_is_remote (void); gboolean application_get_is_direct (void); void application_set_accels_for_action (const gchar* action, gchar** accel, int accel_length1); void application_set_menubar (GMenuModel* model); -void application_set_appmenu (GMenuModel* model); GType page_window_get_type (void) G_GNUC_CONST; GType app_window_get_type (void) G_GNUC_CONST; GType library_window_get_type (void) G_GNUC_CONST; @@ -157,7 +156,7 @@ void application_set_raw_thumbs_fix_required (Application* self, gboolean should _tmp0_ = should_fixup; #line 25 "/home/jens/Source/shotwell/src/Application.vala" self->priv->fixup_raw_thumbs = _tmp0_; -#line 161 "Application.c" +#line 160 "Application.c" } @@ -172,14 +171,14 @@ gboolean application_get_raw_thumbs_fix_required (Application* self) { result = _tmp0_; #line 29 "/home/jens/Source/shotwell/src/Application.vala" return result; -#line 176 "Application.c" +#line 175 "Application.c" } static gpointer _g_object_ref0 (gpointer self) { #line 33 "/home/jens/Source/shotwell/src/Application.vala" return self ? g_object_ref (self) : NULL; -#line 183 "Application.c" +#line 182 "Application.c" } @@ -197,7 +196,7 @@ GtkApplication* application_get_system_app (Application* self) { result = _tmp1_; #line 33 "/home/jens/Source/shotwell/src/Application.vala" return result; -#line 201 "Application.c" +#line 200 "Application.c" } @@ -206,21 +205,21 @@ static gint _application_on_command_line_g_application_command_line (GApplicatio result = application_on_command_line (command_line); #line 65 "/home/jens/Source/shotwell/src/Application.vala" return result; -#line 210 "Application.c" +#line 209 "Application.c" } static void _application_on_activated_g_application_activate (GApplication* _sender, gpointer self) { #line 68 "/home/jens/Source/shotwell/src/Application.vala" application_on_activated (); -#line 217 "Application.c" +#line 216 "Application.c" } static void _application_on_activated_g_application_startup (GApplication* _sender, gpointer self) { #line 69 "/home/jens/Source/shotwell/src/Application.vala" application_on_activated (); -#line 224 "Application.c" +#line 223 "Application.c" } @@ -238,7 +237,7 @@ static Application* application_construct (GType object_type, gboolean is_direct _tmp0_ = is_direct; #line 40 "/home/jens/Source/shotwell/src/Application.vala" if (_tmp0_) { -#line 242 "Application.c" +#line 241 "Application.c" GtkApplication* _tmp1_ = NULL; #line 45 "/home/jens/Source/shotwell/src/Application.vala" _tmp1_ = gtk_application_new ("org.yorba.shotwell-direct", G_APPLICATION_HANDLES_OPEN | G_APPLICATION_NON_UNIQUE); @@ -246,7 +245,7 @@ static Application* application_construct (GType object_type, gboolean is_direct _g_object_unref0 (self->priv->system_app); #line 45 "/home/jens/Source/shotwell/src/Application.vala" self->priv->system_app = _tmp1_; -#line 250 "Application.c" +#line 249 "Application.c" } else { GtkApplication* _tmp2_ = NULL; #line 51 "/home/jens/Source/shotwell/src/Application.vala" @@ -255,7 +254,7 @@ static Application* application_construct (GType object_type, gboolean is_direct _g_object_unref0 (self->priv->system_app); #line 51 "/home/jens/Source/shotwell/src/Application.vala" self->priv->system_app = _tmp2_; -#line 259 "Application.c" +#line 258 "Application.c" } { GtkApplication* _tmp3_ = NULL; @@ -265,12 +264,12 @@ static Application* application_construct (GType object_type, gboolean is_direct g_application_register (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, g_application_get_type (), GApplication), NULL, &_inner_error_); #line 57 "/home/jens/Source/shotwell/src/Application.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 269 "Application.c" - goto __catch555_g_error; +#line 268 "Application.c" + goto __catch557_g_error; } } - goto __finally555; - __catch555_g_error: + goto __finally557; + __catch557_g_error: { GError* e = NULL; #line 56 "/home/jens/Source/shotwell/src/Application.vala" @@ -281,9 +280,9 @@ static Application* application_construct (GType object_type, gboolean is_direct application_panic (self); #line 56 "/home/jens/Source/shotwell/src/Application.vala" _g_error_free0 (e); -#line 285 "Application.c" +#line 284 "Application.c" } - __finally555: + __finally557: #line 56 "/home/jens/Source/shotwell/src/Application.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 56 "/home/jens/Source/shotwell/src/Application.vala" @@ -292,7 +291,7 @@ static Application* application_construct (GType object_type, gboolean is_direct g_clear_error (&_inner_error_); #line 56 "/home/jens/Source/shotwell/src/Application.vala" return NULL; -#line 296 "Application.c" +#line 295 "Application.c" } #line 62 "/home/jens/Source/shotwell/src/Application.vala" _tmp4_ = is_direct; @@ -302,13 +301,13 @@ static Application* application_construct (GType object_type, gboolean is_direct _tmp5_ = self->priv->direct; #line 64 "/home/jens/Source/shotwell/src/Application.vala" if (!_tmp5_) { -#line 306 "Application.c" +#line 305 "Application.c" GtkApplication* _tmp6_ = NULL; #line 65 "/home/jens/Source/shotwell/src/Application.vala" _tmp6_ = self->priv->system_app; #line 65 "/home/jens/Source/shotwell/src/Application.vala" g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, g_application_get_type (), GApplication), "command-line", (GCallback) _application_on_command_line_g_application_command_line, NULL); -#line 312 "Application.c" +#line 311 "Application.c" } #line 68 "/home/jens/Source/shotwell/src/Application.vala" _tmp7_ = self->priv->system_app; @@ -320,14 +319,14 @@ static Application* application_construct (GType object_type, gboolean is_direct g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, g_application_get_type (), GApplication), "startup", (GCallback) _application_on_activated_g_application_startup, NULL); #line 39 "/home/jens/Source/shotwell/src/Application.vala" return self; -#line 324 "Application.c" +#line 323 "Application.c" } static Application* application_new (gboolean is_direct) { #line 39 "/home/jens/Source/shotwell/src/Application.vala" return application_construct (TYPE_APPLICATION, is_direct); -#line 331 "Application.c" +#line 330 "Application.c" } @@ -356,7 +355,7 @@ void application_send_to_primary_instance (gchar** argv, int argv_length1) { g_application_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, g_application_get_type (), GApplication), _tmp3__length1, _tmp3_); #line 78 "/home/jens/Source/shotwell/src/Application.vala" _application_unref0 (_tmp1_); -#line 360 "Application.c" +#line 359 "Application.c" } @@ -379,7 +378,7 @@ void application_present_primary_instance (void) { g_application_activate (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, g_application_get_type (), GApplication)); #line 87 "/home/jens/Source/shotwell/src/Application.vala" _application_unref0 (_tmp1_); -#line 383 "Application.c" +#line 382 "Application.c" } @@ -406,7 +405,7 @@ gboolean application_get_is_remote (void) { result = _tmp4_; #line 91 "/home/jens/Source/shotwell/src/Application.vala" return result; -#line 410 "Application.c" +#line 409 "Application.c" } @@ -430,7 +429,7 @@ gboolean application_get_is_direct (void) { result = _tmp3_; #line 95 "/home/jens/Source/shotwell/src/Application.vala" return result; -#line 434 "Application.c" +#line 433 "Application.c" } @@ -459,7 +458,7 @@ void application_set_accels_for_action (const gchar* action, gchar** accel, int gtk_application_set_accels_for_action (_tmp2_, _tmp3_, _tmp4_); #line 99 "/home/jens/Source/shotwell/src/Application.vala" _application_unref0 (_tmp1_); -#line 463 "Application.c" +#line 462 "Application.c" } @@ -482,30 +481,7 @@ void application_set_menubar (GMenuModel* model) { gtk_application_set_menubar (_tmp2_, _tmp3_); #line 103 "/home/jens/Source/shotwell/src/Application.vala" _application_unref0 (_tmp1_); -#line 486 "Application.c" -} - - -void application_set_appmenu (GMenuModel* model) { - Application* _tmp0_ = NULL; - Application* _tmp1_ = NULL; - GtkApplication* _tmp2_ = NULL; - GMenuModel* _tmp3_ = NULL; -#line 106 "/home/jens/Source/shotwell/src/Application.vala" - g_return_if_fail ((model == NULL) || G_IS_MENU_MODEL (model)); -#line 107 "/home/jens/Source/shotwell/src/Application.vala" - _tmp0_ = application_get_instance (); -#line 107 "/home/jens/Source/shotwell/src/Application.vala" - _tmp1_ = _tmp0_; -#line 107 "/home/jens/Source/shotwell/src/Application.vala" - _tmp2_ = _tmp1_->priv->system_app; -#line 107 "/home/jens/Source/shotwell/src/Application.vala" - _tmp3_ = model; -#line 107 "/home/jens/Source/shotwell/src/Application.vala" - gtk_application_set_app_menu (_tmp2_, _tmp3_); -#line 107 "/home/jens/Source/shotwell/src/Application.vala" - _application_unref0 (_tmp1_); -#line 509 "Application.c" +#line 485 "Application.c" } @@ -514,7 +490,7 @@ void application_set_appmenu (GMenuModel* model) { * * The most likely scenario for this to be fired is if the user * either tried to run us twice in library mode, or we've just gotten - * a camera/removeable-storage mount; in either case, the remote instance + * a camera/removable-storage mount; in either case, the remote instance * will trigger this and exit, and we'll need to bring the window back up... */ void application_on_activated (void) { @@ -525,58 +501,58 @@ void application_on_activated (void) { LibraryWindow* _tmp3_ = NULL; gboolean _tmp4_ = FALSE; LibraryWindow* _tmp5_ = NULL; -#line 119 "/home/jens/Source/shotwell/src/Application.vala" +#line 115 "/home/jens/Source/shotwell/src/Application.vala" _tmp0_ = application_get_instance (); -#line 119 "/home/jens/Source/shotwell/src/Application.vala" +#line 115 "/home/jens/Source/shotwell/src/Application.vala" _tmp1_ = _tmp0_; -#line 119 "/home/jens/Source/shotwell/src/Application.vala" +#line 115 "/home/jens/Source/shotwell/src/Application.vala" _application_unref0 (_tmp1_); -#line 121 "/home/jens/Source/shotwell/src/Application.vala" +#line 117 "/home/jens/Source/shotwell/src/Application.vala" _tmp2_ = app_window_get_instance (); -#line 121 "/home/jens/Source/shotwell/src/Application.vala" +#line 117 "/home/jens/Source/shotwell/src/Application.vala" _tmp3_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, TYPE_LIBRARY_WINDOW) ? ((LibraryWindow*) _tmp2_) : NULL; -#line 121 "/home/jens/Source/shotwell/src/Application.vala" +#line 117 "/home/jens/Source/shotwell/src/Application.vala" if (_tmp3_ == NULL) { -#line 121 "/home/jens/Source/shotwell/src/Application.vala" +#line 117 "/home/jens/Source/shotwell/src/Application.vala" _g_object_unref0 (_tmp2_); -#line 543 "Application.c" +#line 519 "Application.c" } -#line 121 "/home/jens/Source/shotwell/src/Application.vala" +#line 117 "/home/jens/Source/shotwell/src/Application.vala" lw = _tmp3_; -#line 122 "/home/jens/Source/shotwell/src/Application.vala" +#line 118 "/home/jens/Source/shotwell/src/Application.vala" _tmp5_ = lw; -#line 122 "/home/jens/Source/shotwell/src/Application.vala" +#line 118 "/home/jens/Source/shotwell/src/Application.vala" if (_tmp5_ != NULL) { -#line 551 "Application.c" +#line 527 "Application.c" gboolean _tmp6_ = FALSE; -#line 122 "/home/jens/Source/shotwell/src/Application.vala" +#line 118 "/home/jens/Source/shotwell/src/Application.vala" _tmp6_ = application_get_is_direct (); -#line 122 "/home/jens/Source/shotwell/src/Application.vala" +#line 118 "/home/jens/Source/shotwell/src/Application.vala" _tmp4_ = !_tmp6_; -#line 557 "Application.c" +#line 533 "Application.c" } else { -#line 122 "/home/jens/Source/shotwell/src/Application.vala" +#line 118 "/home/jens/Source/shotwell/src/Application.vala" _tmp4_ = FALSE; -#line 561 "Application.c" +#line 537 "Application.c" } -#line 122 "/home/jens/Source/shotwell/src/Application.vala" +#line 118 "/home/jens/Source/shotwell/src/Application.vala" if (_tmp4_) { -#line 565 "Application.c" +#line 541 "Application.c" LibraryWindow* _tmp7_ = NULL; LibraryWindow* _tmp8_ = NULL; -#line 123 "/home/jens/Source/shotwell/src/Application.vala" +#line 119 "/home/jens/Source/shotwell/src/Application.vala" _tmp7_ = library_window_get_app (); -#line 123 "/home/jens/Source/shotwell/src/Application.vala" +#line 119 "/home/jens/Source/shotwell/src/Application.vala" _tmp8_ = _tmp7_; -#line 123 "/home/jens/Source/shotwell/src/Application.vala" +#line 119 "/home/jens/Source/shotwell/src/Application.vala" gtk_window_present (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_window_get_type (), GtkWindow)); -#line 123 "/home/jens/Source/shotwell/src/Application.vala" +#line 119 "/home/jens/Source/shotwell/src/Application.vala" _g_object_unref0 (_tmp8_); -#line 576 "Application.c" +#line 552 "Application.c" } -#line 118 "/home/jens/Source/shotwell/src/Application.vala" +#line 114 "/home/jens/Source/shotwell/src/Application.vala" _g_object_unref0 (lw); -#line 580 "Application.c" +#line 556 "Application.c" } @@ -598,101 +574,101 @@ gint application_on_command_line (GApplicationCommandLine* acl) { gint _argv_size_ = 0; gchar** _tmp3_ = NULL; gint _tmp3__length1 = 0; -#line 135 "/home/jens/Source/shotwell/src/Application.vala" +#line 131 "/home/jens/Source/shotwell/src/Application.vala" g_return_val_if_fail (G_IS_APPLICATION_COMMAND_LINE (acl), 0); -#line 136 "/home/jens/Source/shotwell/src/Application.vala" +#line 132 "/home/jens/Source/shotwell/src/Application.vala" _tmp0_ = acl; -#line 136 "/home/jens/Source/shotwell/src/Application.vala" +#line 132 "/home/jens/Source/shotwell/src/Application.vala" _tmp2_ = g_application_command_line_get_arguments (_tmp0_, &_tmp1_); -#line 136 "/home/jens/Source/shotwell/src/Application.vala" +#line 132 "/home/jens/Source/shotwell/src/Application.vala" argv = _tmp2_; -#line 136 "/home/jens/Source/shotwell/src/Application.vala" +#line 132 "/home/jens/Source/shotwell/src/Application.vala" argv_length1 = _tmp1_; -#line 136 "/home/jens/Source/shotwell/src/Application.vala" +#line 132 "/home/jens/Source/shotwell/src/Application.vala" _argv_size_ = argv_length1; -#line 138 "/home/jens/Source/shotwell/src/Application.vala" +#line 134 "/home/jens/Source/shotwell/src/Application.vala" _tmp3_ = argv; -#line 138 "/home/jens/Source/shotwell/src/Application.vala" +#line 134 "/home/jens/Source/shotwell/src/Application.vala" _tmp3__length1 = argv_length1; -#line 138 "/home/jens/Source/shotwell/src/Application.vala" +#line 134 "/home/jens/Source/shotwell/src/Application.vala" if (_tmp3_ != NULL) { -#line 620 "Application.c" +#line 596 "Application.c" gchar** _tmp4_ = NULL; gint _tmp4__length1 = 0; -#line 139 "/home/jens/Source/shotwell/src/Application.vala" +#line 135 "/home/jens/Source/shotwell/src/Application.vala" _tmp4_ = argv; -#line 139 "/home/jens/Source/shotwell/src/Application.vala" +#line 135 "/home/jens/Source/shotwell/src/Application.vala" _tmp4__length1 = argv_length1; -#line 627 "Application.c" +#line 603 "Application.c" { gchar** s_collection = NULL; gint s_collection_length1 = 0; gint _s_collection_size_ = 0; gint s_it = 0; -#line 139 "/home/jens/Source/shotwell/src/Application.vala" +#line 135 "/home/jens/Source/shotwell/src/Application.vala" s_collection = _tmp4_; -#line 139 "/home/jens/Source/shotwell/src/Application.vala" +#line 135 "/home/jens/Source/shotwell/src/Application.vala" s_collection_length1 = _tmp4__length1; -#line 139 "/home/jens/Source/shotwell/src/Application.vala" +#line 135 "/home/jens/Source/shotwell/src/Application.vala" for (s_it = 0; s_it < _tmp4__length1; s_it = s_it + 1) { -#line 639 "Application.c" +#line 615 "Application.c" gchar* _tmp5_ = NULL; gchar* s = NULL; -#line 139 "/home/jens/Source/shotwell/src/Application.vala" +#line 135 "/home/jens/Source/shotwell/src/Application.vala" _tmp5_ = g_strdup (s_collection[s_it]); -#line 139 "/home/jens/Source/shotwell/src/Application.vala" +#line 135 "/home/jens/Source/shotwell/src/Application.vala" s = _tmp5_; -#line 646 "Application.c" +#line 622 "Application.c" { LibraryWindow* lw = NULL; AppWindow* _tmp6_ = NULL; LibraryWindow* _tmp7_ = NULL; LibraryWindow* _tmp8_ = NULL; -#line 140 "/home/jens/Source/shotwell/src/Application.vala" +#line 136 "/home/jens/Source/shotwell/src/Application.vala" _tmp6_ = app_window_get_instance (); -#line 140 "/home/jens/Source/shotwell/src/Application.vala" +#line 136 "/home/jens/Source/shotwell/src/Application.vala" _tmp7_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp6_, TYPE_LIBRARY_WINDOW) ? ((LibraryWindow*) _tmp6_) : NULL; -#line 140 "/home/jens/Source/shotwell/src/Application.vala" +#line 136 "/home/jens/Source/shotwell/src/Application.vala" if (_tmp7_ == NULL) { -#line 140 "/home/jens/Source/shotwell/src/Application.vala" +#line 136 "/home/jens/Source/shotwell/src/Application.vala" _g_object_unref0 (_tmp6_); -#line 660 "Application.c" +#line 636 "Application.c" } -#line 140 "/home/jens/Source/shotwell/src/Application.vala" +#line 136 "/home/jens/Source/shotwell/src/Application.vala" lw = _tmp7_; -#line 141 "/home/jens/Source/shotwell/src/Application.vala" +#line 137 "/home/jens/Source/shotwell/src/Application.vala" _tmp8_ = lw; -#line 141 "/home/jens/Source/shotwell/src/Application.vala" +#line 137 "/home/jens/Source/shotwell/src/Application.vala" if (_tmp8_ != NULL) { -#line 668 "Application.c" +#line 644 "Application.c" LibraryWindow* _tmp9_ = NULL; const gchar* _tmp10_ = NULL; -#line 142 "/home/jens/Source/shotwell/src/Application.vala" +#line 138 "/home/jens/Source/shotwell/src/Application.vala" _tmp9_ = lw; -#line 142 "/home/jens/Source/shotwell/src/Application.vala" +#line 138 "/home/jens/Source/shotwell/src/Application.vala" _tmp10_ = s; -#line 142 "/home/jens/Source/shotwell/src/Application.vala" +#line 138 "/home/jens/Source/shotwell/src/Application.vala" library_window_mounted_camera_shell_notification (_tmp9_, _tmp10_, FALSE); -#line 677 "Application.c" +#line 653 "Application.c" } -#line 139 "/home/jens/Source/shotwell/src/Application.vala" +#line 135 "/home/jens/Source/shotwell/src/Application.vala" _g_object_unref0 (lw); -#line 139 "/home/jens/Source/shotwell/src/Application.vala" +#line 135 "/home/jens/Source/shotwell/src/Application.vala" _g_free0 (s); -#line 683 "Application.c" +#line 659 "Application.c" } } } } -#line 146 "/home/jens/Source/shotwell/src/Application.vala" +#line 142 "/home/jens/Source/shotwell/src/Application.vala" application_on_activated (); -#line 147 "/home/jens/Source/shotwell/src/Application.vala" +#line 143 "/home/jens/Source/shotwell/src/Application.vala" result = 0; -#line 147 "/home/jens/Source/shotwell/src/Application.vala" +#line 143 "/home/jens/Source/shotwell/src/Application.vala" argv = (_vala_array_free (argv, argv_length1, (GDestroyNotify) g_free), NULL); -#line 147 "/home/jens/Source/shotwell/src/Application.vala" +#line 143 "/home/jens/Source/shotwell/src/Application.vala" return result; -#line 696 "Application.c" +#line 672 "Application.c" } @@ -709,22 +685,22 @@ gint application_on_command_line (GApplicationCommandLine* acl) { */ void application_init (gboolean is_direct) { Application* _tmp0_ = NULL; -#line 162 "/home/jens/Source/shotwell/src/Application.vala" +#line 158 "/home/jens/Source/shotwell/src/Application.vala" _tmp0_ = application_instance; -#line 162 "/home/jens/Source/shotwell/src/Application.vala" +#line 158 "/home/jens/Source/shotwell/src/Application.vala" if (_tmp0_ == NULL) { -#line 717 "Application.c" +#line 693 "Application.c" gboolean _tmp1_ = FALSE; Application* _tmp2_ = NULL; -#line 163 "/home/jens/Source/shotwell/src/Application.vala" +#line 159 "/home/jens/Source/shotwell/src/Application.vala" _tmp1_ = is_direct; -#line 163 "/home/jens/Source/shotwell/src/Application.vala" +#line 159 "/home/jens/Source/shotwell/src/Application.vala" _tmp2_ = application_new (_tmp1_); -#line 163 "/home/jens/Source/shotwell/src/Application.vala" +#line 159 "/home/jens/Source/shotwell/src/Application.vala" _application_unref0 (application_instance); -#line 163 "/home/jens/Source/shotwell/src/Application.vala" +#line 159 "/home/jens/Source/shotwell/src/Application.vala" application_instance = _tmp2_; -#line 728 "Application.c" +#line 704 "Application.c" } } @@ -732,22 +708,22 @@ void application_init (gboolean is_direct) { void application_terminate (void) { Application* _tmp0_ = NULL; Application* _tmp1_ = NULL; -#line 167 "/home/jens/Source/shotwell/src/Application.vala" +#line 163 "/home/jens/Source/shotwell/src/Application.vala" _tmp0_ = application_get_instance (); -#line 167 "/home/jens/Source/shotwell/src/Application.vala" +#line 163 "/home/jens/Source/shotwell/src/Application.vala" _tmp1_ = _tmp0_; -#line 167 "/home/jens/Source/shotwell/src/Application.vala" +#line 163 "/home/jens/Source/shotwell/src/Application.vala" application_exit (_tmp1_); -#line 167 "/home/jens/Source/shotwell/src/Application.vala" +#line 163 "/home/jens/Source/shotwell/src/Application.vala" _application_unref0 (_tmp1_); -#line 744 "Application.c" +#line 720 "Application.c" } static gpointer _application_ref0 (gpointer self) { -#line 173 "/home/jens/Source/shotwell/src/Application.vala" +#line 169 "/home/jens/Source/shotwell/src/Application.vala" return self ? application_ref (self) : NULL; -#line 751 "Application.c" +#line 727 "Application.c" } @@ -756,19 +732,19 @@ Application* application_get_instance (void) { Application* _tmp0_ = NULL; Application* _tmp1_ = NULL; Application* _tmp2_ = NULL; -#line 171 "/home/jens/Source/shotwell/src/Application.vala" +#line 167 "/home/jens/Source/shotwell/src/Application.vala" _tmp0_ = application_instance; -#line 171 "/home/jens/Source/shotwell/src/Application.vala" +#line 167 "/home/jens/Source/shotwell/src/Application.vala" _vala_assert (_tmp0_ != NULL, "instance != null"); -#line 173 "/home/jens/Source/shotwell/src/Application.vala" +#line 169 "/home/jens/Source/shotwell/src/Application.vala" _tmp1_ = application_instance; -#line 173 "/home/jens/Source/shotwell/src/Application.vala" +#line 169 "/home/jens/Source/shotwell/src/Application.vala" _tmp2_ = _application_ref0 (_tmp1_); -#line 173 "/home/jens/Source/shotwell/src/Application.vala" +#line 169 "/home/jens/Source/shotwell/src/Application.vala" result = _tmp2_; -#line 173 "/home/jens/Source/shotwell/src/Application.vala" +#line 169 "/home/jens/Source/shotwell/src/Application.vala" return result; -#line 772 "Application.c" +#line 748 "Application.c" } @@ -788,78 +764,78 @@ void application_start (Application* self, gchar** argv, int argv_length1) { guint _tmp13_ = 0U; GtkApplication* _tmp14_ = NULL; guint _tmp15_ = 0U; -#line 176 "/home/jens/Source/shotwell/src/Application.vala" +#line 172 "/home/jens/Source/shotwell/src/Application.vala" g_return_if_fail (IS_APPLICATION (self)); -#line 177 "/home/jens/Source/shotwell/src/Application.vala" +#line 173 "/home/jens/Source/shotwell/src/Application.vala" _tmp0_ = self->priv->running; -#line 177 "/home/jens/Source/shotwell/src/Application.vala" +#line 173 "/home/jens/Source/shotwell/src/Application.vala" if (_tmp0_) { -#line 178 "/home/jens/Source/shotwell/src/Application.vala" +#line 174 "/home/jens/Source/shotwell/src/Application.vala" return; -#line 800 "Application.c" +#line 776 "Application.c" } -#line 180 "/home/jens/Source/shotwell/src/Application.vala" +#line 176 "/home/jens/Source/shotwell/src/Application.vala" self->priv->running = TRUE; -#line 182 "/home/jens/Source/shotwell/src/Application.vala" +#line 178 "/home/jens/Source/shotwell/src/Application.vala" g_signal_emit_by_name (self, "starting"); -#line 184 "/home/jens/Source/shotwell/src/Application.vala" +#line 180 "/home/jens/Source/shotwell/src/Application.vala" _tmp1_ = app_window_get_instance (); -#line 184 "/home/jens/Source/shotwell/src/Application.vala" +#line 180 "/home/jens/Source/shotwell/src/Application.vala" _tmp2_ = _tmp1_; -#line 184 "/home/jens/Source/shotwell/src/Application.vala" +#line 180 "/home/jens/Source/shotwell/src/Application.vala" _vala_assert (_tmp2_ != NULL, "AppWindow.get_instance() != null"); -#line 184 "/home/jens/Source/shotwell/src/Application.vala" +#line 180 "/home/jens/Source/shotwell/src/Application.vala" _g_object_unref0 (_tmp2_); -#line 185 "/home/jens/Source/shotwell/src/Application.vala" +#line 181 "/home/jens/Source/shotwell/src/Application.vala" _tmp3_ = self->priv->system_app; -#line 185 "/home/jens/Source/shotwell/src/Application.vala" +#line 181 "/home/jens/Source/shotwell/src/Application.vala" _tmp4_ = app_window_get_instance (); -#line 185 "/home/jens/Source/shotwell/src/Application.vala" +#line 181 "/home/jens/Source/shotwell/src/Application.vala" _tmp5_ = _tmp4_; -#line 185 "/home/jens/Source/shotwell/src/Application.vala" +#line 181 "/home/jens/Source/shotwell/src/Application.vala" gtk_application_add_window (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_window_get_type (), GtkWindow)); -#line 185 "/home/jens/Source/shotwell/src/Application.vala" +#line 181 "/home/jens/Source/shotwell/src/Application.vala" _g_object_unref0 (_tmp5_); -#line 186 "/home/jens/Source/shotwell/src/Application.vala" +#line 182 "/home/jens/Source/shotwell/src/Application.vala" _tmp6_ = self->priv->system_app; -#line 186 "/home/jens/Source/shotwell/src/Application.vala" +#line 182 "/home/jens/Source/shotwell/src/Application.vala" _tmp7_ = argv; -#line 186 "/home/jens/Source/shotwell/src/Application.vala" +#line 182 "/home/jens/Source/shotwell/src/Application.vala" _tmp7__length1 = argv_length1; -#line 186 "/home/jens/Source/shotwell/src/Application.vala" +#line 182 "/home/jens/Source/shotwell/src/Application.vala" _tmp8_ = g_application_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, g_application_get_type (), GApplication), _tmp7__length1, _tmp7_); -#line 186 "/home/jens/Source/shotwell/src/Application.vala" +#line 182 "/home/jens/Source/shotwell/src/Application.vala" self->priv->system_app_run_retval = _tmp8_; -#line 188 "/home/jens/Source/shotwell/src/Application.vala" +#line 184 "/home/jens/Source/shotwell/src/Application.vala" _tmp9_ = self->priv->direct; -#line 188 "/home/jens/Source/shotwell/src/Application.vala" +#line 184 "/home/jens/Source/shotwell/src/Application.vala" if (!_tmp9_) { -#line 838 "Application.c" +#line 814 "Application.c" GtkApplication* _tmp10_ = NULL; guint _tmp11_ = 0U; -#line 189 "/home/jens/Source/shotwell/src/Application.vala" +#line 185 "/home/jens/Source/shotwell/src/Application.vala" _tmp10_ = self->priv->system_app; -#line 189 "/home/jens/Source/shotwell/src/Application.vala" +#line 185 "/home/jens/Source/shotwell/src/Application.vala" g_signal_parse_name ("command-line", g_application_get_type (), &_tmp11_, NULL, FALSE); -#line 189 "/home/jens/Source/shotwell/src/Application.vala" +#line 185 "/home/jens/Source/shotwell/src/Application.vala" g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, g_application_get_type (), GApplication), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp11_, 0, NULL, (GCallback) _application_on_command_line_g_application_command_line, NULL); -#line 847 "Application.c" +#line 823 "Application.c" } -#line 192 "/home/jens/Source/shotwell/src/Application.vala" +#line 188 "/home/jens/Source/shotwell/src/Application.vala" _tmp12_ = self->priv->system_app; -#line 192 "/home/jens/Source/shotwell/src/Application.vala" +#line 188 "/home/jens/Source/shotwell/src/Application.vala" g_signal_parse_name ("activate", g_application_get_type (), &_tmp13_, NULL, FALSE); -#line 192 "/home/jens/Source/shotwell/src/Application.vala" +#line 188 "/home/jens/Source/shotwell/src/Application.vala" g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, g_application_get_type (), GApplication), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp13_, 0, NULL, (GCallback) _application_on_activated_g_application_activate, NULL); -#line 193 "/home/jens/Source/shotwell/src/Application.vala" +#line 189 "/home/jens/Source/shotwell/src/Application.vala" _tmp14_ = self->priv->system_app; -#line 193 "/home/jens/Source/shotwell/src/Application.vala" +#line 189 "/home/jens/Source/shotwell/src/Application.vala" g_signal_parse_name ("startup", g_application_get_type (), &_tmp15_, NULL, FALSE); -#line 193 "/home/jens/Source/shotwell/src/Application.vala" +#line 189 "/home/jens/Source/shotwell/src/Application.vala" g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, g_application_get_type (), GApplication), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp15_, 0, NULL, (GCallback) _application_on_activated_g_application_startup, NULL); -#line 195 "/home/jens/Source/shotwell/src/Application.vala" +#line 191 "/home/jens/Source/shotwell/src/Application.vala" self->priv->running = FALSE; -#line 863 "Application.c" +#line 839 "Application.c" } @@ -867,58 +843,58 @@ void application_exit (Application* self) { gboolean _tmp0_ = FALSE; gboolean _tmp1_ = FALSE; GtkApplication* _tmp3_ = NULL; -#line 198 "/home/jens/Source/shotwell/src/Application.vala" +#line 194 "/home/jens/Source/shotwell/src/Application.vala" g_return_if_fail (IS_APPLICATION (self)); -#line 201 "/home/jens/Source/shotwell/src/Application.vala" +#line 197 "/home/jens/Source/shotwell/src/Application.vala" _tmp1_ = self->priv->exiting_fired; -#line 201 "/home/jens/Source/shotwell/src/Application.vala" +#line 197 "/home/jens/Source/shotwell/src/Application.vala" if (_tmp1_) { -#line 201 "/home/jens/Source/shotwell/src/Application.vala" +#line 197 "/home/jens/Source/shotwell/src/Application.vala" _tmp0_ = TRUE; -#line 879 "Application.c" +#line 855 "Application.c" } else { gboolean _tmp2_ = FALSE; -#line 201 "/home/jens/Source/shotwell/src/Application.vala" +#line 197 "/home/jens/Source/shotwell/src/Application.vala" _tmp2_ = self->priv->running; -#line 201 "/home/jens/Source/shotwell/src/Application.vala" +#line 197 "/home/jens/Source/shotwell/src/Application.vala" _tmp0_ = !_tmp2_; -#line 886 "Application.c" +#line 862 "Application.c" } -#line 201 "/home/jens/Source/shotwell/src/Application.vala" +#line 197 "/home/jens/Source/shotwell/src/Application.vala" if (_tmp0_) { -#line 202 "/home/jens/Source/shotwell/src/Application.vala" +#line 198 "/home/jens/Source/shotwell/src/Application.vala" return; -#line 892 "Application.c" +#line 868 "Application.c" } -#line 204 "/home/jens/Source/shotwell/src/Application.vala" +#line 200 "/home/jens/Source/shotwell/src/Application.vala" self->priv->exiting_fired = TRUE; -#line 206 "/home/jens/Source/shotwell/src/Application.vala" +#line 202 "/home/jens/Source/shotwell/src/Application.vala" g_signal_emit_by_name (self, "exiting", FALSE); -#line 208 "/home/jens/Source/shotwell/src/Application.vala" +#line 204 "/home/jens/Source/shotwell/src/Application.vala" _tmp3_ = self->priv->system_app; -#line 208 "/home/jens/Source/shotwell/src/Application.vala" +#line 204 "/home/jens/Source/shotwell/src/Application.vala" g_application_release (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, g_application_get_type (), GApplication)); -#line 902 "Application.c" +#line 878 "Application.c" } void application_panic (Application* self) { gboolean _tmp0_ = FALSE; -#line 213 "/home/jens/Source/shotwell/src/Application.vala" +#line 209 "/home/jens/Source/shotwell/src/Application.vala" g_return_if_fail (IS_APPLICATION (self)); -#line 214 "/home/jens/Source/shotwell/src/Application.vala" +#line 210 "/home/jens/Source/shotwell/src/Application.vala" _tmp0_ = self->priv->exiting_fired; -#line 214 "/home/jens/Source/shotwell/src/Application.vala" +#line 210 "/home/jens/Source/shotwell/src/Application.vala" if (!_tmp0_) { -#line 215 "/home/jens/Source/shotwell/src/Application.vala" +#line 211 "/home/jens/Source/shotwell/src/Application.vala" self->priv->exiting_fired = TRUE; -#line 216 "/home/jens/Source/shotwell/src/Application.vala" +#line 212 "/home/jens/Source/shotwell/src/Application.vala" g_signal_emit_by_name (self, "exiting", TRUE); -#line 918 "Application.c" +#line 894 "Application.c" } -#line 218 "/home/jens/Source/shotwell/src/Application.vala" +#line 214 "/home/jens/Source/shotwell/src/Application.vala" exit (1); -#line 922 "Application.c" +#line 898 "Application.c" } @@ -938,29 +914,29 @@ guint application_inhibit (Application* self, GtkApplicationInhibitFlags what, c const gchar* _tmp4_ = NULL; guint _tmp5_ = 0U; guint _tmp6_ = 0U; -#line 228 "/home/jens/Source/shotwell/src/Application.vala" +#line 224 "/home/jens/Source/shotwell/src/Application.vala" g_return_val_if_fail (IS_APPLICATION (self), 0U); -#line 229 "/home/jens/Source/shotwell/src/Application.vala" +#line 225 "/home/jens/Source/shotwell/src/Application.vala" _tmp0_ = self->priv->system_app; -#line 229 "/home/jens/Source/shotwell/src/Application.vala" +#line 225 "/home/jens/Source/shotwell/src/Application.vala" _tmp1_ = app_window_get_instance (); -#line 229 "/home/jens/Source/shotwell/src/Application.vala" +#line 225 "/home/jens/Source/shotwell/src/Application.vala" _tmp2_ = _tmp1_; -#line 229 "/home/jens/Source/shotwell/src/Application.vala" +#line 225 "/home/jens/Source/shotwell/src/Application.vala" _tmp3_ = what; -#line 229 "/home/jens/Source/shotwell/src/Application.vala" +#line 225 "/home/jens/Source/shotwell/src/Application.vala" _tmp4_ = reason; -#line 229 "/home/jens/Source/shotwell/src/Application.vala" +#line 225 "/home/jens/Source/shotwell/src/Application.vala" _tmp5_ = gtk_application_inhibit (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_window_get_type (), GtkWindow), _tmp3_, _tmp4_); -#line 229 "/home/jens/Source/shotwell/src/Application.vala" +#line 225 "/home/jens/Source/shotwell/src/Application.vala" _tmp6_ = _tmp5_; -#line 229 "/home/jens/Source/shotwell/src/Application.vala" +#line 225 "/home/jens/Source/shotwell/src/Application.vala" _g_object_unref0 (_tmp2_); -#line 229 "/home/jens/Source/shotwell/src/Application.vala" +#line 225 "/home/jens/Source/shotwell/src/Application.vala" result = _tmp6_; -#line 229 "/home/jens/Source/shotwell/src/Application.vala" +#line 225 "/home/jens/Source/shotwell/src/Application.vala" return result; -#line 964 "Application.c" +#line 940 "Application.c" } @@ -971,30 +947,30 @@ guint application_inhibit (Application* self, GtkApplicationInhibitFlags what, c void application_uninhibit (Application* self, guint cookie) { GtkApplication* _tmp0_ = NULL; guint _tmp1_ = 0U; -#line 236 "/home/jens/Source/shotwell/src/Application.vala" +#line 232 "/home/jens/Source/shotwell/src/Application.vala" g_return_if_fail (IS_APPLICATION (self)); -#line 237 "/home/jens/Source/shotwell/src/Application.vala" +#line 233 "/home/jens/Source/shotwell/src/Application.vala" _tmp0_ = self->priv->system_app; -#line 237 "/home/jens/Source/shotwell/src/Application.vala" +#line 233 "/home/jens/Source/shotwell/src/Application.vala" _tmp1_ = cookie; -#line 237 "/home/jens/Source/shotwell/src/Application.vala" +#line 233 "/home/jens/Source/shotwell/src/Application.vala" gtk_application_uninhibit (_tmp0_, _tmp1_); -#line 983 "Application.c" +#line 959 "Application.c" } gint application_get_run_return_value (Application* self) { gint result = 0; gint _tmp0_ = 0; -#line 240 "/home/jens/Source/shotwell/src/Application.vala" +#line 236 "/home/jens/Source/shotwell/src/Application.vala" g_return_val_if_fail (IS_APPLICATION (self), 0); -#line 241 "/home/jens/Source/shotwell/src/Application.vala" +#line 237 "/home/jens/Source/shotwell/src/Application.vala" _tmp0_ = self->priv->system_app_run_retval; -#line 241 "/home/jens/Source/shotwell/src/Application.vala" +#line 237 "/home/jens/Source/shotwell/src/Application.vala" result = _tmp0_; -#line 241 "/home/jens/Source/shotwell/src/Application.vala" +#line 237 "/home/jens/Source/shotwell/src/Application.vala" return result; -#line 998 "Application.c" +#line 974 "Application.c" } @@ -1013,7 +989,7 @@ static void application_real_init_done (Application* self) { static void value_application_init (GValue* value) { #line 7 "/home/jens/Source/shotwell/src/Application.vala" value->data[0].v_pointer = NULL; -#line 1017 "Application.c" +#line 993 "Application.c" } @@ -1022,7 +998,7 @@ static void value_application_free_value (GValue* value) { if (value->data[0].v_pointer) { #line 7 "/home/jens/Source/shotwell/src/Application.vala" application_unref (value->data[0].v_pointer); -#line 1026 "Application.c" +#line 1002 "Application.c" } } @@ -1032,11 +1008,11 @@ static void value_application_copy_value (const GValue* src_value, GValue* dest_ if (src_value->data[0].v_pointer) { #line 7 "/home/jens/Source/shotwell/src/Application.vala" dest_value->data[0].v_pointer = application_ref (src_value->data[0].v_pointer); -#line 1036 "Application.c" +#line 1012 "Application.c" } else { #line 7 "/home/jens/Source/shotwell/src/Application.vala" dest_value->data[0].v_pointer = NULL; -#line 1040 "Application.c" +#line 1016 "Application.c" } } @@ -1044,37 +1020,37 @@ static void value_application_copy_value (const GValue* src_value, GValue* dest_ static gpointer value_application_peek_pointer (const GValue* value) { #line 7 "/home/jens/Source/shotwell/src/Application.vala" return value->data[0].v_pointer; -#line 1048 "Application.c" +#line 1024 "Application.c" } static gchar* value_application_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) { #line 7 "/home/jens/Source/shotwell/src/Application.vala" if (collect_values[0].v_pointer) { -#line 1055 "Application.c" +#line 1031 "Application.c" Application* object; object = collect_values[0].v_pointer; #line 7 "/home/jens/Source/shotwell/src/Application.vala" if (object->parent_instance.g_class == NULL) { #line 7 "/home/jens/Source/shotwell/src/Application.vala" return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1062 "Application.c" +#line 1038 "Application.c" } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { #line 7 "/home/jens/Source/shotwell/src/Application.vala" return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1066 "Application.c" +#line 1042 "Application.c" } #line 7 "/home/jens/Source/shotwell/src/Application.vala" value->data[0].v_pointer = application_ref (object); -#line 1070 "Application.c" +#line 1046 "Application.c" } else { #line 7 "/home/jens/Source/shotwell/src/Application.vala" value->data[0].v_pointer = NULL; -#line 1074 "Application.c" +#line 1050 "Application.c" } #line 7 "/home/jens/Source/shotwell/src/Application.vala" return NULL; -#line 1078 "Application.c" +#line 1054 "Application.c" } @@ -1085,25 +1061,25 @@ static gchar* value_application_lcopy_value (const GValue* value, guint n_collec if (!object_p) { #line 7 "/home/jens/Source/shotwell/src/Application.vala" return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1089 "Application.c" +#line 1065 "Application.c" } #line 7 "/home/jens/Source/shotwell/src/Application.vala" if (!value->data[0].v_pointer) { #line 7 "/home/jens/Source/shotwell/src/Application.vala" *object_p = NULL; -#line 1095 "Application.c" +#line 1071 "Application.c" } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { #line 7 "/home/jens/Source/shotwell/src/Application.vala" *object_p = value->data[0].v_pointer; -#line 1099 "Application.c" +#line 1075 "Application.c" } else { #line 7 "/home/jens/Source/shotwell/src/Application.vala" *object_p = application_ref (value->data[0].v_pointer); -#line 1103 "Application.c" +#line 1079 "Application.c" } #line 7 "/home/jens/Source/shotwell/src/Application.vala" return NULL; -#line 1107 "Application.c" +#line 1083 "Application.c" } @@ -1117,7 +1093,7 @@ GParamSpec* param_spec_application (const gchar* name, const gchar* nick, const G_PARAM_SPEC (spec)->value_type = object_type; #line 7 "/home/jens/Source/shotwell/src/Application.vala" return G_PARAM_SPEC (spec); -#line 1121 "Application.c" +#line 1097 "Application.c" } @@ -1126,7 +1102,7 @@ gpointer value_get_application (const GValue* value) { g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_APPLICATION), NULL); #line 7 "/home/jens/Source/shotwell/src/Application.vala" return value->data[0].v_pointer; -#line 1130 "Application.c" +#line 1106 "Application.c" } @@ -1146,17 +1122,17 @@ void value_set_application (GValue* value, gpointer v_object) { value->data[0].v_pointer = v_object; #line 7 "/home/jens/Source/shotwell/src/Application.vala" application_ref (value->data[0].v_pointer); -#line 1150 "Application.c" +#line 1126 "Application.c" } else { #line 7 "/home/jens/Source/shotwell/src/Application.vala" value->data[0].v_pointer = NULL; -#line 1154 "Application.c" +#line 1130 "Application.c" } #line 7 "/home/jens/Source/shotwell/src/Application.vala" if (old) { #line 7 "/home/jens/Source/shotwell/src/Application.vala" application_unref (old); -#line 1160 "Application.c" +#line 1136 "Application.c" } } @@ -1175,17 +1151,17 @@ void value_take_application (GValue* value, gpointer v_object) { g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); #line 7 "/home/jens/Source/shotwell/src/Application.vala" value->data[0].v_pointer = v_object; -#line 1179 "Application.c" +#line 1155 "Application.c" } else { #line 7 "/home/jens/Source/shotwell/src/Application.vala" value->data[0].v_pointer = NULL; -#line 1183 "Application.c" +#line 1159 "Application.c" } #line 7 "/home/jens/Source/shotwell/src/Application.vala" if (old) { #line 7 "/home/jens/Source/shotwell/src/Application.vala" application_unref (old); -#line 1189 "Application.c" +#line 1165 "Application.c" } } @@ -1209,7 +1185,7 @@ static void application_class_init (ApplicationClass * klass) { g_signal_new ("exiting", TYPE_APPLICATION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ApplicationClass, exiting), NULL, NULL, g_cclosure_marshal_VOID__BOOLEAN, G_TYPE_NONE, 1, G_TYPE_BOOLEAN); #line 7 "/home/jens/Source/shotwell/src/Application.vala" g_signal_new ("init_done", TYPE_APPLICATION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ApplicationClass, init_done), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 1213 "Application.c" +#line 1189 "Application.c" } @@ -1228,7 +1204,7 @@ static void application_instance_init (Application * self) { self->priv->exiting_fired = FALSE; #line 7 "/home/jens/Source/shotwell/src/Application.vala" self->ref_count = 1; -#line 1232 "Application.c" +#line 1208 "Application.c" } @@ -1240,7 +1216,7 @@ static void application_finalize (Application* obj) { g_signal_handlers_destroy (self); #line 9 "/home/jens/Source/shotwell/src/Application.vala" _g_object_unref0 (self->priv->system_app); -#line 1244 "Application.c" +#line 1220 "Application.c" } @@ -1265,7 +1241,7 @@ gpointer application_ref (gpointer instance) { g_atomic_int_inc (&self->ref_count); #line 7 "/home/jens/Source/shotwell/src/Application.vala" return instance; -#line 1269 "Application.c" +#line 1245 "Application.c" } @@ -1278,7 +1254,7 @@ void application_unref (gpointer instance) { APPLICATION_GET_CLASS (self)->finalize (self); #line 7 "/home/jens/Source/shotwell/src/Application.vala" g_type_free_instance ((GTypeInstance *) self); -#line 1282 "Application.c" +#line 1258 "Application.c" } } diff --git a/src/Application.vala b/src/Application.vala index 6e6ba85..a1fff47 100644 --- a/src/Application.vala +++ b/src/Application.vala @@ -103,16 +103,12 @@ public class Application { get_instance().system_app.set_menubar (model); } - public static void set_appmenu (GLib.MenuModel? model) { - get_instance().system_app.set_app_menu (model); - } - /** * @brief Signal handler for GApplication's 'command-line' signal. * * The most likely scenario for this to be fired is if the user * either tried to run us twice in library mode, or we've just gotten - * a camera/removeable-storage mount; in either case, the remote instance + * a camera/removable-storage mount; in either case, the remote instance * will trigger this and exit, and we'll need to bring the window back up... */ public static void on_activated() { diff --git a/src/BatchImport.c b/src/BatchImport.c index bc67168..032c624 100644 --- a/src/BatchImport.c +++ b/src/BatchImport.c @@ -1,4 +1,4 @@ -/* BatchImport.c generated by valac 0.32.1, the Vala compiler +/* BatchImport.c generated by valac 0.34.4, the Vala compiler * generated from BatchImport.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -5472,7 +5472,7 @@ BatchImport* batch_import_construct (GType object_type, GeeIterable* jobs, const #line 5473 "BatchImport.c" GeeHashSet* _tmp21_ = NULL; #line 491 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp21_ = gee_hash_set_new (G_TYPE_FILE, (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL); + _tmp21_ = gee_hash_set_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL); #line 491 "/home/jens/Source/shotwell/src/BatchImport.vala" _g_object_unref0 (self->priv->skipset); #line 491 "/home/jens/Source/shotwell/src/BatchImport.vala" @@ -5770,14 +5770,14 @@ static gboolean batch_import_report_failure (BatchImport* self, BatchImportResul #line 557 "/home/jens/Source/shotwell/src/BatchImport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 5773 "BatchImport.c" - goto __catch407_g_error; + goto __catch409_g_error; } #line 557 "/home/jens/Source/shotwell/src/BatchImport.vala" filesize = _tmp11_; #line 5778 "BatchImport.c" } - goto __finally407; - __catch407_g_error: + goto __finally409; + __catch409_g_error: { GError* err = NULL; BatchImportResult* _tmp15_ = NULL; @@ -5810,7 +5810,7 @@ static gboolean batch_import_report_failure (BatchImport* self, BatchImportResul _g_error_free0 (err); #line 5812 "BatchImport.c" } - __finally407: + __finally409: #line 555 "/home/jens/Source/shotwell/src/BatchImport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 555 "/home/jens/Source/shotwell/src/BatchImport.vala" @@ -8899,11 +8899,11 @@ static void batch_import_on_import_files_completed (BatchImport* self, Backgroun #line 1043 "/home/jens/Source/shotwell/src/BatchImport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 8898 "BatchImport.c" - goto __catch408_g_error; + goto __catch410_g_error; } } - goto __finally408; - __catch408_g_error: + goto __finally410; + __catch410_g_error: { GError* e = NULL; BackingPhotoRow* _tmp68_ = NULL; @@ -8929,7 +8929,7 @@ static void batch_import_on_import_files_completed (BatchImport* self, Backgroun _g_error_free0 (e); #line 8926 "BatchImport.c" } - __finally408: + __finally410: #line 1042 "/home/jens/Source/shotwell/src/BatchImport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1042 "/home/jens/Source/shotwell/src/BatchImport.vala" @@ -9894,11 +9894,11 @@ static void batch_import_flush_ready_sources (BatchImport* self) { #line 1196 "/home/jens/Source/shotwell/src/BatchImport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 9891 "BatchImport.c" - goto __catch409_g_error; + goto __catch411_g_error; } } - goto __finally409; - __catch409_g_error: + goto __finally411; + __catch411_g_error: { GError* err = NULL; MediaSource* _tmp65_ = NULL; @@ -9929,7 +9929,7 @@ static void batch_import_flush_ready_sources (BatchImport* self) { _g_error_free0 (err); #line 9924 "BatchImport.c" } - __finally409: + __finally411: #line 1195 "/home/jens/Source/shotwell/src/BatchImport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1195 "/home/jens/Source/shotwell/src/BatchImport.vala" @@ -10413,7 +10413,7 @@ static void batch_import_class_init (BatchImportClass * klass) { #line 402 "/home/jens/Source/shotwell/src/BatchImport.vala" g_signal_new ("progress", TYPE_BATCH_IMPORT, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__UINT64_UINT64, G_TYPE_NONE, 2, G_TYPE_UINT64, G_TYPE_UINT64); #line 402 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_signal_new ("imported", TYPE_BATCH_IMPORT, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT_INT, G_TYPE_NONE, 3, TYPE_MEDIA_SOURCE, GDK_TYPE_PIXBUF, G_TYPE_INT); + g_signal_new ("imported", TYPE_BATCH_IMPORT, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT_INT, G_TYPE_NONE, 3, TYPE_MEDIA_SOURCE, gdk_pixbuf_get_type (), G_TYPE_INT); #line 402 "/home/jens/Source/shotwell/src/BatchImport.vala" g_signal_new ("fatal_error", TYPE_BATCH_IMPORT, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__ENUM_STRING, G_TYPE_NONE, 2, TYPE_IMPORT_RESULT, G_TYPE_STRING); #line 402 "/home/jens/Source/shotwell/src/BatchImport.vala" @@ -10460,7 +10460,7 @@ static void batch_import_instance_init (BatchImport * self) { #line 428 "/home/jens/Source/shotwell/src/BatchImport.vala" self->priv->last_preparing_ms = (gulong) 0; #line 431 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, G_TYPE_FILE, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); + _tmp0_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, g_file_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); #line 431 "/home/jens/Source/shotwell/src/BatchImport.vala" self->priv->imported_full_md5_table = _tmp0_; #line 433 "/home/jens/Source/shotwell/src/BatchImport.vala" @@ -11931,11 +11931,11 @@ static void work_sniffer_real_execute (BackgroundJob* base) { #line 1465 "/home/jens/Source/shotwell/src/BatchImport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 11927 "BatchImport.c" - goto __catch410_g_error; + goto __catch412_g_error; } } - goto __finally410; - __catch410_g_error: + goto __finally412; + __catch412_g_error: { GError* err = NULL; BatchImportJob* _tmp17_ = NULL; @@ -11976,7 +11976,7 @@ static void work_sniffer_real_execute (BackgroundJob* base) { _g_error_free0 (err); #line 11971 "BatchImport.c" } - __finally410: + __finally412: #line 1464 "/home/jens/Source/shotwell/src/BatchImport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1464 "/home/jens/Source/shotwell/src/BatchImport.vala" @@ -12676,11 +12676,11 @@ static void work_sniffer_sniff_job (WorkSniffer* self, BatchImportJob* job, GErr #line 1556 "/home/jens/Source/shotwell/src/BatchImport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 12672 "BatchImport.c" - goto __catch411_g_error; + goto __catch413_g_error; } } - goto __finally411; - __catch411_g_error: + goto __finally413; + __catch413_g_error: { GError* err = NULL; BatchImportJob* _tmp26_ = NULL; @@ -12724,7 +12724,7 @@ static void work_sniffer_sniff_job (WorkSniffer* self, BatchImportJob* job, GErr _g_error_free0 (err); #line 12719 "BatchImport.c" } - __finally411: + __finally413: #line 1555 "/home/jens/Source/shotwell/src/BatchImport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1555 "/home/jens/Source/shotwell/src/BatchImport.vala" @@ -13013,11 +13013,11 @@ void work_sniffer_search_dir (WorkSniffer* self, BatchImportJob* job, GFile* dir #line 1593 "/home/jens/Source/shotwell/src/BatchImport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 13009 "BatchImport.c" - goto __catch412_g_error; + goto __catch414_g_error; } } - goto __finally412; - __catch412_g_error: + goto __finally414; + __catch414_g_error: { GError* err = NULL; BatchImportJob* _tmp24_ = NULL; @@ -13061,7 +13061,7 @@ void work_sniffer_search_dir (WorkSniffer* self, BatchImportJob* job, GFile* dir _g_error_free0 (err); #line 13056 "BatchImport.c" } - __finally412: + __finally414: #line 1592 "/home/jens/Source/shotwell/src/BatchImport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1592 "/home/jens/Source/shotwell/src/BatchImport.vala" @@ -14580,7 +14580,7 @@ static gboolean prepare_files_job_create_file (PrepareFilesJob* self, BatchImpor #line 1762 "/home/jens/Source/shotwell/src/BatchImport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 14576 "BatchImport.c" - goto __catch413_g_error; + goto __catch415_g_error; } #line 1762 "/home/jens/Source/shotwell/src/BatchImport.vala" if (!_tmp0_) { @@ -14635,8 +14635,8 @@ static gboolean prepare_files_job_create_file (PrepareFilesJob* self, BatchImpor #line 14629 "BatchImport.c" } } - goto __finally413; - __catch413_g_error: + goto __finally415; + __catch415_g_error: { GError* err = NULL; BatchImportJob* _tmp12_ = NULL; @@ -14697,7 +14697,7 @@ static gboolean prepare_files_job_create_file (PrepareFilesJob* self, BatchImpor return result; #line 14692 "BatchImport.c" } - __finally413: + __finally415: #line 1761 "/home/jens/Source/shotwell/src/BatchImport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1761 "/home/jens/Source/shotwell/src/BatchImport.vala" @@ -14953,7 +14953,7 @@ static ImportResult prepare_files_job_prepare_file (PrepareFilesJob* self, Batch #line 1808 "/home/jens/Source/shotwell/src/BatchImport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 14949 "BatchImport.c" - goto __catch414_g_error; + goto __catch416_g_error; } #line 1808 "/home/jens/Source/shotwell/src/BatchImport.vala" _tmp20_ = _tmp17_; @@ -14967,8 +14967,8 @@ static ImportResult prepare_files_job_prepare_file (PrepareFilesJob* self, Batch _g_free0 (_tmp17_); #line 14962 "BatchImport.c" } - goto __finally414; - __catch414_g_error: + goto __finally416; + __catch416_g_error: { GError* err = NULL; GFile* _tmp21_ = NULL; @@ -15024,7 +15024,7 @@ static ImportResult prepare_files_job_prepare_file (PrepareFilesJob* self, Batch return result; #line 15019 "BatchImport.c" } - __finally414: + __finally416: #line 1807 "/home/jens/Source/shotwell/src/BatchImport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1807 "/home/jens/Source/shotwell/src/BatchImport.vala" @@ -15135,7 +15135,7 @@ static ImportResult prepare_files_job_prepare_file (PrepareFilesJob* self, Batch #line 1831 "/home/jens/Source/shotwell/src/BatchImport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 15131 "BatchImport.c" - goto __catch415_g_error; + goto __catch417_g_error; } #line 1831 "/home/jens/Source/shotwell/src/BatchImport.vala" _tmp44_ = _tmp41_; @@ -15149,8 +15149,8 @@ static ImportResult prepare_files_job_prepare_file (PrepareFilesJob* self, Batch _media_metadata_unref0 (_tmp41_); #line 15144 "BatchImport.c" } - goto __finally415; - __catch415_g_error: + goto __finally417; + __catch417_g_error: { GError* err = NULL; GFile* _tmp45_ = NULL; @@ -15181,7 +15181,7 @@ static ImportResult prepare_files_job_prepare_file (PrepareFilesJob* self, Batch _g_error_free0 (err); #line 15175 "BatchImport.c" } - __finally415: + __finally417: #line 1830 "/home/jens/Source/shotwell/src/BatchImport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1830 "/home/jens/Source/shotwell/src/BatchImport.vala" @@ -15374,14 +15374,14 @@ static ImportResult prepare_files_job_prepare_file (PrepareFilesJob* self, Batch #line 1850 "/home/jens/Source/shotwell/src/BatchImport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 15369 "BatchImport.c" - goto __catch416_g_error; + goto __catch418_g_error; } #line 1850 "/home/jens/Source/shotwell/src/BatchImport.vala" filesize = _tmp69_; #line 15374 "BatchImport.c" } - goto __finally416; - __catch416_g_error: + goto __finally418; + __catch418_g_error: { GError* err = NULL; GFile* _tmp75_ = NULL; @@ -15437,7 +15437,7 @@ static ImportResult prepare_files_job_prepare_file (PrepareFilesJob* self, Batch return result; #line 15431 "BatchImport.c" } - __finally416: + __finally418: #line 1849 "/home/jens/Source/shotwell/src/BatchImport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1849 "/home/jens/Source/shotwell/src/BatchImport.vala" @@ -15832,11 +15832,11 @@ BatchImportResult* ready_for_import_abort (ReadyForImport* self) { #line 1898 "/home/jens/Source/shotwell/src/BatchImport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 15827 "BatchImport.c" - goto __catch417_g_error; + goto __catch419_g_error; } } - goto __finally417; - __catch417_g_error: + goto __finally419; + __catch419_g_error: { GError* err = NULL; GFile* _tmp9_ = NULL; @@ -15867,7 +15867,7 @@ BatchImportResult* ready_for_import_abort (ReadyForImport* self) { _g_error_free0 (err); #line 15860 "BatchImport.c" } - __finally417: + __finally419: #line 1897 "/home/jens/Source/shotwell/src/BatchImport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1897 "/home/jens/Source/shotwell/src/BatchImport.vala" @@ -16384,7 +16384,7 @@ static void prepared_file_import_job_real_execute (BackgroundJob* base) { #line 1945 "/home/jens/Source/shotwell/src/BatchImport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 16378 "BatchImport.c" - goto __catch418_g_error; + goto __catch420_g_error; } #line 1945 "/home/jens/Source/shotwell/src/BatchImport.vala" _tmp14_ = _tmp10_; @@ -16481,7 +16481,7 @@ static void prepared_file_import_job_real_execute (BackgroundJob* base) { #line 1956 "/home/jens/Source/shotwell/src/BatchImport.vala" _g_object_unref0 (_tmp10_); #line 16475 "BatchImport.c" - goto __catch418_g_error; + goto __catch420_g_error; } #line 1956 "/home/jens/Source/shotwell/src/BatchImport.vala" _tmp34_ = _tmp30_; @@ -16499,8 +16499,8 @@ static void prepared_file_import_job_real_execute (BackgroundJob* base) { _g_object_unref0 (_tmp10_); #line 16492 "BatchImport.c" } - goto __finally418; - __catch418_g_error: + goto __finally420; + __catch420_g_error: { GError* err = NULL; gchar* _tmp35_ = NULL; @@ -16591,7 +16591,7 @@ static void prepared_file_import_job_real_execute (BackgroundJob* base) { return; #line 16584 "BatchImport.c" } - __finally418: + __finally420: #line 1943 "/home/jens/Source/shotwell/src/BatchImport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1943 "/home/jens/Source/shotwell/src/BatchImport.vala" @@ -16778,11 +16778,11 @@ static void prepared_file_import_job_real_execute (BackgroundJob* base) { #line 1989 "/home/jens/Source/shotwell/src/BatchImport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 16772 "BatchImport.c" - goto __catch419_g_error; + goto __catch421_g_error; } } - goto __finally419; - __catch419_g_error: + goto __finally421; + __catch421_g_error: { GError* err = NULL; GFile* _tmp91_ = NULL; @@ -16812,7 +16812,7 @@ static void prepared_file_import_job_real_execute (BackgroundJob* base) { _g_error_free0 (err); #line 16805 "BatchImport.c" } - __finally419: + __finally421: #line 1988 "/home/jens/Source/shotwell/src/BatchImport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1988 "/home/jens/Source/shotwell/src/BatchImport.vala" @@ -17393,7 +17393,7 @@ static void thumbnail_writer_job_real_execute (BackgroundJob* base) { #line 2039 "/home/jens/Source/shotwell/src/BatchImport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 17387 "BatchImport.c" - goto __catch420_g_error; + goto __catch422_g_error; } #line 2041 "/home/jens/Source/shotwell/src/BatchImport.vala" _tmp4_ = self->completed_import_source; @@ -17403,8 +17403,8 @@ static void thumbnail_writer_job_real_execute (BackgroundJob* base) { _tmp5_->result = IMPORT_RESULT_SUCCESS; #line 17396 "BatchImport.c" } - goto __finally420; - __catch420_g_error: + goto __finally422; + __catch422_g_error: { GError* err = NULL; CompletedImportObject* _tmp6_ = NULL; @@ -17429,7 +17429,7 @@ static void thumbnail_writer_job_real_execute (BackgroundJob* base) { _g_error_free0 (err); #line 17422 "BatchImport.c" } - __finally420: + __finally422: #line 2038 "/home/jens/Source/shotwell/src/BatchImport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 2038 "/home/jens/Source/shotwell/src/BatchImport.vala" diff --git a/src/BatchImport.vala b/src/BatchImport.vala index 4a46a26..3febf08 100644 --- a/src/BatchImport.vala +++ b/src/BatchImport.vala @@ -271,7 +271,7 @@ public class BatchImportRoll { // A BatchImportResult associates a particular job with a File that an import was performed on // and the import result. A BatchImportJob can specify multiple files, so there is not necessarily -// a one-to-one relationship beteen it and this object. +// a one-to-one relationship between it and this object. // // Note that job may be null (in the case of a pre-failed job that must be reported) and file may // be null (for similar reasons). @@ -1,4 +1,4 @@ -/* Box.c generated by valac 0.32.1, the Vala compiler +/* Box.c generated by valac 0.34.4, the Vala compiler * generated from Box.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/CheckerboardLayout.c b/src/CheckerboardLayout.c index 7c3ab70..b5d30e5 100644 --- a/src/CheckerboardLayout.c +++ b/src/CheckerboardLayout.c @@ -1,4 +1,4 @@ -/* CheckerboardLayout.c generated by valac 0.32.1, the Vala compiler +/* CheckerboardLayout.c generated by valac 0.34.4, the Vala compiler * generated from CheckerboardLayout.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -530,7 +530,7 @@ gchar* checkerboard_item_get_subtitle (CheckerboardItem* self); void checkerboard_item_set_subtitle (CheckerboardItem* self, const gchar* text, gboolean marked_up, PangoAlignment alignment); static void checkerboard_item_set_subtitle_visible (CheckerboardItem* self, gboolean visible); void checkerboard_item_set_is_cursor (CheckerboardItem* self, gboolean is_cursor); -gboolean checkerboard_item_get_is_cusor (CheckerboardItem* self); +gboolean checkerboard_item_get_is_cursor (CheckerboardItem* self); static void checkerboard_item_real_notify_membership_changed (DataObject* base, DataCollection* collection); void data_object_get_collection_property (DataObject* self, const gchar* name, GValue* def, GValue* result); static void _vala_GValue_free (GValue* self); @@ -1384,11 +1384,11 @@ void checkerboard_item_text_unref (gpointer instance) { static gchar* string_replace (const gchar* self, const gchar* old, const gchar* replacement) { gchar* result = NULL; GError * _inner_error_ = NULL; -#line 1380 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1380 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, NULL); -#line 1380 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1380 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (old != NULL, NULL); -#line 1380 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1380 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (replacement != NULL, NULL); #line 1394 "CheckerboardLayout.c" { @@ -1403,98 +1403,98 @@ static gchar* string_replace (const gchar* self, const gchar* old, const gchar* const gchar* _tmp7_ = NULL; gchar* _tmp8_ = NULL; gchar* _tmp9_ = NULL; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = old; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = g_regex_escape_string (_tmp0_, -1); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = _tmp1_; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = g_regex_new (_tmp2_, 0, 0, &_inner_error_); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = _tmp3_; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_free0 (_tmp2_); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" regex = _tmp4_; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_inner_error_->domain == G_REGEX_ERROR) { #line 1425 "CheckerboardLayout.c" - goto __catch239_g_regex_error; + goto __catch241_g_regex_error; } -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_clear_error (&_inner_error_); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return NULL; #line 1434 "CheckerboardLayout.c" } -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp6_ = regex; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp7_ = replacement; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp8_ = g_regex_replace_literal (_tmp6_, self, (gssize) -1, 0, _tmp7_, 0, &_inner_error_); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = _tmp8_; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_regex_unref0 (regex); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_inner_error_->domain == G_REGEX_ERROR) { #line 1450 "CheckerboardLayout.c" - goto __catch239_g_regex_error; + goto __catch241_g_regex_error; } -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_regex_unref0 (regex); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_clear_error (&_inner_error_); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return NULL; #line 1461 "CheckerboardLayout.c" } -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp9_ = _tmp5_; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = NULL; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp9_; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_free0 (_tmp5_); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_regex_unref0 (regex); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 1475 "CheckerboardLayout.c" } - goto __finally239; - __catch239_g_regex_error: + goto __finally241; + __catch241_g_regex_error: { GError* e = NULL; -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" e = _inner_error_; -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _inner_error_ = NULL; -#line 1385 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1385 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_assert_not_reached (); -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_error_free0 (e); #line 1489 "CheckerboardLayout.c" } - __finally239: -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" + __finally241: +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_clear_error (&_inner_error_); -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return NULL; #line 1500 "CheckerboardLayout.c" } @@ -2445,7 +2445,7 @@ void checkerboard_item_set_is_cursor (CheckerboardItem* self, gboolean is_cursor } -gboolean checkerboard_item_get_is_cusor (CheckerboardItem* self) { +gboolean checkerboard_item_get_is_cursor (CheckerboardItem* self) { gboolean result = FALSE; gboolean _tmp0_ = FALSE; #line 339 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" @@ -7296,15 +7296,15 @@ static gchar string_get (const gchar* self, glong index) { gchar result = '\0'; glong _tmp0_ = 0L; gchar _tmp1_ = '\0'; -#line 1086 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1086 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, '\0'); -#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = index; -#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = ((gchar*) self)[_tmp0_]; -#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp1_; -#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 7310 "CheckerboardLayout.c" } @@ -7317,37 +7317,37 @@ static glong string_strnlen (gchar* str, glong maxlen) { glong _tmp1_ = 0L; gchar* _tmp2_ = NULL; gchar* _tmp3_ = NULL; -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = str; -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = maxlen; -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = memchr (_tmp0_, 0, (gsize) _tmp1_); -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" end = _tmp2_; -#line 1296 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1296 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = end; -#line 1296 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1296 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp3_ == NULL) { #line 7333 "CheckerboardLayout.c" glong _tmp4_ = 0L; -#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = maxlen; -#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp4_; -#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 7341 "CheckerboardLayout.c" } else { gchar* _tmp5_ = NULL; gchar* _tmp6_ = NULL; -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = end; -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp6_ = str; -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = (glong) (_tmp5_ - _tmp6_); -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 7353 "CheckerboardLayout.c" } @@ -7367,112 +7367,112 @@ static gchar* string_substring (const gchar* self, glong offset, glong len) { glong _tmp20_ = 0L; glong _tmp21_ = 0L; gchar* _tmp22_ = NULL; -#line 1306 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1306 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, NULL); -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = offset; -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp1_ >= ((glong) 0)) { #line 7377 "CheckerboardLayout.c" glong _tmp2_ = 0L; -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = len; -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = _tmp2_ >= ((glong) 0); #line 7383 "CheckerboardLayout.c" } else { -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = FALSE; #line 7387 "CheckerboardLayout.c" } -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp0_) { #line 7391 "CheckerboardLayout.c" glong _tmp3_ = 0L; glong _tmp4_ = 0L; glong _tmp5_ = 0L; -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = offset; -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = len; -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = string_strnlen ((gchar*) self, _tmp3_ + _tmp4_); -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" string_length = _tmp5_; #line 7403 "CheckerboardLayout.c" } else { gint _tmp6_ = 0; gint _tmp7_ = 0; -#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp6_ = strlen (self); -#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp7_ = _tmp6_; -#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" string_length = (glong) _tmp7_; #line 7413 "CheckerboardLayout.c" } -#line 1315 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1315 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp8_ = offset; -#line 1315 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1315 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp8_ < ((glong) 0)) { #line 7419 "CheckerboardLayout.c" glong _tmp9_ = 0L; glong _tmp10_ = 0L; glong _tmp11_ = 0L; -#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp9_ = string_length; -#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp10_ = offset; -#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" offset = _tmp9_ + _tmp10_; -#line 1317 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1317 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp11_ = offset; -#line 1317 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1317 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (_tmp11_ >= ((glong) 0), NULL); #line 7433 "CheckerboardLayout.c" } else { glong _tmp12_ = 0L; glong _tmp13_ = 0L; -#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp12_ = offset; -#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp13_ = string_length; -#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (_tmp12_ <= _tmp13_, NULL); #line 7443 "CheckerboardLayout.c" } -#line 1321 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1321 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp14_ = len; -#line 1321 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1321 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp14_ < ((glong) 0)) { #line 7449 "CheckerboardLayout.c" glong _tmp15_ = 0L; glong _tmp16_ = 0L; -#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp15_ = string_length; -#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp16_ = offset; -#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" len = _tmp15_ - _tmp16_; #line 7458 "CheckerboardLayout.c" } -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp17_ = offset; -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp18_ = len; -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp19_ = string_length; -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail ((_tmp17_ + _tmp18_) <= _tmp19_, NULL); -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp20_ = offset; -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp21_ = len; -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp22_ = g_strndup (((gchar*) self) + _tmp20_, (gsize) _tmp21_); -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp22_; -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 7478 "CheckerboardLayout.c" } diff --git a/src/CheckerboardLayout.vala b/src/CheckerboardLayout.vala index f2acc30..5a672f3 100644 --- a/src/CheckerboardLayout.vala +++ b/src/CheckerboardLayout.vala @@ -336,7 +336,7 @@ public abstract class CheckerboardItem : ThumbnailView { this.is_cursor = is_cursor; } - public bool get_is_cusor() { + public bool get_is_cursor() { return is_cursor; } diff --git a/src/CollectionPage.c b/src/CollectionPage.c index c778508..afd1659 100644 --- a/src/CollectionPage.c +++ b/src/CollectionPage.c @@ -1,4 +1,4 @@ -/* CollectionPage.c generated by valac 0.32.1, the Vala compiler +/* CollectionPage.c generated by valac 0.34.4, the Vala compiler * generated from CollectionPage.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -12,9 +12,9 @@ #include <gtk/gtk.h> #include <stdlib.h> #include <string.h> +#include <gio/gio.h> #include <gee.h> #include <gdk/gdk.h> -#include <gio/gio.h> #include <float.h> #include <math.h> #include <glib/gi18n-lib.h> @@ -311,16 +311,6 @@ typedef struct _MediaPageZoomSliderAssembly MediaPageZoomSliderAssembly; typedef struct _MediaPageZoomSliderAssemblyClass MediaPageZoomSliderAssemblyClass; #define _injection_group_unref0(var) ((var == NULL) ? NULL : (var = (injection_group_unref (var), NULL))) -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; - #define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) #define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) #define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) @@ -341,6 +331,16 @@ typedef struct _ThumbnailSourceClass ThumbnailSourceClass; typedef struct _MediaSource MediaSource; typedef struct _MediaSourceClass MediaSourceClass; +#define TYPE_APP_WINDOW (app_window_get_type ()) +#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) +#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) +#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) +#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) +#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) + +typedef struct _AppWindow AppWindow; +typedef struct _AppWindowClass AppWindowClass; + #define TYPE_VIDEO_SOURCE (video_source_get_type ()) #define VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_SOURCE, VideoSource)) #define VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_SOURCE, VideoSourceClass)) @@ -750,7 +750,8 @@ struct _PageClass { void (*ready) (Page* self); void (*switching_to_fullscreen) (Page* self, FullscreenWindow* fsw); void (*returning_from_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*add_actions) (Page* self); + void (*add_actions) (Page* self, GActionMap* map); + void (*remove_actions) (Page* self, GActionMap* map); void (*init_collect_ui_filenames) (Page* self, GeeList* ui_filenames); InjectionGroup** (*init_collect_injection_groups) (Page* self, int* result_length1); void (*init_actions) (Page* self, gint selected_count, gint count); @@ -1160,10 +1161,10 @@ static InjectionGroup* collection_page_create_photos_menu_date_injectables (void static InjectionGroup* collection_page_create_photos_menu_externals_injectables (void); static void collection_page_real_init_collect_ui_filenames (Page* base, GeeList* ui_filenames); void page_init_collect_ui_filenames (Page* self, GeeList* ui_filenames); -static void collection_page_real_add_actions (Page* base); -void page_add_actions (Page* self); -GType app_window_get_type (void) G_GNUC_CONST; -AppWindow* app_window_get_instance (void); +static void collection_page_real_add_actions (Page* base, GActionMap* map); +void page_add_actions (Page* self, GActionMap* map); +static void collection_page_real_remove_actions (Page* base, GActionMap* map); +void page_remove_actions (Page* self, GActionMap* map); static InjectionGroup** collection_page_real_init_collect_injection_groups (Page* base, int* result_length1); InjectionGroup** page_init_collect_injection_groups (Page* self, int* result_length1); static void _vala_array_add76 (InjectionGroup*** array, int* length, int* size, InjectionGroup* value); @@ -1189,6 +1190,8 @@ void page_set_action_short_label (Page* self, const gchar* name, const gchar* sh #define RESOURCES_PUBLISH_LABEL _ ("Publish") void page_set_action_important (Page* self, const gchar* name, gboolean important); static void collection_page_real_update_actions (Page* base, gint selected_count, gint count); +GType app_window_get_type (void) G_GNUC_CONST; +AppWindow* app_window_get_instance (void); Page* page_window_get_current_page (PageWindow* self); void page_update_actions (Page* self, gint selected_count, gint count); DataView* view_collection_get_selected_at (ViewCollection* self, gint index); @@ -1383,7 +1386,7 @@ static const GActionEntry COLLECTION_PAGE_entries[16] = {{"Print", _collection_p static gpointer _g_object_ref0 (gpointer self) { #line 11 "/home/jens/Source/shotwell/src/CollectionPage.vala" return self ? g_object_ref (self) : NULL; -#line 1387 "CollectionPage.c" +#line 1390 "CollectionPage.c" } @@ -1405,14 +1408,14 @@ CollectionViewManager* collection_view_manager_construct (GType object_type, Col self->priv->page = _tmp1_; #line 10 "/home/jens/Source/shotwell/src/CollectionPage.vala" return self; -#line 1409 "CollectionPage.c" +#line 1412 "CollectionPage.c" } CollectionViewManager* collection_view_manager_new (CollectionPage* page) { #line 10 "/home/jens/Source/shotwell/src/CollectionPage.vala" return collection_view_manager_construct (TYPE_COLLECTION_VIEW_MANAGER, page); -#line 1416 "CollectionPage.c" +#line 1419 "CollectionPage.c" } @@ -1436,7 +1439,7 @@ static DataView* collection_view_manager_real_create_view (ViewManager* base, Da result = _tmp2_; #line 15 "/home/jens/Source/shotwell/src/CollectionPage.vala" return result; -#line 1440 "CollectionPage.c" +#line 1443 "CollectionPage.c" } @@ -1449,14 +1452,14 @@ static void collection_view_manager_class_init (CollectionViewManagerClass * kla g_type_class_add_private (klass, sizeof (CollectionViewManagerPrivate)); #line 7 "/home/jens/Source/shotwell/src/CollectionPage.vala" ((ViewManagerClass *) klass)->create_view = collection_view_manager_real_create_view; -#line 1453 "CollectionPage.c" +#line 1456 "CollectionPage.c" } static void collection_view_manager_instance_init (CollectionViewManager * self) { #line 7 "/home/jens/Source/shotwell/src/CollectionPage.vala" self->priv = COLLECTION_VIEW_MANAGER_GET_PRIVATE (self); -#line 1460 "CollectionPage.c" +#line 1463 "CollectionPage.c" } @@ -1468,7 +1471,7 @@ static void collection_view_manager_finalize (ViewManager* obj) { _g_object_unref0 (self->priv->page); #line 7 "/home/jens/Source/shotwell/src/CollectionPage.vala" VIEW_MANAGER_CLASS (collection_view_manager_parent_class)->finalize (obj); -#line 1472 "CollectionPage.c" +#line 1475 "CollectionPage.c" } @@ -1487,126 +1490,126 @@ GType collection_view_manager_get_type (void) { static void _collection_page_on_print_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 154 "/home/jens/Source/shotwell/src/CollectionPage.vala" collection_page_on_print ((CollectionPage*) self); -#line 1491 "CollectionPage.c" +#line 1494 "CollectionPage.c" } static void _collection_page_on_publish_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 154 "/home/jens/Source/shotwell/src/CollectionPage.vala" collection_page_on_publish ((CollectionPage*) self); -#line 1498 "CollectionPage.c" +#line 1501 "CollectionPage.c" } static void _collection_page_on_rotate_clockwise_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 154 "/home/jens/Source/shotwell/src/CollectionPage.vala" collection_page_on_rotate_clockwise ((CollectionPage*) self); -#line 1505 "CollectionPage.c" +#line 1508 "CollectionPage.c" } static void _collection_page_on_rotate_counterclockwise_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 154 "/home/jens/Source/shotwell/src/CollectionPage.vala" collection_page_on_rotate_counterclockwise ((CollectionPage*) self); -#line 1512 "CollectionPage.c" +#line 1515 "CollectionPage.c" } static void _collection_page_on_flip_horizontally_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 154 "/home/jens/Source/shotwell/src/CollectionPage.vala" collection_page_on_flip_horizontally ((CollectionPage*) self); -#line 1519 "CollectionPage.c" +#line 1522 "CollectionPage.c" } static void _collection_page_on_flip_vertically_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 154 "/home/jens/Source/shotwell/src/CollectionPage.vala" collection_page_on_flip_vertically ((CollectionPage*) self); -#line 1526 "CollectionPage.c" +#line 1529 "CollectionPage.c" } static void _collection_page_on_enhance_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 154 "/home/jens/Source/shotwell/src/CollectionPage.vala" collection_page_on_enhance ((CollectionPage*) self); -#line 1533 "CollectionPage.c" +#line 1536 "CollectionPage.c" } static void _collection_page_on_copy_adjustments_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 154 "/home/jens/Source/shotwell/src/CollectionPage.vala" collection_page_on_copy_adjustments ((CollectionPage*) self); -#line 1540 "CollectionPage.c" +#line 1543 "CollectionPage.c" } static void _collection_page_on_paste_adjustments_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 154 "/home/jens/Source/shotwell/src/CollectionPage.vala" collection_page_on_paste_adjustments ((CollectionPage*) self); -#line 1547 "CollectionPage.c" +#line 1550 "CollectionPage.c" } static void _collection_page_on_revert_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 154 "/home/jens/Source/shotwell/src/CollectionPage.vala" collection_page_on_revert ((CollectionPage*) self); -#line 1554 "CollectionPage.c" +#line 1557 "CollectionPage.c" } static void _collection_page_on_set_background_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 154 "/home/jens/Source/shotwell/src/CollectionPage.vala" collection_page_on_set_background ((CollectionPage*) self); -#line 1561 "CollectionPage.c" +#line 1564 "CollectionPage.c" } static void _collection_page_on_duplicate_photo_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 154 "/home/jens/Source/shotwell/src/CollectionPage.vala" collection_page_on_duplicate_photo ((CollectionPage*) self); -#line 1568 "CollectionPage.c" +#line 1571 "CollectionPage.c" } static void _collection_page_on_adjust_date_time_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 154 "/home/jens/Source/shotwell/src/CollectionPage.vala" collection_page_on_adjust_date_time ((CollectionPage*) self); -#line 1575 "CollectionPage.c" +#line 1578 "CollectionPage.c" } static void _collection_page_on_external_edit_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 154 "/home/jens/Source/shotwell/src/CollectionPage.vala" collection_page_on_external_edit ((CollectionPage*) self); -#line 1582 "CollectionPage.c" +#line 1585 "CollectionPage.c" } static void _collection_page_on_external_edit_raw_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 154 "/home/jens/Source/shotwell/src/CollectionPage.vala" collection_page_on_external_edit_raw ((CollectionPage*) self); -#line 1589 "CollectionPage.c" +#line 1592 "CollectionPage.c" } static void _collection_page_on_slideshow_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 154 "/home/jens/Source/shotwell/src/CollectionPage.vala" collection_page_on_slideshow ((CollectionPage*) self); -#line 1596 "CollectionPage.c" +#line 1599 "CollectionPage.c" } static void _collection_page_on_photos_altered_data_collection_items_altered (DataCollection* _sender, GeeMap* items, gpointer self) { #line 35 "/home/jens/Source/shotwell/src/CollectionPage.vala" collection_page_on_photos_altered ((CollectionPage*) self, items); -#line 1603 "CollectionPage.c" +#line 1606 "CollectionPage.c" } static void _collection_page_on_external_app_changed_configuration_facade_external_app_changed (ConfigurationFacade* _sender, gpointer self) { #line 43 "/home/jens/Source/shotwell/src/CollectionPage.vala" collection_page_on_external_app_changed ((CollectionPage*) self); -#line 1610 "CollectionPage.c" +#line 1613 "CollectionPage.c" } @@ -1647,7 +1650,7 @@ CollectionPage* collection_page_construct (GType object_type, const gchar* page_ _g_object_unref0 (_tmp4_); #line 32 "/home/jens/Source/shotwell/src/CollectionPage.vala" return self; -#line 1651 "CollectionPage.c" +#line 1654 "CollectionPage.c" } @@ -1663,7 +1666,7 @@ static GtkToolbar* collection_page_real_get_toolbar (Page* base) { _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->toolbar; #line 47 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp0_ == NULL) { -#line 1667 "CollectionPage.c" +#line 1670 "CollectionPage.c" GtkToolbar* _tmp1_ = NULL; GtkToolbar* _tmp2_ = NULL; GtkSeparatorToolItem* separator = NULL; @@ -1764,7 +1767,7 @@ static GtkToolbar* collection_page_real_get_toolbar (Page* base) { _g_object_unref0 (drawn_separator); #line 47 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (separator); -#line 1768 "CollectionPage.c" +#line 1771 "CollectionPage.c" } #line 68 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp20_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->toolbar; @@ -1774,7 +1777,7 @@ static GtkToolbar* collection_page_real_get_toolbar (Page* base) { result = _tmp21_; #line 68 "/home/jens/Source/shotwell/src/CollectionPage.vala" return result; -#line 1778 "CollectionPage.c" +#line 1781 "CollectionPage.c" } @@ -1812,7 +1815,7 @@ static InjectionGroup* collection_page_create_file_menu_injectables (void) { result = group; #line 80 "/home/jens/Source/shotwell/src/CollectionPage.vala" return result; -#line 1816 "CollectionPage.c" +#line 1819 "CollectionPage.c" } @@ -1833,7 +1836,7 @@ static InjectionGroup* collection_page_create_edit_menu_injectables (void) { result = group; #line 88 "/home/jens/Source/shotwell/src/CollectionPage.vala" return result; -#line 1837 "CollectionPage.c" +#line 1840 "CollectionPage.c" } @@ -1861,7 +1864,7 @@ static InjectionGroup* collection_page_create_view_menu_fullscreen_injectables ( result = group; #line 98 "/home/jens/Source/shotwell/src/CollectionPage.vala" return result; -#line 1865 "CollectionPage.c" +#line 1868 "CollectionPage.c" } @@ -1921,7 +1924,7 @@ static InjectionGroup* collection_page_create_photos_menu_edits_injectables (voi result = group; #line 123 "/home/jens/Source/shotwell/src/CollectionPage.vala" return result; -#line 1925 "CollectionPage.c" +#line 1928 "CollectionPage.c" } @@ -1942,7 +1945,7 @@ static InjectionGroup* collection_page_create_photos_menu_date_injectables (void result = group; #line 131 "/home/jens/Source/shotwell/src/CollectionPage.vala" return result; -#line 1946 "CollectionPage.c" +#line 1949 "CollectionPage.c" } @@ -1973,7 +1976,7 @@ static InjectionGroup* collection_page_create_photos_menu_externals_injectables result = group; #line 145 "/home/jens/Source/shotwell/src/CollectionPage.vala" return result; -#line 1977 "CollectionPage.c" +#line 1980 "CollectionPage.c" } @@ -1993,129 +1996,176 @@ static void collection_page_real_init_collect_ui_filenames (Page* base, GeeList* _tmp1_ = ui_filenames; #line 151 "/home/jens/Source/shotwell/src/CollectionPage.vala" gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection), "collection.ui"); -#line 1997 "CollectionPage.c" +#line 2000 "CollectionPage.c" } -static void collection_page_real_add_actions (Page* base) { +static void collection_page_real_add_actions (Page* base, GActionMap* map) { CollectionPage * self; - AppWindow* _tmp0_ = NULL; - AppWindow* _tmp1_ = NULL; + GActionMap* _tmp0_ = NULL; + GActionMap* _tmp1_ = NULL; #line 173 "/home/jens/Source/shotwell/src/CollectionPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage); +#line 173 "/home/jens/Source/shotwell/src/CollectionPage.vala" + g_return_if_fail (G_IS_ACTION_MAP (map)); #line 174 "/home/jens/Source/shotwell/src/CollectionPage.vala" - PAGE_CLASS (collection_page_parent_class)->add_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page)); -#line 176 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp0_ = app_window_get_instance (); -#line 176 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp1_ = _tmp0_; + _tmp0_ = map; +#line 174 "/home/jens/Source/shotwell/src/CollectionPage.vala" + PAGE_CLASS (collection_page_parent_class)->add_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), _tmp0_); #line 176 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_action_map_add_action_entries (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, g_action_map_get_type (), GActionMap), COLLECTION_PAGE_entries, G_N_ELEMENTS (COLLECTION_PAGE_entries), self); + _tmp1_ = map; #line 176 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp1_); -#line 2017 "CollectionPage.c" + g_action_map_add_action_entries (_tmp1_, COLLECTION_PAGE_entries, G_N_ELEMENTS (COLLECTION_PAGE_entries), self); +#line 2020 "CollectionPage.c" } -static void _vala_array_add76 (InjectionGroup*** array, int* length, int* size, InjectionGroup* value) { +static void collection_page_real_remove_actions (Page* base, GActionMap* map) { + CollectionPage * self; + GActionMap* _tmp0_ = NULL; +#line 179 "/home/jens/Source/shotwell/src/CollectionPage.vala" + self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage); +#line 179 "/home/jens/Source/shotwell/src/CollectionPage.vala" + g_return_if_fail (G_IS_ACTION_MAP (map)); +#line 180 "/home/jens/Source/shotwell/src/CollectionPage.vala" + _tmp0_ = map; +#line 180 "/home/jens/Source/shotwell/src/CollectionPage.vala" + PAGE_CLASS (collection_page_parent_class)->remove_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), _tmp0_); +#line 2035 "CollectionPage.c" + { + GActionEntry* entry_collection = NULL; + gint entry_collection_length1 = 0; + gint _entry_collection_size_ = 0; + gint entry_it = 0; +#line 181 "/home/jens/Source/shotwell/src/CollectionPage.vala" + entry_collection = COLLECTION_PAGE_entries; +#line 181 "/home/jens/Source/shotwell/src/CollectionPage.vala" + entry_collection_length1 = G_N_ELEMENTS (COLLECTION_PAGE_entries); +#line 181 "/home/jens/Source/shotwell/src/CollectionPage.vala" + for (entry_it = 0; entry_it < G_N_ELEMENTS (COLLECTION_PAGE_entries); entry_it = entry_it + 1) { +#line 2047 "CollectionPage.c" + GActionEntry entry = {0}; +#line 181 "/home/jens/Source/shotwell/src/CollectionPage.vala" + entry = entry_collection[entry_it]; +#line 2051 "CollectionPage.c" + { + GActionMap* _tmp1_ = NULL; + GActionEntry _tmp2_ = {0}; + const gchar* _tmp3_ = NULL; #line 182 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if ((*length) == (*size)) { + _tmp1_ = map; #line 182 "/home/jens/Source/shotwell/src/CollectionPage.vala" - *size = (*size) ? (2 * (*size)) : 4; + _tmp2_ = entry; +#line 182 "/home/jens/Source/shotwell/src/CollectionPage.vala" + _tmp3_ = _tmp2_.name; #line 182 "/home/jens/Source/shotwell/src/CollectionPage.vala" + g_action_map_remove_action (_tmp1_, _tmp3_); +#line 2064 "CollectionPage.c" + } + } + } +} + + +static void _vala_array_add76 (InjectionGroup*** array, int* length, int* size, InjectionGroup* value) { +#line 189 "/home/jens/Source/shotwell/src/CollectionPage.vala" + if ((*length) == (*size)) { +#line 189 "/home/jens/Source/shotwell/src/CollectionPage.vala" + *size = (*size) ? (2 * (*size)) : 4; +#line 189 "/home/jens/Source/shotwell/src/CollectionPage.vala" *array = g_renew (InjectionGroup*, *array, (*size) + 1); -#line 2028 "CollectionPage.c" +#line 2078 "CollectionPage.c" } -#line 182 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 189 "/home/jens/Source/shotwell/src/CollectionPage.vala" (*array)[(*length)++] = value; -#line 182 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 189 "/home/jens/Source/shotwell/src/CollectionPage.vala" (*array)[*length] = NULL; -#line 2034 "CollectionPage.c" +#line 2084 "CollectionPage.c" } static void _vala_array_add77 (InjectionGroup*** array, int* length, int* size, InjectionGroup* value) { -#line 183 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 190 "/home/jens/Source/shotwell/src/CollectionPage.vala" if ((*length) == (*size)) { -#line 183 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 190 "/home/jens/Source/shotwell/src/CollectionPage.vala" *size = (*size) ? (2 * (*size)) : 4; -#line 183 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 190 "/home/jens/Source/shotwell/src/CollectionPage.vala" *array = g_renew (InjectionGroup*, *array, (*size) + 1); -#line 2045 "CollectionPage.c" +#line 2095 "CollectionPage.c" } -#line 183 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 190 "/home/jens/Source/shotwell/src/CollectionPage.vala" (*array)[(*length)++] = value; -#line 183 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 190 "/home/jens/Source/shotwell/src/CollectionPage.vala" (*array)[*length] = NULL; -#line 2051 "CollectionPage.c" +#line 2101 "CollectionPage.c" } static void _vala_array_add78 (InjectionGroup*** array, int* length, int* size, InjectionGroup* value) { -#line 184 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 191 "/home/jens/Source/shotwell/src/CollectionPage.vala" if ((*length) == (*size)) { -#line 184 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 191 "/home/jens/Source/shotwell/src/CollectionPage.vala" *size = (*size) ? (2 * (*size)) : 4; -#line 184 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 191 "/home/jens/Source/shotwell/src/CollectionPage.vala" *array = g_renew (InjectionGroup*, *array, (*size) + 1); -#line 2062 "CollectionPage.c" +#line 2112 "CollectionPage.c" } -#line 184 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 191 "/home/jens/Source/shotwell/src/CollectionPage.vala" (*array)[(*length)++] = value; -#line 184 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 191 "/home/jens/Source/shotwell/src/CollectionPage.vala" (*array)[*length] = NULL; -#line 2068 "CollectionPage.c" +#line 2118 "CollectionPage.c" } static void _vala_array_add79 (InjectionGroup*** array, int* length, int* size, InjectionGroup* value) { -#line 185 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 192 "/home/jens/Source/shotwell/src/CollectionPage.vala" if ((*length) == (*size)) { -#line 185 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 192 "/home/jens/Source/shotwell/src/CollectionPage.vala" *size = (*size) ? (2 * (*size)) : 4; -#line 185 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 192 "/home/jens/Source/shotwell/src/CollectionPage.vala" *array = g_renew (InjectionGroup*, *array, (*size) + 1); -#line 2079 "CollectionPage.c" +#line 2129 "CollectionPage.c" } -#line 185 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 192 "/home/jens/Source/shotwell/src/CollectionPage.vala" (*array)[(*length)++] = value; -#line 185 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 192 "/home/jens/Source/shotwell/src/CollectionPage.vala" (*array)[*length] = NULL; -#line 2085 "CollectionPage.c" +#line 2135 "CollectionPage.c" } static void _vala_array_add80 (InjectionGroup*** array, int* length, int* size, InjectionGroup* value) { -#line 186 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 193 "/home/jens/Source/shotwell/src/CollectionPage.vala" if ((*length) == (*size)) { -#line 186 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 193 "/home/jens/Source/shotwell/src/CollectionPage.vala" *size = (*size) ? (2 * (*size)) : 4; -#line 186 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 193 "/home/jens/Source/shotwell/src/CollectionPage.vala" *array = g_renew (InjectionGroup*, *array, (*size) + 1); -#line 2096 "CollectionPage.c" +#line 2146 "CollectionPage.c" } -#line 186 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 193 "/home/jens/Source/shotwell/src/CollectionPage.vala" (*array)[(*length)++] = value; -#line 186 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 193 "/home/jens/Source/shotwell/src/CollectionPage.vala" (*array)[*length] = NULL; -#line 2102 "CollectionPage.c" +#line 2152 "CollectionPage.c" } static void _vala_array_add81 (InjectionGroup*** array, int* length, int* size, InjectionGroup* value) { -#line 187 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 194 "/home/jens/Source/shotwell/src/CollectionPage.vala" if ((*length) == (*size)) { -#line 187 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 194 "/home/jens/Source/shotwell/src/CollectionPage.vala" *size = (*size) ? (2 * (*size)) : 4; -#line 187 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 194 "/home/jens/Source/shotwell/src/CollectionPage.vala" *array = g_renew (InjectionGroup*, *array, (*size) + 1); -#line 2113 "CollectionPage.c" +#line 2163 "CollectionPage.c" } -#line 187 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 194 "/home/jens/Source/shotwell/src/CollectionPage.vala" (*array)[(*length)++] = value; -#line 187 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 194 "/home/jens/Source/shotwell/src/CollectionPage.vala" (*array)[*length] = NULL; -#line 2119 "CollectionPage.c" +#line 2169 "CollectionPage.c" } @@ -2147,79 +2197,79 @@ static InjectionGroup** collection_page_real_init_collect_injection_groups (Page InjectionGroup* _tmp13_ = NULL; InjectionGroup** _tmp14_ = NULL; gint _tmp14__length1 = 0; -#line 179 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 186 "/home/jens/Source/shotwell/src/CollectionPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage); -#line 180 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 187 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp1_ = PAGE_CLASS (collection_page_parent_class)->init_collect_injection_groups (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), &_tmp0_); -#line 180 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 187 "/home/jens/Source/shotwell/src/CollectionPage.vala" groups = _tmp1_; -#line 180 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 187 "/home/jens/Source/shotwell/src/CollectionPage.vala" groups_length1 = _tmp0_; -#line 180 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 187 "/home/jens/Source/shotwell/src/CollectionPage.vala" _groups_size_ = groups_length1; -#line 182 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 189 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp2_ = groups; -#line 182 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 189 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp2__length1 = groups_length1; -#line 182 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 189 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp3_ = collection_page_create_file_menu_injectables (); -#line 182 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 189 "/home/jens/Source/shotwell/src/CollectionPage.vala" _vala_array_add76 (&groups, &groups_length1, &_groups_size_, _tmp3_); -#line 183 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 190 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp4_ = groups; -#line 183 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 190 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp4__length1 = groups_length1; -#line 183 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 190 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp5_ = collection_page_create_edit_menu_injectables (); -#line 183 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 190 "/home/jens/Source/shotwell/src/CollectionPage.vala" _vala_array_add77 (&groups, &groups_length1, &_groups_size_, _tmp5_); -#line 184 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 191 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp6_ = groups; -#line 184 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 191 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp6__length1 = groups_length1; -#line 184 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 191 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp7_ = collection_page_create_view_menu_fullscreen_injectables (); -#line 184 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 191 "/home/jens/Source/shotwell/src/CollectionPage.vala" _vala_array_add78 (&groups, &groups_length1, &_groups_size_, _tmp7_); -#line 185 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 192 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp8_ = groups; -#line 185 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 192 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp8__length1 = groups_length1; -#line 185 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 192 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp9_ = collection_page_create_photos_menu_edits_injectables (); -#line 185 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 192 "/home/jens/Source/shotwell/src/CollectionPage.vala" _vala_array_add79 (&groups, &groups_length1, &_groups_size_, _tmp9_); -#line 186 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 193 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp10_ = groups; -#line 186 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 193 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp10__length1 = groups_length1; -#line 186 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 193 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp11_ = collection_page_create_photos_menu_date_injectables (); -#line 186 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 193 "/home/jens/Source/shotwell/src/CollectionPage.vala" _vala_array_add80 (&groups, &groups_length1, &_groups_size_, _tmp11_); -#line 187 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 194 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp12_ = groups; -#line 187 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 194 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp12__length1 = groups_length1; -#line 187 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 194 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp13_ = collection_page_create_photos_menu_externals_injectables (); -#line 187 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 194 "/home/jens/Source/shotwell/src/CollectionPage.vala" _vala_array_add81 (&groups, &groups_length1, &_groups_size_, _tmp13_); -#line 189 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 196 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp14_ = groups; -#line 189 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 196 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp14__length1 = groups_length1; -#line 189 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 196 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (result_length1) { -#line 189 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 196 "/home/jens/Source/shotwell/src/CollectionPage.vala" *result_length1 = _tmp14__length1; -#line 2217 "CollectionPage.c" +#line 2267 "CollectionPage.c" } -#line 189 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 196 "/home/jens/Source/shotwell/src/CollectionPage.vala" result = _tmp14_; -#line 189 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 196 "/home/jens/Source/shotwell/src/CollectionPage.vala" return result; -#line 2223 "CollectionPage.c" +#line 2273 "CollectionPage.c" } @@ -2231,29 +2281,29 @@ static gboolean collection_page_selection_has_video (CollectionPage* self) { GeeCollection* _tmp3_ = NULL; gboolean _tmp4_ = FALSE; gboolean _tmp5_ = FALSE; -#line 192 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 199 "/home/jens/Source/shotwell/src/CollectionPage.vala" g_return_val_if_fail (IS_COLLECTION_PAGE (self), FALSE); -#line 193 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 193 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp1_ = _tmp0_; -#line 193 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp2_ = view_collection_get_selected_sources (_tmp1_); -#line 193 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection); -#line 193 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp4_ = media_source_collection_has_video (_tmp3_); -#line 193 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp5_ = _tmp4_; -#line 193 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp3_); -#line 193 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp1_); -#line 193 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala" result = _tmp5_; -#line 193 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala" return result; -#line 2257 "CollectionPage.c" +#line 2307 "CollectionPage.c" } @@ -2265,29 +2315,29 @@ static gboolean collection_page_page_has_photo (CollectionPage* self) { GeeCollection* _tmp3_ = NULL; gboolean _tmp4_ = FALSE; gboolean _tmp5_ = FALSE; -#line 196 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 203 "/home/jens/Source/shotwell/src/CollectionPage.vala" g_return_val_if_fail (IS_COLLECTION_PAGE (self), FALSE); -#line 197 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 204 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 197 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 204 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp1_ = _tmp0_; -#line 197 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 204 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp2_ = view_collection_get_sources (_tmp1_); -#line 197 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 204 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection); -#line 197 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 204 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp4_ = media_source_collection_has_photo (_tmp3_); -#line 197 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 204 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp5_ = _tmp4_; -#line 197 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 204 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp3_); -#line 197 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 204 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp1_); -#line 197 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 204 "/home/jens/Source/shotwell/src/CollectionPage.vala" result = _tmp5_; -#line 197 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 204 "/home/jens/Source/shotwell/src/CollectionPage.vala" return result; -#line 2291 "CollectionPage.c" +#line 2341 "CollectionPage.c" } @@ -2299,29 +2349,29 @@ static gboolean collection_page_selection_has_photo (CollectionPage* self) { GeeCollection* _tmp3_ = NULL; gboolean _tmp4_ = FALSE; gboolean _tmp5_ = FALSE; -#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 207 "/home/jens/Source/shotwell/src/CollectionPage.vala" g_return_val_if_fail (IS_COLLECTION_PAGE (self), FALSE); -#line 201 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 208 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 201 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 208 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp1_ = _tmp0_; -#line 201 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 208 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp2_ = view_collection_get_selected_sources (_tmp1_); -#line 201 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 208 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection); -#line 201 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 208 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp4_ = media_source_collection_has_photo (_tmp3_); -#line 201 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 208 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp5_ = _tmp4_; -#line 201 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 208 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp3_); -#line 201 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 208 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp1_); -#line 201 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 208 "/home/jens/Source/shotwell/src/CollectionPage.vala" result = _tmp5_; -#line 201 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 208 "/home/jens/Source/shotwell/src/CollectionPage.vala" return result; -#line 2325 "CollectionPage.c" +#line 2375 "CollectionPage.c" } @@ -2329,29 +2379,29 @@ static void collection_page_real_init_actions (Page* base, gint selected_count, CollectionPage * self; gint _tmp0_ = 0; gint _tmp1_ = 0; -#line 204 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 211 "/home/jens/Source/shotwell/src/CollectionPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage); -#line 205 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 212 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp0_ = selected_count; -#line 205 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 212 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp1_ = count; -#line 205 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 212 "/home/jens/Source/shotwell/src/CollectionPage.vala" PAGE_CLASS (collection_page_parent_class)->init_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), _tmp0_, _tmp1_); -#line 207 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 214 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_set_action_short_label (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateClockwise", RESOURCES_ROTATE_CW_LABEL); -#line 208 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 215 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_set_action_short_label (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateCounterclockwise", RESOURCES_ROTATE_CCW_LABEL); -#line 209 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 216 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_set_action_short_label (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Publish", RESOURCES_PUBLISH_LABEL); -#line 211 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 218 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_set_action_important (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateClockwise", TRUE); -#line 212 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 219 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_set_action_important (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateCounterclockwise", TRUE); -#line 213 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 220 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_set_action_important (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Enhance", TRUE); -#line 214 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 221 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_set_action_important (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Publish", TRUE); -#line 2355 "CollectionPage.c" +#line 2405 "CollectionPage.c" } @@ -2413,49 +2463,49 @@ static void collection_page_real_update_actions (Page* base, gint selected_count gboolean _tmp92_ = FALSE; gboolean _tmp93_ = FALSE; gboolean _tmp95_ = FALSE; -#line 217 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 224 "/home/jens/Source/shotwell/src/CollectionPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage); -#line 219 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 226 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp0_ = app_window_get_instance (); -#line 219 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 226 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp1_ = _tmp0_; -#line 219 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 226 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp2_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE_WINDOW, PageWindow)); -#line 219 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 226 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp3_ = _tmp2_; -#line 219 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 226 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp4_ = _tmp3_ != G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page); -#line 219 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 226 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp3_); -#line 219 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 226 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp1_); -#line 219 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 226 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp4_) { -#line 220 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 227 "/home/jens/Source/shotwell/src/CollectionPage.vala" return; -#line 2437 "CollectionPage.c" +#line 2487 "CollectionPage.c" } -#line 223 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 230 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp5_ = selected_count; -#line 223 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 230 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp6_ = count; -#line 223 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 230 "/home/jens/Source/shotwell/src/CollectionPage.vala" PAGE_CLASS (collection_page_parent_class)->update_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), _tmp5_, _tmp6_); -#line 225 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 232 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp7_ = selected_count; -#line 225 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 232 "/home/jens/Source/shotwell/src/CollectionPage.vala" one_selected = _tmp7_ == 1; -#line 226 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 233 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp8_ = selected_count; -#line 226 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 233 "/home/jens/Source/shotwell/src/CollectionPage.vala" has_selected = _tmp8_ > 0; -#line 228 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 235 "/home/jens/Source/shotwell/src/CollectionPage.vala" primary_is_video = FALSE; -#line 229 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 236 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp9_ = has_selected; -#line 229 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 236 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp9_) { -#line 2459 "CollectionPage.c" +#line 2509 "CollectionPage.c" ViewCollection* _tmp10_ = NULL; ViewCollection* _tmp11_ = NULL; DataView* _tmp12_ = NULL; @@ -2463,116 +2513,116 @@ static void collection_page_real_update_actions (Page* base, gint selected_count DataSource* _tmp14_ = NULL; DataSource* _tmp15_ = NULL; gboolean _tmp16_ = FALSE; -#line 230 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 237 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp10_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 230 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 237 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp11_ = _tmp10_; -#line 230 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 237 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp12_ = view_collection_get_selected_at (_tmp11_, 0); -#line 230 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 237 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp13_ = _tmp12_; -#line 230 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 237 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp14_ = data_view_get_source (_tmp13_); -#line 230 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 237 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp15_ = _tmp14_; -#line 230 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 237 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp16_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp15_, TYPE_VIDEO); -#line 230 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 237 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp15_); -#line 230 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 237 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp13_); -#line 230 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 237 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp11_); -#line 230 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 237 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp16_) { -#line 231 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 238 "/home/jens/Source/shotwell/src/CollectionPage.vala" primary_is_video = TRUE; -#line 2491 "CollectionPage.c" +#line 2541 "CollectionPage.c" } } -#line 233 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 240 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp17_ = collection_page_selection_has_video (self); -#line 233 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 240 "/home/jens/Source/shotwell/src/CollectionPage.vala" selection_has_videos = _tmp17_; -#line 234 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 241 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp18_ = collection_page_page_has_photo (self); -#line 234 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 241 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_has_photos = _tmp18_; -#line 238 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 245 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp20_ = has_selected; -#line 238 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 245 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp20_) { -#line 2506 "CollectionPage.c" +#line 2556 "CollectionPage.c" gboolean _tmp21_ = FALSE; -#line 238 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 245 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp21_ = selection_has_videos; -#line 238 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 245 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp19_ = !_tmp21_; -#line 2512 "CollectionPage.c" +#line 2562 "CollectionPage.c" } else { -#line 238 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 245 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp19_ = FALSE; -#line 2516 "CollectionPage.c" +#line 2566 "CollectionPage.c" } -#line 238 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 245 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Duplicate", _tmp19_); -#line 239 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 246 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp22_ = primary_is_video; -#line 239 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 246 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_set_action_visible (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ExternalEdit", !_tmp22_); -#line 241 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 248 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp24_ = one_selected; -#line 241 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 248 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp24_) { -#line 2528 "CollectionPage.c" +#line 2578 "CollectionPage.c" ConfigFacade* _tmp25_ = NULL; ConfigFacade* _tmp26_ = NULL; gchar* _tmp27_ = NULL; gchar* _tmp28_ = NULL; gboolean _tmp29_ = FALSE; -#line 241 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 248 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp25_ = config_facade_get_instance (); -#line 241 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 248 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp26_ = _tmp25_; -#line 241 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 248 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp27_ = configuration_facade_get_external_photo_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 241 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 248 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp28_ = _tmp27_; -#line 241 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 248 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp29_ = is_string_empty (_tmp28_); -#line 241 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 248 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp23_ = !_tmp29_; -#line 241 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 248 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_free0 (_tmp28_); -#line 241 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 248 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp26_); -#line 2550 "CollectionPage.c" +#line 2600 "CollectionPage.c" } else { -#line 241 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 248 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp23_ = FALSE; -#line 2554 "CollectionPage.c" +#line 2604 "CollectionPage.c" } -#line 240 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 247 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ExternalEdit", _tmp23_); -#line 243 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 250 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp33_ = one_selected; -#line 243 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 250 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp33_) { -#line 2562 "CollectionPage.c" +#line 2612 "CollectionPage.c" gboolean _tmp34_ = FALSE; -#line 243 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 250 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp34_ = primary_is_video; -#line 243 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 250 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp32_ = !_tmp34_; -#line 2568 "CollectionPage.c" +#line 2618 "CollectionPage.c" } else { -#line 243 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 250 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp32_ = FALSE; -#line 2572 "CollectionPage.c" +#line 2622 "CollectionPage.c" } -#line 243 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 250 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp32_) { -#line 2576 "CollectionPage.c" +#line 2626 "CollectionPage.c" ViewCollection* _tmp35_ = NULL; ViewCollection* _tmp36_ = NULL; DataView* _tmp37_ = NULL; @@ -2580,121 +2630,121 @@ static void collection_page_real_update_actions (Page* base, gint selected_count DataSource* _tmp39_ = NULL; Photo* _tmp40_ = NULL; PhotoFileFormat _tmp41_ = 0; -#line 244 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp35_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 244 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp36_ = _tmp35_; -#line 244 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp37_ = view_collection_get_selected_at (_tmp36_, 0); -#line 244 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp38_ = _tmp37_; -#line 244 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp39_ = data_view_get_source (_tmp38_); -#line 244 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp40_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, TYPE_PHOTO, Photo); -#line 244 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp41_ = photo_get_master_file_format (_tmp40_); -#line 244 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp31_ = _tmp41_ == PHOTO_FILE_FORMAT_RAW; -#line 244 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp40_); -#line 244 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp38_); -#line 244 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp36_); -#line 2606 "CollectionPage.c" +#line 2656 "CollectionPage.c" } else { -#line 243 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 250 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp31_ = FALSE; -#line 2610 "CollectionPage.c" +#line 2660 "CollectionPage.c" } -#line 243 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 250 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp31_) { -#line 2614 "CollectionPage.c" +#line 2664 "CollectionPage.c" ConfigFacade* _tmp42_ = NULL; ConfigFacade* _tmp43_ = NULL; gchar* _tmp44_ = NULL; gchar* _tmp45_ = NULL; gboolean _tmp46_ = FALSE; -#line 246 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 253 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp42_ = config_facade_get_instance (); -#line 246 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 253 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp43_ = _tmp42_; -#line 246 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 253 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp44_ = configuration_facade_get_external_raw_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 246 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 253 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp45_ = _tmp44_; -#line 246 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 253 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp46_ = is_string_empty (_tmp45_); -#line 246 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 253 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp30_ = !_tmp46_; -#line 246 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 253 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_free0 (_tmp45_); -#line 246 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 253 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp43_); -#line 2636 "CollectionPage.c" +#line 2686 "CollectionPage.c" } else { -#line 243 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 250 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp30_ = FALSE; -#line 2640 "CollectionPage.c" +#line 2690 "CollectionPage.c" } -#line 242 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_set_action_visible (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ExternalEditRAW", _tmp30_); -#line 247 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp48_ = selection_has_videos; -#line 247 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (!_tmp48_) { -#line 2648 "CollectionPage.c" +#line 2698 "CollectionPage.c" gboolean _tmp49_ = FALSE; -#line 247 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp49_ = collection_page_can_revert_selected (self); -#line 247 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp47_ = _tmp49_; -#line 2654 "CollectionPage.c" +#line 2704 "CollectionPage.c" } else { -#line 247 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp47_ = FALSE; -#line 2658 "CollectionPage.c" +#line 2708 "CollectionPage.c" } -#line 247 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Revert", _tmp47_); -#line 248 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 255 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp51_ = selection_has_videos; -#line 248 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 255 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (!_tmp51_) { -#line 2666 "CollectionPage.c" +#line 2716 "CollectionPage.c" gboolean _tmp52_ = FALSE; -#line 248 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 255 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp52_ = has_selected; -#line 248 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 255 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp50_ = _tmp52_; -#line 2672 "CollectionPage.c" +#line 2722 "CollectionPage.c" } else { -#line 248 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 255 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp50_ = FALSE; -#line 2676 "CollectionPage.c" +#line 2726 "CollectionPage.c" } -#line 248 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 255 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Enhance", _tmp50_); -#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 256 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp55_ = selection_has_videos; -#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 256 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (!_tmp55_) { -#line 2684 "CollectionPage.c" +#line 2734 "CollectionPage.c" gboolean _tmp56_ = FALSE; -#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 256 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp56_ = one_selected; -#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 256 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp54_ = _tmp56_; -#line 2690 "CollectionPage.c" +#line 2740 "CollectionPage.c" } else { -#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 256 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp54_ = FALSE; -#line 2694 "CollectionPage.c" +#line 2744 "CollectionPage.c" } -#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 256 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp54_) { -#line 2698 "CollectionPage.c" +#line 2748 "CollectionPage.c" ViewCollection* _tmp57_ = NULL; ViewCollection* _tmp58_ = NULL; DataView* _tmp59_ = NULL; @@ -2702,259 +2752,259 @@ static void collection_page_real_update_actions (Page* base, gint selected_count DataSource* _tmp61_ = NULL; Photo* _tmp62_ = NULL; gboolean _tmp63_ = FALSE; -#line 250 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp57_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 250 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp58_ = _tmp57_; -#line 250 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp59_ = view_collection_get_selected_at (_tmp58_, 0); -#line 250 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp60_ = _tmp59_; -#line 250 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp61_ = data_view_get_source (_tmp60_); -#line 250 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp62_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, TYPE_PHOTO, Photo); -#line 250 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp63_ = photo_has_color_adjustments (_tmp62_); -#line 250 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp53_ = _tmp63_; -#line 250 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp62_); -#line 250 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp60_); -#line 250 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp58_); -#line 2728 "CollectionPage.c" +#line 2778 "CollectionPage.c" } else { -#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 256 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp53_ = FALSE; -#line 2732 "CollectionPage.c" +#line 2782 "CollectionPage.c" } -#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 256 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CopyColorAdjustments", _tmp53_); -#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 258 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp66_ = selection_has_videos; -#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 258 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (!_tmp66_) { -#line 2740 "CollectionPage.c" +#line 2790 "CollectionPage.c" gboolean _tmp67_ = FALSE; -#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 258 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp67_ = has_selected; -#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 258 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp65_ = _tmp67_; -#line 2746 "CollectionPage.c" +#line 2796 "CollectionPage.c" } else { -#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 258 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp65_ = FALSE; -#line 2750 "CollectionPage.c" +#line 2800 "CollectionPage.c" } -#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 258 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp65_) { -#line 2754 "CollectionPage.c" +#line 2804 "CollectionPage.c" gboolean _tmp68_ = FALSE; -#line 252 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 259 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp68_ = pixel_transformation_bundle_has_copied_color_adjustments (); -#line 252 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 259 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp64_ = _tmp68_; -#line 2760 "CollectionPage.c" +#line 2810 "CollectionPage.c" } else { -#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 258 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp64_ = FALSE; -#line 2764 "CollectionPage.c" +#line 2814 "CollectionPage.c" } -#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 258 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "PasteColorAdjustments", _tmp64_); -#line 253 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 260 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp70_ = selection_has_videos; -#line 253 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 260 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (!_tmp70_) { -#line 2772 "CollectionPage.c" +#line 2822 "CollectionPage.c" gboolean _tmp71_ = FALSE; -#line 253 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 260 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp71_ = has_selected; -#line 253 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 260 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp69_ = _tmp71_; -#line 2778 "CollectionPage.c" +#line 2828 "CollectionPage.c" } else { -#line 253 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 260 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp69_ = FALSE; -#line 2782 "CollectionPage.c" +#line 2832 "CollectionPage.c" } -#line 253 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 260 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateClockwise", _tmp69_); -#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 261 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp73_ = selection_has_videos; -#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 261 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (!_tmp73_) { -#line 2790 "CollectionPage.c" +#line 2840 "CollectionPage.c" gboolean _tmp74_ = FALSE; -#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 261 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp74_ = has_selected; -#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 261 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp72_ = _tmp74_; -#line 2796 "CollectionPage.c" +#line 2846 "CollectionPage.c" } else { -#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 261 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp72_ = FALSE; -#line 2800 "CollectionPage.c" +#line 2850 "CollectionPage.c" } -#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 261 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateCounterclockwise", _tmp72_); -#line 255 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 262 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp76_ = selection_has_videos; -#line 255 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 262 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (!_tmp76_) { -#line 2808 "CollectionPage.c" +#line 2858 "CollectionPage.c" gboolean _tmp77_ = FALSE; -#line 255 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 262 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp77_ = has_selected; -#line 255 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 262 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp75_ = _tmp77_; -#line 2814 "CollectionPage.c" +#line 2864 "CollectionPage.c" } else { -#line 255 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 262 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp75_ = FALSE; -#line 2818 "CollectionPage.c" +#line 2868 "CollectionPage.c" } -#line 255 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 262 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "FlipHorizontally", _tmp75_); -#line 256 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 263 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp79_ = selection_has_videos; -#line 256 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 263 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (!_tmp79_) { -#line 2826 "CollectionPage.c" +#line 2876 "CollectionPage.c" gboolean _tmp80_ = FALSE; -#line 256 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 263 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp80_ = has_selected; -#line 256 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 263 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp78_ = _tmp80_; -#line 2832 "CollectionPage.c" +#line 2882 "CollectionPage.c" } else { -#line 256 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 263 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp78_ = FALSE; -#line 2836 "CollectionPage.c" +#line 2886 "CollectionPage.c" } -#line 256 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 263 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "FlipVertically", _tmp78_); -#line 260 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 267 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp81_ = has_selected; -#line 260 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 267 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "AdjustDateTime", _tmp81_); -#line 262 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 269 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp82_ = has_selected; -#line 262 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 269 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "NewEvent", _tmp82_); -#line 263 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 270 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp83_ = has_selected; -#line 263 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 270 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "AddTags", _tmp83_); -#line 264 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 271 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp84_ = one_selected; -#line 264 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 271 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ModifyTags", _tmp84_); -#line 265 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 272 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp86_ = page_has_photos; -#line 265 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 272 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp86_) { -#line 2860 "CollectionPage.c" +#line 2910 "CollectionPage.c" gboolean _tmp87_ = FALSE; -#line 265 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 272 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp87_ = primary_is_video; -#line 265 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 272 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp85_ = !_tmp87_; -#line 2866 "CollectionPage.c" +#line 2916 "CollectionPage.c" } else { -#line 265 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 272 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp85_ = FALSE; -#line 2870 "CollectionPage.c" +#line 2920 "CollectionPage.c" } -#line 265 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 272 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Slideshow", _tmp85_); -#line 266 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 273 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp89_ = selection_has_videos; -#line 266 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 273 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (!_tmp89_) { -#line 2878 "CollectionPage.c" +#line 2928 "CollectionPage.c" gboolean _tmp90_ = FALSE; -#line 266 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 273 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp90_ = has_selected; -#line 266 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 273 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp88_ = _tmp90_; -#line 2884 "CollectionPage.c" +#line 2934 "CollectionPage.c" } else { -#line 266 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 273 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp88_ = FALSE; -#line 2888 "CollectionPage.c" +#line 2938 "CollectionPage.c" } -#line 266 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 273 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Print", _tmp88_); -#line 267 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 274 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp91_ = has_selected; -#line 267 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 274 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Publish", _tmp91_); -#line 269 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 276 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp93_ = selection_has_videos; -#line 269 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 276 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (!_tmp93_) { -#line 2900 "CollectionPage.c" +#line 2950 "CollectionPage.c" gboolean _tmp94_ = FALSE; -#line 269 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 276 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp94_ = has_selected; -#line 269 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 276 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp92_ = _tmp94_; -#line 2906 "CollectionPage.c" +#line 2956 "CollectionPage.c" } else { -#line 269 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 276 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp92_ = FALSE; -#line 2910 "CollectionPage.c" +#line 2960 "CollectionPage.c" } -#line 269 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 276 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SetBackground", _tmp92_); -#line 270 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 277 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp95_ = has_selected; -#line 270 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 277 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp95_) { -#line 2918 "CollectionPage.c" +#line 2968 "CollectionPage.c" const gchar* _tmp96_ = NULL; gboolean _tmp97_ = FALSE; gchar* label = NULL; gchar* _tmp98_ = NULL; const gchar* _tmp99_ = NULL; -#line 271 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_debug ("CollectionPage.vala:271: Setting action label for SetBackground..."); -#line 272 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 278 "/home/jens/Source/shotwell/src/CollectionPage.vala" + g_debug ("CollectionPage.vala:278: Setting action label for SetBackground..."); +#line 279 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp97_ = one_selected; -#line 272 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 279 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp97_) { -#line 273 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 280 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp96_ = RESOURCES_SET_BACKGROUND_MENU; -#line 2932 "CollectionPage.c" +#line 2982 "CollectionPage.c" } else { -#line 274 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 281 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp96_ = RESOURCES_SET_BACKGROUND_SLIDESHOW_MENU; -#line 2936 "CollectionPage.c" +#line 2986 "CollectionPage.c" } -#line 272 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 279 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp98_ = g_strdup (_tmp96_); -#line 272 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 279 "/home/jens/Source/shotwell/src/CollectionPage.vala" label = _tmp98_; -#line 275 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 282 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp99_ = label; -#line 275 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 282 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_update_menu_item_label (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SetBackground", _tmp99_); -#line 270 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 277 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_free0 (label); -#line 2948 "CollectionPage.c" +#line 2998 "CollectionPage.c" } } static void collection_page_on_photos_altered (CollectionPage* self, GeeMap* altered) { -#line 279 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 286 "/home/jens/Source/shotwell/src/CollectionPage.vala" g_return_if_fail (IS_COLLECTION_PAGE (self)); -#line 279 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 286 "/home/jens/Source/shotwell/src/CollectionPage.vala" g_return_if_fail (GEE_IS_MAP (altered)); -#line 2958 "CollectionPage.c" +#line 3008 "CollectionPage.c" { GeeIterator* _object_it = NULL; GeeMap* _tmp0_ = NULL; @@ -2963,25 +3013,25 @@ static void collection_page_on_photos_altered (CollectionPage* self, GeeMap* alt GeeSet* _tmp3_ = NULL; GeeIterator* _tmp4_ = NULL; GeeIterator* _tmp5_ = NULL; -#line 282 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 289 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp0_ = altered; -#line 282 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 289 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp1_ = gee_map_get_keys (_tmp0_); -#line 282 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 289 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp2_ = _tmp1_; -#line 282 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 289 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp3_ = _tmp2_; -#line 282 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 289 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 282 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 289 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp5_ = _tmp4_; -#line 282 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 289 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp3_); -#line 282 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 289 "/home/jens/Source/shotwell/src/CollectionPage.vala" _object_it = _tmp5_; -#line 282 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 289 "/home/jens/Source/shotwell/src/CollectionPage.vala" while (TRUE) { -#line 2985 "CollectionPage.c" +#line 3035 "CollectionPage.c" GeeIterator* _tmp6_ = NULL; gboolean _tmp7_ = FALSE; DataObject* object = NULL; @@ -3001,120 +3051,120 @@ static void collection_page_on_photos_altered (CollectionPage* self, GeeMap* alt gboolean _tmp24_ = FALSE; LibraryPhoto* _tmp25_ = NULL; gboolean _tmp26_ = FALSE; -#line 282 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 289 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp6_ = _object_it; -#line 282 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 289 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp7_ = gee_iterator_next (_tmp6_); -#line 282 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 289 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (!_tmp7_) { -#line 282 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 289 "/home/jens/Source/shotwell/src/CollectionPage.vala" break; -#line 3013 "CollectionPage.c" +#line 3063 "CollectionPage.c" } -#line 282 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 289 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp8_ = _object_it; -#line 282 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 289 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp9_ = gee_iterator_get (_tmp8_); -#line 282 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 289 "/home/jens/Source/shotwell/src/CollectionPage.vala" object = (DataObject*) _tmp9_; -#line 283 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp10_ = object; -#line 283 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp11_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_DATA_VIEW, DataView)); -#line 283 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala" view = _tmp11_; -#line 285 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 292 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp13_ = view; -#line 285 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 292 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp14_ = data_view_is_selected (_tmp13_); -#line 285 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 292 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (!_tmp14_) { -#line 285 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 292 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp12_ = TRUE; -#line 3035 "CollectionPage.c" +#line 3085 "CollectionPage.c" } else { GeeMap* _tmp15_ = NULL; DataView* _tmp16_ = NULL; gpointer _tmp17_ = NULL; Alteration* _tmp18_ = NULL; gboolean _tmp19_ = FALSE; -#line 285 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 292 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp15_ = altered; -#line 285 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 292 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp16_ = view; -#line 285 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 292 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp17_ = gee_map_get (_tmp15_, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_DATA_OBJECT, DataObject)); -#line 285 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 292 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp18_ = (Alteration*) _tmp17_; -#line 285 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 292 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp19_ = alteration_has_subject (_tmp18_, "image"); -#line 285 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 292 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp12_ = !_tmp19_; -#line 285 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 292 "/home/jens/Source/shotwell/src/CollectionPage.vala" _alteration_unref0 (_tmp18_); -#line 3056 "CollectionPage.c" +#line 3106 "CollectionPage.c" } -#line 285 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 292 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp12_) { -#line 286 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 293 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (view); -#line 286 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 293 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (object); -#line 286 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 293 "/home/jens/Source/shotwell/src/CollectionPage.vala" continue; -#line 3066 "CollectionPage.c" +#line 3116 "CollectionPage.c" } -#line 288 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 295 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp20_ = view; -#line 288 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 295 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp21_ = data_view_get_source (_tmp20_); -#line 288 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 295 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp22_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp21_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp21_) : NULL; -#line 288 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 295 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp22_ == NULL) { -#line 288 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 295 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp21_); -#line 3078 "CollectionPage.c" +#line 3128 "CollectionPage.c" } -#line 288 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 295 "/home/jens/Source/shotwell/src/CollectionPage.vala" photo = _tmp22_; -#line 289 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 296 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp23_ = photo; -#line 289 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 296 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp23_ == NULL) { -#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 297 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (photo); -#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 297 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (view); -#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 297 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (object); -#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 297 "/home/jens/Source/shotwell/src/CollectionPage.vala" continue; -#line 3094 "CollectionPage.c" +#line 3144 "CollectionPage.c" } -#line 294 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 301 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp24_ = collection_page_can_revert_selected (self); -#line 294 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 301 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Revert", _tmp24_); -#line 295 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 302 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp25_ = photo; -#line 295 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 302 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp26_ = photo_has_color_adjustments (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_PHOTO, Photo)); -#line 295 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 302 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CopyColorAdjustments", _tmp26_); -#line 297 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 304 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (photo); -#line 297 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 304 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (view); -#line 297 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 304 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (object); -#line 297 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 304 "/home/jens/Source/shotwell/src/CollectionPage.vala" break; -#line 3114 "CollectionPage.c" +#line 3164 "CollectionPage.c" } -#line 282 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 289 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_object_it); -#line 3118 "CollectionPage.c" +#line 3168 "CollectionPage.c" } } @@ -3124,48 +3174,48 @@ static void collection_page_on_print (CollectionPage* self) { ViewCollection* _tmp1_ = NULL; gint _tmp2_ = 0; gboolean _tmp3_ = FALSE; -#line 301 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 308 "/home/jens/Source/shotwell/src/CollectionPage.vala" g_return_if_fail (IS_COLLECTION_PAGE (self)); -#line 302 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 309 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 302 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 309 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp1_ = _tmp0_; -#line 302 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 309 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp2_ = view_collection_get_selected_count (_tmp1_); -#line 302 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 309 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp3_ = _tmp2_ > 0; -#line 302 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 309 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp1_); -#line 302 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 309 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp3_) { -#line 3142 "CollectionPage.c" +#line 3192 "CollectionPage.c" PrintManager* _tmp4_ = NULL; PrintManager* _tmp5_ = NULL; ViewCollection* _tmp6_ = NULL; ViewCollection* _tmp7_ = NULL; GeeList* _tmp8_ = NULL; GeeCollection* _tmp9_ = NULL; -#line 303 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 310 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp4_ = print_manager_get_instance (); -#line 303 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 310 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp5_ = _tmp4_; -#line 303 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 310 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp6_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 303 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 310 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp7_ = _tmp6_; -#line 303 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 310 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp8_ = view_collection_get_selected_sources_of_type (_tmp7_, TYPE_PHOTO); -#line 303 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 310 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection); -#line 303 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 310 "/home/jens/Source/shotwell/src/CollectionPage.vala" print_manager_spool_photo (_tmp5_, _tmp9_); -#line 303 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 310 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp9_); -#line 303 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 310 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp7_); -#line 303 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 310 "/home/jens/Source/shotwell/src/CollectionPage.vala" _print_manager_unref0 (_tmp5_); -#line 3169 "CollectionPage.c" +#line 3219 "CollectionPage.c" } } @@ -3178,52 +3228,52 @@ static void collection_page_on_external_app_changed (CollectionPage* self) { gint _tmp3_ = 0; gboolean _tmp4_ = FALSE; gint _tmp5_ = 0; -#line 308 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 315 "/home/jens/Source/shotwell/src/CollectionPage.vala" g_return_if_fail (IS_COLLECTION_PAGE (self)); -#line 309 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 316 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 309 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 316 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp1_ = _tmp0_; -#line 309 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 316 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp2_ = view_collection_get_selected_count (_tmp1_); -#line 309 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 316 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp3_ = _tmp2_; -#line 309 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 316 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp1_); -#line 309 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 316 "/home/jens/Source/shotwell/src/CollectionPage.vala" selected_count = _tmp3_; -#line 311 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 318 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp5_ = selected_count; -#line 311 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 318 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp5_ == 1) { -#line 3200 "CollectionPage.c" +#line 3250 "CollectionPage.c" ConfigFacade* _tmp6_ = NULL; ConfigFacade* _tmp7_ = NULL; gchar* _tmp8_ = NULL; gchar* _tmp9_ = NULL; -#line 311 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 318 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp6_ = config_facade_get_instance (); -#line 311 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 318 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp7_ = _tmp6_; -#line 311 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 318 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp8_ = configuration_facade_get_external_photo_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 311 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 318 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp9_ = _tmp8_; -#line 311 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 318 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp4_ = g_strcmp0 (_tmp9_, "") != 0; -#line 311 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 318 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_free0 (_tmp9_); -#line 311 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 318 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp7_); -#line 3219 "CollectionPage.c" +#line 3269 "CollectionPage.c" } else { -#line 311 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 318 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp4_ = FALSE; -#line 3223 "CollectionPage.c" +#line 3273 "CollectionPage.c" } -#line 311 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 318 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ExternalEdit", _tmp4_); -#line 3227 "CollectionPage.c" +#line 3277 "CollectionPage.c" } @@ -3245,162 +3295,162 @@ static void collection_page_real_on_item_activated (CheckerboardPage* base, Chec gchar* _tmp11_ = NULL; gchar* _tmp12_ = NULL; CheckerboardPageActivator _tmp13_ = 0; -#line 320 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 327 "/home/jens/Source/shotwell/src/CollectionPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage); -#line 320 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 327 "/home/jens/Source/shotwell/src/CollectionPage.vala" g_return_if_fail (IS_CHECKERBOARD_ITEM (item)); -#line 320 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 327 "/home/jens/Source/shotwell/src/CollectionPage.vala" g_return_if_fail (modifiers != NULL); -#line 322 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 329 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp0_ = item; -#line 322 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 329 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_THUMBNAIL, Thumbnail)); -#line 322 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 329 "/home/jens/Source/shotwell/src/CollectionPage.vala" thumbnail = _tmp1_; -#line 327 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 334 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp2_ = thumbnail; -#line 327 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 334 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp3_ = thumbnail_get_media_source (_tmp2_); -#line 327 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 334 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp4_ = _tmp3_; -#line 327 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 334 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp5_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, TYPE_VIDEO); -#line 327 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 334 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp4_); -#line 327 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 334 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp5_) { -#line 328 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 335 "/home/jens/Source/shotwell/src/CollectionPage.vala" media_page_on_play_video (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage)); -#line 329 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 336 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (thumbnail); -#line 329 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 336 "/home/jens/Source/shotwell/src/CollectionPage.vala" return; -#line 3279 "CollectionPage.c" +#line 3329 "CollectionPage.c" } -#line 332 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 339 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp6_ = thumbnail; -#line 332 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 339 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp7_ = thumbnail_get_media_source (_tmp6_); -#line 332 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 339 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp8_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp7_) : NULL; -#line 332 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 339 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp8_ == NULL) { -#line 332 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 339 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp7_); -#line 3291 "CollectionPage.c" +#line 3341 "CollectionPage.c" } -#line 332 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 339 "/home/jens/Source/shotwell/src/CollectionPage.vala" photo = _tmp8_; -#line 333 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 340 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp9_ = photo; -#line 333 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 340 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp9_ == NULL) { -#line 334 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 341 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (photo); -#line 334 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 341 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (thumbnail); -#line 334 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 341 "/home/jens/Source/shotwell/src/CollectionPage.vala" return; -#line 3305 "CollectionPage.c" +#line 3355 "CollectionPage.c" } -#line 337 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 344 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp10_ = photo; -#line 337 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 344 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp11_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_DATA_OBJECT, DataObject)); -#line 337 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 344 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp12_ = _tmp11_; -#line 337 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_debug ("CollectionPage.vala:337: activating %s", _tmp12_); -#line 337 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 344 "/home/jens/Source/shotwell/src/CollectionPage.vala" + g_debug ("CollectionPage.vala:344: activating %s", _tmp12_); +#line 344 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_free0 (_tmp12_); -#line 339 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 346 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp13_ = activator; -#line 339 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 346 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp13_ == CHECKERBOARD_PAGE_ACTIVATOR_MOUSE) { -#line 3321 "CollectionPage.c" +#line 3371 "CollectionPage.c" CheckerboardPageKeyboardModifiers _tmp14_ = {0}; gboolean _tmp15_ = FALSE; -#line 340 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 347 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp14_ = *modifiers; -#line 340 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 347 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp15_ = _tmp14_.super_pressed; -#line 340 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 347 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp15_) { -#line 341 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 348 "/home/jens/Source/shotwell/src/CollectionPage.vala" collection_page_on_external_edit (self); -#line 3332 "CollectionPage.c" +#line 3382 "CollectionPage.c" } else { LibraryWindow* _tmp16_ = NULL; LibraryWindow* _tmp17_ = NULL; LibraryPhoto* _tmp18_ = NULL; -#line 343 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 350 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp16_ = library_window_get_app (); -#line 343 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 350 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp17_ = _tmp16_; -#line 343 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 350 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp18_ = photo; -#line 343 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 350 "/home/jens/Source/shotwell/src/CollectionPage.vala" library_window_switch_to_photo_page (_tmp17_, self, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_PHOTO, Photo)); -#line 343 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 350 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp17_); -#line 3347 "CollectionPage.c" +#line 3397 "CollectionPage.c" } } else { CheckerboardPageActivator _tmp19_ = 0; -#line 344 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 351 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp19_ = activator; -#line 344 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 351 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp19_ == CHECKERBOARD_PAGE_ACTIVATOR_KEYBOARD) { -#line 3355 "CollectionPage.c" +#line 3405 "CollectionPage.c" gboolean _tmp20_ = FALSE; CheckerboardPageKeyboardModifiers _tmp21_ = {0}; gboolean _tmp22_ = FALSE; -#line 345 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 352 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp21_ = *modifiers; -#line 345 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 352 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp22_ = _tmp21_.shift_pressed; -#line 345 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 352 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (!_tmp22_) { -#line 3365 "CollectionPage.c" +#line 3415 "CollectionPage.c" CheckerboardPageKeyboardModifiers _tmp23_ = {0}; gboolean _tmp24_ = FALSE; -#line 345 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 352 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp23_ = *modifiers; -#line 345 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 352 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp24_ = _tmp23_.ctrl_pressed; -#line 345 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 352 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp20_ = !_tmp24_; -#line 3374 "CollectionPage.c" +#line 3424 "CollectionPage.c" } else { -#line 345 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 352 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp20_ = FALSE; -#line 3378 "CollectionPage.c" +#line 3428 "CollectionPage.c" } -#line 345 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 352 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp20_) { -#line 3382 "CollectionPage.c" +#line 3432 "CollectionPage.c" LibraryWindow* _tmp25_ = NULL; LibraryWindow* _tmp26_ = NULL; LibraryPhoto* _tmp27_ = NULL; -#line 346 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 353 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp25_ = library_window_get_app (); -#line 346 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 353 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp26_ = _tmp25_; -#line 346 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 353 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp27_ = photo; -#line 346 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 353 "/home/jens/Source/shotwell/src/CollectionPage.vala" library_window_switch_to_photo_page (_tmp26_, self, G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, TYPE_PHOTO, Photo)); -#line 346 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 353 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp26_); -#line 3396 "CollectionPage.c" +#line 3446 "CollectionPage.c" } } } -#line 320 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 327 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (photo); -#line 320 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 327 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (thumbnail); -#line 3404 "CollectionPage.c" +#line 3454 "CollectionPage.c" } @@ -3413,133 +3463,133 @@ static gboolean collection_page_real_on_app_key_pressed (Page* base, GdkEventKey const gchar* _tmp2_ = NULL; const gchar* _tmp3_ = NULL; GQuark _tmp5_ = 0U; -#line 352 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 359 "/home/jens/Source/shotwell/src/CollectionPage.vala" static GQuark _tmp4_label0 = 0; -#line 352 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 359 "/home/jens/Source/shotwell/src/CollectionPage.vala" static GQuark _tmp4_label1 = 0; -#line 352 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 359 "/home/jens/Source/shotwell/src/CollectionPage.vala" static GQuark _tmp4_label2 = 0; -#line 352 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 359 "/home/jens/Source/shotwell/src/CollectionPage.vala" static GQuark _tmp4_label3 = 0; -#line 352 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 359 "/home/jens/Source/shotwell/src/CollectionPage.vala" static GQuark _tmp4_label4 = 0; -#line 352 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 359 "/home/jens/Source/shotwell/src/CollectionPage.vala" static GQuark _tmp4_label5 = 0; -#line 352 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 359 "/home/jens/Source/shotwell/src/CollectionPage.vala" static GQuark _tmp4_label6 = 0; -#line 352 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 359 "/home/jens/Source/shotwell/src/CollectionPage.vala" static GQuark _tmp4_label7 = 0; -#line 352 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 359 "/home/jens/Source/shotwell/src/CollectionPage.vala" static GQuark _tmp4_label8 = 0; -#line 352 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 359 "/home/jens/Source/shotwell/src/CollectionPage.vala" static GQuark _tmp4_label9 = 0; -#line 3437 "CollectionPage.c" +#line 3487 "CollectionPage.c" gboolean _tmp8_ = FALSE; gboolean _tmp9_ = FALSE; -#line 350 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 357 "/home/jens/Source/shotwell/src/CollectionPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage); -#line 350 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 357 "/home/jens/Source/shotwell/src/CollectionPage.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 351 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 358 "/home/jens/Source/shotwell/src/CollectionPage.vala" handled = TRUE; -#line 352 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 359 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp0_ = event; -#line 352 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 359 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp1_ = _tmp0_->keyval; -#line 352 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 359 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp2_ = gdk_keyval_name (_tmp1_); -#line 352 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 359 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp3_ = _tmp2_; -#line 352 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 359 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp5_ = (NULL == _tmp3_) ? 0 : g_quark_from_string (_tmp3_); -#line 352 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 359 "/home/jens/Source/shotwell/src/CollectionPage.vala" if ((((((((_tmp5_ == ((0 != _tmp4_label0) ? _tmp4_label0 : (_tmp4_label0 = g_quark_from_static_string ("Page_Up")))) || (_tmp5_ == ((0 != _tmp4_label1) ? _tmp4_label1 : (_tmp4_label1 = g_quark_from_static_string ("KP_Page_Up"))))) || (_tmp5_ == ((0 != _tmp4_label2) ? _tmp4_label2 : (_tmp4_label2 = g_quark_from_static_string ("Page_Down"))))) || (_tmp5_ == ((0 != _tmp4_label3) ? _tmp4_label3 : (_tmp4_label3 = g_quark_from_static_string ("KP_Page_Down"))))) || (_tmp5_ == ((0 != _tmp4_label4) ? _tmp4_label4 : (_tmp4_label4 = g_quark_from_static_string ("Home"))))) || (_tmp5_ == ((0 != _tmp4_label5) ? _tmp4_label5 : (_tmp4_label5 = g_quark_from_static_string ("KP_Home"))))) || (_tmp5_ == ((0 != _tmp4_label6) ? _tmp4_label6 : (_tmp4_label6 = g_quark_from_static_string ("End"))))) || (_tmp5_ == ((0 != _tmp4_label7) ? _tmp4_label7 : (_tmp4_label7 = g_quark_from_static_string ("KP_End"))))) { -#line 352 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 359 "/home/jens/Source/shotwell/src/CollectionPage.vala" switch (0) { -#line 3460 "CollectionPage.c" +#line 3510 "CollectionPage.c" default: { GdkEventKey* _tmp6_ = NULL; gboolean _tmp7_ = FALSE; -#line 361 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 368 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp6_ = event; -#line 361 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 368 "/home/jens/Source/shotwell/src/CollectionPage.vala" g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "key-press-event", _tmp6_, &_tmp7_); -#line 362 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 369 "/home/jens/Source/shotwell/src/CollectionPage.vala" break; -#line 3471 "CollectionPage.c" +#line 3521 "CollectionPage.c" } } } else if (_tmp5_ == ((0 != _tmp4_label8) ? _tmp4_label8 : (_tmp4_label8 = g_quark_from_static_string ("bracketright")))) { -#line 352 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 359 "/home/jens/Source/shotwell/src/CollectionPage.vala" switch (0) { -#line 3477 "CollectionPage.c" +#line 3527 "CollectionPage.c" default: { -#line 365 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 372 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateClockwise"); -#line 366 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 373 "/home/jens/Source/shotwell/src/CollectionPage.vala" break; -#line 3484 "CollectionPage.c" +#line 3534 "CollectionPage.c" } } } else if (_tmp5_ == ((0 != _tmp4_label9) ? _tmp4_label9 : (_tmp4_label9 = g_quark_from_static_string ("bracketleft")))) { -#line 352 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 359 "/home/jens/Source/shotwell/src/CollectionPage.vala" switch (0) { -#line 3490 "CollectionPage.c" +#line 3540 "CollectionPage.c" default: { -#line 369 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 376 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateCounterclockwise"); -#line 370 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 377 "/home/jens/Source/shotwell/src/CollectionPage.vala" break; -#line 3497 "CollectionPage.c" +#line 3547 "CollectionPage.c" } } } else { -#line 352 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 359 "/home/jens/Source/shotwell/src/CollectionPage.vala" switch (0) { -#line 3503 "CollectionPage.c" +#line 3553 "CollectionPage.c" default: { -#line 373 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 380 "/home/jens/Source/shotwell/src/CollectionPage.vala" handled = FALSE; -#line 374 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 381 "/home/jens/Source/shotwell/src/CollectionPage.vala" break; -#line 3510 "CollectionPage.c" +#line 3560 "CollectionPage.c" } } } -#line 377 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 384 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp9_ = handled; -#line 377 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 384 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp9_) { -#line 377 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 384 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp8_ = TRUE; -#line 3520 "CollectionPage.c" +#line 3570 "CollectionPage.c" } else { GdkEventKey* _tmp10_ = NULL; gboolean _tmp11_ = FALSE; -#line 377 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 384 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp10_ = event; -#line 377 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 384 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp11_ = PAGE_CLASS (collection_page_parent_class)->on_app_key_pressed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), _tmp10_); -#line 377 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 384 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp8_ = _tmp11_; -#line 3530 "CollectionPage.c" +#line 3580 "CollectionPage.c" } -#line 377 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 384 "/home/jens/Source/shotwell/src/CollectionPage.vala" result = _tmp8_; -#line 377 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 384 "/home/jens/Source/shotwell/src/CollectionPage.vala" return result; -#line 3536 "CollectionPage.c" +#line 3586 "CollectionPage.c" } static void _collection_page_on_export_completed_exporter_completion_callback (Exporter* exporter, gboolean is_cancelled, gpointer self) { -#line 396 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 403 "/home/jens/Source/shotwell/src/CollectionPage.vala" collection_page_on_export_completed ((CollectionPage*) self); -#line 3543 "CollectionPage.c" +#line 3593 "CollectionPage.c" } @@ -3595,233 +3645,233 @@ static void collection_page_real_on_export (MediaPage* base) { ExporterUI* _tmp90_ = NULL; ExporterUI* _tmp91_ = NULL; GError * _inner_error_ = NULL; -#line 380 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 387 "/home/jens/Source/shotwell/src/CollectionPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage); -#line 381 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 388 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp0_ = self->priv->exporter; -#line 381 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 388 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp0_ != NULL) { -#line 382 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 389 "/home/jens/Source/shotwell/src/CollectionPage.vala" return; -#line 3607 "CollectionPage.c" +#line 3657 "CollectionPage.c" } -#line 384 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 391 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp1_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 384 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 391 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp2_ = _tmp1_; -#line 384 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 391 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp3_ = view_collection_get_selected_sources (_tmp2_); -#line 384 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 391 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection); -#line 384 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 391 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp2_); -#line 384 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 391 "/home/jens/Source/shotwell/src/CollectionPage.vala" export_list = _tmp4_; -#line 386 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 393 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp5_ = export_list; -#line 386 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 393 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp6_ = gee_collection_get_size (_tmp5_); -#line 386 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 393 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp7_ = _tmp6_; -#line 386 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 393 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp7_ == 0) { -#line 387 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 394 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (export_list); -#line 387 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 394 "/home/jens/Source/shotwell/src/CollectionPage.vala" return; -#line 3633 "CollectionPage.c" +#line 3683 "CollectionPage.c" } -#line 389 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 396 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp8_ = collection_page_selection_has_photo (self); -#line 389 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 396 "/home/jens/Source/shotwell/src/CollectionPage.vala" has_some_photos = _tmp8_; -#line 390 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 397 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp9_ = collection_page_selection_has_video (self); -#line 390 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 397 "/home/jens/Source/shotwell/src/CollectionPage.vala" has_some_videos = _tmp9_; -#line 391 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 398 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp11_ = has_some_photos; -#line 391 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 398 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp11_) { -#line 391 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 398 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp10_ = TRUE; -#line 3649 "CollectionPage.c" +#line 3699 "CollectionPage.c" } else { gboolean _tmp12_ = FALSE; -#line 391 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 398 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp12_ = has_some_videos; -#line 391 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 398 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp10_ = _tmp12_; -#line 3656 "CollectionPage.c" +#line 3706 "CollectionPage.c" } -#line 391 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 398 "/home/jens/Source/shotwell/src/CollectionPage.vala" _vala_assert (_tmp10_, "has_some_photos || has_some_videos"); -#line 395 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 402 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp13_ = has_some_photos; -#line 395 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 402 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (!_tmp13_) { -#line 3664 "CollectionPage.c" +#line 3714 "CollectionPage.c" GeeCollection* _tmp14_ = NULL; ExporterUI* _tmp15_ = NULL; -#line 396 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 403 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp14_ = export_list; -#line 396 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 403 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp15_ = video_export_many (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_COLLECTION, GeeCollection), _collection_page_on_export_completed_exporter_completion_callback, self, FALSE); -#line 396 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 403 "/home/jens/Source/shotwell/src/CollectionPage.vala" _exporter_ui_unref0 (self->priv->exporter); -#line 396 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 403 "/home/jens/Source/shotwell/src/CollectionPage.vala" self->priv->exporter = _tmp15_; -#line 397 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 404 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (export_list); -#line 397 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 404 "/home/jens/Source/shotwell/src/CollectionPage.vala" return; -#line 3679 "CollectionPage.c" +#line 3729 "CollectionPage.c" } -#line 400 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 407 "/home/jens/Source/shotwell/src/CollectionPage.vala" title = NULL; -#line 401 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 408 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp16_ = has_some_videos; -#line 401 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 408 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp16_) { -#line 3687 "CollectionPage.c" +#line 3737 "CollectionPage.c" const gchar* _tmp17_ = NULL; GeeCollection* _tmp18_ = NULL; gint _tmp19_ = 0; gint _tmp20_ = 0; gchar* _tmp23_ = NULL; -#line 402 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 409 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp18_ = export_list; -#line 402 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 409 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp19_ = gee_collection_get_size (_tmp18_); -#line 402 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 409 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp20_ = _tmp19_; -#line 402 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 409 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp20_ == 1) { -#line 3701 "CollectionPage.c" +#line 3751 "CollectionPage.c" const gchar* _tmp21_ = NULL; -#line 402 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 409 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp21_ = _ ("Export Photo/Video"); -#line 402 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 409 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp17_ = _tmp21_; -#line 3707 "CollectionPage.c" +#line 3757 "CollectionPage.c" } else { const gchar* _tmp22_ = NULL; -#line 402 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 409 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp22_ = _ ("Export Photos/Videos"); -#line 402 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 409 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp17_ = _tmp22_; -#line 3714 "CollectionPage.c" +#line 3764 "CollectionPage.c" } -#line 402 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 409 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp23_ = g_strdup (_tmp17_); -#line 402 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 409 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_free0 (title); -#line 402 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 409 "/home/jens/Source/shotwell/src/CollectionPage.vala" title = _tmp23_; -#line 3722 "CollectionPage.c" +#line 3772 "CollectionPage.c" } else { const gchar* _tmp24_ = NULL; GeeCollection* _tmp25_ = NULL; gint _tmp26_ = 0; gint _tmp27_ = 0; gchar* _tmp30_ = NULL; -#line 404 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 411 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp25_ = export_list; -#line 404 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 411 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp26_ = gee_collection_get_size (_tmp25_); -#line 404 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 411 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp27_ = _tmp26_; -#line 404 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 411 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp27_ == 1) { -#line 3737 "CollectionPage.c" +#line 3787 "CollectionPage.c" const gchar* _tmp28_ = NULL; -#line 404 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 411 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp28_ = _ ("Export Photo"); -#line 404 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 411 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp24_ = _tmp28_; -#line 3743 "CollectionPage.c" +#line 3793 "CollectionPage.c" } else { const gchar* _tmp29_ = NULL; -#line 404 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 411 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp29_ = _ ("Export Photos"); -#line 404 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 411 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp24_ = _tmp29_; -#line 3750 "CollectionPage.c" +#line 3800 "CollectionPage.c" } -#line 404 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 411 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp30_ = g_strdup (_tmp24_); -#line 404 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 411 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_free0 (title); -#line 404 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 411 "/home/jens/Source/shotwell/src/CollectionPage.vala" title = _tmp30_; -#line 3758 "CollectionPage.c" +#line 3808 "CollectionPage.c" } -#line 405 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 412 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp31_ = title; -#line 405 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 412 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp32_ = export_dialog_new (_tmp31_); -#line 405 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 412 "/home/jens/Source/shotwell/src/CollectionPage.vala" g_object_ref_sink (_tmp32_); -#line 405 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 412 "/home/jens/Source/shotwell/src/CollectionPage.vala" export_dialog = _tmp32_; -#line 415 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 422 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp34_ = has_some_videos; -#line 415 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 422 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp34_) { -#line 3772 "CollectionPage.c" +#line 3822 "CollectionPage.c" ExportFormatParameters _tmp35_ = {0}; -#line 415 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 422 "/home/jens/Source/shotwell/src/CollectionPage.vala" export_format_parameters_current (&_tmp35_); -#line 415 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 422 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp33_ = _tmp35_; -#line 3778 "CollectionPage.c" +#line 3828 "CollectionPage.c" } else { ExportFormatParameters _tmp36_ = {0}; -#line 416 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 423 "/home/jens/Source/shotwell/src/CollectionPage.vala" export_format_parameters_last (&_tmp36_); -#line 416 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 423 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp33_ = _tmp36_; -#line 3785 "CollectionPage.c" +#line 3835 "CollectionPage.c" } -#line 415 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 422 "/home/jens/Source/shotwell/src/CollectionPage.vala" export_params = _tmp33_; -#line 420 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 427 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp37_ = export_dialog; -#line 420 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 427 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp40_ = export_dialog_execute (_tmp37_, &_tmp38_, &_tmp39_, &export_params); -#line 420 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 427 "/home/jens/Source/shotwell/src/CollectionPage.vala" scale = _tmp38_; -#line 420 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 427 "/home/jens/Source/shotwell/src/CollectionPage.vala" constraint = _tmp39_; -#line 420 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 427 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (!_tmp40_) { -#line 421 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 428 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (export_dialog); -#line 421 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 428 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_free0 (title); -#line 421 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 428 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (export_list); -#line 421 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 428 "/home/jens/Source/shotwell/src/CollectionPage.vala" return; -#line 3807 "CollectionPage.c" +#line 3857 "CollectionPage.c" } -#line 423 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 430 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp41_ = constraint; -#line 423 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 430 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp42_ = scale; -#line 423 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 430 "/home/jens/Source/shotwell/src/CollectionPage.vala" scaling_for_constraint (_tmp41_, _tmp42_, FALSE, &_tmp43_); -#line 423 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 430 "/home/jens/Source/shotwell/src/CollectionPage.vala" scaling = _tmp43_; -#line 426 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 433 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp44_ = export_list; -#line 426 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 433 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp45_ = gee_collection_get_size (_tmp44_); -#line 426 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 433 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp46_ = _tmp45_; -#line 426 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 433 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp46_ == 1) { -#line 3825 "CollectionPage.c" +#line 3875 "CollectionPage.c" LibraryPhoto* photo = NULL; GFile* save_as = NULL; LibraryPhoto* _tmp55_ = NULL; @@ -3831,22 +3881,22 @@ static void collection_page_real_on_export (MediaPage* base) { GFile* _tmp59_ = NULL; GFile* _tmp60_ = NULL; GFile* _tmp61_ = NULL; -#line 427 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 434 "/home/jens/Source/shotwell/src/CollectionPage.vala" photo = NULL; -#line 3837 "CollectionPage.c" +#line 3887 "CollectionPage.c" { GeeIterator* _p_it = NULL; GeeCollection* _tmp47_ = NULL; GeeIterator* _tmp48_ = NULL; -#line 428 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 435 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp47_ = export_list; -#line 428 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 435 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp48_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, GEE_TYPE_COLLECTION, GeeCollection), GEE_TYPE_ITERABLE, GeeIterable)); -#line 428 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 435 "/home/jens/Source/shotwell/src/CollectionPage.vala" _p_it = _tmp48_; -#line 428 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 435 "/home/jens/Source/shotwell/src/CollectionPage.vala" while (TRUE) { -#line 3850 "CollectionPage.c" +#line 3900 "CollectionPage.c" GeeIterator* _tmp49_ = NULL; gboolean _tmp50_ = FALSE; LibraryPhoto* p = NULL; @@ -3854,73 +3904,73 @@ static void collection_page_real_on_export (MediaPage* base) { gpointer _tmp52_ = NULL; LibraryPhoto* _tmp53_ = NULL; LibraryPhoto* _tmp54_ = NULL; -#line 428 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 435 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp49_ = _p_it; -#line 428 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 435 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp50_ = gee_iterator_next (_tmp49_); -#line 428 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 435 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (!_tmp50_) { -#line 428 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 435 "/home/jens/Source/shotwell/src/CollectionPage.vala" break; -#line 3866 "CollectionPage.c" +#line 3916 "CollectionPage.c" } -#line 428 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 435 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp51_ = _p_it; -#line 428 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 435 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp52_ = gee_iterator_get (_tmp51_); -#line 428 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 435 "/home/jens/Source/shotwell/src/CollectionPage.vala" p = (LibraryPhoto*) _tmp52_; -#line 429 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp53_ = p; -#line 429 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp54_ = _g_object_ref0 (_tmp53_); -#line 429 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (photo); -#line 429 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala" photo = _tmp54_; -#line 430 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 437 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (p); -#line 430 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 437 "/home/jens/Source/shotwell/src/CollectionPage.vala" break; -#line 3886 "CollectionPage.c" +#line 3936 "CollectionPage.c" } -#line 428 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 435 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_p_it); -#line 3890 "CollectionPage.c" +#line 3940 "CollectionPage.c" } -#line 433 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 440 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp55_ = photo; -#line 433 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 440 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp56_ = export_params; -#line 433 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 440 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp57_ = photo_get_export_basename_for_parameters (G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, TYPE_PHOTO, Photo), &_tmp56_); -#line 433 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 440 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp58_ = _tmp57_; -#line 433 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 440 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp59_ = export_ui_choose_file (_tmp58_); -#line 433 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 440 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp60_ = _tmp59_; -#line 433 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 440 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_free0 (_tmp58_); -#line 433 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 440 "/home/jens/Source/shotwell/src/CollectionPage.vala" save_as = _tmp60_; -#line 435 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 442 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp61_ = save_as; -#line 435 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 442 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp61_ == NULL) { -#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 443 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (save_as); -#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 443 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (photo); -#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 443 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (export_dialog); -#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 443 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_free0 (title); -#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 443 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (export_list); -#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 443 "/home/jens/Source/shotwell/src/CollectionPage.vala" return; -#line 3924 "CollectionPage.c" +#line 3974 "CollectionPage.c" } { AppWindow* _tmp62_ = NULL; @@ -3939,191 +3989,191 @@ static void collection_page_real_on_export (MediaPage* base) { gboolean _tmp75_ = FALSE; AppWindow* _tmp76_ = NULL; AppWindow* _tmp77_ = NULL; -#line 439 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp62_ = app_window_get_instance (); -#line 439 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp63_ = _tmp62_; -#line 439 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp63_, TYPE_PAGE_WINDOW, PageWindow)); -#line 439 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp63_); -#line 440 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 447 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp64_ = photo; -#line 440 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 447 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp65_ = save_as; -#line 440 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 447 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp66_ = scaling; -#line 440 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 447 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp67_ = export_params; -#line 440 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 447 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp68_ = _tmp67_.quality; -#line 440 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 447 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp69_ = photo; -#line 440 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 447 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp70_ = export_params; -#line 440 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 447 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp71_ = photo_get_export_format_for_parameters (G_TYPE_CHECK_INSTANCE_CAST (_tmp69_, TYPE_PHOTO, Photo), &_tmp70_); -#line 440 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 447 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp72_ = export_params; -#line 440 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 447 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp73_ = _tmp72_.mode; -#line 440 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 447 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp74_ = export_params; -#line 440 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 447 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp75_ = _tmp74_.export_metadata; -#line 440 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 447 "/home/jens/Source/shotwell/src/CollectionPage.vala" photo_export (G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, TYPE_PHOTO, Photo), _tmp65_, &_tmp66_, _tmp68_, _tmp71_, _tmp73_ == EXPORT_FORMAT_MODE_UNMODIFIED, _tmp75_, &_inner_error_); -#line 440 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 447 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3979 "CollectionPage.c" - goto __catch230_g_error; +#line 4029 "CollectionPage.c" + goto __catch232_g_error; } -#line 443 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 450 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp76_ = app_window_get_instance (); -#line 443 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 450 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp77_ = _tmp76_; -#line 443 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 450 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp77_, TYPE_PAGE_WINDOW, PageWindow)); -#line 443 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 450 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp77_); -#line 3990 "CollectionPage.c" +#line 4040 "CollectionPage.c" } - goto __finally230; - __catch230_g_error: + goto __finally232; + __catch232_g_error: { GError* err = NULL; AppWindow* _tmp78_ = NULL; AppWindow* _tmp79_ = NULL; GFile* _tmp80_ = NULL; -#line 438 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 445 "/home/jens/Source/shotwell/src/CollectionPage.vala" err = _inner_error_; -#line 438 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _inner_error_ = NULL; #line 445 "/home/jens/Source/shotwell/src/CollectionPage.vala" + _inner_error_ = NULL; +#line 452 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp78_ = app_window_get_instance (); -#line 445 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 452 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp79_ = _tmp78_; -#line 445 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 452 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp79_, TYPE_PAGE_WINDOW, PageWindow)); -#line 445 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 452 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp79_); -#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 453 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp80_ = save_as; -#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 453 "/home/jens/Source/shotwell/src/CollectionPage.vala" export_error_dialog (_tmp80_, FALSE); -#line 438 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 445 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_error_free0 (err); -#line 4017 "CollectionPage.c" +#line 4067 "CollectionPage.c" } - __finally230: -#line 438 "/home/jens/Source/shotwell/src/CollectionPage.vala" + __finally232: +#line 445 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 438 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 445 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (save_as); -#line 438 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 445 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (photo); -#line 438 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 445 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (export_dialog); -#line 438 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 445 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_free0 (title); -#line 438 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 445 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (export_list); -#line 438 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 445 "/home/jens/Source/shotwell/src/CollectionPage.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 438 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 445 "/home/jens/Source/shotwell/src/CollectionPage.vala" g_clear_error (&_inner_error_); -#line 438 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 445 "/home/jens/Source/shotwell/src/CollectionPage.vala" return; -#line 4038 "CollectionPage.c" +#line 4088 "CollectionPage.c" } -#line 449 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 456 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (save_as); -#line 449 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 456 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (photo); -#line 449 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 456 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (export_dialog); -#line 449 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 456 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_free0 (title); -#line 449 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 456 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (export_list); -#line 449 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 456 "/home/jens/Source/shotwell/src/CollectionPage.vala" return; -#line 4052 "CollectionPage.c" +#line 4102 "CollectionPage.c" } -#line 453 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 460 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp81_ = title; -#line 453 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 460 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp82_ = export_ui_choose_dir (_tmp81_); -#line 453 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 460 "/home/jens/Source/shotwell/src/CollectionPage.vala" export_dir = _tmp82_; -#line 454 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 461 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp83_ = export_dir; -#line 454 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 461 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp83_ == NULL) { -#line 455 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 462 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (export_dir); -#line 455 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 462 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (export_dialog); -#line 455 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 462 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_free0 (title); -#line 455 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 462 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (export_list); -#line 455 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 462 "/home/jens/Source/shotwell/src/CollectionPage.vala" return; -#line 4074 "CollectionPage.c" +#line 4124 "CollectionPage.c" } -#line 457 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 464 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp84_ = export_list; -#line 457 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 464 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp85_ = export_dir; -#line 457 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 464 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp86_ = scaling; -#line 457 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 464 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp87_ = export_params; -#line 457 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 464 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp88_ = exporter_new (_tmp84_, _tmp85_, &_tmp86_, &_tmp87_, FALSE); -#line 457 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 464 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp89_ = _tmp88_; -#line 457 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 464 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp90_ = exporter_ui_new (_tmp89_); -#line 457 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 464 "/home/jens/Source/shotwell/src/CollectionPage.vala" _exporter_ui_unref0 (self->priv->exporter); -#line 457 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 464 "/home/jens/Source/shotwell/src/CollectionPage.vala" self->priv->exporter = _tmp90_; -#line 457 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 464 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp89_); -#line 458 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 465 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp91_ = self->priv->exporter; -#line 458 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 465 "/home/jens/Source/shotwell/src/CollectionPage.vala" exporter_ui_export (_tmp91_, _collection_page_on_export_completed_exporter_completion_callback, self); -#line 380 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 387 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (export_dir); -#line 380 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 387 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (export_dialog); -#line 380 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 387 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_free0 (title); -#line 380 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 387 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (export_list); -#line 4108 "CollectionPage.c" +#line 4158 "CollectionPage.c" } static void collection_page_on_export_completed (CollectionPage* self) { -#line 461 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 468 "/home/jens/Source/shotwell/src/CollectionPage.vala" g_return_if_fail (IS_COLLECTION_PAGE (self)); -#line 462 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 469 "/home/jens/Source/shotwell/src/CollectionPage.vala" _exporter_ui_unref0 (self->priv->exporter); -#line 462 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 469 "/home/jens/Source/shotwell/src/CollectionPage.vala" self->priv->exporter = NULL; -#line 4119 "CollectionPage.c" +#line 4169 "CollectionPage.c" } static gboolean collection_page_can_revert_selected (CollectionPage* self) { gboolean result = FALSE; -#line 465 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 472 "/home/jens/Source/shotwell/src/CollectionPage.vala" g_return_val_if_fail (IS_COLLECTION_PAGE (self), FALSE); -#line 4127 "CollectionPage.c" +#line 4177 "CollectionPage.c" { GeeList* _source_list = NULL; ViewCollection* _tmp0_ = NULL; @@ -4135,31 +4185,31 @@ static gboolean collection_page_can_revert_selected (CollectionPage* self) { gint _tmp5_ = 0; gint _tmp6_ = 0; gint _source_index = 0; -#line 466 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 473 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 466 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 473 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp1_ = _tmp0_; -#line 466 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 473 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp2_ = view_collection_get_selected_sources (_tmp1_); -#line 466 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 473 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp3_ = _tmp2_; -#line 466 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 473 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp1_); -#line 466 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 473 "/home/jens/Source/shotwell/src/CollectionPage.vala" _source_list = _tmp3_; -#line 466 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 473 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp4_ = _source_list; -#line 466 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 473 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp5_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 466 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 473 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp6_ = _tmp5_; -#line 466 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 473 "/home/jens/Source/shotwell/src/CollectionPage.vala" _source_size = _tmp6_; -#line 466 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 473 "/home/jens/Source/shotwell/src/CollectionPage.vala" _source_index = -1; -#line 466 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 473 "/home/jens/Source/shotwell/src/CollectionPage.vala" while (TRUE) { -#line 4163 "CollectionPage.c" +#line 4213 "CollectionPage.c" gint _tmp7_ = 0; gint _tmp8_ = 0; gint _tmp9_ = 0; @@ -4172,107 +4222,107 @@ static gboolean collection_page_can_revert_selected (CollectionPage* self) { LibraryPhoto* _tmp14_ = NULL; gboolean _tmp15_ = FALSE; LibraryPhoto* _tmp16_ = NULL; -#line 466 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 473 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp7_ = _source_index; -#line 466 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 473 "/home/jens/Source/shotwell/src/CollectionPage.vala" _source_index = _tmp7_ + 1; -#line 466 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 473 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp8_ = _source_index; -#line 466 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 473 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp9_ = _source_size; -#line 466 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 473 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (!(_tmp8_ < _tmp9_)) { -#line 466 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 473 "/home/jens/Source/shotwell/src/CollectionPage.vala" break; -#line 4188 "CollectionPage.c" +#line 4238 "CollectionPage.c" } -#line 466 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 473 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp10_ = _source_list; -#line 466 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 473 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp11_ = _source_index; -#line 466 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 473 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp12_ = gee_list_get (_tmp10_, _tmp11_); -#line 466 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 473 "/home/jens/Source/shotwell/src/CollectionPage.vala" source = (DataSource*) _tmp12_; -#line 467 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp13_ = source; -#line 467 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp14_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp13_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp13_) : NULL); -#line 467 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala" photo = _tmp14_; -#line 468 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 475 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp16_ = photo; -#line 468 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 475 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp16_ != NULL) { -#line 4208 "CollectionPage.c" +#line 4258 "CollectionPage.c" gboolean _tmp17_ = FALSE; LibraryPhoto* _tmp18_ = NULL; gboolean _tmp19_ = FALSE; -#line 468 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 475 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp18_ = photo; -#line 468 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 475 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp19_ = photo_has_transformations (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_PHOTO, Photo)); -#line 468 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 475 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp19_) { -#line 468 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 475 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp17_ = TRUE; -#line 4220 "CollectionPage.c" +#line 4270 "CollectionPage.c" } else { LibraryPhoto* _tmp20_ = NULL; gboolean _tmp21_ = FALSE; -#line 468 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 475 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp20_ = photo; -#line 468 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 475 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp21_ = photo_has_editable (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_PHOTO, Photo)); -#line 468 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 475 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp17_ = _tmp21_; -#line 4230 "CollectionPage.c" +#line 4280 "CollectionPage.c" } -#line 468 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 475 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp15_ = _tmp17_; -#line 4234 "CollectionPage.c" +#line 4284 "CollectionPage.c" } else { -#line 468 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 475 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp15_ = FALSE; -#line 4238 "CollectionPage.c" +#line 4288 "CollectionPage.c" } -#line 468 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 475 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp15_) { -#line 469 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala" result = TRUE; -#line 469 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (photo); -#line 469 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (source); -#line 469 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_source_list); -#line 469 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala" return result; -#line 4252 "CollectionPage.c" +#line 4302 "CollectionPage.c" } -#line 466 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 473 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (photo); -#line 466 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 473 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (source); -#line 4258 "CollectionPage.c" +#line 4308 "CollectionPage.c" } -#line 466 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 473 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_source_list); -#line 4262 "CollectionPage.c" +#line 4312 "CollectionPage.c" } -#line 472 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala" result = FALSE; -#line 472 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala" return result; -#line 4268 "CollectionPage.c" +#line 4318 "CollectionPage.c" } static gboolean collection_page_can_revert_editable_selected (CollectionPage* self) { gboolean result = FALSE; -#line 475 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 482 "/home/jens/Source/shotwell/src/CollectionPage.vala" g_return_val_if_fail (IS_COLLECTION_PAGE (self), FALSE); -#line 4276 "CollectionPage.c" +#line 4326 "CollectionPage.c" { GeeList* _source_list = NULL; ViewCollection* _tmp0_ = NULL; @@ -4284,31 +4334,31 @@ static gboolean collection_page_can_revert_editable_selected (CollectionPage* se gint _tmp5_ = 0; gint _tmp6_ = 0; gint _source_index = 0; -#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 483 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 483 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp1_ = _tmp0_; -#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 483 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp2_ = view_collection_get_selected_sources (_tmp1_); -#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 483 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp3_ = _tmp2_; -#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 483 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp1_); -#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 483 "/home/jens/Source/shotwell/src/CollectionPage.vala" _source_list = _tmp3_; -#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 483 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp4_ = _source_list; -#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 483 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp5_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 483 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp6_ = _tmp5_; -#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 483 "/home/jens/Source/shotwell/src/CollectionPage.vala" _source_size = _tmp6_; -#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 483 "/home/jens/Source/shotwell/src/CollectionPage.vala" _source_index = -1; -#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 483 "/home/jens/Source/shotwell/src/CollectionPage.vala" while (TRUE) { -#line 4312 "CollectionPage.c" +#line 4362 "CollectionPage.c" gint _tmp7_ = 0; gint _tmp8_ = 0; gint _tmp9_ = 0; @@ -4321,82 +4371,82 @@ static gboolean collection_page_can_revert_editable_selected (CollectionPage* se LibraryPhoto* _tmp14_ = NULL; gboolean _tmp15_ = FALSE; LibraryPhoto* _tmp16_ = NULL; -#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 483 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp7_ = _source_index; -#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 483 "/home/jens/Source/shotwell/src/CollectionPage.vala" _source_index = _tmp7_ + 1; -#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 483 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp8_ = _source_index; -#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 483 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp9_ = _source_size; -#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 483 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (!(_tmp8_ < _tmp9_)) { -#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 483 "/home/jens/Source/shotwell/src/CollectionPage.vala" break; -#line 4337 "CollectionPage.c" +#line 4387 "CollectionPage.c" } -#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 483 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp10_ = _source_list; -#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 483 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp11_ = _source_index; -#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 483 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp12_ = gee_list_get (_tmp10_, _tmp11_); -#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 483 "/home/jens/Source/shotwell/src/CollectionPage.vala" source = (DataSource*) _tmp12_; -#line 477 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp13_ = source; -#line 477 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp14_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp13_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp13_) : NULL); -#line 477 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala" photo = _tmp14_; -#line 478 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 485 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp16_ = photo; -#line 478 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 485 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp16_ != NULL) { -#line 4357 "CollectionPage.c" +#line 4407 "CollectionPage.c" LibraryPhoto* _tmp17_ = NULL; gboolean _tmp18_ = FALSE; -#line 478 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 485 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp17_ = photo; -#line 478 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 485 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp18_ = photo_has_editable (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_PHOTO, Photo)); -#line 478 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 485 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp15_ = _tmp18_; -#line 4366 "CollectionPage.c" +#line 4416 "CollectionPage.c" } else { -#line 478 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 485 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp15_ = FALSE; -#line 4370 "CollectionPage.c" +#line 4420 "CollectionPage.c" } -#line 478 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 485 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp15_) { -#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 486 "/home/jens/Source/shotwell/src/CollectionPage.vala" result = TRUE; -#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 486 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (photo); -#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 486 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (source); -#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 486 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_source_list); -#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 486 "/home/jens/Source/shotwell/src/CollectionPage.vala" return result; -#line 4384 "CollectionPage.c" +#line 4434 "CollectionPage.c" } -#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 483 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (photo); -#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 483 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (source); -#line 4390 "CollectionPage.c" +#line 4440 "CollectionPage.c" } -#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 483 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_source_list); -#line 4394 "CollectionPage.c" +#line 4444 "CollectionPage.c" } -#line 482 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala" result = FALSE; -#line 482 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala" return result; -#line 4400 "CollectionPage.c" +#line 4450 "CollectionPage.c" } @@ -4417,59 +4467,59 @@ static void collection_page_on_rotate_clockwise (CollectionPage* self) { CommandManager* _tmp12_ = NULL; CommandManager* _tmp13_ = NULL; RotateMultipleCommand* _tmp14_ = NULL; -#line 485 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 492 "/home/jens/Source/shotwell/src/CollectionPage.vala" g_return_if_fail (IS_COLLECTION_PAGE (self)); -#line 486 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 493 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 486 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 493 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp1_ = _tmp0_; -#line 486 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 493 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp2_ = view_collection_get_selected_count (_tmp1_); -#line 486 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 493 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp3_ = _tmp2_ == 0; -#line 486 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 493 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp1_); -#line 486 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 493 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp3_) { -#line 487 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 494 "/home/jens/Source/shotwell/src/CollectionPage.vala" return; -#line 4437 "CollectionPage.c" +#line 4487 "CollectionPage.c" } -#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 496 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 496 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp5_ = _tmp4_; -#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 496 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp6_ = view_collection_get_selected (_tmp5_); -#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 496 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp7_ = _tmp6_; -#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 496 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp8_ = _ ("Rotating"); -#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 496 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp9_ = _ ("Undoing Rotate"); -#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 496 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp10_ = rotate_multiple_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ITERABLE, GeeIterable), ROTATION_CLOCKWISE, RESOURCES_ROTATE_CW_FULL_LABEL, RESOURCES_ROTATE_CW_TOOLTIP, _tmp8_, _tmp9_); -#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 496 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp11_ = _tmp10_; -#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 496 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp7_); -#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 496 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp5_); -#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 496 "/home/jens/Source/shotwell/src/CollectionPage.vala" command = _tmp11_; -#line 492 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 499 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp12_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 492 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 499 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp13_ = _tmp12_; -#line 492 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 499 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp14_ = command; -#line 492 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 499 "/home/jens/Source/shotwell/src/CollectionPage.vala" command_manager_execute (_tmp13_, G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_COMMAND, Command)); -#line 492 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 499 "/home/jens/Source/shotwell/src/CollectionPage.vala" _command_manager_unref0 (_tmp13_); -#line 485 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 492 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (command); -#line 4473 "CollectionPage.c" +#line 4523 "CollectionPage.c" } @@ -4478,40 +4528,40 @@ static void collection_page_on_publish (CollectionPage* self) { ViewCollection* _tmp1_ = NULL; gint _tmp2_ = 0; gboolean _tmp3_ = FALSE; -#line 495 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 502 "/home/jens/Source/shotwell/src/CollectionPage.vala" g_return_if_fail (IS_COLLECTION_PAGE (self)); -#line 496 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 503 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 496 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 503 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp1_ = _tmp0_; -#line 496 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 503 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp2_ = view_collection_get_selected_count (_tmp1_); -#line 496 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 503 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp3_ = _tmp2_ > 0; -#line 496 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 503 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp1_); -#line 496 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 503 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp3_) { -#line 4496 "CollectionPage.c" +#line 4546 "CollectionPage.c" ViewCollection* _tmp4_ = NULL; ViewCollection* _tmp5_ = NULL; GeeList* _tmp6_ = NULL; GeeCollection* _tmp7_ = NULL; -#line 497 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 504 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 497 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 504 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp5_ = _tmp4_; -#line 497 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 504 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp6_ = view_collection_get_selected_sources (_tmp5_); -#line 497 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 504 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp7_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection); -#line 497 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 504 "/home/jens/Source/shotwell/src/CollectionPage.vala" publishing_ui_publishing_dialog_go (_tmp7_); -#line 497 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 504 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp7_); -#line 497 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 504 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp5_); -#line 4515 "CollectionPage.c" +#line 4565 "CollectionPage.c" } } @@ -4533,59 +4583,59 @@ static void collection_page_on_rotate_counterclockwise (CollectionPage* self) { CommandManager* _tmp12_ = NULL; CommandManager* _tmp13_ = NULL; RotateMultipleCommand* _tmp14_ = NULL; -#line 501 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 508 "/home/jens/Source/shotwell/src/CollectionPage.vala" g_return_if_fail (IS_COLLECTION_PAGE (self)); -#line 502 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 509 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 502 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 509 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp1_ = _tmp0_; -#line 502 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 509 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp2_ = view_collection_get_selected_count (_tmp1_); -#line 502 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 509 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp3_ = _tmp2_ == 0; -#line 502 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 509 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp1_); -#line 502 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 509 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp3_) { -#line 503 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 510 "/home/jens/Source/shotwell/src/CollectionPage.vala" return; -#line 4553 "CollectionPage.c" +#line 4603 "CollectionPage.c" } -#line 505 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 512 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 505 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 512 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp5_ = _tmp4_; -#line 505 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 512 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp6_ = view_collection_get_selected (_tmp5_); -#line 505 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 512 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp7_ = _tmp6_; -#line 505 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 512 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp8_ = _ ("Rotating"); -#line 505 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 512 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp9_ = _ ("Undoing Rotate"); -#line 505 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 512 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp10_ = rotate_multiple_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ITERABLE, GeeIterable), ROTATION_COUNTERCLOCKWISE, RESOURCES_ROTATE_CCW_FULL_LABEL, RESOURCES_ROTATE_CCW_TOOLTIP, _tmp8_, _tmp9_); -#line 505 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 512 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp11_ = _tmp10_; -#line 505 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 512 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp7_); -#line 505 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 512 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp5_); -#line 505 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 512 "/home/jens/Source/shotwell/src/CollectionPage.vala" command = _tmp11_; -#line 508 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 515 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp12_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 508 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 515 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp13_ = _tmp12_; -#line 508 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 515 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp14_ = command; -#line 508 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 515 "/home/jens/Source/shotwell/src/CollectionPage.vala" command_manager_execute (_tmp13_, G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_COMMAND, Command)); -#line 508 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 515 "/home/jens/Source/shotwell/src/CollectionPage.vala" _command_manager_unref0 (_tmp13_); -#line 501 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 508 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (command); -#line 4589 "CollectionPage.c" +#line 4639 "CollectionPage.c" } @@ -4606,59 +4656,59 @@ static void collection_page_on_flip_horizontally (CollectionPage* self) { CommandManager* _tmp12_ = NULL; CommandManager* _tmp13_ = NULL; RotateMultipleCommand* _tmp14_ = NULL; -#line 511 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 518 "/home/jens/Source/shotwell/src/CollectionPage.vala" g_return_if_fail (IS_COLLECTION_PAGE (self)); -#line 512 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 519 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 512 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 519 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp1_ = _tmp0_; -#line 512 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 519 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp2_ = view_collection_get_selected_count (_tmp1_); -#line 512 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 519 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp3_ = _tmp2_ == 0; -#line 512 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 519 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp1_); -#line 512 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 519 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp3_) { -#line 513 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 520 "/home/jens/Source/shotwell/src/CollectionPage.vala" return; -#line 4626 "CollectionPage.c" +#line 4676 "CollectionPage.c" } -#line 515 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 522 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 515 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 522 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp5_ = _tmp4_; -#line 515 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 522 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp6_ = view_collection_get_selected (_tmp5_); -#line 515 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 522 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp7_ = _tmp6_; -#line 515 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 522 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp8_ = _ ("Flipping Horizontally"); -#line 515 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 522 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp9_ = _ ("Undoing Flip Horizontally"); -#line 515 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 522 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp10_ = rotate_multiple_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ITERABLE, GeeIterable), ROTATION_MIRROR, RESOURCES_HFLIP_LABEL, "", _tmp8_, _tmp9_); -#line 515 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 522 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp11_ = _tmp10_; -#line 515 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 522 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp7_); -#line 515 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 522 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp5_); -#line 515 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 522 "/home/jens/Source/shotwell/src/CollectionPage.vala" command = _tmp11_; -#line 518 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 525 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp12_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 518 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 525 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp13_ = _tmp12_; -#line 518 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 525 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp14_ = command; -#line 518 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 525 "/home/jens/Source/shotwell/src/CollectionPage.vala" command_manager_execute (_tmp13_, G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_COMMAND, Command)); -#line 518 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 525 "/home/jens/Source/shotwell/src/CollectionPage.vala" _command_manager_unref0 (_tmp13_); -#line 511 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 518 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (command); -#line 4662 "CollectionPage.c" +#line 4712 "CollectionPage.c" } @@ -4679,59 +4729,59 @@ static void collection_page_on_flip_vertically (CollectionPage* self) { CommandManager* _tmp12_ = NULL; CommandManager* _tmp13_ = NULL; RotateMultipleCommand* _tmp14_ = NULL; -#line 521 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 528 "/home/jens/Source/shotwell/src/CollectionPage.vala" g_return_if_fail (IS_COLLECTION_PAGE (self)); -#line 522 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 529 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 522 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 529 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp1_ = _tmp0_; -#line 522 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 529 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp2_ = view_collection_get_selected_count (_tmp1_); -#line 522 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 529 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp3_ = _tmp2_ == 0; -#line 522 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 529 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp1_); -#line 522 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 529 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp3_) { -#line 523 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 530 "/home/jens/Source/shotwell/src/CollectionPage.vala" return; -#line 4699 "CollectionPage.c" +#line 4749 "CollectionPage.c" } -#line 525 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 532 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 525 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 532 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp5_ = _tmp4_; -#line 525 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 532 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp6_ = view_collection_get_selected (_tmp5_); -#line 525 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 532 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp7_ = _tmp6_; -#line 525 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 532 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp8_ = _ ("Flipping Vertically"); -#line 525 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 532 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp9_ = _ ("Undoing Flip Vertically"); -#line 525 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 532 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp10_ = rotate_multiple_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ITERABLE, GeeIterable), ROTATION_UPSIDE_DOWN, RESOURCES_VFLIP_LABEL, "", _tmp8_, _tmp9_); -#line 525 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 532 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp11_ = _tmp10_; -#line 525 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 532 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp7_); -#line 525 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 532 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp5_); -#line 525 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 532 "/home/jens/Source/shotwell/src/CollectionPage.vala" command = _tmp11_; -#line 528 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 535 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp12_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 528 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 535 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp13_ = _tmp12_; -#line 528 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 535 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp14_ = command; -#line 528 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 535 "/home/jens/Source/shotwell/src/CollectionPage.vala" command_manager_execute (_tmp13_, G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_COMMAND, Command)); -#line 528 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 535 "/home/jens/Source/shotwell/src/CollectionPage.vala" _command_manager_unref0 (_tmp13_); -#line 521 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 528 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (command); -#line 4735 "CollectionPage.c" +#line 4785 "CollectionPage.c" } @@ -4751,29 +4801,29 @@ static void collection_page_on_revert (CollectionPage* self) { CommandManager* _tmp33_ = NULL; CommandManager* _tmp34_ = NULL; RevertMultipleCommand* _tmp35_ = NULL; -#line 531 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 538 "/home/jens/Source/shotwell/src/CollectionPage.vala" g_return_if_fail (IS_COLLECTION_PAGE (self)); -#line 532 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 539 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 532 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 539 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp1_ = _tmp0_; -#line 532 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 539 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp2_ = view_collection_get_selected_count (_tmp1_); -#line 532 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 539 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp3_ = _tmp2_ == 0; -#line 532 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 539 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp1_); -#line 532 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 539 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp3_) { -#line 533 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 540 "/home/jens/Source/shotwell/src/CollectionPage.vala" return; -#line 4771 "CollectionPage.c" +#line 4821 "CollectionPage.c" } -#line 535 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 542 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp4_ = collection_page_can_revert_editable_selected (self); -#line 535 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 542 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp4_) { -#line 4777 "CollectionPage.c" +#line 4827 "CollectionPage.c" AppWindow* _tmp5_ = NULL; AppWindow* _tmp6_ = NULL; ViewCollection* _tmp7_ = NULL; @@ -4782,33 +4832,33 @@ static void collection_page_on_revert (CollectionPage* self) { GeeCollection* _tmp10_ = NULL; gboolean _tmp11_ = FALSE; gboolean _tmp12_ = FALSE; -#line 536 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 543 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp5_ = app_window_get_instance (); -#line 536 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 543 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp6_ = _tmp5_; -#line 536 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 543 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp7_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 536 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 543 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp8_ = _tmp7_; -#line 536 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 543 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp9_ = view_collection_get_selected_sources (_tmp8_); -#line 536 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 543 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp10_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_COLLECTION, GeeCollection); -#line 536 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 543 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp11_ = revert_editable_dialog (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_window_get_type (), GtkWindow), _tmp10_); -#line 536 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 543 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp12_ = !_tmp11_; -#line 536 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 543 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp10_); -#line 536 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 543 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp8_); -#line 536 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 543 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp6_); -#line 536 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 543 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp12_) { -#line 538 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 545 "/home/jens/Source/shotwell/src/CollectionPage.vala" return; -#line 4812 "CollectionPage.c" +#line 4862 "CollectionPage.c" } { GeeList* _object_list = NULL; @@ -4821,31 +4871,31 @@ static void collection_page_on_revert (CollectionPage* self) { gint _tmp18_ = 0; gint _tmp19_ = 0; gint _object_index = 0; -#line 541 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 548 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp13_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 541 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 548 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp14_ = _tmp13_; -#line 541 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 548 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp15_ = view_collection_get_selected_sources (_tmp14_); -#line 541 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 548 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp16_ = _tmp15_; -#line 541 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 548 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp14_); -#line 541 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 548 "/home/jens/Source/shotwell/src/CollectionPage.vala" _object_list = _tmp16_; -#line 541 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 548 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp17_ = _object_list; -#line 541 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 548 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp18_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 541 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 548 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp19_ = _tmp18_; -#line 541 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 548 "/home/jens/Source/shotwell/src/CollectionPage.vala" _object_size = _tmp19_; -#line 541 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 548 "/home/jens/Source/shotwell/src/CollectionPage.vala" _object_index = -1; -#line 541 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 548 "/home/jens/Source/shotwell/src/CollectionPage.vala" while (TRUE) { -#line 4849 "CollectionPage.c" +#line 4899 "CollectionPage.c" gint _tmp20_ = 0; gint _tmp21_ = 0; gint _tmp22_ = 0; @@ -4854,72 +4904,72 @@ static void collection_page_on_revert (CollectionPage* self) { gint _tmp24_ = 0; gpointer _tmp25_ = NULL; DataObject* _tmp26_ = NULL; -#line 541 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 548 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp20_ = _object_index; -#line 541 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 548 "/home/jens/Source/shotwell/src/CollectionPage.vala" _object_index = _tmp20_ + 1; -#line 541 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 548 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp21_ = _object_index; -#line 541 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 548 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp22_ = _object_size; -#line 541 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 548 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (!(_tmp21_ < _tmp22_)) { -#line 541 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 548 "/home/jens/Source/shotwell/src/CollectionPage.vala" break; -#line 4870 "CollectionPage.c" +#line 4920 "CollectionPage.c" } -#line 541 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 548 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp23_ = _object_list; -#line 541 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 548 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp24_ = _object_index; -#line 541 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 548 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp25_ = gee_list_get (_tmp23_, _tmp24_); -#line 541 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 548 "/home/jens/Source/shotwell/src/CollectionPage.vala" object = G_TYPE_CHECK_INSTANCE_CAST ((DataSource*) _tmp25_, TYPE_DATA_OBJECT, DataObject); -#line 542 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp26_ = object; -#line 542 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala" photo_revert_to_master (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_PHOTO, Photo), TRUE); -#line 541 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 548 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (object); -#line 4886 "CollectionPage.c" +#line 4936 "CollectionPage.c" } -#line 541 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 548 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_object_list); -#line 4890 "CollectionPage.c" +#line 4940 "CollectionPage.c" } } -#line 545 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 552 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp27_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 545 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 552 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp28_ = _tmp27_; -#line 545 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 552 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp29_ = view_collection_get_selected (_tmp28_); -#line 545 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 552 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp30_ = _tmp29_; -#line 545 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 552 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp31_ = revert_multiple_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 545 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 552 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp32_ = _tmp31_; -#line 545 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 552 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp30_); -#line 545 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 552 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp28_); -#line 545 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 552 "/home/jens/Source/shotwell/src/CollectionPage.vala" command = _tmp32_; -#line 546 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 553 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp33_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 546 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 553 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp34_ = _tmp33_; -#line 546 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 553 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp35_ = command; -#line 546 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 553 "/home/jens/Source/shotwell/src/CollectionPage.vala" command_manager_execute (_tmp34_, G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, TYPE_COMMAND, Command)); -#line 546 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 553 "/home/jens/Source/shotwell/src/CollectionPage.vala" _command_manager_unref0 (_tmp34_); -#line 531 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 538 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (command); -#line 4923 "CollectionPage.c" +#line 4973 "CollectionPage.c" } @@ -4938,57 +4988,57 @@ void collection_page_on_copy_adjustments (CollectionPage* self) { Photo* _tmp10_ = NULL; PixelTransformationBundle* _tmp11_ = NULL; PixelTransformationBundle* _tmp12_ = NULL; -#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 556 "/home/jens/Source/shotwell/src/CollectionPage.vala" g_return_if_fail (IS_COLLECTION_PAGE (self)); -#line 550 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 557 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 550 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 557 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp1_ = _tmp0_; -#line 550 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 557 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp2_ = view_collection_get_selected_count (_tmp1_); -#line 550 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 557 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp3_ = _tmp2_ != 1; -#line 550 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 557 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp1_); -#line 550 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 557 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp3_) { -#line 551 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 558 "/home/jens/Source/shotwell/src/CollectionPage.vala" return; -#line 4958 "CollectionPage.c" +#line 5008 "CollectionPage.c" } -#line 552 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 559 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 552 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 559 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp5_ = _tmp4_; -#line 552 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 559 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp6_ = view_collection_get_selected_at (_tmp5_, 0); -#line 552 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 559 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp7_ = _tmp6_; -#line 552 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 559 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp8_ = data_view_get_source (_tmp7_); -#line 552 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 559 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_PHOTO, Photo); -#line 552 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 559 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp7_); -#line 552 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 559 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp5_); -#line 552 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 559 "/home/jens/Source/shotwell/src/CollectionPage.vala" photo = _tmp9_; -#line 553 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 560 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp10_ = photo; -#line 553 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 560 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp11_ = photo_get_color_adjustments (_tmp10_); -#line 553 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 560 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp12_ = _tmp11_; -#line 553 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 560 "/home/jens/Source/shotwell/src/CollectionPage.vala" pixel_transformation_bundle_set_copied_color_adjustments (_tmp12_); -#line 553 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 560 "/home/jens/Source/shotwell/src/CollectionPage.vala" _pixel_transformation_bundle_unref0 (_tmp12_); -#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 561 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "PasteColorAdjustments", TRUE); -#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 556 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (photo); -#line 4992 "CollectionPage.c" +#line 5042 "CollectionPage.c" } @@ -5011,78 +5061,78 @@ void collection_page_on_paste_adjustments (CollectionPage* self) { CommandManager* _tmp14_ = NULL; CommandManager* _tmp15_ = NULL; AdjustColorsMultipleCommand* _tmp16_ = NULL; -#line 557 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 564 "/home/jens/Source/shotwell/src/CollectionPage.vala" g_return_if_fail (IS_COLLECTION_PAGE (self)); -#line 558 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 565 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp0_ = pixel_transformation_bundle_get_copied_color_adjustments (); -#line 558 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 565 "/home/jens/Source/shotwell/src/CollectionPage.vala" copied_adjustments = _tmp0_; -#line 559 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 566 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp2_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 559 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 566 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp3_ = _tmp2_; -#line 559 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 566 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp4_ = view_collection_get_selected_count (_tmp3_); -#line 559 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 566 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp5_ = _tmp4_ == 0; -#line 559 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 566 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp3_); -#line 559 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 566 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp5_) { -#line 559 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 566 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp1_ = TRUE; -#line 5035 "CollectionPage.c" +#line 5085 "CollectionPage.c" } else { PixelTransformationBundle* _tmp6_ = NULL; -#line 559 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 566 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp6_ = copied_adjustments; -#line 559 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 566 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp1_ = _tmp6_ == NULL; -#line 5042 "CollectionPage.c" +#line 5092 "CollectionPage.c" } -#line 559 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 566 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp1_) { -#line 560 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 567 "/home/jens/Source/shotwell/src/CollectionPage.vala" _pixel_transformation_bundle_unref0 (copied_adjustments); -#line 560 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 567 "/home/jens/Source/shotwell/src/CollectionPage.vala" return; -#line 5050 "CollectionPage.c" +#line 5100 "CollectionPage.c" } -#line 562 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 569 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp7_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 562 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 569 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp8_ = _tmp7_; -#line 562 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 569 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp9_ = view_collection_get_selected (_tmp8_); -#line 562 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 569 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp10_ = _tmp9_; -#line 562 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 569 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp11_ = copied_adjustments; -#line 562 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 569 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp12_ = adjust_colors_multiple_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ITERABLE, GeeIterable), _tmp11_, RESOURCES_PASTE_ADJUSTMENTS_LABEL, RESOURCES_PASTE_ADJUSTMENTS_TOOLTIP); -#line 562 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 569 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp13_ = _tmp12_; -#line 562 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 569 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp10_); -#line 562 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 569 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp8_); -#line 562 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 569 "/home/jens/Source/shotwell/src/CollectionPage.vala" command = _tmp13_; -#line 564 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 571 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp14_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 564 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 571 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp15_ = _tmp14_; -#line 564 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 571 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp16_ = command; -#line 564 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 571 "/home/jens/Source/shotwell/src/CollectionPage.vala" command_manager_execute (_tmp15_, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_COMMAND, Command)); -#line 564 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 571 "/home/jens/Source/shotwell/src/CollectionPage.vala" _command_manager_unref0 (_tmp15_); -#line 557 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 564 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (command); -#line 557 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 564 "/home/jens/Source/shotwell/src/CollectionPage.vala" _pixel_transformation_bundle_unref0 (copied_adjustments); -#line 5086 "CollectionPage.c" +#line 5136 "CollectionPage.c" } @@ -5101,55 +5151,55 @@ static void collection_page_on_enhance (CollectionPage* self) { CommandManager* _tmp10_ = NULL; CommandManager* _tmp11_ = NULL; EnhanceMultipleCommand* _tmp12_ = NULL; -#line 567 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 574 "/home/jens/Source/shotwell/src/CollectionPage.vala" g_return_if_fail (IS_COLLECTION_PAGE (self)); -#line 568 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 575 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 568 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 575 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp1_ = _tmp0_; -#line 568 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 575 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp2_ = view_collection_get_selected_count (_tmp1_); -#line 568 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 575 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp3_ = _tmp2_ == 0; -#line 568 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 575 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp1_); -#line 568 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 575 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp3_) { -#line 569 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 576 "/home/jens/Source/shotwell/src/CollectionPage.vala" return; -#line 5121 "CollectionPage.c" +#line 5171 "CollectionPage.c" } -#line 571 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 578 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 571 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 578 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp5_ = _tmp4_; -#line 571 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 578 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp6_ = view_collection_get_selected (_tmp5_); -#line 571 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 578 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp7_ = _tmp6_; -#line 571 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 578 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp8_ = enhance_multiple_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 571 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 578 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp9_ = _tmp8_; -#line 571 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 578 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp7_); -#line 571 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 578 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp5_); -#line 571 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 578 "/home/jens/Source/shotwell/src/CollectionPage.vala" command = _tmp9_; -#line 572 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 579 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp10_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 572 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 579 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp11_ = _tmp10_; -#line 572 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 579 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp12_ = command; -#line 572 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 579 "/home/jens/Source/shotwell/src/CollectionPage.vala" command_manager_execute (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_COMMAND, Command)); -#line 572 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 579 "/home/jens/Source/shotwell/src/CollectionPage.vala" _command_manager_unref0 (_tmp11_); -#line 567 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 574 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (command); -#line 5153 "CollectionPage.c" +#line 5203 "CollectionPage.c" } @@ -5168,55 +5218,55 @@ static void collection_page_on_duplicate_photo (CollectionPage* self) { CommandManager* _tmp10_ = NULL; CommandManager* _tmp11_ = NULL; DuplicateMultiplePhotosCommand* _tmp12_ = NULL; -#line 575 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 582 "/home/jens/Source/shotwell/src/CollectionPage.vala" g_return_if_fail (IS_COLLECTION_PAGE (self)); -#line 576 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 583 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 576 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 583 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp1_ = _tmp0_; -#line 576 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 583 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp2_ = view_collection_get_selected_count (_tmp1_); -#line 576 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 583 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp3_ = _tmp2_ == 0; -#line 576 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 583 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp1_); -#line 576 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 583 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp3_) { -#line 577 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 584 "/home/jens/Source/shotwell/src/CollectionPage.vala" return; -#line 5188 "CollectionPage.c" +#line 5238 "CollectionPage.c" } -#line 579 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 586 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 579 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 586 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp5_ = _tmp4_; -#line 579 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 586 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp6_ = view_collection_get_selected (_tmp5_); -#line 579 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 586 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp7_ = _tmp6_; -#line 579 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 586 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp8_ = duplicate_multiple_photos_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 579 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 586 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp9_ = _tmp8_; -#line 579 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 586 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp7_); -#line 579 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 586 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp5_); -#line 579 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 586 "/home/jens/Source/shotwell/src/CollectionPage.vala" command = _tmp9_; -#line 581 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 588 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp10_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 581 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 588 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp11_ = _tmp10_; -#line 581 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 588 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp12_ = command; -#line 581 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 588 "/home/jens/Source/shotwell/src/CollectionPage.vala" command_manager_execute (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_COMMAND, Command)); -#line 581 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 588 "/home/jens/Source/shotwell/src/CollectionPage.vala" _command_manager_unref0 (_tmp11_); -#line 575 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 582 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (command); -#line 5220 "CollectionPage.c" +#line 5270 "CollectionPage.c" } @@ -5251,29 +5301,29 @@ static void collection_page_on_adjust_date_time (CollectionPage* self) { gboolean _tmp37_ = FALSE; gboolean _tmp38_ = FALSE; gboolean _tmp39_ = FALSE; -#line 584 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 591 "/home/jens/Source/shotwell/src/CollectionPage.vala" g_return_if_fail (IS_COLLECTION_PAGE (self)); -#line 585 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 592 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 585 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 592 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp1_ = _tmp0_; -#line 585 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 592 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp2_ = view_collection_get_selected_count (_tmp1_); -#line 585 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 592 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp3_ = _tmp2_ == 0; -#line 585 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 592 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp1_); -#line 585 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 592 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp3_) { -#line 586 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 593 "/home/jens/Source/shotwell/src/CollectionPage.vala" return; -#line 5271 "CollectionPage.c" +#line 5321 "CollectionPage.c" } -#line 588 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 595 "/home/jens/Source/shotwell/src/CollectionPage.vala" selected_has_videos = FALSE; -#line 589 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 596 "/home/jens/Source/shotwell/src/CollectionPage.vala" only_videos_selected = TRUE; -#line 5277 "CollectionPage.c" +#line 5327 "CollectionPage.c" { GeeList* _dv_list = NULL; ViewCollection* _tmp4_ = NULL; @@ -5285,31 +5335,31 @@ static void collection_page_on_adjust_date_time (CollectionPage* self) { gint _tmp9_ = 0; gint _tmp10_ = 0; gint _dv_index = 0; -#line 591 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 598 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 591 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 598 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp5_ = _tmp4_; -#line 591 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 598 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp6_ = view_collection_get_selected (_tmp5_); -#line 591 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 598 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp7_ = _tmp6_; -#line 591 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 598 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp5_); -#line 591 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 598 "/home/jens/Source/shotwell/src/CollectionPage.vala" _dv_list = _tmp7_; -#line 591 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 598 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp8_ = _dv_list; -#line 591 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 598 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp9_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 591 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 598 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp10_ = _tmp9_; -#line 591 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 598 "/home/jens/Source/shotwell/src/CollectionPage.vala" _dv_size = _tmp10_; -#line 591 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 598 "/home/jens/Source/shotwell/src/CollectionPage.vala" _dv_index = -1; -#line 591 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 598 "/home/jens/Source/shotwell/src/CollectionPage.vala" while (TRUE) { -#line 5313 "CollectionPage.c" +#line 5363 "CollectionPage.c" gint _tmp11_ = 0; gint _tmp12_ = 0; gint _tmp13_ = 0; @@ -5321,109 +5371,109 @@ static void collection_page_on_adjust_date_time (CollectionPage* self) { DataSource* _tmp18_ = NULL; DataSource* _tmp19_ = NULL; gboolean _tmp20_ = FALSE; -#line 591 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 598 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp11_ = _dv_index; -#line 591 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 598 "/home/jens/Source/shotwell/src/CollectionPage.vala" _dv_index = _tmp11_ + 1; -#line 591 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 598 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp12_ = _dv_index; -#line 591 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 598 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp13_ = _dv_size; -#line 591 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 598 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (!(_tmp12_ < _tmp13_)) { -#line 591 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 598 "/home/jens/Source/shotwell/src/CollectionPage.vala" break; -#line 5337 "CollectionPage.c" +#line 5387 "CollectionPage.c" } -#line 591 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 598 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp14_ = _dv_list; -#line 591 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 598 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp15_ = _dv_index; -#line 591 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 598 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp16_ = gee_list_get (_tmp14_, _tmp15_); -#line 591 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 598 "/home/jens/Source/shotwell/src/CollectionPage.vala" dv = (DataView*) _tmp16_; -#line 592 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp17_ = dv; -#line 592 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp18_ = data_view_get_source (_tmp17_); -#line 592 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp19_ = _tmp18_; -#line 592 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp20_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp19_, TYPE_VIDEO); -#line 592 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp19_); -#line 592 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp20_) { -#line 593 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 600 "/home/jens/Source/shotwell/src/CollectionPage.vala" selected_has_videos = TRUE; -#line 5361 "CollectionPage.c" +#line 5411 "CollectionPage.c" } else { -#line 595 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 602 "/home/jens/Source/shotwell/src/CollectionPage.vala" only_videos_selected = FALSE; -#line 5365 "CollectionPage.c" +#line 5415 "CollectionPage.c" } -#line 591 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 598 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (dv); -#line 5369 "CollectionPage.c" +#line 5419 "CollectionPage.c" } -#line 591 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 598 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_dv_list); -#line 5373 "CollectionPage.c" +#line 5423 "CollectionPage.c" } -#line 598 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 605 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp21_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 598 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 605 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp22_ = _tmp21_; -#line 598 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 605 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp23_ = view_collection_get_selected_at (_tmp22_, 0); -#line 598 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 605 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp24_ = _tmp23_; -#line 598 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 605 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp25_ = data_view_get_source (_tmp24_); -#line 598 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 605 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp26_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_DATEABLE, Dateable); -#line 598 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 605 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp24_); -#line 598 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 605 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp22_); -#line 598 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 605 "/home/jens/Source/shotwell/src/CollectionPage.vala" photo_source = _tmp26_; -#line 600 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 607 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp27_ = photo_source; -#line 600 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 607 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp28_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 600 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 607 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp29_ = _tmp28_; -#line 600 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 607 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp30_ = view_collection_get_selected_count (_tmp29_); -#line 600 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 607 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp31_ = selected_has_videos; -#line 600 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 607 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp32_ = only_videos_selected; -#line 600 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 607 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp33_ = adjust_date_time_dialog_new (_tmp27_, _tmp30_, TRUE, _tmp31_, _tmp32_); -#line 600 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 607 "/home/jens/Source/shotwell/src/CollectionPage.vala" g_object_ref_sink (_tmp33_); -#line 600 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 607 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp34_ = _tmp33_; -#line 600 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 607 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp29_); -#line 600 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 607 "/home/jens/Source/shotwell/src/CollectionPage.vala" dialog = _tmp34_; -#line 605 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 612 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp35_ = dialog; -#line 605 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 612 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp39_ = adjust_date_time_dialog_execute (_tmp35_, &_tmp36_, &_tmp37_, &_tmp38_); -#line 605 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 612 "/home/jens/Source/shotwell/src/CollectionPage.vala" time_shift = _tmp36_; -#line 605 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 612 "/home/jens/Source/shotwell/src/CollectionPage.vala" keep_relativity = _tmp37_; -#line 605 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 612 "/home/jens/Source/shotwell/src/CollectionPage.vala" modify_originals = _tmp38_; -#line 605 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 612 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp39_) { -#line 5427 "CollectionPage.c" +#line 5477 "CollectionPage.c" AdjustDateTimePhotosCommand* command = NULL; ViewCollection* _tmp40_ = NULL; ViewCollection* _tmp41_ = NULL; @@ -5437,49 +5487,49 @@ static void collection_page_on_adjust_date_time (CollectionPage* self) { CommandManager* _tmp49_ = NULL; CommandManager* _tmp50_ = NULL; AdjustDateTimePhotosCommand* _tmp51_ = NULL; -#line 606 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp40_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 606 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp41_ = _tmp40_; -#line 606 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp42_ = view_collection_get_selected (_tmp41_); -#line 606 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp43_ = _tmp42_; -#line 606 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp44_ = time_shift; -#line 606 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp45_ = keep_relativity; -#line 606 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp46_ = modify_originals; -#line 606 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp47_ = adjust_date_time_photos_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, GEE_TYPE_ITERABLE, GeeIterable), _tmp44_, _tmp45_, _tmp46_); -#line 606 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp48_ = _tmp47_; -#line 606 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp43_); -#line 606 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp41_); -#line 606 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala" command = _tmp48_; -#line 608 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 615 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp49_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 608 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 615 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp50_ = _tmp49_; -#line 608 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 615 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp51_ = command; -#line 608 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 615 "/home/jens/Source/shotwell/src/CollectionPage.vala" command_manager_execute (_tmp50_, G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, TYPE_COMMAND, Command)); -#line 608 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 615 "/home/jens/Source/shotwell/src/CollectionPage.vala" _command_manager_unref0 (_tmp50_); -#line 605 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 612 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (command); -#line 5477 "CollectionPage.c" +#line 5527 "CollectionPage.c" } -#line 584 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 591 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (dialog); -#line 584 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 591 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (photo_source); -#line 5483 "CollectionPage.c" +#line 5533 "CollectionPage.c" } @@ -5496,122 +5546,122 @@ static void collection_page_on_external_edit (CollectionPage* self) { DataSource* _tmp8_ = NULL; Photo* _tmp9_ = NULL; GError * _inner_error_ = NULL; -#line 612 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 619 "/home/jens/Source/shotwell/src/CollectionPage.vala" g_return_if_fail (IS_COLLECTION_PAGE (self)); -#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 620 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 620 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp1_ = _tmp0_; -#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 620 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp2_ = view_collection_get_selected_count (_tmp1_); -#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 620 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp3_ = _tmp2_ != 1; -#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 620 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp1_); -#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 620 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp3_) { -#line 614 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 621 "/home/jens/Source/shotwell/src/CollectionPage.vala" return; -#line 5516 "CollectionPage.c" +#line 5566 "CollectionPage.c" } -#line 616 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 623 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 616 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 623 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp5_ = _tmp4_; -#line 616 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 623 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp6_ = view_collection_get_selected_at (_tmp5_, 0); -#line 616 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 623 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp7_ = _tmp6_; -#line 616 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 623 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp8_ = data_view_get_source (_tmp7_); -#line 616 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 623 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_PHOTO, Photo); -#line 616 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 623 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp7_); -#line 616 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 623 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp5_); -#line 616 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 623 "/home/jens/Source/shotwell/src/CollectionPage.vala" photo = _tmp9_; -#line 5536 "CollectionPage.c" +#line 5586 "CollectionPage.c" { AppWindow* _tmp10_ = NULL; AppWindow* _tmp11_ = NULL; Photo* _tmp12_ = NULL; AppWindow* _tmp13_ = NULL; AppWindow* _tmp14_ = NULL; -#line 618 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 625 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp10_ = app_window_get_instance (); -#line 618 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 625 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp11_ = _tmp10_; -#line 618 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 625 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_PAGE_WINDOW, PageWindow)); -#line 618 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 625 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp11_); -#line 619 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 626 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp12_ = photo; -#line 619 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 626 "/home/jens/Source/shotwell/src/CollectionPage.vala" photo_open_with_external_editor (_tmp12_, &_inner_error_); -#line 619 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 626 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 5557 "CollectionPage.c" - goto __catch231_g_error; +#line 5607 "CollectionPage.c" + goto __catch233_g_error; } -#line 620 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 627 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp13_ = app_window_get_instance (); -#line 620 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 627 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp14_ = _tmp13_; -#line 620 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 627 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_PAGE_WINDOW, PageWindow)); -#line 620 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 627 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp14_); -#line 5568 "CollectionPage.c" +#line 5618 "CollectionPage.c" } - goto __finally231; - __catch231_g_error: + goto __finally233; + __catch233_g_error: { GError* err = NULL; AppWindow* _tmp15_ = NULL; AppWindow* _tmp16_ = NULL; GError* _tmp17_ = NULL; Photo* _tmp18_ = NULL; -#line 617 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 624 "/home/jens/Source/shotwell/src/CollectionPage.vala" err = _inner_error_; -#line 617 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 624 "/home/jens/Source/shotwell/src/CollectionPage.vala" _inner_error_ = NULL; -#line 622 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 629 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp15_ = app_window_get_instance (); -#line 622 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 629 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp16_ = _tmp15_; -#line 622 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 629 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_PAGE_WINDOW, PageWindow)); -#line 622 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 629 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp16_); -#line 623 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 630 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp17_ = err; -#line 623 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 630 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp18_ = photo; -#line 623 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 630 "/home/jens/Source/shotwell/src/CollectionPage.vala" open_external_editor_error_dialog (_tmp17_, _tmp18_); -#line 617 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 624 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_error_free0 (err); -#line 5598 "CollectionPage.c" +#line 5648 "CollectionPage.c" } - __finally231: -#line 617 "/home/jens/Source/shotwell/src/CollectionPage.vala" + __finally233: +#line 624 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 617 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 624 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (photo); -#line 617 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 624 "/home/jens/Source/shotwell/src/CollectionPage.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 617 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 624 "/home/jens/Source/shotwell/src/CollectionPage.vala" g_clear_error (&_inner_error_); -#line 617 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 624 "/home/jens/Source/shotwell/src/CollectionPage.vala" return; -#line 5611 "CollectionPage.c" +#line 5661 "CollectionPage.c" } -#line 612 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 619 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (photo); -#line 5615 "CollectionPage.c" +#line 5665 "CollectionPage.c" } @@ -5630,53 +5680,53 @@ static void collection_page_on_external_edit_raw (CollectionPage* self) { Photo* _tmp10_ = NULL; PhotoFileFormat _tmp11_ = 0; GError * _inner_error_ = NULL; -#line 627 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 634 "/home/jens/Source/shotwell/src/CollectionPage.vala" g_return_if_fail (IS_COLLECTION_PAGE (self)); -#line 628 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 635 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 628 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 635 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp1_ = _tmp0_; -#line 628 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 635 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp2_ = view_collection_get_selected_count (_tmp1_); -#line 628 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 635 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp3_ = _tmp2_ != 1; -#line 628 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 635 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp1_); -#line 628 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 635 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp3_) { -#line 629 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 636 "/home/jens/Source/shotwell/src/CollectionPage.vala" return; -#line 5650 "CollectionPage.c" +#line 5700 "CollectionPage.c" } -#line 631 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 638 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 631 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 638 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp5_ = _tmp4_; -#line 631 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 638 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp6_ = view_collection_get_selected_at (_tmp5_, 0); -#line 631 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 638 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp7_ = _tmp6_; -#line 631 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 638 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp8_ = data_view_get_source (_tmp7_); -#line 631 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 638 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_PHOTO, Photo); -#line 631 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 638 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp7_); -#line 631 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 638 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp5_); -#line 631 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 638 "/home/jens/Source/shotwell/src/CollectionPage.vala" photo = _tmp9_; -#line 632 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 639 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp10_ = photo; -#line 632 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 639 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp11_ = photo_get_master_file_format (_tmp10_); -#line 632 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 639 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp11_ != PHOTO_FILE_FORMAT_RAW) { -#line 633 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 640 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (photo); -#line 633 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 640 "/home/jens/Source/shotwell/src/CollectionPage.vala" return; -#line 5680 "CollectionPage.c" +#line 5730 "CollectionPage.c" } { AppWindow* _tmp12_ = NULL; @@ -5684,35 +5734,35 @@ static void collection_page_on_external_edit_raw (CollectionPage* self) { Photo* _tmp14_ = NULL; AppWindow* _tmp15_ = NULL; AppWindow* _tmp16_ = NULL; -#line 636 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 643 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp12_ = app_window_get_instance (); -#line 636 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 643 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp13_ = _tmp12_; -#line 636 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 643 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_PAGE_WINDOW, PageWindow)); -#line 636 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 643 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp13_); -#line 637 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 644 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp14_ = photo; -#line 637 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 644 "/home/jens/Source/shotwell/src/CollectionPage.vala" photo_open_with_raw_external_editor (_tmp14_, &_inner_error_); -#line 637 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 644 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 5702 "CollectionPage.c" - goto __catch232_g_error; +#line 5752 "CollectionPage.c" + goto __catch234_g_error; } -#line 638 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 645 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp15_ = app_window_get_instance (); -#line 638 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 645 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp16_ = _tmp15_; -#line 638 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 645 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_PAGE_WINDOW, PageWindow)); -#line 638 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 645 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp16_); -#line 5713 "CollectionPage.c" +#line 5763 "CollectionPage.c" } - goto __finally232; - __catch232_g_error: + goto __finally234; + __catch234_g_error: { GError* err = NULL; AppWindow* _tmp17_ = NULL; @@ -5720,48 +5770,48 @@ static void collection_page_on_external_edit_raw (CollectionPage* self) { GError* _tmp19_ = NULL; gchar* _tmp20_ = NULL; gchar* _tmp21_ = NULL; -#line 635 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 642 "/home/jens/Source/shotwell/src/CollectionPage.vala" err = _inner_error_; -#line 635 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 642 "/home/jens/Source/shotwell/src/CollectionPage.vala" _inner_error_ = NULL; -#line 640 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 647 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp17_ = app_window_get_instance (); -#line 640 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 647 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp18_ = _tmp17_; -#line 640 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 647 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_PAGE_WINDOW, PageWindow)); -#line 640 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 647 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp18_); -#line 641 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 648 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp19_ = err; -#line 641 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 648 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp20_ = resources_launch_editor_failed (_tmp19_); -#line 641 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 648 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp21_ = _tmp20_; -#line 641 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 648 "/home/jens/Source/shotwell/src/CollectionPage.vala" app_window_error_message (_tmp21_, NULL); -#line 641 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 648 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_free0 (_tmp21_); -#line 635 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 642 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_error_free0 (err); -#line 5748 "CollectionPage.c" +#line 5798 "CollectionPage.c" } - __finally232: -#line 635 "/home/jens/Source/shotwell/src/CollectionPage.vala" + __finally234: +#line 642 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 635 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 642 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (photo); -#line 635 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 642 "/home/jens/Source/shotwell/src/CollectionPage.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 635 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 642 "/home/jens/Source/shotwell/src/CollectionPage.vala" g_clear_error (&_inner_error_); -#line 635 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 642 "/home/jens/Source/shotwell/src/CollectionPage.vala" return; -#line 5761 "CollectionPage.c" +#line 5811 "CollectionPage.c" } -#line 627 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 634 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (photo); -#line 5765 "CollectionPage.c" +#line 5815 "CollectionPage.c" } @@ -5778,60 +5828,60 @@ void collection_page_on_set_background (CollectionPage* self) { GeeArrayList* _tmp6_ = NULL; gint _tmp7_ = 0; gint _tmp8_ = 0; -#line 645 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 652 "/home/jens/Source/shotwell/src/CollectionPage.vala" g_return_if_fail (IS_COLLECTION_PAGE (self)); -#line 646 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 653 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp0_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL); -#line 646 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 653 "/home/jens/Source/shotwell/src/CollectionPage.vala" photos = _tmp0_; -#line 647 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 654 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp1_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 647 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 654 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp2_ = _tmp1_; -#line 647 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 654 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp3_ = view_collection_get_selected_sources (_tmp2_); -#line 647 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 654 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection); -#line 647 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 654 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp5_ = photos; -#line 647 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 654 "/home/jens/Source/shotwell/src/CollectionPage.vala" media_source_collection_filter_media (_tmp4_, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection), NULL); -#line 647 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 654 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp4_); -#line 647 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 654 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp2_); -#line 651 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 658 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp6_ = photos; -#line 651 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 658 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp7_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 651 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 658 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp8_ = _tmp7_; -#line 651 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 658 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp8_ == 1) { -#line 5812 "CollectionPage.c" +#line 5862 "CollectionPage.c" SetBackgroundPhotoDialog* dialog = NULL; SetBackgroundPhotoDialog* _tmp9_ = NULL; SetBackgroundPhotoDialog* _tmp10_ = NULL; gboolean _tmp11_ = FALSE; gboolean _tmp12_ = FALSE; gboolean _tmp13_ = FALSE; -#line 652 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 659 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp9_ = set_background_photo_dialog_new (); -#line 652 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 659 "/home/jens/Source/shotwell/src/CollectionPage.vala" g_object_ref_sink (_tmp9_); -#line 652 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 659 "/home/jens/Source/shotwell/src/CollectionPage.vala" dialog = _tmp9_; -#line 653 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 660 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp10_ = dialog; -#line 653 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 660 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp13_ = set_background_photo_dialog_execute (_tmp10_, &_tmp11_, &_tmp12_); -#line 653 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 660 "/home/jens/Source/shotwell/src/CollectionPage.vala" desktop = _tmp11_; -#line 653 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 660 "/home/jens/Source/shotwell/src/CollectionPage.vala" screensaver = _tmp12_; -#line 653 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 660 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp13_) { -#line 5835 "CollectionPage.c" +#line 5885 "CollectionPage.c" AppWindow* _tmp14_ = NULL; AppWindow* _tmp15_ = NULL; GeeArrayList* _tmp16_ = NULL; @@ -5841,54 +5891,54 @@ void collection_page_on_set_background (CollectionPage* self) { gboolean _tmp20_ = FALSE; AppWindow* _tmp21_ = NULL; AppWindow* _tmp22_ = NULL; -#line 654 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 661 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp14_ = app_window_get_instance (); -#line 654 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 661 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp15_ = _tmp14_; -#line 654 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 661 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_PAGE_WINDOW, PageWindow)); -#line 654 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 661 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp15_); -#line 655 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 662 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp16_ = photos; -#line 655 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 662 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp17_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0); -#line 655 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 662 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp18_ = (LibraryPhoto*) _tmp17_; -#line 655 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 662 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp19_ = desktop; -#line 655 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 662 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp20_ = screensaver; -#line 655 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 662 "/home/jens/Source/shotwell/src/CollectionPage.vala" desktop_integration_set_background (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_PHOTO, Photo), _tmp19_, _tmp20_); -#line 655 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 662 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp18_); -#line 656 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 663 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp21_ = app_window_get_instance (); -#line 656 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 663 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp22_ = _tmp21_; -#line 656 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 663 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_PAGE_WINDOW, PageWindow)); -#line 656 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 663 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp22_); -#line 5875 "CollectionPage.c" +#line 5925 "CollectionPage.c" } -#line 651 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 658 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (dialog); -#line 5879 "CollectionPage.c" +#line 5929 "CollectionPage.c" } else { GeeArrayList* _tmp23_ = NULL; gint _tmp24_ = 0; gint _tmp25_ = 0; -#line 658 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 665 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp23_ = photos; -#line 658 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 665 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp24_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 658 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 665 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp25_ = _tmp24_; -#line 658 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 665 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp25_ > 1) { -#line 5892 "CollectionPage.c" +#line 5942 "CollectionPage.c" SetBackgroundSlideshowDialog* dialog = NULL; SetBackgroundSlideshowDialog* _tmp26_ = NULL; gint delay = 0; @@ -5897,25 +5947,25 @@ void collection_page_on_set_background (CollectionPage* self) { gboolean _tmp29_ = FALSE; gboolean _tmp30_ = FALSE; gboolean _tmp31_ = FALSE; -#line 659 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 666 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp26_ = set_background_slideshow_dialog_new (); -#line 659 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 666 "/home/jens/Source/shotwell/src/CollectionPage.vala" g_object_ref_sink (_tmp26_); -#line 659 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 666 "/home/jens/Source/shotwell/src/CollectionPage.vala" dialog = _tmp26_; -#line 661 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 668 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp27_ = dialog; -#line 661 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 668 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp31_ = set_background_slideshow_dialog_execute (_tmp27_, &_tmp28_, &_tmp29_, &_tmp30_); -#line 661 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 668 "/home/jens/Source/shotwell/src/CollectionPage.vala" delay = _tmp28_; -#line 661 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 668 "/home/jens/Source/shotwell/src/CollectionPage.vala" desktop = _tmp29_; -#line 661 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 668 "/home/jens/Source/shotwell/src/CollectionPage.vala" screensaver = _tmp30_; -#line 661 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 668 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp31_) { -#line 5919 "CollectionPage.c" +#line 5969 "CollectionPage.c" AppWindow* _tmp32_ = NULL; AppWindow* _tmp33_ = NULL; GeeArrayList* _tmp34_ = NULL; @@ -5924,42 +5974,42 @@ void collection_page_on_set_background (CollectionPage* self) { gboolean _tmp37_ = FALSE; AppWindow* _tmp38_ = NULL; AppWindow* _tmp39_ = NULL; -#line 662 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 669 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp32_ = app_window_get_instance (); -#line 662 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 669 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp33_ = _tmp32_; -#line 662 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 669 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, TYPE_PAGE_WINDOW, PageWindow)); -#line 662 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 669 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp33_); -#line 663 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 670 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp34_ = photos; -#line 663 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 670 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp35_ = delay; -#line 663 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 670 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp36_ = desktop; -#line 663 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 670 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp37_ = screensaver; -#line 663 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 670 "/home/jens/Source/shotwell/src/CollectionPage.vala" desktop_integration_set_background_slideshow (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GEE_TYPE_COLLECTION, GeeCollection), (gdouble) _tmp35_, COLLECTION_PAGE_DESKTOP_SLIDESHOW_TRANSITION_SEC, _tmp36_, _tmp37_); -#line 665 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 672 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp38_ = app_window_get_instance (); -#line 665 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 672 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp39_ = _tmp38_; -#line 665 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 672 "/home/jens/Source/shotwell/src/CollectionPage.vala" page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, TYPE_PAGE_WINDOW, PageWindow)); -#line 665 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 672 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp39_); -#line 5954 "CollectionPage.c" +#line 6004 "CollectionPage.c" } -#line 658 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 665 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (dialog); -#line 5958 "CollectionPage.c" +#line 6008 "CollectionPage.c" } } -#line 645 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 652 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (photos); -#line 5963 "CollectionPage.c" +#line 6013 "CollectionPage.c" } @@ -5999,205 +6049,205 @@ static void collection_page_on_slideshow (CollectionPage* self) { LibraryPhoto* _tmp38_ = NULL; SlideshowPage* _tmp39_ = NULL; SlideshowPage* _tmp40_ = NULL; -#line 670 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 677 "/home/jens/Source/shotwell/src/CollectionPage.vala" g_return_if_fail (IS_COLLECTION_PAGE (self)); -#line 671 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 678 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 671 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 678 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp1_ = _tmp0_; -#line 671 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 678 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp2_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection)); -#line 671 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 678 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp3_ = _tmp2_ == 0; -#line 671 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 678 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp1_); -#line 671 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 678 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp3_) { -#line 672 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 679 "/home/jens/Source/shotwell/src/CollectionPage.vala" return; -#line 6019 "CollectionPage.c" +#line 6069 "CollectionPage.c" } -#line 675 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 682 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 675 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 682 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp6_ = _tmp5_; -#line 675 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 682 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp7_ = view_collection_get_selected_count (_tmp6_); -#line 675 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 682 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp8_ = _tmp7_ > 0; -#line 675 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 682 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp6_); -#line 675 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 682 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp8_) { -#line 6033 "CollectionPage.c" +#line 6083 "CollectionPage.c" ViewCollection* _tmp9_ = NULL; ViewCollection* _tmp10_ = NULL; GeeList* _tmp11_ = NULL; -#line 676 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 683 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp9_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 676 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 683 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp10_ = _tmp9_; -#line 676 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 683 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp11_ = view_collection_get_selected_sources_of_type (_tmp10_, TYPE_LIBRARY_PHOTO); -#line 676 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 683 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp4_); -#line 676 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 683 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp4_ = _tmp11_; -#line 676 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 683 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp10_); -#line 6049 "CollectionPage.c" +#line 6099 "CollectionPage.c" } else { ViewCollection* _tmp12_ = NULL; ViewCollection* _tmp13_ = NULL; GeeList* _tmp14_ = NULL; -#line 677 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 684 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp12_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 677 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 684 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp13_ = _tmp12_; -#line 677 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 684 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp14_ = view_collection_get_sources_of_type (_tmp13_, TYPE_LIBRARY_PHOTO); -#line 677 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 684 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp4_); -#line 677 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 684 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp4_ = _tmp14_; -#line 677 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 684 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp13_); -#line 6066 "CollectionPage.c" +#line 6116 "CollectionPage.c" } -#line 675 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 682 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp15_ = _g_object_ref0 (_tmp4_); -#line 675 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 682 "/home/jens/Source/shotwell/src/CollectionPage.vala" sources = _tmp15_; -#line 678 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 685 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp17_ = sources; -#line 678 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 685 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp17_ == NULL) { -#line 678 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 685 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp16_ = TRUE; -#line 6078 "CollectionPage.c" +#line 6128 "CollectionPage.c" } else { GeeList* _tmp18_ = NULL; gint _tmp19_ = 0; gint _tmp20_ = 0; -#line 678 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 685 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp18_ = sources; -#line 678 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 685 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp19_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 678 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 685 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp20_ = _tmp19_; -#line 678 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 685 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp16_ = _tmp20_ == 0; -#line 6091 "CollectionPage.c" +#line 6141 "CollectionPage.c" } -#line 678 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 685 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp16_) { -#line 679 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 686 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (sources); -#line 679 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 686 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp4_); -#line 679 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 686 "/home/jens/Source/shotwell/src/CollectionPage.vala" return; -#line 6101 "CollectionPage.c" +#line 6151 "CollectionPage.c" } -#line 681 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 688 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp21_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 681 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 688 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp22_ = _tmp21_; -#line 681 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 688 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp23_ = sources; -#line 681 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 688 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp24_ = gee_list_get (_tmp23_, 0); -#line 681 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 688 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp25_ = (DataSource*) _tmp24_; -#line 681 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 688 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp26_ = view_collection_get_view_for_source (_tmp22_, _tmp25_); -#line 681 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 688 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp27_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_THUMBNAIL, Thumbnail); -#line 681 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 688 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp25_); -#line 681 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 688 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp22_); -#line 681 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 688 "/home/jens/Source/shotwell/src/CollectionPage.vala" thumbnail = _tmp27_; -#line 682 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp28_ = thumbnail; -#line 682 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp28_ == NULL) { -#line 683 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 690 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (thumbnail); -#line 683 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 690 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (sources); -#line 683 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 690 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp4_); -#line 683 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 690 "/home/jens/Source/shotwell/src/CollectionPage.vala" return; -#line 6135 "CollectionPage.c" +#line 6185 "CollectionPage.c" } -#line 685 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 692 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp29_ = thumbnail; -#line 685 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 692 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp30_ = thumbnail_get_media_source (_tmp29_); -#line 685 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 692 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp31_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp30_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp30_) : NULL; -#line 685 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 692 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp31_ == NULL) { -#line 685 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 692 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp30_); -#line 6147 "CollectionPage.c" +#line 6197 "CollectionPage.c" } -#line 685 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 692 "/home/jens/Source/shotwell/src/CollectionPage.vala" photo = _tmp31_; -#line 686 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 693 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp32_ = photo; -#line 686 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 693 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp32_ == NULL) { -#line 687 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 694 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (photo); -#line 687 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 694 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (thumbnail); -#line 687 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 694 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (sources); -#line 687 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 694 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp4_); -#line 687 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 694 "/home/jens/Source/shotwell/src/CollectionPage.vala" return; -#line 6165 "CollectionPage.c" +#line 6215 "CollectionPage.c" } -#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 696 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp33_ = app_window_get_instance (); -#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 696 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp34_ = _tmp33_; -#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 696 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp35_ = library_photo_global; -#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 696 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp36_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 696 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp37_ = _tmp36_; -#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 696 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp38_ = photo; -#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 696 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp39_ = slideshow_page_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp37_, G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, TYPE_PHOTO, Photo)); -#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 696 "/home/jens/Source/shotwell/src/CollectionPage.vala" g_object_ref_sink (_tmp39_); -#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 696 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp40_ = _tmp39_; -#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 696 "/home/jens/Source/shotwell/src/CollectionPage.vala" app_window_go_fullscreen (_tmp34_, G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, TYPE_PAGE, Page)); -#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 696 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp40_); -#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 696 "/home/jens/Source/shotwell/src/CollectionPage.vala" _data_collection_unref0 (_tmp37_); -#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 696 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp34_); -#line 670 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 677 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (photo); -#line 670 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 677 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (thumbnail); -#line 670 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 677 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (sources); -#line 670 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 677 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (_tmp4_); -#line 6201 "CollectionPage.c" +#line 6251 "CollectionPage.c" } @@ -6211,49 +6261,49 @@ static gboolean collection_page_real_on_ctrl_pressed (Page* base, GdkEventKey* e GtkToolButton* _tmp3_ = NULL; GdkEventKey* _tmp7_ = NULL; gboolean _tmp8_ = FALSE; -#line 693 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 700 "/home/jens/Source/shotwell/src/CollectionPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage); -#line 694 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 701 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->builder; -#line 694 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 701 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp1_ = gtk_builder_get_object (_tmp0_, "ToolRotate"); -#line 694 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 701 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, gtk_tool_button_get_type ()) ? ((GtkToolButton*) _tmp1_) : NULL); -#line 694 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 701 "/home/jens/Source/shotwell/src/CollectionPage.vala" rotate_button = _tmp2_; -#line 695 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 702 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp3_ = rotate_button; -#line 695 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 702 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp3_ != NULL) { -#line 6229 "CollectionPage.c" +#line 6279 "CollectionPage.c" GtkToolButton* _tmp4_ = NULL; GtkToolButton* _tmp5_ = NULL; GtkToolButton* _tmp6_ = NULL; -#line 696 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 703 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp4_ = rotate_button; -#line 696 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 703 "/home/jens/Source/shotwell/src/CollectionPage.vala" gtk_actionable_set_action_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GTK_TYPE_ACTIONABLE, GtkActionable), "win.RotateCounterclockwise"); -#line 697 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 704 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp5_ = rotate_button; -#line 697 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 704 "/home/jens/Source/shotwell/src/CollectionPage.vala" gtk_tool_button_set_icon_name (_tmp5_, "object-rotate-left"); -#line 698 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 705 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp6_ = rotate_button; -#line 698 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 705 "/home/jens/Source/shotwell/src/CollectionPage.vala" gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_tool_item_get_type (), GtkToolItem), RESOURCES_ROTATE_CCW_TOOLTIP); -#line 6245 "CollectionPage.c" +#line 6295 "CollectionPage.c" } -#line 701 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 708 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp7_ = event; -#line 701 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 708 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp8_ = PAGE_CLASS (collection_page_parent_class)->on_ctrl_pressed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), _tmp7_); -#line 701 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 708 "/home/jens/Source/shotwell/src/CollectionPage.vala" result = _tmp8_; -#line 701 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 708 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (rotate_button); -#line 701 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 708 "/home/jens/Source/shotwell/src/CollectionPage.vala" return result; -#line 6257 "CollectionPage.c" +#line 6307 "CollectionPage.c" } @@ -6267,56 +6317,56 @@ static gboolean collection_page_real_on_ctrl_released (Page* base, GdkEventKey* GtkToolButton* _tmp3_ = NULL; GdkEventKey* _tmp7_ = NULL; gboolean _tmp8_ = FALSE; -#line 704 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 711 "/home/jens/Source/shotwell/src/CollectionPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage); -#line 705 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 712 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->builder; -#line 705 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 712 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp1_ = gtk_builder_get_object (_tmp0_, "ToolRotate"); -#line 705 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 712 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, gtk_tool_button_get_type ()) ? ((GtkToolButton*) _tmp1_) : NULL); -#line 705 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 712 "/home/jens/Source/shotwell/src/CollectionPage.vala" rotate_button = _tmp2_; -#line 706 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 713 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp3_ = rotate_button; -#line 706 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 713 "/home/jens/Source/shotwell/src/CollectionPage.vala" if (_tmp3_ != NULL) { -#line 6285 "CollectionPage.c" +#line 6335 "CollectionPage.c" GtkToolButton* _tmp4_ = NULL; GtkToolButton* _tmp5_ = NULL; GtkToolButton* _tmp6_ = NULL; -#line 707 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 714 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp4_ = rotate_button; -#line 707 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 714 "/home/jens/Source/shotwell/src/CollectionPage.vala" gtk_actionable_set_action_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GTK_TYPE_ACTIONABLE, GtkActionable), "win.RotateClockwise"); -#line 708 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 715 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp5_ = rotate_button; -#line 708 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 715 "/home/jens/Source/shotwell/src/CollectionPage.vala" gtk_tool_button_set_icon_name (_tmp5_, "object-rotate-right"); -#line 709 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 716 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp6_ = rotate_button; -#line 709 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 716 "/home/jens/Source/shotwell/src/CollectionPage.vala" gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_tool_item_get_type (), GtkToolItem), RESOURCES_ROTATE_CW_TOOLTIP); -#line 6301 "CollectionPage.c" +#line 6351 "CollectionPage.c" } -#line 712 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 719 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp7_ = event; -#line 712 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 719 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp8_ = PAGE_CLASS (collection_page_parent_class)->on_ctrl_released (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), _tmp7_); -#line 712 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 719 "/home/jens/Source/shotwell/src/CollectionPage.vala" result = _tmp8_; -#line 712 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 719 "/home/jens/Source/shotwell/src/CollectionPage.vala" _g_object_unref0 (rotate_button); -#line 712 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 719 "/home/jens/Source/shotwell/src/CollectionPage.vala" return result; -#line 6313 "CollectionPage.c" +#line 6363 "CollectionPage.c" } static gpointer _view_filter_ref0 (gpointer self) { -#line 716 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 723 "/home/jens/Source/shotwell/src/CollectionPage.vala" return self ? view_filter_ref (self) : NULL; -#line 6320 "CollectionPage.c" +#line 6370 "CollectionPage.c" } @@ -6325,17 +6375,17 @@ static SearchViewFilter* collection_page_real_get_search_view_filter (Checkerboa SearchViewFilter* result = NULL; CollectionPageCollectionSearchViewFilter* _tmp0_ = NULL; SearchViewFilter* _tmp1_ = NULL; -#line 715 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 722 "/home/jens/Source/shotwell/src/CollectionPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage); -#line 716 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 723 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp0_ = self->priv->search_filter; -#line 716 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 723 "/home/jens/Source/shotwell/src/CollectionPage.vala" _tmp1_ = _view_filter_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)); -#line 716 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 723 "/home/jens/Source/shotwell/src/CollectionPage.vala" result = _tmp1_; -#line 716 "/home/jens/Source/shotwell/src/CollectionPage.vala" +#line 723 "/home/jens/Source/shotwell/src/CollectionPage.vala" return result; -#line 6339 "CollectionPage.c" +#line 6389 "CollectionPage.c" } @@ -6348,7 +6398,7 @@ static guint collection_page_collection_search_view_filter_real_get_criteria (Se result = (guint) ((((SEARCH_FILTER_CRITERIA_TEXT | SEARCH_FILTER_CRITERIA_FLAG) | SEARCH_FILTER_CRITERIA_MEDIA) | SEARCH_FILTER_CRITERIA_RATING) | SEARCH_FILTER_CRITERIA_SAVEDSEARCH); #line 24 "/home/jens/Source/shotwell/src/CollectionPage.vala" return result; -#line 6352 "CollectionPage.c" +#line 6402 "CollectionPage.c" } @@ -6358,14 +6408,14 @@ CollectionPageCollectionSearchViewFilter* collection_page_collection_search_view self = (CollectionPageCollectionSearchViewFilter*) default_search_view_filter_construct (object_type); #line 22 "/home/jens/Source/shotwell/src/CollectionPage.vala" return self; -#line 6362 "CollectionPage.c" +#line 6412 "CollectionPage.c" } CollectionPageCollectionSearchViewFilter* collection_page_collection_search_view_filter_new (void) { #line 22 "/home/jens/Source/shotwell/src/CollectionPage.vala" return collection_page_collection_search_view_filter_construct (COLLECTION_PAGE_TYPE_COLLECTION_SEARCH_VIEW_FILTER); -#line 6369 "CollectionPage.c" +#line 6419 "CollectionPage.c" } @@ -6374,7 +6424,7 @@ static void collection_page_collection_search_view_filter_class_init (Collection collection_page_collection_search_view_filter_parent_class = g_type_class_peek_parent (klass); #line 22 "/home/jens/Source/shotwell/src/CollectionPage.vala" ((SearchViewFilterClass *) klass)->get_criteria = collection_page_collection_search_view_filter_real_get_criteria; -#line 6378 "CollectionPage.c" +#line 6428 "CollectionPage.c" } @@ -6406,6 +6456,8 @@ static void collection_page_class_init (CollectionPageClass * klass) { #line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala" ((PageClass *) klass)->add_actions = collection_page_real_add_actions; #line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala" + ((PageClass *) klass)->remove_actions = collection_page_real_remove_actions; +#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala" ((PageClass *) klass)->init_collect_injection_groups = collection_page_real_init_collect_injection_groups; #line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala" ((PageClass *) klass)->init_actions = collection_page_real_init_actions; @@ -6425,7 +6477,7 @@ static void collection_page_class_init (CollectionPageClass * klass) { ((CheckerboardPageClass *) klass)->get_search_view_filter = collection_page_real_get_search_view_filter; #line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala" G_OBJECT_CLASS (klass)->finalize = collection_page_finalize; -#line 6429 "CollectionPage.c" +#line 6481 "CollectionPage.c" } @@ -6439,7 +6491,7 @@ static void collection_page_instance_init (CollectionPage * self) { _tmp0_ = collection_page_collection_search_view_filter_new (); #line 30 "/home/jens/Source/shotwell/src/CollectionPage.vala" self->priv->search_filter = _tmp0_; -#line 6443 "CollectionPage.c" +#line 6495 "CollectionPage.c" } @@ -6453,7 +6505,7 @@ static void collection_page_finalize (GObject* obj) { _view_filter_unref0 (self->priv->search_filter); #line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala" G_OBJECT_CLASS (collection_page_parent_class)->finalize (obj); -#line 6457 "CollectionPage.c" +#line 6509 "CollectionPage.c" } diff --git a/src/CollectionPage.vala b/src/CollectionPage.vala index c43c0c8..df39f64 100644 --- a/src/CollectionPage.vala +++ b/src/CollectionPage.vala @@ -170,10 +170,17 @@ public abstract class CollectionPage : MediaPage { { "Slideshow", on_slideshow } }; - protected override void add_actions () { - base.add_actions (); + protected override void add_actions (GLib.ActionMap map) { + base.add_actions (map); - AppWindow.get_instance ().add_action_entries (entries, this); + map.add_action_entries (entries, this); + } + + protected override void remove_actions(GLib.ActionMap map) { + base.remove_actions(map); + foreach (var entry in entries) { + map.remove_action(entry.name); + } } protected override InjectionGroup[] init_collect_injection_groups() { @@ -312,7 +319,7 @@ public abstract class CollectionPage : MediaPage { } // see #2020 - // double clcik = switch to photo page + // double click = switch to photo page // Super + double click = open in external editor // Enter = switch to PhotoPage // Ctrl + Enter = open in external editor (handled with accelerators) diff --git a/src/ColorTransformation.c b/src/ColorTransformation.c index 20e9f70..80325c1 100644 --- a/src/ColorTransformation.c +++ b/src/ColorTransformation.c @@ -1,4 +1,4 @@ -/* ColorTransformation.c generated by valac 0.32.1, the Vala compiler +/* ColorTransformation.c generated by valac 0.34.4, the Vala compiler * generated from ColorTransformation.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -12067,19 +12067,19 @@ static gchar* string_chug (const gchar* self) { gchar* _result_ = NULL; gchar* _tmp0_ = NULL; const gchar* _tmp1_ = NULL; -#line 1199 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1199 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, NULL); -#line 1200 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1200 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = g_strdup (self); -#line 1200 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1200 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _result_ = _tmp0_; -#line 1201 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1201 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = _result_; -#line 1201 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1201 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_strchug (_tmp1_); -#line 1202 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1202 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _result_; -#line 1202 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1202 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 12080 "ColorTransformation.c" } @@ -12090,19 +12090,19 @@ static gchar* string_chomp (const gchar* self) { gchar* _result_ = NULL; gchar* _tmp0_ = NULL; const gchar* _tmp1_ = NULL; -#line 1191 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1191 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, NULL); -#line 1192 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1192 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = g_strdup (self); -#line 1192 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1192 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _result_ = _tmp0_; -#line 1193 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1193 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = _result_; -#line 1193 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1193 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_strchomp (_tmp1_); -#line 1194 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1194 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _result_; -#line 1194 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1194 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 12103 "ColorTransformation.c" } diff --git a/src/CommandManager.c b/src/CommandManager.c index 60cb438..a6a282b 100644 --- a/src/CommandManager.c +++ b/src/CommandManager.c @@ -1,4 +1,4 @@ -/* CommandManager.c generated by valac 0.32.1, the Vala compiler +/* CommandManager.c generated by valac 0.34.4, the Vala compiler * generated from CommandManager.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/Commands.c b/src/Commands.c index 7211f77..704c577 100644 --- a/src/Commands.c +++ b/src/Commands.c @@ -1,4 +1,4 @@ -/* Commands.c generated by valac 0.32.1, the Vala compiler +/* Commands.c generated by valac 0.34.4, the Vala compiler * generated from Commands.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -5446,7 +5446,7 @@ static void multiple_data_source_at_once_command_real_execute (Command* base) { #line 448 "/home/jens/Source/shotwell/src/Commands.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 5449 "Commands.c" - goto __catch452_database_error; + goto __catch454_database_error; } { AppWindow* _tmp7_ = NULL; @@ -5470,8 +5470,8 @@ static void multiple_data_source_at_once_command_real_execute (Command* base) { #line 5471 "Commands.c" } } - goto __finally452; - __catch452_database_error: + goto __finally454; + __catch454_database_error: { GError* err = NULL; GError* _tmp9_ = NULL; @@ -5487,7 +5487,7 @@ static void multiple_data_source_at_once_command_real_execute (Command* base) { _g_error_free0 (err); #line 5489 "Commands.c" } - __finally452: + __finally454: { AppWindow* _tmp10_ = NULL; AppWindow* _tmp11_ = NULL; @@ -5583,7 +5583,7 @@ static void multiple_data_source_at_once_command_real_undo (Command* base) { #line 468 "/home/jens/Source/shotwell/src/Commands.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 5586 "Commands.c" - goto __catch453_database_error; + goto __catch455_database_error; } { AppWindow* _tmp7_ = NULL; @@ -5607,8 +5607,8 @@ static void multiple_data_source_at_once_command_real_undo (Command* base) { #line 5608 "Commands.c" } } - goto __finally453; - __catch453_database_error: + goto __finally455; + __catch455_database_error: { GError* err = NULL; GError* _tmp9_ = NULL; @@ -5624,7 +5624,7 @@ static void multiple_data_source_at_once_command_real_undo (Command* base) { _g_error_free0 (err); #line 5626 "Commands.c" } - __finally453: + __finally455: { AppWindow* _tmp10_ = NULL; AppWindow* _tmp11_ = NULL; @@ -10094,7 +10094,7 @@ static void duplicate_multiple_photos_command_real_execute_on_source (MultipleDa #line 1118 "/home/jens/Source/shotwell/src/Commands.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 10097 "Commands.c" - goto __catch454_g_error; + goto __catch456_g_error; } #line 1119 "/home/jens/Source/shotwell/src/Commands.vala" _tmp3_ = self->priv->dupes; @@ -10104,8 +10104,8 @@ static void duplicate_multiple_photos_command_real_execute_on_source (MultipleDa _g_object_unref0 (dupe); #line 10106 "Commands.c" } - goto __finally454; - __catch454_g_error: + goto __finally456; + __catch456_g_error: { GError* err = NULL; GFile* _tmp4_ = NULL; @@ -10145,7 +10145,7 @@ static void duplicate_multiple_photos_command_real_execute_on_source (MultipleDa _g_error_free0 (err); #line 10147 "Commands.c" } - __finally454: + __finally456: #line 1117 "/home/jens/Source/shotwell/src/Commands.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1117 "/home/jens/Source/shotwell/src/Commands.vala" @@ -11543,11 +11543,11 @@ static void adjust_date_time_photo_command_set_time (AdjustDateTimePhotoCommand* #line 1345 "/home/jens/Source/shotwell/src/Commands.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 11546 "Commands.c" - goto __catch455_g_error; + goto __catch457_g_error; } } - goto __finally455; - __catch455_g_error: + goto __finally457; + __catch457_g_error: { GError* err = NULL; const gchar* _tmp5_ = NULL; @@ -11563,7 +11563,7 @@ static void adjust_date_time_photo_command_set_time (AdjustDateTimePhotoCommand* _g_error_free0 (err); #line 11565 "Commands.c" } - __finally455: + __finally457: #line 1344 "/home/jens/Source/shotwell/src/Commands.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1344 "/home/jens/Source/shotwell/src/Commands.vala" @@ -12149,11 +12149,11 @@ static void adjust_date_time_photos_command_set_time (AdjustDateTimePhotosComman #line 1435 "/home/jens/Source/shotwell/src/Commands.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 12152 "Commands.c" - goto __catch456_g_error; + goto __catch458_g_error; } } - goto __finally456; - __catch456_g_error: + goto __finally458; + __catch458_g_error: { GError* err = NULL; GeeArrayList* _tmp5_ = NULL; @@ -12172,7 +12172,7 @@ static void adjust_date_time_photos_command_set_time (AdjustDateTimePhotosComman _g_error_free0 (err); #line 12174 "Commands.c" } - __finally456: + __finally458: #line 1434 "/home/jens/Source/shotwell/src/Commands.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1434 "/home/jens/Source/shotwell/src/Commands.vala" @@ -14570,11 +14570,11 @@ static void reparent_tag_command_on_items_destroyed (ReparentTagCommand* self, G static gchar* string_replace (const gchar* self, const gchar* old, const gchar* replacement) { gchar* result = NULL; GError * _inner_error_ = NULL; -#line 1380 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1380 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, NULL); -#line 1380 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1380 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (old != NULL, NULL); -#line 1380 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1380 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (replacement != NULL, NULL); #line 14580 "Commands.c" { @@ -14589,98 +14589,98 @@ static gchar* string_replace (const gchar* self, const gchar* old, const gchar* const gchar* _tmp7_ = NULL; gchar* _tmp8_ = NULL; gchar* _tmp9_ = NULL; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = old; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = g_regex_escape_string (_tmp0_, -1); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = _tmp1_; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = g_regex_new (_tmp2_, 0, 0, &_inner_error_); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = _tmp3_; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_free0 (_tmp2_); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" regex = _tmp4_; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_inner_error_->domain == G_REGEX_ERROR) { #line 14611 "Commands.c" - goto __catch457_g_regex_error; + goto __catch459_g_regex_error; } -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_clear_error (&_inner_error_); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return NULL; #line 14620 "Commands.c" } -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp6_ = regex; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp7_ = replacement; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp8_ = g_regex_replace_literal (_tmp6_, self, (gssize) -1, 0, _tmp7_, 0, &_inner_error_); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = _tmp8_; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_regex_unref0 (regex); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_inner_error_->domain == G_REGEX_ERROR) { #line 14636 "Commands.c" - goto __catch457_g_regex_error; + goto __catch459_g_regex_error; } -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_regex_unref0 (regex); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_clear_error (&_inner_error_); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return NULL; #line 14647 "Commands.c" } -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp9_ = _tmp5_; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = NULL; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp9_; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_free0 (_tmp5_); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_regex_unref0 (regex); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 14661 "Commands.c" } - goto __finally457; - __catch457_g_regex_error: + goto __finally459; + __catch459_g_regex_error: { GError* e = NULL; -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" e = _inner_error_; -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _inner_error_ = NULL; -#line 1385 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1385 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_assert_not_reached (); -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_error_free0 (e); #line 14675 "Commands.c" } - __finally457: -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" + __finally459: +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_clear_error (&_inner_error_); -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return NULL; #line 14686 "Commands.c" } @@ -15981,37 +15981,37 @@ static glong string_strnlen (gchar* str, glong maxlen) { glong _tmp1_ = 0L; gchar* _tmp2_ = NULL; gchar* _tmp3_ = NULL; -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = str; -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = maxlen; -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = memchr (_tmp0_, 0, (gsize) _tmp1_); -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" end = _tmp2_; -#line 1296 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1296 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = end; -#line 1296 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1296 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp3_ == NULL) { #line 15997 "Commands.c" glong _tmp4_ = 0L; -#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = maxlen; -#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp4_; -#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 16005 "Commands.c" } else { gchar* _tmp5_ = NULL; gchar* _tmp6_ = NULL; -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = end; -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp6_ = str; -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = (glong) (_tmp5_ - _tmp6_); -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 16017 "Commands.c" } @@ -16031,112 +16031,112 @@ static gchar* string_substring (const gchar* self, glong offset, glong len) { glong _tmp20_ = 0L; glong _tmp21_ = 0L; gchar* _tmp22_ = NULL; -#line 1306 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1306 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, NULL); -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = offset; -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp1_ >= ((glong) 0)) { #line 16041 "Commands.c" glong _tmp2_ = 0L; -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = len; -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = _tmp2_ >= ((glong) 0); #line 16047 "Commands.c" } else { -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = FALSE; #line 16051 "Commands.c" } -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp0_) { #line 16055 "Commands.c" glong _tmp3_ = 0L; glong _tmp4_ = 0L; glong _tmp5_ = 0L; -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = offset; -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = len; -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = string_strnlen ((gchar*) self, _tmp3_ + _tmp4_); -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" string_length = _tmp5_; #line 16067 "Commands.c" } else { gint _tmp6_ = 0; gint _tmp7_ = 0; -#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp6_ = strlen (self); -#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp7_ = _tmp6_; -#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" string_length = (glong) _tmp7_; #line 16077 "Commands.c" } -#line 1315 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1315 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp8_ = offset; -#line 1315 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1315 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp8_ < ((glong) 0)) { #line 16083 "Commands.c" glong _tmp9_ = 0L; glong _tmp10_ = 0L; glong _tmp11_ = 0L; -#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp9_ = string_length; -#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp10_ = offset; -#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" offset = _tmp9_ + _tmp10_; -#line 1317 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1317 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp11_ = offset; -#line 1317 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1317 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (_tmp11_ >= ((glong) 0), NULL); #line 16097 "Commands.c" } else { glong _tmp12_ = 0L; glong _tmp13_ = 0L; -#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp12_ = offset; -#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp13_ = string_length; -#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (_tmp12_ <= _tmp13_, NULL); #line 16107 "Commands.c" } -#line 1321 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1321 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp14_ = len; -#line 1321 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1321 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp14_ < ((glong) 0)) { #line 16113 "Commands.c" glong _tmp15_ = 0L; glong _tmp16_ = 0L; -#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp15_ = string_length; -#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp16_ = offset; -#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" len = _tmp15_ - _tmp16_; #line 16122 "Commands.c" } -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp17_ = offset; -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp18_ = len; -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp19_ = string_length; -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail ((_tmp17_ + _tmp18_) <= _tmp19_, NULL); -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp20_ = offset; -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp21_ = len; -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp22_ = g_strndup (((gchar*) self) + _tmp20_, (gsize) _tmp21_); -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp22_; -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 16142 "Commands.c" } diff --git a/src/Commands.vala b/src/Commands.vala index 73e6c8d..75164c5 100644 --- a/src/Commands.vala +++ b/src/Commands.vala @@ -2269,7 +2269,7 @@ public class TagUntagPhotosCommand : SimpleProxyableCommand { private void do_detach(Tag tag) { if (attached_to == null) { // detaching a MediaSource from a Tag may result in the MediaSource being detached from - // many tags (due to heirarchical tagging), so save the MediaSources for each detached + // many tags (due to hierarchical tagging), so save the MediaSources for each detached // Tag for reversing the process detached_from = tag.detach_many(sources); diff --git a/src/CustomComponents.c b/src/CustomComponents.c index 053e2fa..bc287da 100644 --- a/src/CustomComponents.c +++ b/src/CustomComponents.c @@ -1,4 +1,4 @@ -/* CustomComponents.c generated by valac 0.32.1, the Vala compiler +/* CustomComponents.c generated by valac 0.34.4, the Vala compiler * generated from CustomComponents.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/Debug.c b/src/Debug.c index 7711599..3edfcd9 100644 --- a/src/Debug.c +++ b/src/Debug.c @@ -1,4 +1,4 @@ -/* Debug.c generated by valac 0.32.1, the Vala compiler +/* Debug.c generated by valac 0.34.4, the Vala compiler * generated from Debug.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -198,7 +198,7 @@ void debug_init (const gchar* app_version_prefix) { #line 42 "/home/jens/Source/shotwell/src/Debug.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 201 "Debug.c" - goto __catch429_g_error; + goto __catch431_g_error; } #line 42 "/home/jens/Source/shotwell/src/Debug.vala" if (!_tmp13_) { @@ -225,8 +225,8 @@ void debug_init (const gchar* app_version_prefix) { } } } - goto __finally429; - __catch429_g_error: + goto __finally431; + __catch431_g_error: { GError* err = NULL; GError* _tmp20_ = NULL; @@ -250,7 +250,7 @@ void debug_init (const gchar* app_version_prefix) { _g_error_free0 (err); #line 252 "Debug.c" } - __finally429: + __finally431: #line 40 "/home/jens/Source/shotwell/src/Debug.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 40 "/home/jens/Source/shotwell/src/Debug.vala" @@ -526,13 +526,13 @@ gboolean debug_is_enabled (GLogLevelFlags flag) { static void g_time_local (time_t time, struct tm* result) { struct tm _result_ = {0}; struct tm _tmp0_ = {0}; -#line 2701 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2750 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" localtime_r (&time, &_tmp0_); -#line 2701 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2750 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _result_ = _tmp0_; -#line 2702 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2751 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" *result = _result_; -#line 2702 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2751 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return; #line 538 "Debug.c" } @@ -547,23 +547,23 @@ static gchar* g_time_to_string (struct tm *self) { gint _tmp4_ = 0; gint _tmp5_ = 0; gchar* _tmp6_ = NULL; -#line 2706 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2755 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = (*self).tm_year; -#line 2706 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2755 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = (*self).tm_mon; -#line 2706 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2755 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = (*self).tm_mday; -#line 2706 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2755 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = (*self).tm_hour; -#line 2706 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2755 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = (*self).tm_min; -#line 2706 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2755 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = (*self).tm_sec; -#line 2706 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2755 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp6_ = g_strdup_printf ("%04d-%02d-%02d %02d:%02d:%02d", _tmp0_ + 1900, _tmp1_ + 1, _tmp2_, _tmp3_, _tmp4_, _tmp5_); -#line 2706 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2755 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp6_; -#line 2706 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2755 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 569 "Debug.c" } diff --git a/src/DesktopIntegration.c b/src/DesktopIntegration.c index 63d3682..0c25115 100644 --- a/src/DesktopIntegration.c +++ b/src/DesktopIntegration.c @@ -1,4 +1,4 @@ -/* DesktopIntegration.c generated by valac 0.32.1, the Vala compiler +/* DesktopIntegration.c generated by valac 0.34.4, the Vala compiler * generated from DesktopIntegration.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -484,17 +484,17 @@ static gboolean string_contains (const gchar* self, const gchar* needle) { gboolean result = FALSE; const gchar* _tmp0_ = NULL; gchar* _tmp1_ = NULL; -#line 1376 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1376 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, FALSE); -#line 1376 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1376 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (needle != NULL, FALSE); -#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = needle; -#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = strstr ((gchar*) self, (gchar*) _tmp0_); -#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp1_ != NULL; -#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 500 "DesktopIntegration.c" } @@ -1173,7 +1173,7 @@ void desktop_integration_files_send_to (GFile** files, int files_length1) { #line 110 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1176 "DesktopIntegration.c" - goto __catch562_g_error; + goto __catch564_g_error; } #line 118 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" _tmp21_ = app_window_get_instance (); @@ -1185,8 +1185,8 @@ void desktop_integration_files_send_to (GFile** files, int files_length1) { _g_object_unref0 (_tmp22_); #line 1187 "DesktopIntegration.c" } - goto __finally562; - __catch562_g_error: + goto __finally564; + __catch564_g_error: { GError* err = NULL; AppWindow* _tmp23_ = NULL; @@ -1226,7 +1226,7 @@ void desktop_integration_files_send_to (GFile** files, int files_length1) { _g_error_free0 (err); #line 1228 "DesktopIntegration.c" } - __finally562: + __finally564: #line 106 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 106 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" @@ -1568,11 +1568,11 @@ void desktop_integration_set_background (Photo* photo, gboolean desktop, gboolea #line 172 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1571 "DesktopIntegration.c" - goto __catch563_g_error; + goto __catch565_g_error; } } - goto __finally563; - __catch563_g_error: + goto __finally565; + __catch565_g_error: { GError* err = NULL; const gchar* _tmp27_ = NULL; @@ -1617,7 +1617,7 @@ void desktop_integration_set_background (Photo* photo, gboolean desktop, gboolea return; #line 1619 "DesktopIntegration.c" } - __finally563: + __finally565: #line 171 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 171 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" @@ -1802,7 +1802,7 @@ void desktop_integration_background_slideshow_xml_builder_open (DesktopIntegrati #line 1803 "DesktopIntegration.c" } #line 211 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp3_ = g_data_output_stream_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, G_TYPE_OUTPUT_STREAM, GOutputStream)); + _tmp3_ = g_data_output_stream_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, g_output_stream_get_type (), GOutputStream)); #line 211 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" _g_object_unref0 (self->priv->outs); #line 211 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" @@ -2200,7 +2200,7 @@ GFile* desktop_integration_background_slideshow_xml_builder_close (DesktopIntegr #line 254 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" _tmp7_ = self->priv->outs; #line 254 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_output_stream_close (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, G_TYPE_OUTPUT_STREAM, GOutputStream), NULL, &_inner_error_); + g_output_stream_close (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, g_output_stream_get_type (), GOutputStream), NULL, &_inner_error_); #line 254 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 254 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" @@ -2588,11 +2588,11 @@ void desktop_integration_set_background_slideshow (GeeCollection* photos, gdoubl #line 278 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 2591 "DesktopIntegration.c" - goto __catch564_g_error; + goto __catch566_g_error; } } - goto __finally564; - __catch564_g_error: + goto __finally566; + __catch566_g_error: { GError* err = NULL; GError* _tmp8_ = NULL; @@ -2612,7 +2612,7 @@ void desktop_integration_set_background_slideshow (GeeCollection* photos, gdoubl _g_error_free0 (err); #line 2613 "DesktopIntegration.c" } - __finally564: + __finally566: #line 277 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 277 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" @@ -2747,7 +2747,7 @@ void desktop_integration_on_desktop_slideshow_exported (Exporter* exporter, gboo #line 304 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 2749 "DesktopIntegration.c" - goto __catch565_g_error; + goto __catch567_g_error; } #line 306 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" _tmp10_ = exporter; @@ -2789,7 +2789,7 @@ void desktop_integration_on_desktop_slideshow_exported (Exporter* exporter, gboo #line 307 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" file_collection = (_vala_array_free (file_collection, file_collection_length1, (GDestroyNotify) g_object_unref), NULL); #line 2791 "DesktopIntegration.c" - goto __catch565_g_error; + goto __catch567_g_error; } #line 306 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" _g_object_unref0 (file); @@ -2809,7 +2809,7 @@ void desktop_integration_on_desktop_slideshow_exported (Exporter* exporter, gboo #line 309 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 2811 "DesktopIntegration.c" - goto __catch565_g_error; + goto __catch567_g_error; } #line 309 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" _tmp19_ = _tmp16_; @@ -2823,8 +2823,8 @@ void desktop_integration_on_desktop_slideshow_exported (Exporter* exporter, gboo _g_object_unref0 (_tmp16_); #line 2824 "DesktopIntegration.c" } - goto __finally565; - __catch565_g_error: + goto __finally567; + __catch567_g_error: { GError* err = NULL; const gchar* _tmp20_ = NULL; @@ -2860,7 +2860,7 @@ void desktop_integration_on_desktop_slideshow_exported (Exporter* exporter, gboo return; #line 2861 "DesktopIntegration.c" } - __finally565: + __finally567: #line 303 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 303 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" diff --git a/src/Dialogs.c b/src/Dialogs.c index 3db0786..fdd6e47 100644 --- a/src/Dialogs.c +++ b/src/Dialogs.c @@ -1,4 +1,4 @@ -/* Dialogs.c generated by valac 0.32.1, the Vala compiler +/* Dialogs.c generated by valac 0.34.4, the Vala compiler * generated from Dialogs.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -3976,15 +3976,15 @@ static gchar string_get (const gchar* self, glong index) { gchar result = '\0'; glong _tmp0_ = 0L; gchar _tmp1_ = '\0'; -#line 1086 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1086 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, '\0'); -#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = index; -#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = ((gchar*) self)[_tmp0_]; -#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp1_; -#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 3986 "Dialogs.c" } @@ -8774,39 +8774,39 @@ static guint8* string_get_data (const gchar* self, int* result_length1) { gint _tmp3__length1 = 0; guint8* _tmp4_ = NULL; gint _tmp4__length1 = 0; -#line 1398 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1398 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, NULL); -#line 1399 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1399 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" res = (guint8*) self; -#line 1399 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1399 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" res_length1 = -1; -#line 1399 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1399 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _res_size_ = res_length1; -#line 1400 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1400 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = strlen (self); -#line 1400 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1400 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = _tmp0_; -#line 1400 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1400 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" res_length1 = (gint) _tmp1_; -#line 1400 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1400 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = res_length1; -#line 1401 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1401 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = res; -#line 1401 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1401 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3__length1 = res_length1; -#line 1401 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1401 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = _tmp3_; -#line 1401 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1401 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4__length1 = _tmp3__length1; -#line 1401 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1401 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (result_length1) { -#line 1401 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1401 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" *result_length1 = _tmp4__length1; #line 8791 "Dialogs.c" } -#line 1401 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1401 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp4_; -#line 1401 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1401 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 8797 "Dialogs.c" } @@ -8921,7 +8921,7 @@ void import_ui_save_import_results (GtkWindow* chooser_dialog_parent, const gcha #line 925 "/home/jens/Source/shotwell/src/Dialogs.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 8909 "Dialogs.c" - goto __catch421_g_error; + goto __catch423_g_error; } #line 926 "/home/jens/Source/shotwell/src/Dialogs.vala" _tmp18_ = outstream; @@ -8934,31 +8934,31 @@ void import_ui_save_import_results (GtkWindow* chooser_dialog_parent, const gcha #line 926 "/home/jens/Source/shotwell/src/Dialogs.vala" _tmp21__length1 = _tmp20__length1; #line 926 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_output_stream_write (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, G_TYPE_OUTPUT_STREAM, GOutputStream), _tmp21_, (gsize) _tmp21__length1, NULL, &_inner_error_); + g_output_stream_write (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, g_output_stream_get_type (), GOutputStream), _tmp21_, (gsize) _tmp21__length1, NULL, &_inner_error_); #line 926 "/home/jens/Source/shotwell/src/Dialogs.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 926 "/home/jens/Source/shotwell/src/Dialogs.vala" _g_object_unref0 (outstream); #line 8928 "Dialogs.c" - goto __catch421_g_error; + goto __catch423_g_error; } #line 927 "/home/jens/Source/shotwell/src/Dialogs.vala" _tmp22_ = outstream; #line 927 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_output_stream_close (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, G_TYPE_OUTPUT_STREAM, GOutputStream), NULL, &_inner_error_); + g_output_stream_close (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, g_output_stream_get_type (), GOutputStream), NULL, &_inner_error_); #line 927 "/home/jens/Source/shotwell/src/Dialogs.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 927 "/home/jens/Source/shotwell/src/Dialogs.vala" _g_object_unref0 (outstream); #line 8939 "Dialogs.c" - goto __catch421_g_error; + goto __catch423_g_error; } #line 924 "/home/jens/Source/shotwell/src/Dialogs.vala" _g_object_unref0 (outstream); #line 8944 "Dialogs.c" } - goto __finally421; - __catch421_g_error: + goto __finally423; + __catch423_g_error: { GError* err = NULL; GFile* _tmp23_ = NULL; @@ -8988,7 +8988,7 @@ void import_ui_save_import_results (GtkWindow* chooser_dialog_parent, const gcha _g_error_free0 (err); #line 8975 "Dialogs.c" } - __finally421: + __finally423: #line 924 "/home/jens/Source/shotwell/src/Dialogs.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 924 "/home/jens/Source/shotwell/src/Dialogs.vala" @@ -9973,19 +9973,19 @@ static gchar* string_strip (const gchar* self) { gchar* _result_ = NULL; gchar* _tmp0_ = NULL; const gchar* _tmp1_ = NULL; -#line 1207 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1207 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, NULL); -#line 1208 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1208 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = g_strdup (self); -#line 1208 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1208 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _result_ = _tmp0_; -#line 1209 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1209 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = _result_; -#line 1209 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1209 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_strstrip (_tmp1_); -#line 1210 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1210 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _result_; -#line 1210 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1210 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 9976 "Dialogs.c" } @@ -9995,17 +9995,17 @@ static gboolean string_contains (const gchar* self, const gchar* needle) { gboolean result = FALSE; const gchar* _tmp0_ = NULL; gchar* _tmp1_ = NULL; -#line 1376 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1376 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, FALSE); -#line 1376 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1376 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (needle != NULL, FALSE); -#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = needle; -#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = strstr ((gchar*) self, (gchar*) _tmp0_); -#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp1_ != NULL; -#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 9996 "Dialogs.c" } @@ -10018,33 +10018,33 @@ static gint string_last_index_of_char (const gchar* self, gunichar c, gint start gunichar _tmp1_ = 0U; gchar* _tmp2_ = NULL; gchar* _tmp3_ = NULL; -#line 1017 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1017 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, 0); -#line 1018 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1018 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = start_index; -#line 1018 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1018 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = c; -#line 1018 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1018 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = g_utf8_strrchr (((gchar*) self) + _tmp0_, (gssize) -1, _tmp1_); -#line 1018 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1018 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _result_ = _tmp2_; -#line 1020 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1020 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = _result_; -#line 1020 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1020 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp3_ != NULL) { #line 10021 "Dialogs.c" gchar* _tmp4_ = NULL; -#line 1021 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1021 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = _result_; -#line 1021 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1021 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = (gint) (_tmp4_ - ((gchar*) self)); -#line 1021 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1021 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 10029 "Dialogs.c" } else { -#line 1023 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1023 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = -1; -#line 1023 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1023 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 10035 "Dialogs.c" } @@ -10309,37 +10309,37 @@ static glong string_strnlen (gchar* str, glong maxlen) { glong _tmp1_ = 0L; gchar* _tmp2_ = NULL; gchar* _tmp3_ = NULL; -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = str; -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = maxlen; -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = memchr (_tmp0_, 0, (gsize) _tmp1_); -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" end = _tmp2_; -#line 1296 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1296 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = end; -#line 1296 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1296 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp3_ == NULL) { #line 10310 "Dialogs.c" glong _tmp4_ = 0L; -#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = maxlen; -#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp4_; -#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 10318 "Dialogs.c" } else { gchar* _tmp5_ = NULL; gchar* _tmp6_ = NULL; -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = end; -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp6_ = str; -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = (glong) (_tmp5_ - _tmp6_); -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 10330 "Dialogs.c" } @@ -10359,112 +10359,112 @@ static gchar* string_substring (const gchar* self, glong offset, glong len) { glong _tmp20_ = 0L; glong _tmp21_ = 0L; gchar* _tmp22_ = NULL; -#line 1306 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1306 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, NULL); -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = offset; -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp1_ >= ((glong) 0)) { #line 10354 "Dialogs.c" glong _tmp2_ = 0L; -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = len; -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = _tmp2_ >= ((glong) 0); #line 10360 "Dialogs.c" } else { -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = FALSE; #line 10364 "Dialogs.c" } -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp0_) { #line 10368 "Dialogs.c" glong _tmp3_ = 0L; glong _tmp4_ = 0L; glong _tmp5_ = 0L; -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = offset; -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = len; -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = string_strnlen ((gchar*) self, _tmp3_ + _tmp4_); -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" string_length = _tmp5_; #line 10380 "Dialogs.c" } else { gint _tmp6_ = 0; gint _tmp7_ = 0; -#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp6_ = strlen (self); -#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp7_ = _tmp6_; -#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" string_length = (glong) _tmp7_; #line 10390 "Dialogs.c" } -#line 1315 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1315 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp8_ = offset; -#line 1315 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1315 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp8_ < ((glong) 0)) { #line 10396 "Dialogs.c" glong _tmp9_ = 0L; glong _tmp10_ = 0L; glong _tmp11_ = 0L; -#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp9_ = string_length; -#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp10_ = offset; -#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" offset = _tmp9_ + _tmp10_; -#line 1317 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1317 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp11_ = offset; -#line 1317 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1317 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (_tmp11_ >= ((glong) 0), NULL); #line 10410 "Dialogs.c" } else { glong _tmp12_ = 0L; glong _tmp13_ = 0L; -#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp12_ = offset; -#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp13_ = string_length; -#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (_tmp12_ <= _tmp13_, NULL); #line 10420 "Dialogs.c" } -#line 1321 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1321 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp14_ = len; -#line 1321 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1321 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp14_ < ((glong) 0)) { #line 10426 "Dialogs.c" glong _tmp15_ = 0L; glong _tmp16_ = 0L; -#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp15_ = string_length; -#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp16_ = offset; -#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" len = _tmp15_ - _tmp16_; #line 10435 "Dialogs.c" } -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp17_ = offset; -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp18_ = len; -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp19_ = string_length; -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail ((_tmp17_ + _tmp18_) <= _tmp19_, NULL); -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp20_ = offset; -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp21_ = len; -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp22_ = g_strndup (((gchar*) self) + _tmp20_, (gsize) _tmp21_); -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp22_; -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 10455 "Dialogs.c" } @@ -13585,13 +13585,13 @@ static void _adjust_date_time_dialog_on_time_changed_gtk_toggle_button_toggled ( static void g_time_local (time_t time, struct tm* result) { struct tm _result_ = {0}; struct tm _tmp0_ = {0}; -#line 2701 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2750 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" localtime_r (&time, &_tmp0_); -#line 2701 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2750 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _result_ = _tmp0_; -#line 2702 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2751 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" *result = _result_; -#line 2702 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2751 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return; #line 13582 "Dialogs.c" } @@ -14259,7 +14259,7 @@ AdjustDateTimeDialog* adjust_date_time_dialog_construct (GType object_type, Date #line 1753 "/home/jens/Source/shotwell/src/Dialogs.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 14247 "Dialogs.c" - goto __catch422_g_error; + goto __catch424_g_error; } #line 1753 "/home/jens/Source/shotwell/src/Dialogs.vala" _tmp116_ = _tmp113_; @@ -14273,8 +14273,8 @@ AdjustDateTimeDialog* adjust_date_time_dialog_construct (GType object_type, Date _g_object_unref0 (_tmp113_); #line 14260 "Dialogs.c" } - goto __finally422; - __catch422_g_error: + goto __finally424; + __catch424_g_error: { GError* err = NULL; Dateable* _tmp117_ = NULL; @@ -14298,7 +14298,7 @@ AdjustDateTimeDialog* adjust_date_time_dialog_construct (GType object_type, Date _g_error_free0 (err); #line 14285 "Dialogs.c" } - __finally422: + __finally424: #line 1750 "/home/jens/Source/shotwell/src/Dialogs.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1750 "/home/jens/Source/shotwell/src/Dialogs.vala" @@ -14681,35 +14681,35 @@ static gchar* g_time_format (struct tm *self, const gchar* format) { gchar* _tmp3_ = NULL; gint _tmp3__length1 = 0; gchar* _tmp4_ = NULL; -#line 2709 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2758 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (format != NULL, NULL); -#line 2710 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2759 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = g_new0 (gchar, 64); -#line 2710 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2759 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" buffer = _tmp0_; -#line 2710 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2759 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" buffer_length1 = 64; -#line 2710 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2759 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _buffer_size_ = buffer_length1; -#line 2711 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2760 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = buffer; -#line 2711 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2760 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1__length1 = buffer_length1; -#line 2711 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2760 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = format; -#line 2711 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2760 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" strftime (_tmp1_, _tmp1__length1, _tmp2_, &(*self)); -#line 2712 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2761 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = buffer; -#line 2712 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2761 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3__length1 = buffer_length1; -#line 2712 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2761 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = g_strdup ((const gchar*) _tmp3_); -#line 2712 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2761 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp4_; -#line 2712 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2761 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" buffer = (g_free (buffer), NULL); -#line 2712 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2761 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 14700 "Dialogs.c" } @@ -17580,7 +17580,7 @@ static gboolean welcome_dialog_is_system_pictures_import_possible (void) { #line 2255 "/home/jens/Source/shotwell/src/Dialogs.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 17566 "Dialogs.c" - goto __catch423_g_error; + goto __catch425_g_error; } #line 2257 "/home/jens/Source/shotwell/src/Dialogs.vala" _tmp8_ = syspics_child_enum; @@ -17593,7 +17593,7 @@ static gboolean welcome_dialog_is_system_pictures_import_possible (void) { #line 2257 "/home/jens/Source/shotwell/src/Dialogs.vala" _g_object_unref0 (syspics_child_enum); #line 17579 "Dialogs.c" - goto __catch423_g_error; + goto __catch425_g_error; } #line 2257 "/home/jens/Source/shotwell/src/Dialogs.vala" _tmp10_ = _tmp7_; @@ -17617,8 +17617,8 @@ static gboolean welcome_dialog_is_system_pictures_import_possible (void) { return result; #line 17602 "Dialogs.c" } - goto __finally423; - __catch423_g_error: + goto __finally425; + __catch425_g_error: { GError* e = NULL; #line 2254 "/home/jens/Source/shotwell/src/Dialogs.vala" @@ -17635,7 +17635,7 @@ static gboolean welcome_dialog_is_system_pictures_import_possible (void) { return result; #line 17620 "Dialogs.c" } - __finally423: + __finally425: #line 2254 "/home/jens/Source/shotwell/src/Dialogs.vala" _g_object_unref0 (system_pictures); #line 2254 "/home/jens/Source/shotwell/src/Dialogs.vala" @@ -18527,11 +18527,11 @@ static gboolean preferences_dialog_on_local_pattern_help (PreferencesDialog* sel #line 2401 "/home/jens/Source/shotwell/src/Dialogs.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 18513 "Dialogs.c" - goto __catch424_g_error; + goto __catch426_g_error; } } - goto __finally424; - __catch424_g_error: + goto __finally426; + __catch426_g_error: { GError* e = NULL; GError* _tmp3_ = NULL; @@ -18550,7 +18550,7 @@ static gboolean preferences_dialog_on_local_pattern_help (PreferencesDialog* sel _g_error_free0 (e); #line 18535 "Dialogs.c" } - __finally424: + __finally426: #line 2400 "/home/jens/Source/shotwell/src/Dialogs.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 2400 "/home/jens/Source/shotwell/src/Dialogs.vala" @@ -18685,7 +18685,7 @@ static void preferences_dialog_populate_app_combo_box (PreferencesDialog* self, #line 2424 "/home/jens/Source/shotwell/src/Dialogs.vala" gtk_cell_layout_add_attribute (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GTK_TYPE_CELL_LAYOUT, GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_cell_renderer_get_type (), GtkCellRenderer), "text", 1); #line 2427 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp17_ = gtk_list_store_new (2, GDK_TYPE_PIXBUF, G_TYPE_STRING, -1); + _tmp17_ = gtk_list_store_new (2, gdk_pixbuf_get_type (), G_TYPE_STRING, -1); #line 2427 "/home/jens/Source/shotwell/src/Dialogs.vala" combo_store = _tmp17_; #line 2430 "/home/jens/Source/shotwell/src/Dialogs.vala" @@ -18791,7 +18791,7 @@ static void preferences_dialog_populate_app_combo_box (PreferencesDialog* self, #line 2438 "/home/jens/Source/shotwell/src/Dialogs.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 18777 "Dialogs.c" - goto __catch425_g_error; + goto __catch427_g_error; } #line 2438 "/home/jens/Source/shotwell/src/Dialogs.vala" _tmp37_ = combo_store; @@ -18800,7 +18800,7 @@ static void preferences_dialog_populate_app_combo_box (PreferencesDialog* self, #line 2438 "/home/jens/Source/shotwell/src/Dialogs.vala" _tmp39_ = scale_pixbuf (_tmp30_, RESOURCES_DEFAULT_ICON_SCALE, GDK_INTERP_BILINEAR, FALSE); #line 2438 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_value_init (&_tmp40_, GDK_TYPE_PIXBUF); + g_value_init (&_tmp40_, gdk_pixbuf_get_type ()); #line 2438 "/home/jens/Source/shotwell/src/Dialogs.vala" g_value_take_object (&_tmp40_, _tmp39_); #line 2438 "/home/jens/Source/shotwell/src/Dialogs.vala" @@ -18843,7 +18843,7 @@ static void preferences_dialog_populate_app_combo_box (PreferencesDialog* self, #line 2442 "/home/jens/Source/shotwell/src/Dialogs.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 18829 "Dialogs.c" - goto __catch425_g_error; + goto __catch427_g_error; } #line 2446 "/home/jens/Source/shotwell/src/Dialogs.vala" _tmp48_ = combo_store; @@ -18852,7 +18852,7 @@ static void preferences_dialog_populate_app_combo_box (PreferencesDialog* self, #line 2446 "/home/jens/Source/shotwell/src/Dialogs.vala" _tmp50_ = icon_pixbuf; #line 2446 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_value_init (&_tmp51_, GDK_TYPE_PIXBUF); + g_value_init (&_tmp51_, gdk_pixbuf_get_type ()); #line 2446 "/home/jens/Source/shotwell/src/Dialogs.vala" g_value_set_object (&_tmp51_, _tmp50_); #line 2446 "/home/jens/Source/shotwell/src/Dialogs.vala" @@ -18865,8 +18865,8 @@ static void preferences_dialog_populate_app_combo_box (PreferencesDialog* self, } } } - goto __finally425; - __catch425_g_error: + goto __finally427; + __catch427_g_error: { GError* _error_ = NULL; GError* _tmp52_ = NULL; @@ -18893,7 +18893,7 @@ static void preferences_dialog_populate_app_combo_box (PreferencesDialog* self, _g_error_free0 (_error_); #line 18878 "Dialogs.c" } - __finally425: + __finally427: #line 2436 "/home/jens/Source/shotwell/src/Dialogs.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 2436 "/home/jens/Source/shotwell/src/Dialogs.vala" diff --git a/src/Dialogs.vala b/src/Dialogs.vala index ef26b0e..d2f2cb0 100644 --- a/src/Dialogs.vala +++ b/src/Dialogs.vala @@ -2668,7 +2668,7 @@ public class PreferencesDialog { private bool map_event() { // Set the signal for the lib dir button after the dialog is displayed, - // because the FileChooserButton has a nasty habbit of selecting a + // because the FileChooserButton has a nasty habit of selecting a // different folder when displayed if the provided path doesn't exist. // See ticket #3000 for more info. library_dir_button.current_folder_changed.connect(on_current_folder_changed); diff --git a/src/Dimensions.c b/src/Dimensions.c index 57c20a2..8dea342 100644 --- a/src/Dimensions.c +++ b/src/Dimensions.c @@ -1,4 +1,4 @@ -/* Dimensions.c generated by valac 0.32.1, the Vala compiler +/* Dimensions.c generated by valac 0.34.4, the Vala compiler * generated from Dimensions.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/Dimensions.vala b/src/Dimensions.vala index b5556da..7c9eed6 100644 --- a/src/Dimensions.vala +++ b/src/Dimensions.vala @@ -199,7 +199,7 @@ public struct Dimensions { return scaled_rect; } - // Returns the current dimensions scaled in a similar proportion as the two suppled dimensions + // Returns the current dimensions scaled in a similar proportion as the two supplied dimensions public Dimensions get_scaled_similar(Dimensions original, Dimensions scaled) { double x_scale, y_scale; original.get_scale_ratios(scaled, out x_scale, out y_scale); diff --git a/src/DirectoryMonitor.c b/src/DirectoryMonitor.c index 7527ed1..b99f323 100644 --- a/src/DirectoryMonitor.c +++ b/src/DirectoryMonitor.c @@ -1,4 +1,4 @@ -/* DirectoryMonitor.c generated by valac 0.32.1, the Vala compiler +/* DirectoryMonitor.c generated by valac 0.34.4, the Vala compiler * generated from DirectoryMonitor.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -2099,13 +2099,13 @@ static gboolean directory_monitor_async_internal_notify_directory_moved_co (Dire #line 646 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" _data_->_tmp0_ = NULL; #line 646 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp0_ = gee_array_list_new (G_TYPE_FILE, (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_equal_gee_equal_data_func, NULL, NULL); + _data_->_tmp0_ = gee_array_list_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_equal_gee_equal_data_func, NULL, NULL); #line 646 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" _data_->file_children = _data_->_tmp0_; #line 647 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" _data_->_tmp1_ = NULL; #line 647 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp1_ = gee_array_list_new (G_TYPE_FILE, (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_equal_gee_equal_data_func, NULL, NULL); + _data_->_tmp1_ = gee_array_list_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_equal_gee_equal_data_func, NULL, NULL); #line 647 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" _data_->dir_children = _data_->_tmp1_; #line 648 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" @@ -2948,13 +2948,13 @@ static gboolean directory_monitor_async_notify_directory_deleted_co (DirectoryMo #line 744 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" _data_->_tmp0_ = NULL; #line 744 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp0_ = gee_array_list_new (G_TYPE_FILE, (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_equal_gee_equal_data_func, NULL, NULL); + _data_->_tmp0_ = gee_array_list_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_equal_gee_equal_data_func, NULL, NULL); #line 744 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" _data_->file_children = _data_->_tmp0_; #line 745 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" _data_->_tmp1_ = NULL; #line 745 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp1_ = gee_array_list_new (G_TYPE_FILE, (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_equal_gee_equal_data_func, NULL, NULL); + _data_->_tmp1_ = gee_array_list_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_equal_gee_equal_data_func, NULL, NULL); #line 745 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" _data_->dir_children = _data_->_tmp1_; #line 746 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" @@ -3785,7 +3785,7 @@ static gboolean directory_monitor_explore_async_co (DirectoryMonitorExploreAsync #line 857 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" if (G_UNLIKELY (_data_->_inner_error_ != NULL)) { #line 3784 "DirectoryMonitor.c" - goto __catch477_g_error; + goto __catch479_g_error; } #line 857 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" _data_->_tmp15_ = NULL; @@ -3801,8 +3801,8 @@ static gboolean directory_monitor_explore_async_co (DirectoryMonitorExploreAsync _g_object_unref0 (_data_->_tmp11_); #line 3799 "DirectoryMonitor.c" } - goto __finally477; - __catch477_g_error: + goto __finally479; + __catch479_g_error: { #line 856 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" _data_->err = _data_->_inner_error_; @@ -3858,7 +3858,7 @@ static gboolean directory_monitor_explore_async_co (DirectoryMonitorExploreAsync return FALSE; #line 3856 "DirectoryMonitor.c" } - __finally477: + __finally479: #line 856 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" if (G_UNLIKELY (_data_->_inner_error_ != NULL)) { #line 856 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" @@ -4089,7 +4089,7 @@ static gboolean directory_monitor_explore_async_co (DirectoryMonitorExploreAsync #line 905 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" if (G_UNLIKELY (_data_->_inner_error_ != NULL)) { #line 4088 "DirectoryMonitor.c" - goto __catch478_g_error; + goto __catch480_g_error; } { #line 907 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" @@ -4129,7 +4129,7 @@ static gboolean directory_monitor_explore_async_co (DirectoryMonitorExploreAsync #line 908 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" _g_object_unref0 (_data_->enumerator); #line 4128 "DirectoryMonitor.c" - goto __catch478_g_error; + goto __catch480_g_error; } #line 910 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" _data_->_tmp55_ = NULL; @@ -4250,7 +4250,7 @@ static gboolean directory_monitor_explore_async_co (DirectoryMonitorExploreAsync #line 929 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" _data_->_tmp72_ = NULL; #line 929 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp72_ = gee_hash_map_new (G_TYPE_FILE, (GBoxedCopyFunc) g_object_ref, g_object_unref, g_file_info_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL); + _data_->_tmp72_ = gee_hash_map_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, g_file_info_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL); #line 929 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" _g_object_unref0 (_data_->file_map); #line 929 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" @@ -4306,7 +4306,7 @@ static gboolean directory_monitor_explore_async_co (DirectoryMonitorExploreAsync #line 936 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" _data_->_tmp81_ = NULL; #line 936 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp81_ = gee_hash_map_new (G_TYPE_FILE, (GBoxedCopyFunc) g_object_ref, g_object_unref, g_file_info_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL); + _data_->_tmp81_ = gee_hash_map_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, g_file_info_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL); #line 936 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" _g_object_unref0 (_data_->dir_map); #line 936 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" @@ -4371,8 +4371,8 @@ static gboolean directory_monitor_explore_async_co (DirectoryMonitorExploreAsync _g_object_unref0 (_data_->enumerator); #line 4369 "DirectoryMonitor.c" } - goto __finally478; - __catch478_g_error: + goto __finally480; + __catch480_g_error: { #line 904 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" _data_->err2 = _data_->_inner_error_; @@ -4432,7 +4432,7 @@ static gboolean directory_monitor_explore_async_co (DirectoryMonitorExploreAsync return FALSE; #line 4430 "DirectoryMonitor.c" } - __finally478: + __finally480: #line 904 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" if (G_UNLIKELY (_data_->_inner_error_ != NULL)) { #line 904 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" @@ -5058,7 +5058,7 @@ static gboolean directory_monitor_add_monitor (DirectoryMonitor* self, GFile* di #line 1022 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 5057 "DirectoryMonitor.c" - goto __catch479_g_error; + goto __catch481_g_error; } #line 1022 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" _tmp12_ = _tmp9_; @@ -5072,8 +5072,8 @@ static gboolean directory_monitor_add_monitor (DirectoryMonitor* self, GFile* di _g_object_unref0 (_tmp9_); #line 5070 "DirectoryMonitor.c" } - goto __finally479; - __catch479_g_error: + goto __finally481; + __catch481_g_error: { GError* err = NULL; GFile* _tmp13_ = NULL; @@ -5111,7 +5111,7 @@ static gboolean directory_monitor_add_monitor (DirectoryMonitor* self, GFile* di return result; #line 5109 "DirectoryMonitor.c" } - __finally479: + __finally481: #line 1021 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1021 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" @@ -7539,7 +7539,7 @@ static void directory_monitor_query_info_queue_element_on_completed (DirectoryMo #line 107 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" _tmp0_ = source; #line 107 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, G_TYPE_FILE, GFile)); + _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, g_file_get_type (), GFile)); #line 107 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" source_file = _tmp1_; #line 7540 "DirectoryMonitor.c" @@ -7557,7 +7557,7 @@ static void directory_monitor_query_info_queue_element_on_completed (DirectoryMo #line 111 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 7554 "DirectoryMonitor.c" - goto __catch480_g_error; + goto __catch482_g_error; } #line 111 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" _tmp5_ = _tmp2_; @@ -7571,8 +7571,8 @@ static void directory_monitor_query_info_queue_element_on_completed (DirectoryMo _g_object_unref0 (_tmp2_); #line 7567 "DirectoryMonitor.c" } - goto __finally480; - __catch480_g_error: + goto __finally482; + __catch482_g_error: { GError* err = NULL; GError* _tmp6_ = NULL; @@ -7593,7 +7593,7 @@ static void directory_monitor_query_info_queue_element_on_completed (DirectoryMo _g_error_free0 (err); #line 7589 "DirectoryMonitor.c" } - __finally480: + __finally482: #line 110 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 110 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" @@ -8696,7 +8696,7 @@ static GFileInfo* directory_monitor_file_info_map_query_info (DirectoryMonitorFi #line 259 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 8693 "DirectoryMonitor.c" - goto __catch481_g_error; + goto __catch483_g_error; } #line 259 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" _tmp7_ = _tmp3_; @@ -8710,8 +8710,8 @@ static GFileInfo* directory_monitor_file_info_map_query_info (DirectoryMonitorFi _g_object_unref0 (_tmp3_); #line 8706 "DirectoryMonitor.c" } - goto __finally481; - __catch481_g_error: + goto __finally483; + __catch483_g_error: { GError* err = NULL; GFile* _tmp8_ = NULL; @@ -8747,7 +8747,7 @@ static GFileInfo* directory_monitor_file_info_map_query_info (DirectoryMonitorFi return result; #line 8743 "DirectoryMonitor.c" } - __finally481: + __finally483: #line 258 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 258 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" @@ -9165,7 +9165,7 @@ static void directory_monitor_file_info_map_remove_descendents (DirectoryMonitor #line 9160 "DirectoryMonitor.c" GeeArrayList* _tmp17_ = NULL; #line 318 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp17_ = gee_array_list_new (G_TYPE_FILE, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL); + _tmp17_ = gee_array_list_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL); #line 318 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" _g_object_unref0 (pruned); #line 318 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" @@ -9637,11 +9637,11 @@ static void directory_monitor_file_info_map_instance_init (DirectoryMonitorFileI #line 128 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" self->priv = DIRECTORY_MONITOR_FILE_INFO_MAP_GET_PRIVATE (self); #line 129 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = gee_hash_map_new (G_TYPE_FILE, (GBoxedCopyFunc) g_object_ref, g_object_unref, g_file_info_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL); + _tmp0_ = gee_hash_map_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, g_file_info_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL); #line 129 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" self->priv->map = _tmp0_; #line 131 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, G_TYPE_FILE, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL); + _tmp1_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, g_file_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL); #line 131 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" self->priv->id_map = _tmp1_; #line 128 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" @@ -9797,43 +9797,43 @@ static void directory_monitor_class_init (DirectoryMonitorClass * klass) { #line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" G_OBJECT_CLASS (klass)->finalize = directory_monitor_finalize; #line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_signal_new ("root_moved", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, root_moved), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT, G_TYPE_NONE, 3, G_TYPE_FILE, G_TYPE_FILE, g_file_info_get_type ()); + g_signal_new ("root_moved", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, root_moved), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT, G_TYPE_NONE, 3, g_file_get_type (), g_file_get_type (), g_file_info_get_type ()); #line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_signal_new ("root_deleted", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, root_deleted), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, G_TYPE_FILE); + g_signal_new ("root_deleted", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, root_deleted), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, g_file_get_type ()); #line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" g_signal_new ("discovery_started", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, discovery_started), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); #line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_signal_new ("file_discovered", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, file_discovered), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT, G_TYPE_NONE, 2, G_TYPE_FILE, g_file_info_get_type ()); + g_signal_new ("file_discovered", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, file_discovered), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT, G_TYPE_NONE, 2, g_file_get_type (), g_file_info_get_type ()); #line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_signal_new ("directory_discovered", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, directory_discovered), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT, G_TYPE_NONE, 2, G_TYPE_FILE, g_file_info_get_type ()); + g_signal_new ("directory_discovered", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, directory_discovered), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT, G_TYPE_NONE, 2, g_file_get_type (), g_file_info_get_type ()); #line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" g_signal_new ("discovery_failed", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, discovery_failed), NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING); #line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" g_signal_new ("discovery_completed", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, discovery_completed), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); #line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_signal_new ("file_created", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, file_created), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT, G_TYPE_NONE, 2, G_TYPE_FILE, g_file_info_get_type ()); + g_signal_new ("file_created", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, file_created), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT, G_TYPE_NONE, 2, g_file_get_type (), g_file_info_get_type ()); #line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_signal_new ("file_moved", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, file_moved), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT, G_TYPE_NONE, 3, G_TYPE_FILE, G_TYPE_FILE, g_file_info_get_type ()); + g_signal_new ("file_moved", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, file_moved), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT, G_TYPE_NONE, 3, g_file_get_type (), g_file_get_type (), g_file_info_get_type ()); #line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_signal_new ("file_altered", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, file_altered), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, G_TYPE_FILE); + g_signal_new ("file_altered", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, file_altered), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, g_file_get_type ()); #line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_signal_new ("file_alteration_completed", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, file_alteration_completed), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT, G_TYPE_NONE, 2, G_TYPE_FILE, g_file_info_get_type ()); + g_signal_new ("file_alteration_completed", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, file_alteration_completed), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT, G_TYPE_NONE, 2, g_file_get_type (), g_file_info_get_type ()); #line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_signal_new ("file_attributes_altered", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, file_attributes_altered), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, G_TYPE_FILE); + g_signal_new ("file_attributes_altered", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, file_attributes_altered), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, g_file_get_type ()); #line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_signal_new ("file_deleted", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, file_deleted), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, G_TYPE_FILE); + g_signal_new ("file_deleted", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, file_deleted), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, g_file_get_type ()); #line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_signal_new ("directory_created", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, directory_created), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT, G_TYPE_NONE, 2, G_TYPE_FILE, g_file_info_get_type ()); + g_signal_new ("directory_created", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, directory_created), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT, G_TYPE_NONE, 2, g_file_get_type (), g_file_info_get_type ()); #line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_signal_new ("directory_moved", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, directory_moved), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT, G_TYPE_NONE, 3, G_TYPE_FILE, G_TYPE_FILE, g_file_info_get_type ()); + g_signal_new ("directory_moved", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, directory_moved), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT, G_TYPE_NONE, 3, g_file_get_type (), g_file_get_type (), g_file_info_get_type ()); #line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_signal_new ("directory_altered", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, directory_altered), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, G_TYPE_FILE); + g_signal_new ("directory_altered", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, directory_altered), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, g_file_get_type ()); #line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_signal_new ("directory_alteration_completed", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, directory_alteration_completed), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT, G_TYPE_NONE, 2, G_TYPE_FILE, g_file_info_get_type ()); + g_signal_new ("directory_alteration_completed", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, directory_alteration_completed), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT, G_TYPE_NONE, 2, g_file_get_type (), g_file_info_get_type ()); #line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_signal_new ("directory_attributes_altered", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, directory_attributes_altered), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, G_TYPE_FILE); + g_signal_new ("directory_attributes_altered", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, directory_attributes_altered), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, g_file_get_type ()); #line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_signal_new ("directory_deleted", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, directory_deleted), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, G_TYPE_FILE); + g_signal_new ("directory_deleted", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, directory_deleted), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, g_file_get_type ()); #line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" g_signal_new ("closed", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, closed), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); #line 9834 "DirectoryMonitor.c" diff --git a/src/Event.c b/src/Event.c index 60e96ca..3544857 100644 --- a/src/Event.c +++ b/src/Event.c @@ -1,4 +1,4 @@ -/* Event.c generated by valac 0.32.1, the Vala compiler +/* Event.c generated by valac 0.34.4, the Vala compiler * generated from Event.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -3752,7 +3752,7 @@ Event* event_create_empty_event (MediaSource* source) { #line 476 "/home/jens/Source/shotwell/src/Event.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 3755 "Event.c" - goto __catch432_database_error; + goto __catch434_database_error; } #line 476 "/home/jens/Source/shotwell/src/Event.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -3790,8 +3790,8 @@ Event* event_create_empty_event (MediaSource* source) { return result; #line 3792 "Event.c" } - goto __finally432; - __catch432_database_error: + goto __finally434; + __catch434_database_error: { GError* err = NULL; GError* _tmp14_ = NULL; @@ -3811,7 +3811,7 @@ Event* event_create_empty_event (MediaSource* source) { return result; #line 3813 "Event.c" } - __finally432: + __finally434: #line 475 "/home/jens/Source/shotwell/src/Event.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 475 "/home/jens/Source/shotwell/src/Event.vala" @@ -4020,11 +4020,11 @@ static void event_real_break_link_many (ContainerSource* base, GeeCollection* so #line 526 "/home/jens/Source/shotwell/src/Event.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 4023 "Event.c" - goto __catch433_g_error; + goto __catch435_g_error; } } - goto __finally433; - __catch433_g_error: + goto __finally435; + __catch435_g_error: { GError* err = NULL; GError* _tmp6_ = NULL; @@ -4051,7 +4051,7 @@ static void event_real_break_link_many (ContainerSource* base, GeeCollection* so _g_error_free0 (err); #line 4053 "Event.c" } - __finally433: + __finally435: #line 525 "/home/jens/Source/shotwell/src/Event.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 525 "/home/jens/Source/shotwell/src/Event.vala" @@ -4081,11 +4081,11 @@ static void event_real_break_link_many (ContainerSource* base, GeeCollection* so #line 532 "/home/jens/Source/shotwell/src/Event.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 4084 "Event.c" - goto __catch434_g_error; + goto __catch436_g_error; } } - goto __finally434; - __catch434_g_error: + goto __finally436; + __catch436_g_error: { GError* err = NULL; GError* _tmp13_ = NULL; @@ -4112,7 +4112,7 @@ static void event_real_break_link_many (ContainerSource* base, GeeCollection* so _g_error_free0 (err); #line 4114 "Event.c" } - __finally434: + __finally436: #line 531 "/home/jens/Source/shotwell/src/Event.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 531 "/home/jens/Source/shotwell/src/Event.vala" @@ -4198,11 +4198,11 @@ static void event_real_establish_link_many (ContainerSource* base, GeeCollection #line 556 "/home/jens/Source/shotwell/src/Event.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 4201 "Event.c" - goto __catch435_g_error; + goto __catch437_g_error; } } - goto __finally435; - __catch435_g_error: + goto __finally437; + __catch437_g_error: { GError* err = NULL; GError* _tmp6_ = NULL; @@ -4229,7 +4229,7 @@ static void event_real_establish_link_many (ContainerSource* base, GeeCollection _g_error_free0 (err); #line 4231 "Event.c" } - __finally435: + __finally437: #line 555 "/home/jens/Source/shotwell/src/Event.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 555 "/home/jens/Source/shotwell/src/Event.vala" @@ -4259,11 +4259,11 @@ static void event_real_establish_link_many (ContainerSource* base, GeeCollection #line 562 "/home/jens/Source/shotwell/src/Event.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 4262 "Event.c" - goto __catch436_g_error; + goto __catch438_g_error; } } - goto __finally436; - __catch436_g_error: + goto __finally438; + __catch438_g_error: { GError* err = NULL; GError* _tmp13_ = NULL; @@ -4290,7 +4290,7 @@ static void event_real_establish_link_many (ContainerSource* base, GeeCollection _g_error_free0 (err); #line 4292 "Event.c" } - __finally436: + __finally438: #line 561 "/home/jens/Source/shotwell/src/Event.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 561 "/home/jens/Source/shotwell/src/Event.vala" @@ -4322,72 +4322,72 @@ static gchar* _vala_g_strjoinv (const gchar* separator, gchar** str_array, int s gboolean _tmp2_ = FALSE; gchar** _tmp3_ = NULL; gint _tmp3__length1 = 0; -#line 1054 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1054 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = separator; -#line 1054 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1054 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp0_ == NULL) { -#line 1055 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1055 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" separator = ""; #line 4332 "Event.c" } -#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = str_array; -#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3__length1 = str_array_length1; -#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp3_ != NULL) { -#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = TRUE; #line 4342 "Event.c" } else { gchar** _tmp4_ = NULL; gint _tmp4__length1 = 0; -#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = str_array; -#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4__length1 = str_array_length1; -#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = _tmp4__length1 > 0; #line 4352 "Event.c" } -#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp2_) { -#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = TRUE; #line 4358 "Event.c" } else { gboolean _tmp5_ = FALSE; gchar** _tmp6_ = NULL; gint _tmp6__length1 = 0; -#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp6_ = str_array; -#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp6__length1 = str_array_length1; -#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp6__length1 == -1) { #line 4369 "Event.c" gchar** _tmp7_ = NULL; gint _tmp7__length1 = 0; const gchar* _tmp8_ = NULL; -#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp7_ = str_array; -#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp7__length1 = str_array_length1; -#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp8_ = _tmp7_[0]; -#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = _tmp8_ != NULL; #line 4381 "Event.c" } else { -#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = FALSE; #line 4385 "Event.c" } -#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = _tmp5_; #line 4389 "Event.c" } -#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp1_) { #line 4393 "Event.c" gint i = 0; @@ -4410,16 +4410,16 @@ static gchar* _vala_g_strjoinv (const gchar* separator, gchar** str_array, int s const gchar* _tmp44_ = NULL; void* _tmp45_ = NULL; const gchar* _tmp62_ = NULL; -#line 1059 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1059 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" len = (gsize) 1; #line 4416 "Event.c" { gboolean _tmp9_ = FALSE; -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" i = 0; -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp9_ = TRUE; -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" while (TRUE) { #line 4425 "Event.c" gboolean _tmp11_ = FALSE; @@ -4432,97 +4432,97 @@ static gchar* _vala_g_strjoinv (const gchar* separator, gchar** str_array, int s gint _tmp23_ = 0; const gchar* _tmp24_ = NULL; gsize _tmp30_ = 0UL; -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (!_tmp9_) { #line 4438 "Event.c" gint _tmp10_ = 0; -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp10_ = i; -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" i = _tmp10_ + 1; #line 4444 "Event.c" } -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp9_ = FALSE; -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp13_ = str_array; -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp13__length1 = str_array_length1; -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp13__length1 != -1) { #line 4454 "Event.c" gint _tmp14_ = 0; gchar** _tmp15_ = NULL; gint _tmp15__length1 = 0; -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp14_ = i; -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp15_ = str_array; -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp15__length1 = str_array_length1; -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp12_ = _tmp14_ < _tmp15__length1; #line 4466 "Event.c" } else { -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp12_ = FALSE; #line 4470 "Event.c" } -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp12_) { -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp11_ = TRUE; #line 4476 "Event.c" } else { gboolean _tmp16_ = FALSE; gchar** _tmp17_ = NULL; gint _tmp17__length1 = 0; -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp17_ = str_array; -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp17__length1 = str_array_length1; -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp17__length1 == -1) { #line 4487 "Event.c" gchar** _tmp18_ = NULL; gint _tmp18__length1 = 0; gint _tmp19_ = 0; const gchar* _tmp20_ = NULL; -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp18_ = str_array; -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp18__length1 = str_array_length1; -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp19_ = i; -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp20_ = _tmp18_[_tmp19_]; -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp16_ = _tmp20_ != NULL; #line 4502 "Event.c" } else { -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp16_ = FALSE; #line 4506 "Event.c" } -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp11_ = _tmp16_; #line 4510 "Event.c" } -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (!_tmp11_) { -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" break; #line 4516 "Event.c" } -#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp22_ = str_array; -#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp22__length1 = str_array_length1; -#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp23_ = i; -#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp24_ = _tmp22_[_tmp23_]; -#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp24_ != NULL) { #line 4528 "Event.c" gchar** _tmp25_ = NULL; @@ -4531,91 +4531,91 @@ static gchar* _vala_g_strjoinv (const gchar* separator, gchar** str_array, int s const gchar* _tmp27_ = NULL; gint _tmp28_ = 0; gint _tmp29_ = 0; -#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp25_ = str_array; -#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp25__length1 = str_array_length1; -#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp26_ = i; -#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp27_ = _tmp25_[_tmp26_]; -#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp28_ = strlen ((const gchar*) _tmp27_); -#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp29_ = _tmp28_; -#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp21_ = _tmp29_; #line 4549 "Event.c" } else { -#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp21_ = 0; #line 4553 "Event.c" } -#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp30_ = len; -#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" len = _tmp30_ + _tmp21_; #line 4559 "Event.c" } } -#line 1063 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1063 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp31_ = i; -#line 1063 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1063 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp31_ == 0) { #line 4566 "Event.c" gchar* _tmp32_ = NULL; -#line 1064 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1064 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp32_ = g_strdup (""); -#line 1064 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1064 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp32_; -#line 1064 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1064 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 4574 "Event.c" } -#line 1066 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1066 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp33_ = i; -#line 1066 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1066 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" str_array_length1 = _tmp33_; -#line 1066 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1066 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp34_ = str_array_length1; -#line 1067 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1067 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp35_ = len; -#line 1067 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1067 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp36_ = separator; -#line 1067 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1067 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp37_ = strlen ((const gchar*) _tmp36_); -#line 1067 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1067 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp38_ = _tmp37_; -#line 1067 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1067 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp39_ = i; -#line 1067 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1067 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" len = _tmp35_ + (_tmp38_ * (_tmp39_ - 1)); -#line 1069 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1069 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp40_ = len; -#line 1069 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1069 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp41_ = g_malloc (_tmp40_); -#line 1069 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1069 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" res = _tmp41_; -#line 1070 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1070 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp42_ = res; -#line 1070 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1070 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp43_ = str_array; -#line 1070 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1070 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp43__length1 = str_array_length1; -#line 1070 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1070 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp44_ = _tmp43_[0]; -#line 1070 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1070 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp45_ = g_stpcpy ((void*) _tmp42_, (const gchar*) _tmp44_); -#line 1070 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1070 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" ptr = _tmp45_; #line 4612 "Event.c" { gboolean _tmp46_ = FALSE; -#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" i = 1; -#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp46_ = TRUE; -#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" while (TRUE) { #line 4621 "Event.c" gint _tmp48_ = 0; @@ -4631,94 +4631,94 @@ static gchar* _vala_g_strjoinv (const gchar* separator, gchar** str_array, int s const gchar* _tmp56_ = NULL; void* _tmp60_ = NULL; void* _tmp61_ = NULL; -#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (!_tmp46_) { #line 4637 "Event.c" gint _tmp47_ = 0; -#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp47_ = i; -#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" i = _tmp47_ + 1; #line 4643 "Event.c" } -#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp46_ = FALSE; -#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp48_ = i; -#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp49_ = str_array; -#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp49__length1 = str_array_length1; -#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (!(_tmp48_ < _tmp49__length1)) { -#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" break; #line 4657 "Event.c" } -#line 1072 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1072 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp50_ = ptr; -#line 1072 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1072 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp51_ = separator; -#line 1072 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1072 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp52_ = g_stpcpy (_tmp50_, (const gchar*) _tmp51_); -#line 1072 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1072 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" ptr = _tmp52_; -#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp54_ = str_array; -#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp54__length1 = str_array_length1; -#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp55_ = i; -#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp56_ = _tmp54_[_tmp55_]; -#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp56_ != NULL) { #line 4677 "Event.c" gchar** _tmp57_ = NULL; gint _tmp57__length1 = 0; gint _tmp58_ = 0; const gchar* _tmp59_ = NULL; -#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp57_ = str_array; -#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp57__length1 = str_array_length1; -#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp58_ = i; -#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp59_ = _tmp57_[_tmp58_]; -#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp53_ = (const gchar*) _tmp59_; #line 4692 "Event.c" } else { -#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp53_ = ""; #line 4696 "Event.c" } -#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp60_ = ptr; -#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp61_ = g_stpcpy (_tmp60_, _tmp53_); -#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" ptr = _tmp61_; #line 4704 "Event.c" } } -#line 1076 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1076 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp62_ = res; -#line 1076 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1076 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" res = NULL; -#line 1076 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1076 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = (gchar*) _tmp62_; -#line 1076 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1076 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 4715 "Event.c" } else { gchar* _tmp63_ = NULL; -#line 1078 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1078 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp63_ = g_strdup (""); -#line 1078 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1078 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp63_; -#line 1078 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1078 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 4724 "Event.c" } @@ -4898,13 +4898,13 @@ static const gchar* event_real_get_indexable_keywords (Indexable* base) { static void g_time_local (time_t time, struct tm* result) { struct tm _result_ = {0}; struct tm _tmp0_ = {0}; -#line 2701 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2750 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" localtime_r (&time, &_tmp0_); -#line 2701 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2750 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _result_ = _tmp0_; -#line 2702 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2751 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" *result = _result_; -#line 2702 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2751 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return; #line 4910 "Event.c" } @@ -5324,7 +5324,7 @@ static Event* event_generate_event (MediaSource* media, ViewCollection* events_s #line 658 "/home/jens/Source/shotwell/src/Event.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 5326 "Event.c" - goto __catch437_database_error; + goto __catch439_database_error; } #line 658 "/home/jens/Source/shotwell/src/Event.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -5381,8 +5381,8 @@ static Event* event_generate_event (MediaSource* media, ViewCollection* events_s return result; #line 5382 "Event.c" } - goto __finally437; - __catch437_database_error: + goto __finally439; + __catch439_database_error: { GError* err = NULL; GError* _tmp49_ = NULL; @@ -5398,7 +5398,7 @@ static Event* event_generate_event (MediaSource* media, ViewCollection* events_s _g_error_free0 (err); #line 5399 "Event.c" } - __finally437: + __finally439: #line 657 "/home/jens/Source/shotwell/src/Event.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 657 "/home/jens/Source/shotwell/src/Event.vala" @@ -6904,7 +6904,7 @@ GdkPixbuf* event_get_preview_pixbuf (Event* self, Scaling* scaling) { #line 903 "/home/jens/Source/shotwell/src/Event.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 6906 "Event.c" - goto __catch438_g_error; + goto __catch440_g_error; } #line 903 "/home/jens/Source/shotwell/src/Event.vala" _tmp6_ = _tmp0_; @@ -6918,8 +6918,8 @@ GdkPixbuf* event_get_preview_pixbuf (Event* self, Scaling* scaling) { return result; #line 6919 "Event.c" } - goto __finally438; - __catch438_g_error: + goto __finally440; + __catch440_g_error: { GError* err = NULL; #line 902 "/home/jens/Source/shotwell/src/Event.vala" @@ -6934,7 +6934,7 @@ GdkPixbuf* event_get_preview_pixbuf (Event* self, Scaling* scaling) { return result; #line 6935 "Event.c" } - __finally438: + __finally440: #line 902 "/home/jens/Source/shotwell/src/Event.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 902 "/home/jens/Source/shotwell/src/Event.vala" @@ -6976,7 +6976,7 @@ static void event_real_destroy (DataSource* base) { #line 915 "/home/jens/Source/shotwell/src/Event.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 6978 "Event.c" - goto __catch439_database_error; + goto __catch441_database_error; } #line 915 "/home/jens/Source/shotwell/src/Event.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -6987,8 +6987,8 @@ static void event_real_destroy (DataSource* base) { #line 6987 "Event.c" } } - goto __finally439; - __catch439_database_error: + goto __finally441; + __catch441_database_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -7004,7 +7004,7 @@ static void event_real_destroy (DataSource* base) { _g_error_free0 (err); #line 7005 "Event.c" } - __finally439: + __finally441: #line 914 "/home/jens/Source/shotwell/src/Event.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 914 "/home/jens/Source/shotwell/src/Event.vala" diff --git a/src/Exporter.c b/src/Exporter.c index 999c598..3f7a625 100644 --- a/src/Exporter.c +++ b/src/Exporter.c @@ -1,4 +1,4 @@ -/* Exporter.c generated by valac 0.32.1, the Vala compiler +/* Exporter.c generated by valac 0.34.4, the Vala compiler * generated from Exporter.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -1480,7 +1480,7 @@ static gboolean exporter_process_queue (Exporter* self) { #line 230 "/home/jens/Source/shotwell/src/Exporter.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1483 "Exporter.c" - goto __catch475_g_error; + goto __catch477_g_error; } #line 230 "/home/jens/Source/shotwell/src/Exporter.vala" _tmp43_ = _tmp36_; @@ -1494,8 +1494,8 @@ static gboolean exporter_process_queue (Exporter* self) { _g_object_unref0 (_tmp36_); #line 1496 "Exporter.c" } - goto __finally475; - __catch475_g_error: + goto __finally477; + __catch477_g_error: { GError* err = NULL; const gchar* _tmp44_ = NULL; @@ -1556,7 +1556,7 @@ static gboolean exporter_process_queue (Exporter* self) { break; #line 1558 "Exporter.c" } - __finally475: + __finally477: #line 228 "/home/jens/Source/shotwell/src/Exporter.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 228 "/home/jens/Source/shotwell/src/Exporter.vala" @@ -2054,7 +2054,7 @@ static void exporter_export_job_real_execute (BackgroundJob* base) { #line 97 "/home/jens/Source/shotwell/src/Exporter.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 2057 "Exporter.c" - goto __catch476_g_error; + goto __catch478_g_error; } } else { MediaSource* _tmp9_ = NULL; @@ -2074,13 +2074,13 @@ static void exporter_export_job_real_execute (BackgroundJob* base) { #line 99 "/home/jens/Source/shotwell/src/Exporter.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 2077 "Exporter.c" - goto __catch476_g_error; + goto __catch478_g_error; } } } } - goto __finally476; - __catch476_g_error: + goto __finally478; + __catch478_g_error: { GError* err = NULL; GError* _tmp12_ = NULL; @@ -2101,7 +2101,7 @@ static void exporter_export_job_real_execute (BackgroundJob* base) { _g_error_free0 (err); #line 2103 "Exporter.c" } - __finally476: + __finally478: #line 95 "/home/jens/Source/shotwell/src/Exporter.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 95 "/home/jens/Source/shotwell/src/Exporter.vala" diff --git a/src/International.c b/src/International.c index db54c27..b4f2b43 100644 --- a/src/International.c +++ b/src/International.c @@ -1,4 +1,4 @@ -/* International.c generated by valac 0.32.1, the Vala compiler +/* International.c generated by valac 0.34.4, the Vala compiler * generated from International.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/LibraryFiles.c b/src/LibraryFiles.c index 3a088bf..48f84e9 100644 --- a/src/LibraryFiles.c +++ b/src/LibraryFiles.c @@ -1,4 +1,4 @@ -/* LibraryFiles.c generated by valac 0.32.1, the Vala compiler +/* LibraryFiles.c generated by valac 0.34.4, the Vala compiler * generated from LibraryFiles.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -282,11 +282,11 @@ GFile* library_files_generate_unique_file (const gchar* basename, MediaMetadata* #line 30 "/home/jens/Source/shotwell/src/LibraryFiles.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 285 "LibraryFiles.c" - goto __catch459_g_error; + goto __catch461_g_error; } } - goto __finally459; - __catch459_g_error: + goto __finally461; + __catch461_g_error: { GError* err = NULL; GError* _tmp12_ = NULL; @@ -310,13 +310,13 @@ GFile* library_files_generate_unique_file (const gchar* basename, MediaMetadata* #line 33 "/home/jens/Source/shotwell/src/LibraryFiles.vala" _g_error_free0 (err); #line 313 "LibraryFiles.c" - goto __finally459; + goto __finally461; } #line 29 "/home/jens/Source/shotwell/src/LibraryFiles.vala" _g_error_free0 (err); #line 318 "LibraryFiles.c" } - __finally459: + __finally461: #line 29 "/home/jens/Source/shotwell/src/LibraryFiles.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 29 "/home/jens/Source/shotwell/src/LibraryFiles.vala" @@ -441,14 +441,14 @@ GFile* library_files_duplicate (GFile* src, GFileProgressCallback progress_callb #line 50 "/home/jens/Source/shotwell/src/LibraryFiles.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 444 "LibraryFiles.c" - goto __catch460_g_error; + goto __catch462_g_error; } #line 50 "/home/jens/Source/shotwell/src/LibraryFiles.vala" timestamp = _tmp0_; #line 449 "LibraryFiles.c" } - goto __finally460; - __catch460_g_error: + goto __finally462; + __catch462_g_error: { GError* err = NULL; GFile* _tmp3_ = NULL; @@ -478,7 +478,7 @@ GFile* library_files_duplicate (GFile* src, GFileProgressCallback progress_callb _g_error_free0 (err); #line 480 "LibraryFiles.c" } - __finally460: + __finally462: #line 49 "/home/jens/Source/shotwell/src/LibraryFiles.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 49 "/home/jens/Source/shotwell/src/LibraryFiles.vala" @@ -520,7 +520,7 @@ GFile* library_files_duplicate (GFile* src, GFileProgressCallback progress_callb #line 59 "/home/jens/Source/shotwell/src/LibraryFiles.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 523 "LibraryFiles.c" - goto __catch461_g_error; + goto __catch463_g_error; } #line 59 "/home/jens/Source/shotwell/src/LibraryFiles.vala" _tmp15_ = _tmp12_; @@ -534,8 +534,8 @@ GFile* library_files_duplicate (GFile* src, GFileProgressCallback progress_callb _media_metadata_unref0 (_tmp12_); #line 536 "LibraryFiles.c" } - goto __finally461; - __catch461_g_error: + goto __finally463; + __catch463_g_error: { GError* err = NULL; #line 58 "/home/jens/Source/shotwell/src/LibraryFiles.vala" @@ -546,7 +546,7 @@ GFile* library_files_duplicate (GFile* src, GFileProgressCallback progress_callb _g_error_free0 (err); #line 548 "LibraryFiles.c" } - __finally461: + __finally463: #line 58 "/home/jens/Source/shotwell/src/LibraryFiles.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 58 "/home/jens/Source/shotwell/src/LibraryFiles.vala" @@ -604,7 +604,7 @@ GFile* library_files_duplicate (GFile* src, GFileProgressCallback progress_callb #line 67 "/home/jens/Source/shotwell/src/LibraryFiles.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 607 "LibraryFiles.c" - goto __catch462_g_error; + goto __catch464_g_error; } #line 67 "/home/jens/Source/shotwell/src/LibraryFiles.vala" _tmp26_ = _tmp23_; @@ -618,8 +618,8 @@ GFile* library_files_duplicate (GFile* src, GFileProgressCallback progress_callb _media_metadata_unref0 (_tmp23_); #line 620 "LibraryFiles.c" } - goto __finally462; - __catch462_g_error: + goto __finally464; + __catch464_g_error: { GError* err = NULL; #line 66 "/home/jens/Source/shotwell/src/LibraryFiles.vala" @@ -630,7 +630,7 @@ GFile* library_files_duplicate (GFile* src, GFileProgressCallback progress_callb _g_error_free0 (err); #line 632 "LibraryFiles.c" } - __finally462: + __finally464: #line 66 "/home/jens/Source/shotwell/src/LibraryFiles.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 66 "/home/jens/Source/shotwell/src/LibraryFiles.vala" @@ -728,7 +728,7 @@ GFile* library_files_duplicate (GFile* src, GFileProgressCallback progress_callb #line 82 "/home/jens/Source/shotwell/src/LibraryFiles.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 731 "LibraryFiles.c" - goto __catch463_g_error; + goto __catch465_g_error; } #line 83 "/home/jens/Source/shotwell/src/LibraryFiles.vala" _tmp42_ = blacklist; @@ -743,8 +743,8 @@ GFile* library_files_duplicate (GFile* src, GFileProgressCallback progress_callb #line 744 "LibraryFiles.c" } } - goto __finally463; - __catch463_g_error: + goto __finally465; + __catch465_g_error: { GError* err = NULL; GFile* _tmp44_ = NULL; @@ -798,7 +798,7 @@ GFile* library_files_duplicate (GFile* src, GFileProgressCallback progress_callb #line 87 "/home/jens/Source/shotwell/src/LibraryFiles.vala" _g_error_free0 (err); #line 801 "LibraryFiles.c" - goto __finally463; + goto __finally465; } #line 87 "/home/jens/Source/shotwell/src/LibraryFiles.vala" _tmp55_ = dest; @@ -813,7 +813,7 @@ GFile* library_files_duplicate (GFile* src, GFileProgressCallback progress_callb #line 87 "/home/jens/Source/shotwell/src/LibraryFiles.vala" _g_error_free0 (err); #line 816 "LibraryFiles.c" - goto __finally463; + goto __finally465; } #line 87 "/home/jens/Source/shotwell/src/LibraryFiles.vala" _tmp57_ = _tmp51_; @@ -857,7 +857,7 @@ GFile* library_files_duplicate (GFile* src, GFileProgressCallback progress_callb _g_error_free0 (err); #line 859 "LibraryFiles.c" } - __finally463: + __finally465: #line 81 "/home/jens/Source/shotwell/src/LibraryFiles.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 81 "/home/jens/Source/shotwell/src/LibraryFiles.vala" @@ -890,7 +890,7 @@ GFile* library_files_duplicate (GFile* src, GFileProgressCallback progress_callb #line 93 "/home/jens/Source/shotwell/src/LibraryFiles.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 893 "LibraryFiles.c" - goto __catch464_g_error; + goto __catch466_g_error; } #line 94 "/home/jens/Source/shotwell/src/LibraryFiles.vala" _tmp64_ = info; @@ -911,7 +911,7 @@ GFile* library_files_duplicate (GFile* src, GFileProgressCallback progress_callb #line 95 "/home/jens/Source/shotwell/src/LibraryFiles.vala" _g_object_unref0 (info); #line 914 "LibraryFiles.c" - goto __catch464_g_error; + goto __catch466_g_error; } #line 95 "/home/jens/Source/shotwell/src/LibraryFiles.vala" if (!_tmp66_) { @@ -923,8 +923,8 @@ GFile* library_files_duplicate (GFile* src, GFileProgressCallback progress_callb _g_object_unref0 (info); #line 925 "LibraryFiles.c" } - goto __finally464; - __catch464_g_error: + goto __finally466; + __catch466_g_error: { GError* err = NULL; GError* _tmp70_ = NULL; @@ -943,7 +943,7 @@ GFile* library_files_duplicate (GFile* src, GFileProgressCallback progress_callb _g_error_free0 (err); #line 945 "LibraryFiles.c" } - __finally464: + __finally466: #line 92 "/home/jens/Source/shotwell/src/LibraryFiles.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 92 "/home/jens/Source/shotwell/src/LibraryFiles.vala" diff --git a/src/LibraryMonitor.c b/src/LibraryMonitor.c index 761ddd2..ea83be6 100644 --- a/src/LibraryMonitor.c +++ b/src/LibraryMonitor.c @@ -1,4 +1,4 @@ -/* LibraryMonitor.c generated by valac 0.32.1, the Vala compiler +/* LibraryMonitor.c generated by valac 0.34.4, the Vala compiler * generated from LibraryMonitor.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -2251,7 +2251,7 @@ static void library_monitor_real_discovery_started (DirectoryMonitor* base) { #line 287 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" self->priv->discovered = _tmp28_; #line 288 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp29_ = gee_hash_set_new (G_TYPE_FILE, (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL); + _tmp29_ = gee_hash_set_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL); #line 288 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" _g_object_unref0 (self->priv->unknown_files); #line 288 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" @@ -2624,7 +2624,7 @@ static gboolean library_monitor_async_discovery_completed_co (LibraryMonitorAsyn #line 338 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" _data_->_tmp4_ = NULL; #line 338 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp4_ = gee_array_list_new (G_TYPE_FILE, (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_equal_gee_equal_data_func, NULL, NULL); + _data_->_tmp4_ = gee_array_list_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_equal_gee_equal_data_func, NULL, NULL); #line 338 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" _data_->adopted = _data_->_tmp4_; #line 2631 "LibraryMonitor.c" @@ -4123,7 +4123,7 @@ static gboolean library_monitor_verify_monitorable_co (LibraryMonitorVerifyMonit #line 509 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" if (G_UNLIKELY (_data_->_inner_error_ != NULL)) { #line 4126 "LibraryMonitor.c" - goto __catch482_g_error; + goto __catch484_g_error; } #line 509 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" _data_->_tmp31_ = NULL; @@ -4139,8 +4139,8 @@ static gboolean library_monitor_verify_monitorable_co (LibraryMonitorVerifyMonit _g_object_unref0 (_data_->_tmp27_); #line 4141 "LibraryMonitor.c" } - goto __finally482; - __catch482_g_error: + goto __finally484; + __catch484_g_error: { #line 508 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" _data_->err = _data_->_inner_error_; @@ -4150,7 +4150,7 @@ static gboolean library_monitor_verify_monitorable_co (LibraryMonitorVerifyMonit _g_error_free0 (_data_->err); #line 4152 "LibraryMonitor.c" } - __finally482: + __finally484: #line 508 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" if (G_UNLIKELY (_data_->_inner_error_ != NULL)) { #line 508 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" @@ -5384,7 +5384,7 @@ static void library_monitor_on_import_complete (LibraryMonitor* self, BatchImpor #line 700 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 5387 "LibraryMonitor.c" - goto __catch483_database_error; + goto __catch485_database_error; } #line 700 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" _g_object_unref0 (to_tombstone); @@ -5397,8 +5397,8 @@ static void library_monitor_on_import_complete (LibraryMonitor* self, BatchImpor #line 5398 "LibraryMonitor.c" } } - goto __finally483; - __catch483_database_error: + goto __finally485; + __catch485_database_error: { GError* err = NULL; GError* _tmp58_ = NULL; @@ -5414,7 +5414,7 @@ static void library_monitor_on_import_complete (LibraryMonitor* self, BatchImpor _g_error_free0 (err); #line 5416 "LibraryMonitor.c" } - __finally483: + __finally485: #line 699 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 699 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" @@ -5502,7 +5502,7 @@ void library_monitor_blacklist_file (GFile* file, const gchar* reason) { gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp8_); #line 5504 "LibraryMonitor.c" } - __finally484: + __finally486: { GeeHashSet* _tmp9_ = NULL; #line 727 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" @@ -5582,7 +5582,7 @@ void library_monitor_unblacklist_file (GFile* file) { #line 5583 "LibraryMonitor.c" } } - __finally485: + __finally487: { GeeHashSet* _tmp10_ = NULL; #line 735 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" @@ -5632,7 +5632,7 @@ static void library_monitor_on_unblacklist_file (GFile* file) { removed = _tmp3_; #line 5634 "LibraryMonitor.c" } - __finally486: + __finally488: { GeeHashSet* _tmp4_ = NULL; #line 743 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" @@ -5734,7 +5734,7 @@ gboolean library_monitor_is_blacklisted (GFile* file) { return result; #line 5736 "LibraryMonitor.c" } - __finally487: + __finally489: { GeeHashSet* _tmp5_ = NULL; #line 754 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" @@ -6053,7 +6053,7 @@ static void library_monitor_import_unrepresented_files (LibraryMonitor* self) { #line 6054 "LibraryMonitor.c" GeeArrayList* _tmp39_ = NULL; #line 797 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp39_ = gee_array_list_new (G_TYPE_FILE, (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_equal_gee_equal_data_func, NULL, NULL); + _tmp39_ = gee_array_list_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_equal_gee_equal_data_func, NULL, NULL); #line 797 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" _g_object_unref0 (to_import); #line 797 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" @@ -7858,7 +7858,7 @@ static void library_monitor_find_move_job_real_execute (BackgroundJob* base) { #line 133 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 7860 "LibraryMonitor.c" - goto __catch488_g_error; + goto __catch490_g_error; } #line 133 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" _tmp18_ = _tmp15_; @@ -7872,8 +7872,8 @@ static void library_monitor_find_move_job_real_execute (BackgroundJob* base) { _g_free0 (_tmp15_); #line 7873 "LibraryMonitor.c" } - goto __finally488; - __catch488_g_error: + goto __finally490; + __catch490_g_error: { GError* err = NULL; GError* _tmp19_ = NULL; @@ -7900,7 +7900,7 @@ static void library_monitor_find_move_job_real_execute (BackgroundJob* base) { return; #line 7901 "LibraryMonitor.c" } - __finally488: + __finally490: #line 132 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 132 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" @@ -8212,7 +8212,7 @@ static void library_monitor_runtime_find_move_job_real_execute (BackgroundJob* b #line 179 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 8213 "LibraryMonitor.c" - goto __catch489_g_error; + goto __catch491_g_error; } #line 179 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" _tmp3_ = _tmp0_; @@ -8226,8 +8226,8 @@ static void library_monitor_runtime_find_move_job_real_execute (BackgroundJob* b _g_free0 (_tmp0_); #line 8226 "LibraryMonitor.c" } - goto __finally489; - __catch489_g_error: + goto __finally491; + __catch491_g_error: { GError* err = NULL; GError* _tmp4_ = NULL; @@ -8252,7 +8252,7 @@ static void library_monitor_runtime_find_move_job_real_execute (BackgroundJob* b return; #line 8252 "LibraryMonitor.c" } - __finally489: + __finally491: #line 178 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 178 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" @@ -8727,11 +8727,11 @@ static void library_monitor_class_init (LibraryMonitorClass * klass) { #line 206 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" g_rec_mutex_init (&__lock_library_monitor_blacklist); #line 206 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = gee_hash_set_new (G_TYPE_FILE, (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL); + _tmp0_ = gee_hash_set_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL); #line 206 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" library_monitor_blacklist = _tmp0_; #line 207 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = hash_timed_queue_new (G_TYPE_FILE, (GBoxedCopyFunc) g_object_ref, g_object_unref, (guint) LIBRARY_MONITOR_MIN_BLACKLIST_DURATION_MSEC, _library_monitor_on_unblacklist_file_dequeued_callback, NULL, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, G_PRIORITY_LOW); + _tmp1_ = hash_timed_queue_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, (guint) LIBRARY_MONITOR_MIN_BLACKLIST_DURATION_MSEC, _library_monitor_on_unblacklist_file_dequeued_callback, NULL, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, G_PRIORITY_LOW); #line 207 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" library_monitor_to_unblacklist = _tmp1_; #line 8736 "LibraryMonitor.c" @@ -8770,11 +8770,11 @@ static void library_monitor_instance_init (LibraryMonitor * self) { #line 215 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" self->priv->discovered = NULL; #line 216 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp4_ = gee_hash_set_new (G_TYPE_FILE, (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL); + _tmp4_ = gee_hash_set_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL); #line 216 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" self->priv->import_queue = _tmp4_; #line 217 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp5_ = gee_hash_set_new (G_TYPE_FILE, (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL); + _tmp5_ = gee_hash_set_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL); #line 217 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" self->priv->pending_imports = _tmp5_; #line 218 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" diff --git a/src/MediaDataRepresentation.c b/src/MediaDataRepresentation.c index 5e80e43..30783d9 100644 --- a/src/MediaDataRepresentation.c +++ b/src/MediaDataRepresentation.c @@ -1,4 +1,4 @@ -/* MediaDataRepresentation.c generated by valac 0.32.1, the Vala compiler +/* MediaDataRepresentation.c generated by valac 0.34.4, the Vala compiler * generated from MediaDataRepresentation.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -2081,14 +2081,14 @@ gboolean media_source_delete_original_file (MediaSource* self) { #line 102 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 2084 "MediaDataRepresentation.c" - goto __catch557_g_error; + goto __catch559_g_error; } #line 102 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" ret = _tmp1_; #line 2089 "MediaDataRepresentation.c" } - goto __finally557; - __catch557_g_error: + goto __finally559; + __catch559_g_error: { GError* err = NULL; GFile* _tmp4_ = NULL; @@ -2119,7 +2119,7 @@ gboolean media_source_delete_original_file (MediaSource* self) { _g_error_free0 (err); #line 2120 "MediaDataRepresentation.c" } - __finally557: + __finally559: #line 101 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 101 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" @@ -2239,7 +2239,7 @@ gboolean media_source_delete_original_file (MediaSource* self) { #line 119 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 2241 "MediaDataRepresentation.c" - goto __catch558_g_error; + goto __catch560_g_error; } #line 119 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" if (!_tmp29_) { @@ -2248,8 +2248,8 @@ gboolean media_source_delete_original_file (MediaSource* self) { #line 2248 "MediaDataRepresentation.c" } } - goto __finally558; - __catch558_g_error: + goto __finally560; + __catch560_g_error: { GError* err = NULL; GFile* _tmp32_ = NULL; @@ -2281,7 +2281,7 @@ gboolean media_source_delete_original_file (MediaSource* self) { break; #line 2282 "MediaDataRepresentation.c" } - __finally558: + __finally560: #line 118 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 118 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" @@ -2308,7 +2308,7 @@ gboolean media_source_delete_original_file (MediaSource* self) { #line 128 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 2310 "MediaDataRepresentation.c" - goto __catch559_g_error; + goto __catch561_g_error; } #line 129 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" _tmp38_ = parent; @@ -2322,8 +2322,8 @@ gboolean media_source_delete_original_file (MediaSource* self) { _g_free0 (_tmp40_); #line 2323 "MediaDataRepresentation.c" } - goto __finally559; - __catch559_g_error: + goto __finally561; + __catch561_g_error: { GError* err = NULL; GFile* _tmp41_ = NULL; @@ -2354,7 +2354,7 @@ gboolean media_source_delete_original_file (MediaSource* self) { _g_error_free0 (err); #line 2354 "MediaDataRepresentation.c" } - __finally559: + __finally561: #line 127 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 127 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" @@ -3481,7 +3481,7 @@ static void media_source_class_init (MediaSourceClass * klass) { #line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" G_OBJECT_CLASS (klass)->finalize = media_source_finalize; #line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_signal_new ("master_replaced", TYPE_MEDIA_SOURCE, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (MediaSourceClass, master_replaced), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT, G_TYPE_NONE, 2, G_TYPE_FILE, G_TYPE_FILE); + g_signal_new ("master_replaced", TYPE_MEDIA_SOURCE, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (MediaSourceClass, master_replaced), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT, G_TYPE_NONE, 2, g_file_get_type (), g_file_get_type ()); #line 3484 "MediaDataRepresentation.c" } @@ -3970,7 +3970,7 @@ static void media_source_holding_tank_instance_init (MediaSourceHoldingTank * se #line 268 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" self->priv = MEDIA_SOURCE_HOLDING_TANK_GET_PRIVATE (self); #line 269 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = gee_hash_map_new (G_TYPE_FILE, (GBoxedCopyFunc) g_object_ref, g_object_unref, TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL); + _tmp0_ = gee_hash_map_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL); #line 269 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" self->priv->master_file_map = _tmp0_; #line 3975 "MediaDataRepresentation.c" @@ -6399,7 +6399,7 @@ void media_source_collection_remove_from_app (MediaSourceCollection* self, GeeCo #line 704 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 6400 "MediaDataRepresentation.c" - goto __catch560_database_error; + goto __catch562_database_error; } #line 704 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" _aggregate_progress_monitor_unref0 (agg_monitor); @@ -6422,8 +6422,8 @@ void media_source_collection_remove_from_app (MediaSourceCollection* self, GeeCo #line 6421 "MediaDataRepresentation.c" } } - goto __finally560; - __catch560_database_error: + goto __finally562; + __catch562_database_error: { GError* err = NULL; GError* _tmp78_ = NULL; @@ -6439,7 +6439,7 @@ void media_source_collection_remove_from_app (MediaSourceCollection* self, GeeCo _g_error_free0 (err); #line 6439 "MediaDataRepresentation.c" } - __finally560: + __finally562: #line 703 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 703 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" @@ -6564,11 +6564,11 @@ void media_source_collection_delete_backing_files (MediaSourceCollection* self, #line 721 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 6565 "MediaDataRepresentation.c" - goto __catch561_g_error; + goto __catch563_g_error; } } - goto __finally561; - __catch561_g_error: + goto __finally563; + __catch563_g_error: { GError* err = NULL; GFile* _tmp12_ = NULL; @@ -6598,7 +6598,7 @@ void media_source_collection_delete_backing_files (MediaSourceCollection* self, _g_error_free0 (err); #line 6598 "MediaDataRepresentation.c" } - __finally561: + __finally563: #line 720 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 720 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" @@ -6839,7 +6839,7 @@ static void media_source_collection_class_init (MediaSourceCollectionClass * kla #line 341 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" g_signal_new ("media_import_completed", TYPE_MEDIA_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (MediaSourceCollectionClass, media_import_completed), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, GEE_TYPE_COLLECTION); #line 341 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_signal_new ("master_file_replaced", TYPE_MEDIA_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (MediaSourceCollectionClass, master_file_replaced), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT, G_TYPE_NONE, 3, TYPE_MEDIA_SOURCE, G_TYPE_FILE, G_TYPE_FILE); + g_signal_new ("master_file_replaced", TYPE_MEDIA_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (MediaSourceCollectionClass, master_file_replaced), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT, G_TYPE_NONE, 3, TYPE_MEDIA_SOURCE, g_file_get_type (), g_file_get_type ()); #line 341 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" g_signal_new ("trashcan_contents_altered", TYPE_MEDIA_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (MediaSourceCollectionClass, trashcan_contents_altered), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT, G_TYPE_NONE, 2, GEE_TYPE_COLLECTION, GEE_TYPE_COLLECTION); #line 341 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" @@ -6864,7 +6864,7 @@ static void media_source_collection_instance_init (MediaSourceCollection * self) #line 345 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" self->priv->offline_bin = NULL; #line 346 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = gee_hash_map_new (G_TYPE_FILE, (GBoxedCopyFunc) g_object_ref, g_object_unref, TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL); + _tmp0_ = gee_hash_map_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL); #line 346 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" self->priv->by_master_file = _tmp0_; #line 348 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" diff --git a/src/MediaInterfaces.c b/src/MediaInterfaces.c index ba3f229..c81acbf 100644 --- a/src/MediaInterfaces.c +++ b/src/MediaInterfaces.c @@ -1,4 +1,4 @@ -/* MediaInterfaces.c generated by valac 0.32.1, the Vala compiler +/* MediaInterfaces.c generated by valac 0.34.4, the Vala compiler * generated from MediaInterfaces.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -293,11 +293,11 @@ void transaction_controller_begin (TransactionController* self) { #line 69 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 296 "MediaInterfaces.c" - goto __catch568_g_error; + goto __catch570_g_error; } } - goto __finally568; - __catch568_g_error: + goto __finally570; + __catch570_g_error: { GError* err = NULL; gint _tmp3_ = 0; @@ -344,7 +344,7 @@ void transaction_controller_begin (TransactionController* self) { _g_error_free0 (err); #line 346 "MediaInterfaces.c" } - __finally568: + __finally570: #line 68 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 351 "MediaInterfaces.c" @@ -365,7 +365,7 @@ void transaction_controller_begin (TransactionController* self) { #line 366 "MediaInterfaces.c" } } - __finally567: + __finally569: { gint _tmp11_ = 0; #line 64 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" @@ -453,11 +453,11 @@ void transaction_controller_commit (TransactionController* self) { #line 93 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 456 "MediaInterfaces.c" - goto __catch570_g_error; + goto __catch572_g_error; } } - goto __finally570; - __catch570_g_error: + goto __finally572; + __catch572_g_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -499,7 +499,7 @@ void transaction_controller_commit (TransactionController* self) { _g_error_free0 (err); #line 501 "MediaInterfaces.c" } - __finally570: + __finally572: #line 92 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 506 "MediaInterfaces.c" @@ -520,7 +520,7 @@ void transaction_controller_commit (TransactionController* self) { #line 521 "MediaInterfaces.c" } } - __finally569: + __finally571: { gint _tmp12_ = 0; #line 86 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" @@ -792,7 +792,7 @@ static void transaction_controller_finalize (TransactionController* obj) { _vala_assert (_tmp1_ == 0, "count == 0"); #line 794 "MediaInterfaces.c" } - __finally566: + __finally568: { gint _tmp2_ = 0; #line 58 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" diff --git a/src/MediaMetadata.c b/src/MediaMetadata.c index b426c62..ddecf33 100644 --- a/src/MediaMetadata.c +++ b/src/MediaMetadata.c @@ -1,4 +1,4 @@ -/* MediaMetadata.c generated by valac 0.32.1, the Vala compiler +/* MediaMetadata.c generated by valac 0.34.4, the Vala compiler * generated from MediaMetadata.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -1093,13 +1093,13 @@ gboolean metadata_date_time_from_exif_date_time (const gchar* date_time, time_t* static void g_time_local (time_t time, struct tm* result) { struct tm _result_ = {0}; struct tm _tmp0_ = {0}; -#line 2701 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2750 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" localtime_r (&time, &_tmp0_); -#line 2701 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2750 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _result_ = _tmp0_; -#line 2702 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2751 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" *result = _result_; -#line 2702 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2751 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return; #line 1105 "MediaMetadata.c" } @@ -1117,35 +1117,35 @@ static gchar* g_time_format (struct tm *self, const gchar* format) { gchar* _tmp3_ = NULL; gint _tmp3__length1 = 0; gchar* _tmp4_ = NULL; -#line 2709 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2758 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (format != NULL, NULL); -#line 2710 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2759 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = g_new0 (gchar, 64); -#line 2710 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2759 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" buffer = _tmp0_; -#line 2710 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2759 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" buffer_length1 = 64; -#line 2710 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2759 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _buffer_size_ = buffer_length1; -#line 2711 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2760 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = buffer; -#line 2711 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2760 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1__length1 = buffer_length1; -#line 2711 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2760 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = format; -#line 2711 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2760 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" strftime (_tmp1_, _tmp1__length1, _tmp2_, &(*self)); -#line 2712 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2761 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = buffer; -#line 2712 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2761 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3__length1 = buffer_length1; -#line 2712 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2761 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = g_strdup ((const gchar*) _tmp3_); -#line 2712 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2761 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp4_; -#line 2712 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2761 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" buffer = (g_free (buffer), NULL); -#line 2712 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2761 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 1151 "MediaMetadata.c" } diff --git a/src/MediaMonitor.c b/src/MediaMonitor.c index aa1cd67..f741331 100644 --- a/src/MediaMonitor.c +++ b/src/MediaMonitor.c @@ -1,4 +1,4 @@ -/* MediaMonitor.c generated by valac 0.32.1, the Vala compiler +/* MediaMonitor.c generated by valac 0.34.4, the Vala compiler * generated from MediaMonitor.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -2166,7 +2166,7 @@ static void media_monitor_real_process_updates (MediaMonitor* self, GeeCollectio #line 2167 "MediaMonitor.c" GeeHashMap* _tmp12_ = NULL; #line 298 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp12_ = gee_hash_map_new (TYPE_MONITORABLE, (GBoxedCopyFunc) g_object_ref, g_object_unref, G_TYPE_FILE, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); + _tmp12_ = gee_hash_map_new (TYPE_MONITORABLE, (GBoxedCopyFunc) g_object_ref, g_object_unref, g_file_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); #line 298 "/home/jens/Source/shotwell/src/MediaMonitor.vala" _g_object_unref0 (set_master_file); #line 298 "/home/jens/Source/shotwell/src/MediaMonitor.vala" @@ -2853,7 +2853,7 @@ static gboolean media_monitor_on_flush_pending_updates (MediaMonitor* self) { #line 394 "/home/jens/Source/shotwell/src/MediaMonitor.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 2856 "MediaMonitor.c" - goto __catch579_g_error; + goto __catch581_g_error; } #line 395 "/home/jens/Source/shotwell/src/MediaMonitor.vala" _tmp39_ = controller; @@ -2861,8 +2861,8 @@ static gboolean media_monitor_on_flush_pending_updates (MediaMonitor* self) { transaction_controller_commit (_tmp39_); #line 2863 "MediaMonitor.c" } - goto __finally579; - __catch579_g_error: + goto __finally581; + __catch581_g_error: { GError* err = NULL; GError* _tmp40_ = NULL; @@ -2907,7 +2907,7 @@ static gboolean media_monitor_on_flush_pending_updates (MediaMonitor* self) { _g_error_free0 (err); #line 2909 "MediaMonitor.c" } - __finally579: + __finally581: #line 392 "/home/jens/Source/shotwell/src/MediaMonitor.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 392 "/home/jens/Source/shotwell/src/MediaMonitor.vala" diff --git a/src/MediaPage.c b/src/MediaPage.c index 3cd4e03..90f8ac6 100644 --- a/src/MediaPage.c +++ b/src/MediaPage.c @@ -1,4 +1,4 @@ -/* MediaPage.c generated by valac 0.32.1, the Vala compiler +/* MediaPage.c generated by valac 0.34.4, the Vala compiler * generated from MediaPage.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -18,8 +18,8 @@ #include <gdk-pixbuf/gdk-pixbuf.h> #include <pango/pango.h> #include <gtk/gtk.h> -#include <gee.h> #include <gio/gio.h> +#include <gee.h> #include <glib/gi18n-lib.h> @@ -301,16 +301,6 @@ typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; typedef struct _ConfigFacade ConfigFacade; typedef struct _ConfigFacadeClass ConfigFacadeClass; - -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; #define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL))) #define TYPE_MEDIA_SOURCE (media_source_get_type ()) @@ -777,7 +767,8 @@ struct _PageClass { void (*ready) (Page* self); void (*switching_to_fullscreen) (Page* self, FullscreenWindow* fsw); void (*returning_from_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*add_actions) (Page* self); + void (*add_actions) (Page* self, GActionMap* map); + void (*remove_actions) (Page* self, GActionMap* map); void (*init_collect_ui_filenames) (Page* self, GeeList* ui_filenames); InjectionGroup** (*init_collect_injection_groups) (Page* self, int* result_length1); void (*init_actions) (Page* self, gint selected_count, gint count); @@ -1133,8 +1124,6 @@ void page_on_action_radio (Page* self, GAction* action, GVariant* value); static void _page_on_action_radio_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self); void media_page_on_sort_changed (MediaPage* self, GSimpleAction* action, GVariant* value); static void _media_page_on_sort_changed_gsimple_action_change_state_callback (GSimpleAction* action, GVariant* value, gpointer self); -static void media_page_on_raw_developer_changed (MediaPage* self, GSimpleAction* action, GVariant* value); -static void _media_page_on_raw_developer_changed_gsimple_action_change_state_callback (GSimpleAction* action, GVariant* value, gpointer self); MediaPage* media_page_construct (GType object_type, const gchar* page_name); CheckerboardPage* checkerboard_page_construct (GType object_type, const gchar* page_name); GType view_collection_get_type (void) G_GNUC_CONST; @@ -1168,11 +1157,9 @@ gint thumbnail_get_MAX_SCALE (void); static gint media_page_compute_zoom_scale_decrease (gint current_scale); static void media_page_real_init_collect_ui_filenames (Page* base, GeeList* ui_filenames); void page_init_collect_ui_filenames (Page* self, GeeList* ui_filenames); -static void media_page_real_add_actions (Page* base); -void page_add_actions (Page* self); +static void media_page_real_add_actions (Page* base, GActionMap* map); +void page_add_actions (Page* self, GActionMap* map); void media_page_get_config_photos_sort (MediaPage* self, gboolean* sort_order, gint* sort_by); -GType app_window_get_type (void) G_GNUC_CONST; -AppWindow* app_window_get_instance (void); GAction* page_get_action (Page* self, const gchar* name); static GVariant* _variant_new23 (gboolean value); static GVariant* _variant_new24 (gboolean value); @@ -1182,6 +1169,10 @@ static GVariant* _variant_new27 (gchar* value); static GVariant* _variant_new28 (const gchar* value); RawDeveloper configuration_facade_get_default_raw_developer (ConfigurationFacade* self); static GVariant* _variant_new29 (const gchar* value); +static void media_page_on_raw_developer_changed (MediaPage* self, GSimpleAction* action, GVariant* value); +static void _media_page_on_raw_developer_changed_g_simple_action_change_state (GSimpleAction* _sender, GVariant* value, gpointer self); +static void media_page_real_remove_actions (Page* base, GActionMap* map); +void page_remove_actions (Page* self, GActionMap* map); static void media_page_real_update_actions (Page* base, gint selected_count, gint count); void page_set_action_sensitive (Page* self, const gchar* name, gboolean sensitive); gboolean desktop_integration_is_send_to_installed (void); @@ -1379,9 +1370,7 @@ static void media_page_real_on_sort_changed (MediaPage* self, GSimpleAction* act gint media_page_get_menu_sort_by (MediaPage* self); gboolean media_page_get_menu_sort_order (MediaPage* self); static void media_page_set_view_comparator (MediaPage* self, gint sort_by, gboolean ascending); -void media_page_on_raw_developer_shotwell (MediaPage* self); void media_page_developer_changed (MediaPage* self, RawDeveloper rd); -void media_page_on_raw_developer_camera (MediaPage* self); static void media_page_real_developer_changed (MediaPage* self, RawDeveloper rd); gboolean raw_developer_is_equivalent (RawDeveloper self, RawDeveloper d); RawDeveloper photo_get_raw_developer (Photo* self); @@ -1457,7 +1446,7 @@ static void media_page_finalize (GObject* obj); static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func); static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func); -static const GActionEntry MEDIA_PAGE_entries[31] = {{"Export", _media_page_on_export_gsimple_action_activate_callback}, {"SendTo", _media_page_on_send_to_gsimple_action_activate_callback}, {"SendToContextMenu", _media_page_on_send_to_gsimple_action_activate_callback}, {"RemoveFromLibrary", _media_page_on_remove_from_library_gsimple_action_activate_callback}, {"MoveToTrash", _media_page_on_move_to_trash_gsimple_action_activate_callback}, {"NewEvent", _media_page_on_new_event_gsimple_action_activate_callback}, {"AddTags", _media_page_on_add_tags_gsimple_action_activate_callback}, {"AddTagsContextMenu", _media_page_on_add_tags_gsimple_action_activate_callback}, {"ModifyTags", _media_page_on_modify_tags_gsimple_action_activate_callback}, {"IncreaseSize", _media_page_on_increase_size_gsimple_action_activate_callback}, {"DecreaseSize", _media_page_on_decrease_size_gsimple_action_activate_callback}, {"Flag", _media_page_on_flag_unflag_gsimple_action_activate_callback}, {"IncreaseRating", _media_page_on_increase_rating_gsimple_action_activate_callback}, {"DecreaseRating", _media_page_on_decrease_rating_gsimple_action_activate_callback}, {"RateRejected", _media_page_on_rate_rejected_gsimple_action_activate_callback}, {"RateUnrated", _media_page_on_rate_unrated_gsimple_action_activate_callback}, {"RateOne", _media_page_on_rate_one_gsimple_action_activate_callback}, {"RateTwo", _media_page_on_rate_two_gsimple_action_activate_callback}, {"RateThree", _media_page_on_rate_three_gsimple_action_activate_callback}, {"RateFour", _media_page_on_rate_four_gsimple_action_activate_callback}, {"RateFive", _media_page_on_rate_five_gsimple_action_activate_callback}, {"EditTitle", _media_page_on_edit_title_gsimple_action_activate_callback}, {"EditComment", _media_page_on_edit_comment_gsimple_action_activate_callback}, {"PlayVideo", _media_page_on_play_video_gsimple_action_activate_callback}, {"ViewTitle", _page_on_action_toggle_gsimple_action_activate_callback, NULL, "false", _media_page_on_display_titles_gsimple_action_change_state_callback}, {"ViewComment", _page_on_action_toggle_gsimple_action_activate_callback, NULL, "false", _media_page_on_display_comments_gsimple_action_change_state_callback}, {"ViewRatings", _page_on_action_toggle_gsimple_action_activate_callback, NULL, "false", _media_page_on_display_ratings_gsimple_action_change_state_callback}, {"ViewTags", _page_on_action_toggle_gsimple_action_activate_callback, NULL, "false", _media_page_on_display_tags_gsimple_action_change_state_callback}, {"SortBy", _page_on_action_radio_gsimple_action_activate_callback, "s", "'1'", _media_page_on_sort_changed_gsimple_action_change_state_callback}, {"Sort", _page_on_action_radio_gsimple_action_activate_callback, "s", "'ascending'", _media_page_on_sort_changed_gsimple_action_change_state_callback}, {"RawDeveloper", _page_on_action_radio_gsimple_action_activate_callback, "s", "'Shotwell'", _media_page_on_raw_developer_changed_gsimple_action_change_state_callback}}; +static const GActionEntry MEDIA_PAGE_entries[30] = {{"Export", _media_page_on_export_gsimple_action_activate_callback}, {"SendTo", _media_page_on_send_to_gsimple_action_activate_callback}, {"SendToContextMenu", _media_page_on_send_to_gsimple_action_activate_callback}, {"RemoveFromLibrary", _media_page_on_remove_from_library_gsimple_action_activate_callback}, {"MoveToTrash", _media_page_on_move_to_trash_gsimple_action_activate_callback}, {"NewEvent", _media_page_on_new_event_gsimple_action_activate_callback}, {"AddTags", _media_page_on_add_tags_gsimple_action_activate_callback}, {"AddTagsContextMenu", _media_page_on_add_tags_gsimple_action_activate_callback}, {"ModifyTags", _media_page_on_modify_tags_gsimple_action_activate_callback}, {"IncreaseSize", _media_page_on_increase_size_gsimple_action_activate_callback}, {"DecreaseSize", _media_page_on_decrease_size_gsimple_action_activate_callback}, {"Flag", _media_page_on_flag_unflag_gsimple_action_activate_callback}, {"IncreaseRating", _media_page_on_increase_rating_gsimple_action_activate_callback}, {"DecreaseRating", _media_page_on_decrease_rating_gsimple_action_activate_callback}, {"RateRejected", _media_page_on_rate_rejected_gsimple_action_activate_callback}, {"RateUnrated", _media_page_on_rate_unrated_gsimple_action_activate_callback}, {"RateOne", _media_page_on_rate_one_gsimple_action_activate_callback}, {"RateTwo", _media_page_on_rate_two_gsimple_action_activate_callback}, {"RateThree", _media_page_on_rate_three_gsimple_action_activate_callback}, {"RateFour", _media_page_on_rate_four_gsimple_action_activate_callback}, {"RateFive", _media_page_on_rate_five_gsimple_action_activate_callback}, {"EditTitle", _media_page_on_edit_title_gsimple_action_activate_callback}, {"EditComment", _media_page_on_edit_comment_gsimple_action_activate_callback}, {"PlayVideo", _media_page_on_play_video_gsimple_action_activate_callback}, {"ViewTitle", _page_on_action_toggle_gsimple_action_activate_callback, NULL, "false", _media_page_on_display_titles_gsimple_action_change_state_callback}, {"ViewComment", _page_on_action_toggle_gsimple_action_activate_callback, NULL, "false", _media_page_on_display_comments_gsimple_action_change_state_callback}, {"ViewRatings", _page_on_action_toggle_gsimple_action_activate_callback, NULL, "false", _media_page_on_display_ratings_gsimple_action_change_state_callback}, {"ViewTags", _page_on_action_toggle_gsimple_action_activate_callback, NULL, "false", _media_page_on_display_tags_gsimple_action_change_state_callback}, {"SortBy", _page_on_action_radio_gsimple_action_activate_callback, "s", "'1'", _media_page_on_sort_changed_gsimple_action_change_state_callback}, {"Sort", _page_on_action_radio_gsimple_action_activate_callback, "s", "'ascending'", _media_page_on_sort_changed_gsimple_action_change_state_callback}}; MediaSourceItem* media_source_item_construct (GType object_type, ThumbnailSource* source, Dimensions* initial_pixbuf_dim, const gchar* title, const gchar* comment, gboolean marked_up, PangoAlignment alignment) { MediaSourceItem * self = NULL; @@ -1492,7 +1481,7 @@ MediaSourceItem* media_source_item_construct (GType object_type, ThumbnailSource _tmp6_ = media_source_item_basis_sprocket_pixbuf; #line 19 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp6_ == NULL) { -#line 1496 "MediaPage.c" +#line 1485 "MediaPage.c" GdkPixbuf* _tmp7_ = NULL; #line 20 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = resources_load_icon ("sprocket.png", 0); @@ -1500,18 +1489,18 @@ MediaSourceItem* media_source_item_construct (GType object_type, ThumbnailSource _g_object_unref0 (media_source_item_basis_sprocket_pixbuf); #line 20 "/home/jens/Source/shotwell/src/MediaPage.vala" media_source_item_basis_sprocket_pixbuf = _tmp7_; -#line 1504 "MediaPage.c" +#line 1493 "MediaPage.c" } #line 16 "/home/jens/Source/shotwell/src/MediaPage.vala" return self; -#line 1508 "MediaPage.c" +#line 1497 "MediaPage.c" } MediaSourceItem* media_source_item_new (ThumbnailSource* source, Dimensions* initial_pixbuf_dim, const gchar* title, const gchar* comment, gboolean marked_up, PangoAlignment alignment) { #line 16 "/home/jens/Source/shotwell/src/MediaPage.vala" return media_source_item_construct (TYPE_MEDIA_SOURCE_ITEM, source, initial_pixbuf_dim, title, comment, marked_up, alignment); -#line 1515 "MediaPage.c" +#line 1504 "MediaPage.c" } @@ -1545,7 +1534,7 @@ static void media_source_item_real_paint_image (CheckerboardItem* base, cairo_t* if (!_tmp2_) { #line 31 "/home/jens/Source/shotwell/src/MediaPage.vala" checkerboard_item_set_horizontal_trinket_offset (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), 0); -#line 1549 "MediaPage.c" +#line 1538 "MediaPage.c" } else { gdouble reduction_factor = 0.0; gint _tmp3_ = 0; @@ -1579,7 +1568,7 @@ static void media_source_item_real_paint_image (CheckerboardItem* base, cairo_t* if (_tmp9_ == NULL) { #line 37 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = TRUE; -#line 1583 "MediaPage.c" +#line 1572 "MediaPage.c" } else { gint _tmp10_ = 0; GdkPixbuf* _tmp11_ = NULL; @@ -1595,11 +1584,11 @@ static void media_source_item_real_paint_image (CheckerboardItem* base, cairo_t* _tmp13_ = _tmp12_; #line 37 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = _tmp10_ != _tmp13_; -#line 1599 "MediaPage.c" +#line 1588 "MediaPage.c" } #line 37 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp8_) { -#line 1603 "MediaPage.c" +#line 1592 "MediaPage.c" GdkPixbuf* _tmp14_ = NULL; gint _tmp15_ = 0; gint _tmp16_ = 0; @@ -1616,7 +1605,7 @@ static void media_source_item_real_paint_image (CheckerboardItem* base, cairo_t* _g_object_unref0 (media_source_item_current_sprocket_pixbuf); #line 38 "/home/jens/Source/shotwell/src/MediaPage.vala" media_source_item_current_sprocket_pixbuf = _tmp17_; -#line 1620 "MediaPage.c" +#line 1609 "MediaPage.c" } #line 42 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp18_ = media_source_item_current_sprocket_pixbuf; @@ -1626,7 +1615,7 @@ static void media_source_item_real_paint_image (CheckerboardItem* base, cairo_t* _tmp20_ = _tmp19_; #line 42 "/home/jens/Source/shotwell/src/MediaPage.vala" checkerboard_item_set_horizontal_trinket_offset (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), _tmp20_); -#line 1630 "MediaPage.c" +#line 1619 "MediaPage.c" } #line 45 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp21_ = ctx; @@ -1640,7 +1629,7 @@ static void media_source_item_real_paint_image (CheckerboardItem* base, cairo_t* _tmp24_ = self->priv->enable_sprockets; #line 47 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp24_) { -#line 1644 "MediaPage.c" +#line 1633 "MediaPage.c" cairo_t* _tmp25_ = NULL; GdkPoint _tmp26_ = {0}; Dimensions _tmp27_ = {0}; @@ -1652,7 +1641,7 @@ static void media_source_item_real_paint_image (CheckerboardItem* base, cairo_t* _tmp27_ = pixbuf_dim; #line 48 "/home/jens/Source/shotwell/src/MediaPage.vala" media_source_item_paint_sprockets (self, _tmp25_, &_tmp26_, &_tmp27_); -#line 1656 "MediaPage.c" +#line 1645 "MediaPage.c" } } @@ -1699,7 +1688,7 @@ void media_source_item_paint_one_sprocket (MediaSourceItem* self, cairo_t* ctx, _tmp8_ = ctx; #line 56 "/home/jens/Source/shotwell/src/MediaPage.vala" cairo_restore (_tmp8_); -#line 1703 "MediaPage.c" +#line 1692 "MediaPage.c" } @@ -1769,19 +1758,19 @@ void media_source_item_paint_sprockets (MediaSourceItem* self, cairo_t* ctx, Gdk _tmp12_ = _tmp11_; #line 65 "/home/jens/Source/shotwell/src/MediaPage.vala" right_paint_location.x = _tmp7_ + (_tmp9_ - _tmp12_); -#line 1773 "MediaPage.c" +#line 1762 "MediaPage.c" { gint i = 0; #line 66 "/home/jens/Source/shotwell/src/MediaPage.vala" i = 0; -#line 1778 "MediaPage.c" +#line 1767 "MediaPage.c" { gboolean _tmp13_ = FALSE; #line 66 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp13_ = TRUE; #line 66 "/home/jens/Source/shotwell/src/MediaPage.vala" while (TRUE) { -#line 1785 "MediaPage.c" +#line 1774 "MediaPage.c" gint _tmp15_ = 0; gint _tmp16_ = 0; cairo_t* _tmp17_ = NULL; @@ -1798,13 +1787,13 @@ void media_source_item_paint_sprockets (MediaSourceItem* self, cairo_t* ctx, Gdk gint _tmp28_ = 0; #line 66 "/home/jens/Source/shotwell/src/MediaPage.vala" if (!_tmp13_) { -#line 1802 "MediaPage.c" +#line 1791 "MediaPage.c" gint _tmp14_ = 0; #line 66 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp14_ = i; #line 66 "/home/jens/Source/shotwell/src/MediaPage.vala" i = _tmp14_ + 1; -#line 1808 "MediaPage.c" +#line 1797 "MediaPage.c" } #line 66 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp13_ = FALSE; @@ -1816,7 +1805,7 @@ void media_source_item_paint_sprockets (MediaSourceItem* self, cairo_t* ctx, Gdk if (!(_tmp15_ < _tmp16_)) { #line 66 "/home/jens/Source/shotwell/src/MediaPage.vala" break; -#line 1820 "MediaPage.c" +#line 1809 "MediaPage.c" } #line 67 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp17_ = ctx; @@ -1850,7 +1839,7 @@ void media_source_item_paint_sprockets (MediaSourceItem* self, cairo_t* ctx, Gdk _tmp28_ = _tmp27_; #line 71 "/home/jens/Source/shotwell/src/MediaPage.vala" right_paint_location.y = _tmp25_ + _tmp28_; -#line 1854 "MediaPage.c" +#line 1843 "MediaPage.c" } } } @@ -1870,7 +1859,7 @@ void media_source_item_paint_sprockets (MediaSourceItem* self, cairo_t* ctx, Gdk _tmp34_ = straggler_pixels; #line 75 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp34_ > 0) { -#line 1874 "MediaPage.c" +#line 1863 "MediaPage.c" cairo_t* _tmp35_ = NULL; cairo_t* _tmp36_ = NULL; GdkPixbuf* _tmp37_ = NULL; @@ -1983,7 +1972,7 @@ void media_source_item_paint_sprockets (MediaSourceItem* self, cairo_t* ctx, Gdk _tmp66_ = ctx; #line 90 "/home/jens/Source/shotwell/src/MediaPage.vala" cairo_restore (_tmp66_); -#line 1987 "MediaPage.c" +#line 1976 "MediaPage.c" } } @@ -1996,7 +1985,7 @@ void media_source_item_set_enable_sprockets (MediaSourceItem* self, gboolean ena _tmp0_ = enable_sprockets; #line 95 "/home/jens/Source/shotwell/src/MediaPage.vala" self->priv->enable_sprockets = _tmp0_; -#line 2000 "MediaPage.c" +#line 1989 "MediaPage.c" } @@ -2020,7 +2009,7 @@ void media_source_item_set_title (MediaSourceItem* self, const gchar* text, gboo _g_free0 (self->priv->natural_collation_key); #line 101 "/home/jens/Source/shotwell/src/MediaPage.vala" self->priv->natural_collation_key = NULL; -#line 2024 "MediaPage.c" +#line 2013 "MediaPage.c" } @@ -2035,7 +2024,7 @@ gchar* media_source_item_get_natural_collation_key (MediaSourceItem* self) { _tmp0_ = self->priv->natural_collation_key; #line 105 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp0_ == NULL) { -#line 2039 "MediaPage.c" +#line 2028 "MediaPage.c" gchar* _tmp1_ = NULL; gchar* _tmp2_ = NULL; #line 106 "/home/jens/Source/shotwell/src/MediaPage.vala" @@ -2046,7 +2035,7 @@ gchar* media_source_item_get_natural_collation_key (MediaSourceItem* self) { _g_free0 (self->priv->natural_collation_key); #line 106 "/home/jens/Source/shotwell/src/MediaPage.vala" self->priv->natural_collation_key = _tmp2_; -#line 2050 "MediaPage.c" +#line 2039 "MediaPage.c" } #line 108 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = self->priv->natural_collation_key; @@ -2056,7 +2045,7 @@ gchar* media_source_item_get_natural_collation_key (MediaSourceItem* self) { result = _tmp4_; #line 108 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; -#line 2060 "MediaPage.c" +#line 2049 "MediaPage.c" } @@ -2069,7 +2058,7 @@ static void media_source_item_class_init (MediaSourceItemClass * klass) { ((CheckerboardItemClass *) klass)->paint_image = media_source_item_real_paint_image; #line 7 "/home/jens/Source/shotwell/src/MediaPage.vala" G_OBJECT_CLASS (klass)->finalize = media_source_item_finalize; -#line 2073 "MediaPage.c" +#line 2062 "MediaPage.c" } @@ -2080,7 +2069,7 @@ static void media_source_item_instance_init (MediaSourceItem * self) { self->priv->enable_sprockets = FALSE; #line 12 "/home/jens/Source/shotwell/src/MediaPage.vala" self->priv->natural_collation_key = NULL; -#line 2084 "MediaPage.c" +#line 2073 "MediaPage.c" } @@ -2092,7 +2081,7 @@ static void media_source_item_finalize (GObject* obj) { _g_free0 (self->priv->natural_collation_key); #line 7 "/home/jens/Source/shotwell/src/MediaPage.vala" G_OBJECT_CLASS (media_source_item_parent_class)->finalize (obj); -#line 2096 "MediaPage.c" +#line 2085 "MediaPage.c" } @@ -2123,217 +2112,210 @@ GType media_page_sort_by_get_type (void) { static void _media_page_on_export_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_export ((MediaPage*) self); -#line 2127 "MediaPage.c" +#line 2116 "MediaPage.c" } static void _media_page_on_send_to_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_send_to ((MediaPage*) self); -#line 2134 "MediaPage.c" +#line 2123 "MediaPage.c" } static void _media_page_on_remove_from_library_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_remove_from_library ((MediaPage*) self); -#line 2141 "MediaPage.c" +#line 2130 "MediaPage.c" } static void _media_page_on_move_to_trash_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_move_to_trash ((MediaPage*) self); -#line 2148 "MediaPage.c" +#line 2137 "MediaPage.c" } static void _media_page_on_new_event_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_new_event ((MediaPage*) self); -#line 2155 "MediaPage.c" +#line 2144 "MediaPage.c" } static void _media_page_on_add_tags_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_add_tags ((MediaPage*) self); -#line 2162 "MediaPage.c" +#line 2151 "MediaPage.c" } static void _media_page_on_modify_tags_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_modify_tags ((MediaPage*) self); -#line 2169 "MediaPage.c" +#line 2158 "MediaPage.c" } static void _media_page_on_increase_size_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_increase_size ((MediaPage*) self); -#line 2176 "MediaPage.c" +#line 2165 "MediaPage.c" } static void _media_page_on_decrease_size_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_decrease_size ((MediaPage*) self); -#line 2183 "MediaPage.c" +#line 2172 "MediaPage.c" } static void _media_page_on_flag_unflag_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_flag_unflag ((MediaPage*) self); -#line 2190 "MediaPage.c" +#line 2179 "MediaPage.c" } static void _media_page_on_increase_rating_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_increase_rating ((MediaPage*) self); -#line 2197 "MediaPage.c" +#line 2186 "MediaPage.c" } static void _media_page_on_decrease_rating_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_decrease_rating ((MediaPage*) self); -#line 2204 "MediaPage.c" +#line 2193 "MediaPage.c" } static void _media_page_on_rate_rejected_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_rate_rejected ((MediaPage*) self); -#line 2211 "MediaPage.c" +#line 2200 "MediaPage.c" } static void _media_page_on_rate_unrated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_rate_unrated ((MediaPage*) self); -#line 2218 "MediaPage.c" +#line 2207 "MediaPage.c" } static void _media_page_on_rate_one_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_rate_one ((MediaPage*) self); -#line 2225 "MediaPage.c" +#line 2214 "MediaPage.c" } static void _media_page_on_rate_two_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_rate_two ((MediaPage*) self); -#line 2232 "MediaPage.c" +#line 2221 "MediaPage.c" } static void _media_page_on_rate_three_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_rate_three ((MediaPage*) self); -#line 2239 "MediaPage.c" +#line 2228 "MediaPage.c" } static void _media_page_on_rate_four_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_rate_four ((MediaPage*) self); -#line 2246 "MediaPage.c" +#line 2235 "MediaPage.c" } static void _media_page_on_rate_five_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_rate_five ((MediaPage*) self); -#line 2253 "MediaPage.c" +#line 2242 "MediaPage.c" } static void _media_page_on_edit_title_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_edit_title ((MediaPage*) self); -#line 2260 "MediaPage.c" +#line 2249 "MediaPage.c" } static void _media_page_on_edit_comment_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_edit_comment ((MediaPage*) self); -#line 2267 "MediaPage.c" +#line 2256 "MediaPage.c" } static void _media_page_on_play_video_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_play_video ((MediaPage*) self); -#line 2274 "MediaPage.c" +#line 2263 "MediaPage.c" } static void _page_on_action_toggle_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" page_on_action_toggle ((Page*) self, action, parameter); -#line 2281 "MediaPage.c" +#line 2270 "MediaPage.c" } static void _media_page_on_display_titles_gsimple_action_change_state_callback (GSimpleAction* action, GVariant* value, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_display_titles ((MediaPage*) self, action, value); -#line 2288 "MediaPage.c" +#line 2277 "MediaPage.c" } static void _media_page_on_display_comments_gsimple_action_change_state_callback (GSimpleAction* action, GVariant* value, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_display_comments ((MediaPage*) self, action, value); -#line 2295 "MediaPage.c" +#line 2284 "MediaPage.c" } static void _media_page_on_display_ratings_gsimple_action_change_state_callback (GSimpleAction* action, GVariant* value, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_display_ratings ((MediaPage*) self, action, value); -#line 2302 "MediaPage.c" +#line 2291 "MediaPage.c" } static void _media_page_on_display_tags_gsimple_action_change_state_callback (GSimpleAction* action, GVariant* value, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_display_tags ((MediaPage*) self, action, value); -#line 2309 "MediaPage.c" +#line 2298 "MediaPage.c" } static void _page_on_action_radio_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" page_on_action_radio ((Page*) self, action, parameter); -#line 2316 "MediaPage.c" +#line 2305 "MediaPage.c" } static void _media_page_on_sort_changed_gsimple_action_change_state_callback (GSimpleAction* action, GVariant* value, gpointer self) { #line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_sort_changed ((MediaPage*) self, action, value); -#line 2323 "MediaPage.c" -} - - -static void _media_page_on_raw_developer_changed_gsimple_action_change_state_callback (GSimpleAction* action, GVariant* value, gpointer self) { -#line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_on_raw_developer_changed ((MediaPage*) self, action, value); -#line 2330 "MediaPage.c" +#line 2312 "MediaPage.c" } static void _media_page_on_media_altered_data_collection_items_altered (DataCollection* _sender, GeeMap* items, gpointer self) { #line 252 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_media_altered ((MediaPage*) self, items); -#line 2337 "MediaPage.c" +#line 2319 "MediaPage.c" } @@ -2532,7 +2514,7 @@ MediaPage* media_page_construct (GType object_type, const gchar* page_name) { self->priv->dnd_handler = _tmp38_; #line 247 "/home/jens/Source/shotwell/src/MediaPage.vala" return self; -#line 2536 "MediaPage.c" +#line 2518 "MediaPage.c" } @@ -2563,7 +2545,7 @@ static gint media_page_compute_zoom_scale_increase (gint current_scale) { result = _tmp5_; #line 272 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; -#line 2567 "MediaPage.c" +#line 2549 "MediaPage.c" } @@ -2594,7 +2576,7 @@ static gint media_page_compute_zoom_scale_decrease (gint current_scale) { result = _tmp5_; #line 277 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; -#line 2598 "MediaPage.c" +#line 2580 "MediaPage.c" } @@ -2614,67 +2596,74 @@ static void media_page_real_init_collect_ui_filenames (Page* base, GeeList* ui_f _tmp1_ = ui_filenames; #line 283 "/home/jens/Source/shotwell/src/MediaPage.vala" gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection), "media.ui"); -#line 2618 "MediaPage.c" +#line 2600 "MediaPage.c" } static GVariant* _variant_new23 (gboolean value) { -#line 332 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 331 "/home/jens/Source/shotwell/src/MediaPage.vala" return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 2625 "MediaPage.c" +#line 2607 "MediaPage.c" } static GVariant* _variant_new24 (gboolean value) { -#line 333 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 332 "/home/jens/Source/shotwell/src/MediaPage.vala" return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 2632 "MediaPage.c" +#line 2614 "MediaPage.c" } static GVariant* _variant_new25 (gboolean value) { -#line 334 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 333 "/home/jens/Source/shotwell/src/MediaPage.vala" return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 2639 "MediaPage.c" +#line 2621 "MediaPage.c" } static GVariant* _variant_new26 (gboolean value) { -#line 335 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 334 "/home/jens/Source/shotwell/src/MediaPage.vala" return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 2646 "MediaPage.c" +#line 2628 "MediaPage.c" } static GVariant* _variant_new27 (gchar* value) { -#line 336 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 335 "/home/jens/Source/shotwell/src/MediaPage.vala" return g_variant_ref_sink (g_variant_new_string (value)); -#line 2653 "MediaPage.c" +#line 2635 "MediaPage.c" } static GVariant* _variant_new28 (const gchar* value) { -#line 337 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 336 "/home/jens/Source/shotwell/src/MediaPage.vala" return g_variant_ref_sink (g_variant_new_string (value)); -#line 2660 "MediaPage.c" +#line 2642 "MediaPage.c" } static GVariant* _variant_new29 (const gchar* value) { -#line 340 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 339 "/home/jens/Source/shotwell/src/MediaPage.vala" return g_variant_ref_sink (g_variant_new_string (value)); -#line 2667 "MediaPage.c" +#line 2649 "MediaPage.c" +} + + +static void _media_page_on_raw_developer_changed_g_simple_action_change_state (GSimpleAction* _sender, GVariant* value, gpointer self) { +#line 341 "/home/jens/Source/shotwell/src/MediaPage.vala" + media_page_on_raw_developer_changed ((MediaPage*) self, _sender, value); +#line 2656 "MediaPage.c" } -static void media_page_real_add_actions (Page* base) { +static void media_page_real_add_actions (Page* base, GActionMap* map) { MediaPage * self; + GActionMap* _tmp0_ = NULL; gboolean sort_order = FALSE; gint sort_by = 0; - gboolean _tmp0_ = FALSE; - gint _tmp1_ = 0; - AppWindow* _tmp2_ = NULL; - AppWindow* _tmp3_ = NULL; + gboolean _tmp1_ = FALSE; + gint _tmp2_ = 0; + GActionMap* _tmp3_ = NULL; GAction* _tmp4_ = NULL; GAction* _tmp5_ = NULL; ConfigFacade* _tmp6_ = NULL; @@ -2717,162 +2706,165 @@ static void media_page_real_add_actions (Page* base) { RawDeveloper _tmp42_ = 0; const gchar* _tmp43_ = NULL; RawDeveloper _tmp44_ = 0; - GAction* _tmp45_ = NULL; - GAction* _tmp46_ = NULL; - GVariant* _tmp47_ = NULL; -#line 324 "/home/jens/Source/shotwell/src/MediaPage.vala" + GSimpleAction* action = NULL; + const GVariantType* _tmp45_ = NULL; + GVariant* _tmp46_ = NULL; + GSimpleAction* _tmp47_ = NULL; + GSimpleAction* _tmp48_ = NULL; + GActionMap* _tmp49_ = NULL; +#line 323 "/home/jens/Source/shotwell/src/MediaPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage); -#line 325 "/home/jens/Source/shotwell/src/MediaPage.vala" - PAGE_CLASS (media_page_parent_class)->add_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page)); -#line 329 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_get_config_photos_sort (self, &_tmp0_, &_tmp1_); -#line 329 "/home/jens/Source/shotwell/src/MediaPage.vala" - sort_order = _tmp0_; -#line 329 "/home/jens/Source/shotwell/src/MediaPage.vala" - sort_by = _tmp1_; -#line 331 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = app_window_get_instance (); -#line 331 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp3_ = _tmp2_; -#line 331 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_action_map_add_action_entries (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, g_action_map_get_type (), GActionMap), MEDIA_PAGE_entries, G_N_ELEMENTS (MEDIA_PAGE_entries), self); +#line 323 "/home/jens/Source/shotwell/src/MediaPage.vala" + g_return_if_fail (G_IS_ACTION_MAP (map)); +#line 324 "/home/jens/Source/shotwell/src/MediaPage.vala" + _tmp0_ = map; +#line 324 "/home/jens/Source/shotwell/src/MediaPage.vala" + PAGE_CLASS (media_page_parent_class)->add_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), _tmp0_); +#line 328 "/home/jens/Source/shotwell/src/MediaPage.vala" + media_page_get_config_photos_sort (self, &_tmp1_, &_tmp2_); +#line 328 "/home/jens/Source/shotwell/src/MediaPage.vala" + sort_order = _tmp1_; +#line 328 "/home/jens/Source/shotwell/src/MediaPage.vala" + sort_by = _tmp2_; +#line 330 "/home/jens/Source/shotwell/src/MediaPage.vala" + _tmp3_ = map; +#line 330 "/home/jens/Source/shotwell/src/MediaPage.vala" + g_action_map_add_action_entries (_tmp3_, MEDIA_PAGE_entries, G_N_ELEMENTS (MEDIA_PAGE_entries), self); #line 331 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp3_); -#line 332 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ViewTitle"); -#line 332 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 331 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = _tmp4_; -#line 332 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 331 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = config_facade_get_instance (); -#line 332 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 331 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = _tmp6_; -#line 332 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 331 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = configuration_facade_get_display_photo_titles (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 332 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 331 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = _variant_new23 (_tmp8_); -#line 332 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 331 "/home/jens/Source/shotwell/src/MediaPage.vala" g_action_change_state (_tmp5_, _tmp9_); -#line 332 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 331 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_variant_unref0 (_tmp9_); -#line 332 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 331 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp7_); -#line 332 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 331 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp5_); -#line 333 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 332 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ViewComment"); -#line 333 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 332 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = _tmp10_; -#line 333 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 332 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = config_facade_get_instance (); -#line 333 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 332 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp13_ = _tmp12_; -#line 333 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 332 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp14_ = configuration_facade_get_display_photo_comments (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 333 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 332 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp15_ = _variant_new24 (_tmp14_); -#line 333 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 332 "/home/jens/Source/shotwell/src/MediaPage.vala" g_action_change_state (_tmp11_, _tmp15_); -#line 333 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 332 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_variant_unref0 (_tmp15_); -#line 333 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 332 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp13_); -#line 333 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 332 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp11_); -#line 334 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 333 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp16_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ViewRatings"); -#line 334 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 333 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp17_ = _tmp16_; -#line 334 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 333 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp18_ = config_facade_get_instance (); -#line 334 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 333 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp19_ = _tmp18_; -#line 334 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 333 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp20_ = configuration_facade_get_display_photo_ratings (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 334 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 333 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp21_ = _variant_new25 (_tmp20_); -#line 334 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 333 "/home/jens/Source/shotwell/src/MediaPage.vala" g_action_change_state (_tmp17_, _tmp21_); -#line 334 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 333 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_variant_unref0 (_tmp21_); -#line 334 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 333 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp19_); -#line 334 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 333 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp17_); -#line 335 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 334 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp22_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ViewTags"); -#line 335 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 334 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp23_ = _tmp22_; -#line 335 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 334 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp24_ = config_facade_get_instance (); -#line 335 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 334 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp25_ = _tmp24_; -#line 335 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 334 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp26_ = configuration_facade_get_display_photo_tags (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 335 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 334 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp27_ = _variant_new26 (_tmp26_); -#line 335 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 334 "/home/jens/Source/shotwell/src/MediaPage.vala" g_action_change_state (_tmp23_, _tmp27_); -#line 335 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 334 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_variant_unref0 (_tmp27_); -#line 335 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 334 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp25_); -#line 335 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 334 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp23_); -#line 336 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 335 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp28_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SortBy"); -#line 336 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 335 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp29_ = _tmp28_; -#line 336 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 335 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp30_ = sort_by; -#line 336 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 335 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp31_ = g_strdup_printf ("%d", _tmp30_); -#line 336 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 335 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp32_ = _tmp31_; -#line 336 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 335 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp33_ = _variant_new27 (_tmp32_); -#line 336 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 335 "/home/jens/Source/shotwell/src/MediaPage.vala" g_action_change_state (_tmp29_, _tmp33_); -#line 336 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 335 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_variant_unref0 (_tmp33_); -#line 336 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 335 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_free0 (_tmp32_); -#line 336 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 335 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp29_); -#line 337 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 336 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp35_ = sort_order; -#line 337 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 336 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp35_) { -#line 337 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 336 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp34_ = "ascending"; -#line 2848 "MediaPage.c" +#line 2840 "MediaPage.c" } else { -#line 337 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 336 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp34_ = "descending"; -#line 2852 "MediaPage.c" +#line 2844 "MediaPage.c" } -#line 337 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 336 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp36_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Sort"); -#line 337 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 336 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp37_ = _tmp36_; -#line 337 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 336 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp38_ = _variant_new28 (_tmp34_); -#line 337 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 336 "/home/jens/Source/shotwell/src/MediaPage.vala" g_action_change_state (_tmp37_, _tmp38_); -#line 337 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 336 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_variant_unref0 (_tmp38_); -#line 337 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 336 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp37_); -#line 339 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 338 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp39_ = config_facade_get_instance (); -#line 339 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 338 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp40_ = _tmp39_; -#line 339 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 338 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp41_ = configuration_facade_get_default_raw_developer (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 339 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 338 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp42_ = _tmp41_; -#line 339 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 338 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp40_); -#line 339 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 338 "/home/jens/Source/shotwell/src/MediaPage.vala" d = _tmp42_; #line 340 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp44_ = d; @@ -2880,25 +2872,82 @@ static void media_page_real_add_actions (Page* base) { if (_tmp44_ == RAW_DEVELOPER_SHOTWELL) { #line 340 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp43_ = "Shotwell"; -#line 2884 "MediaPage.c" +#line 2876 "MediaPage.c" } else { #line 340 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp43_ = "Camera"; -#line 2888 "MediaPage.c" +#line 2880 "MediaPage.c" + } +#line 339 "/home/jens/Source/shotwell/src/MediaPage.vala" + _tmp45_ = G_VARIANT_TYPE_STRING; +#line 339 "/home/jens/Source/shotwell/src/MediaPage.vala" + _tmp46_ = _variant_new29 (_tmp43_); +#line 339 "/home/jens/Source/shotwell/src/MediaPage.vala" + _tmp47_ = g_simple_action_new_stateful ("RawDeveloper", _tmp45_, _tmp46_); +#line 339 "/home/jens/Source/shotwell/src/MediaPage.vala" + _tmp48_ = _tmp47_; +#line 339 "/home/jens/Source/shotwell/src/MediaPage.vala" + _g_variant_unref0 (_tmp46_); +#line 339 "/home/jens/Source/shotwell/src/MediaPage.vala" + action = _tmp48_; +#line 341 "/home/jens/Source/shotwell/src/MediaPage.vala" + g_signal_connect_object (action, "change-state", (GCallback) _media_page_on_raw_developer_changed_g_simple_action_change_state, self, 0); +#line 342 "/home/jens/Source/shotwell/src/MediaPage.vala" + g_simple_action_set_enabled (action, TRUE); +#line 343 "/home/jens/Source/shotwell/src/MediaPage.vala" + _tmp49_ = map; +#line 343 "/home/jens/Source/shotwell/src/MediaPage.vala" + g_action_map_add_action (_tmp49_, G_TYPE_CHECK_INSTANCE_CAST (action, g_action_get_type (), GAction)); +#line 323 "/home/jens/Source/shotwell/src/MediaPage.vala" + _g_object_unref0 (action); +#line 2904 "MediaPage.c" +} + + +static void media_page_real_remove_actions (Page* base, GActionMap* map) { + MediaPage * self; + GActionMap* _tmp0_ = NULL; +#line 346 "/home/jens/Source/shotwell/src/MediaPage.vala" + self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage); +#line 346 "/home/jens/Source/shotwell/src/MediaPage.vala" + g_return_if_fail (G_IS_ACTION_MAP (map)); +#line 347 "/home/jens/Source/shotwell/src/MediaPage.vala" + _tmp0_ = map; +#line 347 "/home/jens/Source/shotwell/src/MediaPage.vala" + PAGE_CLASS (media_page_parent_class)->remove_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), _tmp0_); +#line 2919 "MediaPage.c" + { + GActionEntry* entry_collection = NULL; + gint entry_collection_length1 = 0; + gint _entry_collection_size_ = 0; + gint entry_it = 0; +#line 348 "/home/jens/Source/shotwell/src/MediaPage.vala" + entry_collection = MEDIA_PAGE_entries; +#line 348 "/home/jens/Source/shotwell/src/MediaPage.vala" + entry_collection_length1 = G_N_ELEMENTS (MEDIA_PAGE_entries); +#line 348 "/home/jens/Source/shotwell/src/MediaPage.vala" + for (entry_it = 0; entry_it < G_N_ELEMENTS (MEDIA_PAGE_entries); entry_it = entry_it + 1) { +#line 2931 "MediaPage.c" + GActionEntry entry = {0}; +#line 348 "/home/jens/Source/shotwell/src/MediaPage.vala" + entry = entry_collection[entry_it]; +#line 2935 "MediaPage.c" + { + GActionMap* _tmp1_ = NULL; + GActionEntry _tmp2_ = {0}; + const gchar* _tmp3_ = NULL; +#line 349 "/home/jens/Source/shotwell/src/MediaPage.vala" + _tmp1_ = map; +#line 349 "/home/jens/Source/shotwell/src/MediaPage.vala" + _tmp2_ = entry; +#line 349 "/home/jens/Source/shotwell/src/MediaPage.vala" + _tmp3_ = _tmp2_.name; +#line 349 "/home/jens/Source/shotwell/src/MediaPage.vala" + g_action_map_remove_action (_tmp1_, _tmp3_); +#line 2948 "MediaPage.c" + } + } } -#line 340 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp45_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RawDeveloper"); -#line 340 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp46_ = _tmp45_; -#line 340 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp47_ = _variant_new29 (_tmp43_); -#line 340 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_action_change_state (_tmp46_, _tmp47_); -#line 340 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_variant_unref0 (_tmp47_); -#line 340 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp46_); -#line 2902 "MediaPage.c" } @@ -2922,119 +2971,119 @@ static void media_page_real_update_actions (Page* base, gint selected_count, gin gint _tmp20_ = 0; gint _tmp21_ = 0; gint _tmp22_ = 0; -#line 343 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 353 "/home/jens/Source/shotwell/src/MediaPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage); -#line 344 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 354 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = selected_count; -#line 344 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 354 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Export", _tmp0_ > 0); -#line 345 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 355 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = selected_count; -#line 345 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 355 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "EditTitle", _tmp1_ > 0); -#line 346 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 356 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = selected_count; -#line 346 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 356 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "EditComment", _tmp2_ > 0); -#line 347 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 357 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = media_page_get_thumb_size (self); -#line 347 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 357 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = thumbnail_get_MAX_SCALE (); -#line 347 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 357 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = _tmp4_; -#line 347 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 357 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "IncreaseSize", _tmp3_ < _tmp5_); -#line 348 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 358 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = media_page_get_thumb_size (self); -#line 348 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 358 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = thumbnail_get_MIN_SCALE (); -#line 348 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 358 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = _tmp7_; -#line 348 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 358 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DecreaseSize", _tmp6_ > _tmp8_); -#line 349 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 359 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = selected_count; -#line 349 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 359 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RemoveFromLibrary", _tmp9_ > 0); -#line 350 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 360 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = selected_count; -#line 350 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 360 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "MoveToTrash", _tmp10_ > 0); -#line 352 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 362 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = desktop_integration_is_send_to_installed (); -#line 352 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 362 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp11_) { -#line 2968 "MediaPage.c" +#line 3017 "MediaPage.c" gint _tmp12_ = 0; -#line 353 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 363 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = selected_count; -#line 353 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 363 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SendTo", _tmp12_ > 0); -#line 2974 "MediaPage.c" +#line 3023 "MediaPage.c" } else { -#line 355 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 365 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_visible (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SendTo", FALSE); -#line 2978 "MediaPage.c" +#line 3027 "MediaPage.c" } -#line 357 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 367 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp13_ = selected_count; -#line 357 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 367 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Rate", _tmp13_ > 0); -#line 358 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 368 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_update_rating_sensitivities (self); -#line 360 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 370 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_update_development_menu_item_sensitivity (self); -#line 362 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 372 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp15_ = selected_count; -#line 362 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 372 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp15_ == 1) { -#line 2992 "MediaPage.c" +#line 3041 "MediaPage.c" ViewCollection* _tmp16_ = NULL; ViewCollection* _tmp17_ = NULL; DataSource* _tmp18_ = NULL; DataSource* _tmp19_ = NULL; -#line 363 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 373 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp16_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 363 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 373 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp17_ = _tmp16_; -#line 363 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 373 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp18_ = view_collection_get_selected_source_at (_tmp17_, 0); -#line 363 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 373 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp19_ = _tmp18_; -#line 363 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 373 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp14_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp19_, TYPE_VIDEO); -#line 363 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 373 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp19_); -#line 363 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 373 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp17_); -#line 3011 "MediaPage.c" +#line 3060 "MediaPage.c" } else { -#line 362 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 372 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp14_ = FALSE; -#line 3015 "MediaPage.c" +#line 3064 "MediaPage.c" } -#line 362 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 372 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "PlayVideo", _tmp14_); -#line 365 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 375 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp20_ = selected_count; -#line 365 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 375 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_update_flag_action (self, _tmp20_); -#line 367 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 377 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp21_ = selected_count; -#line 367 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 377 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp22_ = count; -#line 367 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 377 "/home/jens/Source/shotwell/src/MediaPage.vala" PAGE_CLASS (media_page_parent_class)->update_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), _tmp21_, _tmp22_); -#line 3029 "MediaPage.c" +#line 3078 "MediaPage.c" } static void media_page_on_media_altered (MediaPage* self, GeeMap* altered) { -#line 370 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 380 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 370 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 380 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (GEE_IS_MAP (altered)); -#line 3038 "MediaPage.c" +#line 3087 "MediaPage.c" { GeeIterator* _object_it = NULL; GeeMap* _tmp0_ = NULL; @@ -3043,25 +3092,25 @@ static void media_page_on_media_altered (MediaPage* self, GeeMap* altered) { GeeSet* _tmp3_ = NULL; GeeIterator* _tmp4_ = NULL; GeeIterator* _tmp5_ = NULL; -#line 371 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 381 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = altered; -#line 371 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 381 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = gee_map_get_keys (_tmp0_); -#line 371 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 381 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = _tmp1_; -#line 371 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 381 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_; -#line 371 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 381 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 371 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 381 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = _tmp4_; -#line 371 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 381 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp3_); -#line 371 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 381 "/home/jens/Source/shotwell/src/MediaPage.vala" _object_it = _tmp5_; -#line 371 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 381 "/home/jens/Source/shotwell/src/MediaPage.vala" while (TRUE) { -#line 3065 "MediaPage.c" +#line 3114 "MediaPage.c" GeeIterator* _tmp6_ = NULL; gboolean _tmp7_ = FALSE; DataObject* object = NULL; @@ -3073,65 +3122,65 @@ static void media_page_on_media_altered (MediaPage* self, GeeMap* altered) { Alteration* _tmp13_ = NULL; gboolean _tmp14_ = FALSE; gboolean _tmp15_ = FALSE; -#line 371 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 381 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = _object_it; -#line 371 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 381 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = gee_iterator_next (_tmp6_); -#line 371 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 381 "/home/jens/Source/shotwell/src/MediaPage.vala" if (!_tmp7_) { -#line 371 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 381 "/home/jens/Source/shotwell/src/MediaPage.vala" break; -#line 3085 "MediaPage.c" +#line 3134 "MediaPage.c" } -#line 371 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 381 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = _object_it; -#line 371 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 381 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = gee_iterator_get (_tmp8_); -#line 371 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 381 "/home/jens/Source/shotwell/src/MediaPage.vala" object = (DataObject*) _tmp9_; -#line 372 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 382 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = altered; -#line 372 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 382 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = object; -#line 372 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 382 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = gee_map_get (_tmp10_, _tmp11_); -#line 372 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 382 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp13_ = (Alteration*) _tmp12_; -#line 372 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 382 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp14_ = alteration_has_detail (_tmp13_, "metadata", "flagged"); -#line 372 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 382 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp15_ = _tmp14_; -#line 372 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 382 "/home/jens/Source/shotwell/src/MediaPage.vala" _alteration_unref0 (_tmp13_); -#line 372 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 382 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp15_) { -#line 3109 "MediaPage.c" +#line 3158 "MediaPage.c" ViewCollection* _tmp16_ = NULL; ViewCollection* _tmp17_ = NULL; gint _tmp18_ = 0; -#line 373 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 383 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp16_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 373 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 383 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp17_ = _tmp16_; -#line 373 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 383 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp18_ = view_collection_get_selected_count (_tmp17_); -#line 373 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 383 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_update_flag_action (self, _tmp18_); -#line 373 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 383 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp17_); -#line 375 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 385 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (object); -#line 375 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 385 "/home/jens/Source/shotwell/src/MediaPage.vala" break; -#line 3127 "MediaPage.c" +#line 3176 "MediaPage.c" } -#line 371 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 381 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (object); -#line 3131 "MediaPage.c" +#line 3180 "MediaPage.c" } -#line 371 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 381 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_object_it); -#line 3135 "MediaPage.c" +#line 3184 "MediaPage.c" } } @@ -3146,45 +3195,45 @@ static void media_page_update_rating_sensitivities (MediaPage* self) { gboolean _tmp6_ = FALSE; gboolean _tmp7_ = FALSE; gboolean _tmp8_ = FALSE; -#line 380 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 390 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 381 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 391 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = media_page_can_rate_selected (self, RATING_REJECTED); -#line 381 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 391 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateRejected", _tmp0_); -#line 382 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 392 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = media_page_can_rate_selected (self, RATING_UNRATED); -#line 382 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 392 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateUnrated", _tmp1_); -#line 383 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 393 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = media_page_can_rate_selected (self, RATING_ONE); -#line 383 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 393 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateOne", _tmp2_); -#line 384 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 394 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = media_page_can_rate_selected (self, RATING_TWO); -#line 384 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 394 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateTwo", _tmp3_); -#line 385 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 395 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = media_page_can_rate_selected (self, RATING_THREE); -#line 385 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 395 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateThree", _tmp4_); -#line 386 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 396 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = media_page_can_rate_selected (self, RATING_FOUR); -#line 386 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 396 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateFour", _tmp5_); -#line 387 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 397 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = media_page_can_rate_selected (self, RATING_FIVE); -#line 387 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 397 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateFive", _tmp6_); -#line 388 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 398 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = media_page_can_increase_selected_rating (self); -#line 388 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 398 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "IncreaseRating", _tmp7_); -#line 389 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 399 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = media_page_can_decrease_selected_rating (self); -#line 389 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 399 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DecreaseRating", _tmp8_); -#line 3188 "MediaPage.c" +#line 3237 "MediaPage.c" } @@ -3198,37 +3247,37 @@ static void media_page_update_development_menu_item_sensitivity (MediaPage* self gboolean _tmp6_ = FALSE; gboolean is_raw = FALSE; gboolean _tmp27_ = FALSE; -#line 392 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 402 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 393 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 403 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 393 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 403 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_; -#line 393 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 403 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = view_collection_get_selected (_tmp1_); -#line 393 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 403 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_; -#line 393 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 403 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 393 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 403 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = _tmp4_; -#line 393 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 403 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = _tmp5_ == 0; -#line 393 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 403 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp3_); -#line 393 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 403 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp1_); -#line 393 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 403 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp6_) { -#line 394 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 404 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RawDeveloper", FALSE); -#line 395 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 405 "/home/jens/Source/shotwell/src/MediaPage.vala" return; -#line 3228 "MediaPage.c" +#line 3277 "MediaPage.c" } -#line 399 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala" is_raw = FALSE; -#line 3232 "MediaPage.c" +#line 3281 "MediaPage.c" { GeeList* _view_list = NULL; ViewCollection* _tmp7_ = NULL; @@ -3240,31 +3289,31 @@ static void media_page_update_development_menu_item_sensitivity (MediaPage* self gint _tmp12_ = 0; gint _tmp13_ = 0; gint _view_index = 0; -#line 400 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 400 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = _tmp7_; -#line 400 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = view_collection_get_selected (_tmp8_); -#line 400 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = _tmp9_; -#line 400 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp8_); -#line 400 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_list = _tmp10_; -#line 400 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = _view_list; -#line 400 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 400 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp13_ = _tmp12_; -#line 400 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_size = _tmp13_; -#line 400 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_index = -1; -#line 400 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" while (TRUE) { -#line 3268 "MediaPage.c" +#line 3317 "MediaPage.c" gint _tmp14_ = 0; gint _tmp15_ = 0; gint _tmp16_ = 0; @@ -3278,107 +3327,107 @@ static void media_page_update_development_menu_item_sensitivity (MediaPage* self Photo* _tmp22_ = NULL; gboolean _tmp23_ = FALSE; Photo* _tmp24_ = NULL; -#line 400 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp14_ = _view_index; -#line 400 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_index = _tmp14_ + 1; -#line 400 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp15_ = _view_index; -#line 400 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp16_ = _view_size; -#line 400 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" if (!(_tmp15_ < _tmp16_)) { -#line 400 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" break; -#line 3294 "MediaPage.c" +#line 3343 "MediaPage.c" } -#line 400 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp17_ = _view_list; -#line 400 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp18_ = _view_index; -#line 400 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp19_ = gee_list_get (_tmp17_, _tmp18_); -#line 400 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" view = (DataView*) _tmp19_; -#line 401 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 411 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp20_ = view; -#line 401 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 411 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp21_ = thumbnail_get_media_source (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_THUMBNAIL, Thumbnail)); -#line 401 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 411 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp22_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp21_, TYPE_PHOTO) ? ((Photo*) _tmp21_) : NULL; -#line 401 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 411 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp22_ == NULL) { -#line 401 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 411 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp21_); -#line 3314 "MediaPage.c" +#line 3363 "MediaPage.c" } -#line 401 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 411 "/home/jens/Source/shotwell/src/MediaPage.vala" photo = _tmp22_; -#line 402 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 412 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp24_ = photo; -#line 402 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 412 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp24_ != NULL) { -#line 3322 "MediaPage.c" +#line 3371 "MediaPage.c" Photo* _tmp25_ = NULL; PhotoFileFormat _tmp26_ = 0; -#line 402 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 412 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp25_ = photo; -#line 402 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 412 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp26_ = photo_get_master_file_format (_tmp25_); -#line 402 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 412 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp23_ = _tmp26_ == PHOTO_FILE_FORMAT_RAW; -#line 3331 "MediaPage.c" +#line 3380 "MediaPage.c" } else { -#line 402 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 412 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp23_ = FALSE; -#line 3335 "MediaPage.c" +#line 3384 "MediaPage.c" } -#line 402 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 412 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp23_) { -#line 403 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 413 "/home/jens/Source/shotwell/src/MediaPage.vala" is_raw = TRUE; -#line 405 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 415 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (photo); -#line 405 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 415 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (view); -#line 405 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 415 "/home/jens/Source/shotwell/src/MediaPage.vala" break; -#line 3347 "MediaPage.c" +#line 3396 "MediaPage.c" } -#line 400 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (photo); -#line 400 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (view); -#line 3353 "MediaPage.c" +#line 3402 "MediaPage.c" } -#line 400 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_view_list); -#line 3357 "MediaPage.c" +#line 3406 "MediaPage.c" } -#line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 420 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp27_ = is_raw; -#line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 420 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RawDeveloper", _tmp27_); -#line 3363 "MediaPage.c" +#line 3412 "MediaPage.c" } static void media_page_update_flag_action (MediaPage* self, gint selected_count) { gint _tmp0_ = 0; -#line 413 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 423 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 414 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 424 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = selected_count; -#line 414 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 424 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Flag", _tmp0_ > 0); -#line 3375 "MediaPage.c" +#line 3424 "MediaPage.c" } static gpointer _core_tracker_ref0 (gpointer self) { -#line 418 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 428 "/home/jens/Source/shotwell/src/MediaPage.vala" return self ? core_tracker_ref (self) : NULL; -#line 3382 "MediaPage.c" +#line 3431 "MediaPage.c" } @@ -3387,17 +3436,17 @@ static CoreViewTracker* media_page_real_get_view_tracker (CheckerboardPage* base CoreViewTracker* result = NULL; MediaViewTracker* _tmp0_ = NULL; CoreViewTracker* _tmp1_ = NULL; -#line 417 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 427 "/home/jens/Source/shotwell/src/MediaPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage); -#line 418 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 428 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = self->priv->tracker; -#line 418 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 428 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _core_tracker_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, CORE_TYPE_VIEW_TRACKER, CoreViewTracker)); -#line 418 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 428 "/home/jens/Source/shotwell/src/MediaPage.vala" result = _tmp1_; -#line 418 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 428 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; -#line 3401 "MediaPage.c" +#line 3450 "MediaPage.c" } @@ -3411,53 +3460,53 @@ void media_page_set_display_ratings (MediaPage* self, gboolean display) { ViewCollection* _tmp6_ = NULL; ViewCollection* _tmp7_ = NULL; gboolean _tmp8_ = FALSE; -#line 421 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 431 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 422 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 432 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 422 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 432 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_; -#line 422 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 432 "/home/jens/Source/shotwell/src/MediaPage.vala" data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection)); -#line 422 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 432 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp1_); -#line 423 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 433 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 423 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 433 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_; -#line 423 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 433 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = display; -#line 423 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 433 "/home/jens/Source/shotwell/src/MediaPage.vala" g_value_init (&_tmp5_, G_TYPE_BOOLEAN); -#line 423 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 433 "/home/jens/Source/shotwell/src/MediaPage.vala" g_value_set_boolean (&_tmp5_, _tmp4_); -#line 423 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 433 "/home/jens/Source/shotwell/src/MediaPage.vala" data_collection_set_property (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_COLLECTION, DataCollection), THUMBNAIL_PROP_SHOW_RATINGS, &_tmp5_, NULL, NULL); -#line 423 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 433 "/home/jens/Source/shotwell/src/MediaPage.vala" G_IS_VALUE (&_tmp5_) ? (g_value_unset (&_tmp5_), NULL) : NULL; -#line 423 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 433 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp3_); -#line 424 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 434 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 424 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 434 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = _tmp6_; -#line 424 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 434 "/home/jens/Source/shotwell/src/MediaPage.vala" data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_COLLECTION, DataCollection)); -#line 424 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 434 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp7_); -#line 426 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 436 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = display; -#line 426 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 436 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_active (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ViewRatings", _tmp8_); -#line 3453 "MediaPage.c" +#line 3502 "MediaPage.c" } static gboolean media_page_can_rate_selected (MediaPage* self, Rating rating) { gboolean result = FALSE; -#line 429 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_val_if_fail (IS_MEDIA_PAGE (self), FALSE); -#line 3461 "MediaPage.c" +#line 3510 "MediaPage.c" { GeeList* _view_list = NULL; ViewCollection* _tmp0_ = NULL; @@ -3469,31 +3518,31 @@ static gboolean media_page_can_rate_selected (MediaPage* self, Rating rating) { gint _tmp5_ = 0; gint _tmp6_ = 0; gint _view_index = 0; -#line 430 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 430 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_; -#line 430 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = view_collection_get_selected (_tmp1_); -#line 430 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_; -#line 430 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp1_); -#line 430 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_list = _tmp3_; -#line 430 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = _view_list; -#line 430 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 430 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = _tmp5_; -#line 430 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_size = _tmp6_; -#line 430 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_index = -1; -#line 430 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" while (TRUE) { -#line 3497 "MediaPage.c" +#line 3546 "MediaPage.c" gint _tmp7_ = 0; gint _tmp8_ = 0; gint _tmp9_ = 0; @@ -3507,75 +3556,75 @@ static gboolean media_page_can_rate_selected (MediaPage* self, Rating rating) { Rating _tmp16_ = 0; Rating _tmp17_ = 0; gboolean _tmp18_ = FALSE; -#line 430 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = _view_index; -#line 430 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_index = _tmp7_ + 1; -#line 430 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = _view_index; -#line 430 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = _view_size; -#line 430 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" if (!(_tmp8_ < _tmp9_)) { -#line 430 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" break; -#line 3523 "MediaPage.c" +#line 3572 "MediaPage.c" } -#line 430 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = _view_list; -#line 430 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = _view_index; -#line 430 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = gee_list_get (_tmp10_, _tmp11_); -#line 430 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" view = (DataView*) _tmp12_; -#line 431 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 441 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp13_ = view; -#line 431 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 441 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp14_ = thumbnail_get_media_source (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_THUMBNAIL, Thumbnail)); -#line 431 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 441 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp15_ = _tmp14_; -#line 431 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 441 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp16_ = media_source_get_rating (_tmp15_); -#line 431 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 441 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp17_ = rating; -#line 431 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 441 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp18_ = _tmp16_ != _tmp17_; -#line 431 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 441 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp15_); -#line 431 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 441 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp18_) { -#line 432 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 442 "/home/jens/Source/shotwell/src/MediaPage.vala" result = TRUE; -#line 432 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 442 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (view); -#line 432 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 442 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_view_list); -#line 432 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 442 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; -#line 3557 "MediaPage.c" +#line 3606 "MediaPage.c" } -#line 430 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (view); -#line 3561 "MediaPage.c" +#line 3610 "MediaPage.c" } -#line 430 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_view_list); -#line 3565 "MediaPage.c" +#line 3614 "MediaPage.c" } -#line 435 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 445 "/home/jens/Source/shotwell/src/MediaPage.vala" result = FALSE; -#line 435 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 445 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; -#line 3571 "MediaPage.c" +#line 3620 "MediaPage.c" } static gboolean media_page_can_increase_selected_rating (MediaPage* self) { gboolean result = FALSE; -#line 438 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_val_if_fail (IS_MEDIA_PAGE (self), FALSE); -#line 3579 "MediaPage.c" +#line 3628 "MediaPage.c" { GeeList* _view_list = NULL; ViewCollection* _tmp0_ = NULL; @@ -3587,31 +3636,31 @@ static gboolean media_page_can_increase_selected_rating (MediaPage* self) { gint _tmp5_ = 0; gint _tmp6_ = 0; gint _view_index = 0; -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_; -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = view_collection_get_selected (_tmp1_); -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_; -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp1_); -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_list = _tmp3_; -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = _view_list; -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = _tmp5_; -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_size = _tmp6_; -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_index = -1; -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" while (TRUE) { -#line 3615 "MediaPage.c" +#line 3664 "MediaPage.c" gint _tmp7_ = 0; gint _tmp8_ = 0; gint _tmp9_ = 0; @@ -3625,75 +3674,75 @@ static gboolean media_page_can_increase_selected_rating (MediaPage* self) { Rating _tmp16_ = 0; gboolean _tmp17_ = FALSE; gboolean _tmp18_ = FALSE; -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = _view_index; -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_index = _tmp7_ + 1; -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = _view_index; -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = _view_size; -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" if (!(_tmp8_ < _tmp9_)) { -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" break; -#line 3641 "MediaPage.c" +#line 3690 "MediaPage.c" } -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = _view_list; -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = _view_index; -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = gee_list_get (_tmp10_, _tmp11_); -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" view = (DataView*) _tmp12_; -#line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 450 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp13_ = view; -#line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 450 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp14_ = thumbnail_get_media_source (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_THUMBNAIL, Thumbnail)); -#line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 450 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp15_ = _tmp14_; -#line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 450 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp16_ = media_source_get_rating (_tmp15_); -#line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 450 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp17_ = rating_can_increase (_tmp16_); -#line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 450 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp18_ = _tmp17_; -#line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 450 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp15_); -#line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 450 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp18_) { -#line 441 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 451 "/home/jens/Source/shotwell/src/MediaPage.vala" result = TRUE; -#line 441 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 451 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (view); -#line 441 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 451 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_view_list); -#line 441 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 451 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; -#line 3675 "MediaPage.c" +#line 3724 "MediaPage.c" } -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (view); -#line 3679 "MediaPage.c" +#line 3728 "MediaPage.c" } -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_view_list); -#line 3683 "MediaPage.c" +#line 3732 "MediaPage.c" } -#line 444 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 454 "/home/jens/Source/shotwell/src/MediaPage.vala" result = FALSE; -#line 444 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 454 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; -#line 3689 "MediaPage.c" +#line 3738 "MediaPage.c" } static gboolean media_page_can_decrease_selected_rating (MediaPage* self) { gboolean result = FALSE; -#line 447 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_val_if_fail (IS_MEDIA_PAGE (self), FALSE); -#line 3697 "MediaPage.c" +#line 3746 "MediaPage.c" { GeeList* _view_list = NULL; ViewCollection* _tmp0_ = NULL; @@ -3705,31 +3754,31 @@ static gboolean media_page_can_decrease_selected_rating (MediaPage* self) { gint _tmp5_ = 0; gint _tmp6_ = 0; gint _view_index = 0; -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_; -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = view_collection_get_selected (_tmp1_); -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_; -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp1_); -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_list = _tmp3_; -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = _view_list; -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = _tmp5_; -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_size = _tmp6_; -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_index = -1; -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" while (TRUE) { -#line 3733 "MediaPage.c" +#line 3782 "MediaPage.c" gint _tmp7_ = 0; gint _tmp8_ = 0; gint _tmp9_ = 0; @@ -3743,84 +3792,84 @@ static gboolean media_page_can_decrease_selected_rating (MediaPage* self) { Rating _tmp16_ = 0; gboolean _tmp17_ = FALSE; gboolean _tmp18_ = FALSE; -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = _view_index; -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_index = _tmp7_ + 1; -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = _view_index; -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = _view_size; -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" if (!(_tmp8_ < _tmp9_)) { -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" break; -#line 3759 "MediaPage.c" +#line 3808 "MediaPage.c" } -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = _view_list; -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = _view_index; -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = gee_list_get (_tmp10_, _tmp11_); -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" view = (DataView*) _tmp12_; -#line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 459 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp13_ = view; -#line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 459 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp14_ = thumbnail_get_media_source (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_THUMBNAIL, Thumbnail)); -#line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 459 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp15_ = _tmp14_; -#line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 459 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp16_ = media_source_get_rating (_tmp15_); -#line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 459 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp17_ = rating_can_decrease (_tmp16_); -#line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 459 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp18_ = _tmp17_; -#line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 459 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp15_); -#line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 459 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp18_) { -#line 450 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 460 "/home/jens/Source/shotwell/src/MediaPage.vala" result = TRUE; -#line 450 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 460 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (view); -#line 450 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 460 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_view_list); -#line 450 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 460 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; -#line 3793 "MediaPage.c" +#line 3842 "MediaPage.c" } -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (view); -#line 3797 "MediaPage.c" +#line 3846 "MediaPage.c" } -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_view_list); -#line 3801 "MediaPage.c" +#line 3850 "MediaPage.c" } -#line 453 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 463 "/home/jens/Source/shotwell/src/MediaPage.vala" result = FALSE; -#line 453 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 463 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; -#line 3807 "MediaPage.c" +#line 3856 "MediaPage.c" } MediaPageZoomSliderAssembly* media_page_create_zoom_slider_assembly (MediaPage* self) { MediaPageZoomSliderAssembly* result = NULL; MediaPageZoomSliderAssembly* _tmp0_ = NULL; -#line 456 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 466 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_val_if_fail (IS_MEDIA_PAGE (self), NULL); -#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 467 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = media_page_zoom_slider_assembly_new (); -#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 467 "/home/jens/Source/shotwell/src/MediaPage.vala" g_object_ref_sink (_tmp0_); -#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 467 "/home/jens/Source/shotwell/src/MediaPage.vala" result = _tmp0_; -#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 467 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; -#line 3824 "MediaPage.c" +#line 3873 "MediaPage.c" } @@ -3829,35 +3878,35 @@ static gboolean media_page_real_on_mousewheel_up (Page* base, GdkEventScroll* ev gboolean result = FALSE; GdkEventScroll* _tmp0_ = NULL; GdkModifierType _tmp1_ = 0; -#line 460 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 470 "/home/jens/Source/shotwell/src/MediaPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage); -#line 460 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 470 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 461 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 471 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = event; -#line 461 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 471 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_->state; -#line 461 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 471 "/home/jens/Source/shotwell/src/MediaPage.vala" if ((_tmp1_ & GDK_CONTROL_MASK) != 0) { -#line 462 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 472 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_increase_zoom_level (self); -#line 463 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 473 "/home/jens/Source/shotwell/src/MediaPage.vala" result = TRUE; -#line 463 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 473 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; -#line 3849 "MediaPage.c" +#line 3898 "MediaPage.c" } else { GdkEventScroll* _tmp2_ = NULL; gboolean _tmp3_ = FALSE; -#line 465 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 475 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = event; -#line 465 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 475 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = PAGE_CLASS (media_page_parent_class)->on_mousewheel_up (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), _tmp2_); -#line 465 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 475 "/home/jens/Source/shotwell/src/MediaPage.vala" result = _tmp3_; -#line 465 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 475 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; -#line 3861 "MediaPage.c" +#line 3910 "MediaPage.c" } } @@ -3867,35 +3916,35 @@ static gboolean media_page_real_on_mousewheel_down (Page* base, GdkEventScroll* gboolean result = FALSE; GdkEventScroll* _tmp0_ = NULL; GdkModifierType _tmp1_ = 0; -#line 469 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 479 "/home/jens/Source/shotwell/src/MediaPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage); -#line 469 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 479 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 470 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 480 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = event; -#line 470 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 480 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_->state; -#line 470 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 480 "/home/jens/Source/shotwell/src/MediaPage.vala" if ((_tmp1_ & GDK_CONTROL_MASK) != 0) { -#line 471 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 481 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_decrease_zoom_level (self); -#line 472 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 482 "/home/jens/Source/shotwell/src/MediaPage.vala" result = TRUE; -#line 472 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 482 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; -#line 3887 "MediaPage.c" +#line 3936 "MediaPage.c" } else { GdkEventScroll* _tmp2_ = NULL; gboolean _tmp3_ = FALSE; -#line 474 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 484 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = event; -#line 474 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 484 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = PAGE_CLASS (media_page_parent_class)->on_mousewheel_down (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), _tmp2_); -#line 474 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 484 "/home/jens/Source/shotwell/src/MediaPage.vala" result = _tmp3_; -#line 474 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 484 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; -#line 3899 "MediaPage.c" +#line 3948 "MediaPage.c" } } @@ -3905,23 +3954,23 @@ static void media_page_on_send_to (MediaPage* self) { ViewCollection* _tmp1_ = NULL; GeeList* _tmp2_ = NULL; GeeCollection* _tmp3_ = NULL; -#line 478 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 488 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 479 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 489 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 479 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 489 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_; -#line 479 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 489 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = view_collection_get_selected_sources (_tmp1_); -#line 479 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 489 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection); -#line 479 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 489 "/home/jens/Source/shotwell/src/MediaPage.vala" desktop_integration_send_to (_tmp3_); -#line 479 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 489 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp3_); -#line 479 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 489 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp1_); -#line 3925 "MediaPage.c" +#line 3974 "MediaPage.c" } @@ -3940,59 +3989,59 @@ void media_page_on_play_video (MediaPage* self) { Video* _tmp10_ = NULL; Video* _tmp11_ = NULL; GError * _inner_error_ = NULL; -#line 482 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 492 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 483 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 493 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 483 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 493 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_; -#line 483 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 493 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = view_collection_get_selected_count (_tmp1_); -#line 483 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 493 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_ != 1; -#line 483 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 493 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp1_); -#line 483 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 493 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp3_) { -#line 484 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 494 "/home/jens/Source/shotwell/src/MediaPage.vala" return; -#line 3960 "MediaPage.c" +#line 4009 "MediaPage.c" } -#line 486 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 496 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 486 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 496 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = _tmp4_; -#line 486 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 496 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = view_collection_get_selected_at (_tmp5_, 0); -#line 486 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 496 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = _tmp6_; -#line 486 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 496 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = data_view_get_source (_tmp7_); -#line 486 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 496 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp8_, TYPE_VIDEO) ? ((Video*) _tmp8_) : NULL; -#line 486 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 496 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp9_ == NULL) { -#line 486 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 496 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp8_); -#line 3978 "MediaPage.c" +#line 4027 "MediaPage.c" } -#line 486 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 496 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = _tmp9_; -#line 486 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 496 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp7_); -#line 486 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 496 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp5_); -#line 486 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 496 "/home/jens/Source/shotwell/src/MediaPage.vala" video = _tmp10_; -#line 487 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 497 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = video; -#line 487 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 497 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp11_ == NULL) { -#line 488 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 498 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (video); -#line 488 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 498 "/home/jens/Source/shotwell/src/MediaPage.vala" return; -#line 3996 "MediaPage.c" +#line 4045 "MediaPage.c" } { Video* _tmp12_ = NULL; @@ -4000,30 +4049,30 @@ void media_page_on_play_video (MediaPage* self) { GFile* _tmp14_ = NULL; gchar* _tmp15_ = NULL; gchar* _tmp16_ = NULL; -#line 491 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 501 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = video; -#line 491 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 501 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp13_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 491 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 501 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp14_ = _tmp13_; -#line 491 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 501 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp15_ = g_file_get_uri (_tmp14_); -#line 491 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 501 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp16_ = _tmp15_; -#line 491 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 501 "/home/jens/Source/shotwell/src/MediaPage.vala" g_app_info_launch_default_for_uri (_tmp16_, NULL, &_inner_error_); -#line 491 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 501 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_free0 (_tmp16_); -#line 491 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 501 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp14_); -#line 491 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 501 "/home/jens/Source/shotwell/src/MediaPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4022 "MediaPage.c" - goto __catch556_g_error; +#line 4071 "MediaPage.c" + goto __catch558_g_error; } } - goto __finally556; - __catch556_g_error: + goto __finally558; + __catch558_g_error: { GError* e = NULL; const gchar* _tmp17_ = NULL; @@ -4031,44 +4080,44 @@ void media_page_on_play_video (MediaPage* self) { const gchar* _tmp19_ = NULL; gchar* _tmp20_ = NULL; gchar* _tmp21_ = NULL; -#line 490 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" e = _inner_error_; -#line 490 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" _inner_error_ = NULL; -#line 493 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 503 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp17_ = _ ("Shotwell was unable to play the selected video:\n%s"); -#line 493 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 503 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp18_ = e; -#line 493 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 503 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp19_ = _tmp18_->message; -#line 493 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 503 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp20_ = g_strdup_printf (_tmp17_, _tmp19_); -#line 493 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 503 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp21_ = _tmp20_; -#line 493 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 503 "/home/jens/Source/shotwell/src/MediaPage.vala" app_window_error_message (_tmp21_, NULL); -#line 493 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 503 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_free0 (_tmp21_); -#line 490 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_error_free0 (e); -#line 4055 "MediaPage.c" +#line 4104 "MediaPage.c" } - __finally556: -#line 490 "/home/jens/Source/shotwell/src/MediaPage.vala" + __finally558: +#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 490 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (video); -#line 490 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 490 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" g_clear_error (&_inner_error_); -#line 490 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" return; -#line 4068 "MediaPage.c" +#line 4117 "MediaPage.c" } -#line 482 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 492 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (video); -#line 4072 "MediaPage.c" +#line 4121 "MediaPage.c" } @@ -4081,499 +4130,499 @@ static gboolean media_page_real_on_app_key_pressed (Page* base, GdkEventKey* eve const gchar* _tmp2_ = NULL; const gchar* _tmp3_ = NULL; GQuark _tmp5_ = 0U; -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label0 = 0; -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label1 = 0; -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label2 = 0; -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label3 = 0; -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label4 = 0; -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label5 = 0; -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label6 = 0; -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label7 = 0; -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label8 = 0; -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label9 = 0; -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label10 = 0; -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label11 = 0; -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label12 = 0; -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label13 = 0; -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label14 = 0; -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label15 = 0; -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label16 = 0; -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label17 = 0; -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label18 = 0; -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label19 = 0; -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label20 = 0; -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label21 = 0; -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label22 = 0; -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp4_label23 = 0; -#line 4133 "MediaPage.c" +#line 4182 "MediaPage.c" gboolean _tmp30_ = FALSE; gboolean _tmp31_ = FALSE; -#line 498 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 508 "/home/jens/Source/shotwell/src/MediaPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage); -#line 498 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 508 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 499 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala" handled = TRUE; -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = event; -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_->keyval; -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = gdk_keyval_name (_tmp1_); -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_; -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = (NULL == _tmp3_) ? 0 : g_quark_from_string (_tmp3_); -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" if (((_tmp5_ == ((0 != _tmp4_label0) ? _tmp4_label0 : (_tmp4_label0 = g_quark_from_static_string ("equal")))) || (_tmp5_ == ((0 != _tmp4_label1) ? _tmp4_label1 : (_tmp4_label1 = g_quark_from_static_string ("plus"))))) || (_tmp5_ == ((0 != _tmp4_label2) ? _tmp4_label2 : (_tmp4_label2 = g_quark_from_static_string ("KP_Add"))))) { -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { -#line 4156 "MediaPage.c" +#line 4205 "MediaPage.c" default: { -#line 504 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 514 "/home/jens/Source/shotwell/src/MediaPage.vala" page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "IncreaseSize"); -#line 505 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 515 "/home/jens/Source/shotwell/src/MediaPage.vala" break; -#line 4163 "MediaPage.c" +#line 4212 "MediaPage.c" } } } else if (((_tmp5_ == ((0 != _tmp4_label3) ? _tmp4_label3 : (_tmp4_label3 = g_quark_from_static_string ("minus")))) || (_tmp5_ == ((0 != _tmp4_label4) ? _tmp4_label4 : (_tmp4_label4 = g_quark_from_static_string ("underscore"))))) || (_tmp5_ == ((0 != _tmp4_label5) ? _tmp4_label5 : (_tmp4_label5 = g_quark_from_static_string ("KP_Subtract"))))) { -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { -#line 4169 "MediaPage.c" +#line 4218 "MediaPage.c" default: { -#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 520 "/home/jens/Source/shotwell/src/MediaPage.vala" page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DecreaseSize"); -#line 511 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 521 "/home/jens/Source/shotwell/src/MediaPage.vala" break; -#line 4176 "MediaPage.c" +#line 4225 "MediaPage.c" } } } else if (_tmp5_ == ((0 != _tmp4_label6) ? _tmp4_label6 : (_tmp4_label6 = g_quark_from_static_string ("period")))) { -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { -#line 4182 "MediaPage.c" +#line 4231 "MediaPage.c" default: { -#line 514 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 524 "/home/jens/Source/shotwell/src/MediaPage.vala" page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "IncreaseRating"); -#line 515 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 525 "/home/jens/Source/shotwell/src/MediaPage.vala" break; -#line 4189 "MediaPage.c" +#line 4238 "MediaPage.c" } } } else if (_tmp5_ == ((0 != _tmp4_label7) ? _tmp4_label7 : (_tmp4_label7 = g_quark_from_static_string ("comma")))) { -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { -#line 4195 "MediaPage.c" +#line 4244 "MediaPage.c" default: { -#line 518 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 528 "/home/jens/Source/shotwell/src/MediaPage.vala" page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DecreaseRating"); -#line 519 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 529 "/home/jens/Source/shotwell/src/MediaPage.vala" break; -#line 4202 "MediaPage.c" +#line 4251 "MediaPage.c" } } } else if (_tmp5_ == ((0 != _tmp4_label8) ? _tmp4_label8 : (_tmp4_label8 = g_quark_from_static_string ("KP_1")))) { -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { -#line 4208 "MediaPage.c" +#line 4257 "MediaPage.c" default: { -#line 522 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 532 "/home/jens/Source/shotwell/src/MediaPage.vala" page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateOne"); -#line 523 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 533 "/home/jens/Source/shotwell/src/MediaPage.vala" break; -#line 4215 "MediaPage.c" +#line 4264 "MediaPage.c" } } } else if (_tmp5_ == ((0 != _tmp4_label9) ? _tmp4_label9 : (_tmp4_label9 = g_quark_from_static_string ("KP_2")))) { -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { -#line 4221 "MediaPage.c" +#line 4270 "MediaPage.c" default: { -#line 526 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 536 "/home/jens/Source/shotwell/src/MediaPage.vala" page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateTwo"); -#line 527 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 537 "/home/jens/Source/shotwell/src/MediaPage.vala" break; -#line 4228 "MediaPage.c" +#line 4277 "MediaPage.c" } } } else if (_tmp5_ == ((0 != _tmp4_label10) ? _tmp4_label10 : (_tmp4_label10 = g_quark_from_static_string ("KP_3")))) { -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { -#line 4234 "MediaPage.c" +#line 4283 "MediaPage.c" default: { -#line 530 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 540 "/home/jens/Source/shotwell/src/MediaPage.vala" page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateThree"); -#line 531 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 541 "/home/jens/Source/shotwell/src/MediaPage.vala" break; -#line 4241 "MediaPage.c" +#line 4290 "MediaPage.c" } } } else if (_tmp5_ == ((0 != _tmp4_label11) ? _tmp4_label11 : (_tmp4_label11 = g_quark_from_static_string ("KP_4")))) { -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { -#line 4247 "MediaPage.c" +#line 4296 "MediaPage.c" default: { -#line 534 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 544 "/home/jens/Source/shotwell/src/MediaPage.vala" page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateFour"); -#line 535 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 545 "/home/jens/Source/shotwell/src/MediaPage.vala" break; -#line 4254 "MediaPage.c" +#line 4303 "MediaPage.c" } } } else if (_tmp5_ == ((0 != _tmp4_label12) ? _tmp4_label12 : (_tmp4_label12 = g_quark_from_static_string ("KP_5")))) { -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { -#line 4260 "MediaPage.c" +#line 4309 "MediaPage.c" default: { -#line 538 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 548 "/home/jens/Source/shotwell/src/MediaPage.vala" page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateFive"); -#line 539 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 549 "/home/jens/Source/shotwell/src/MediaPage.vala" break; -#line 4267 "MediaPage.c" +#line 4316 "MediaPage.c" } } } else if (_tmp5_ == ((0 != _tmp4_label13) ? _tmp4_label13 : (_tmp4_label13 = g_quark_from_static_string ("KP_0")))) { -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { -#line 4273 "MediaPage.c" +#line 4322 "MediaPage.c" default: { -#line 542 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 552 "/home/jens/Source/shotwell/src/MediaPage.vala" page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateUnrated"); -#line 543 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 553 "/home/jens/Source/shotwell/src/MediaPage.vala" break; -#line 4280 "MediaPage.c" +#line 4329 "MediaPage.c" } } } else if (_tmp5_ == ((0 != _tmp4_label14) ? _tmp4_label14 : (_tmp4_label14 = g_quark_from_static_string ("KP_9")))) { -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { -#line 4286 "MediaPage.c" +#line 4335 "MediaPage.c" default: { -#line 546 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 556 "/home/jens/Source/shotwell/src/MediaPage.vala" page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateRejected"); -#line 547 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 557 "/home/jens/Source/shotwell/src/MediaPage.vala" break; -#line 4293 "MediaPage.c" +#line 4342 "MediaPage.c" } } } else if (_tmp5_ == ((0 != _tmp4_label15) ? _tmp4_label15 : (_tmp4_label15 = g_quark_from_static_string ("exclam")))) { -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { -#line 4299 "MediaPage.c" +#line 4348 "MediaPage.c" default: { gboolean _tmp6_ = FALSE; -#line 550 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 560 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = page_get_ctrl_pressed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 550 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 560 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp6_) { -#line 4307 "MediaPage.c" +#line 4356 "MediaPage.c" SearchViewFilter* _tmp7_ = NULL; SearchViewFilter* _tmp8_ = NULL; -#line 551 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 561 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = checkerboard_page_get_search_view_filter (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage)); -#line 551 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 561 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = _tmp7_; -#line 551 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 561 "/home/jens/Source/shotwell/src/MediaPage.vala" search_view_filter_set_rating_filter (_tmp8_, RATING_FILTER_ONE_OR_HIGHER); -#line 551 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 561 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_filter_unref0 (_tmp8_); -#line 4318 "MediaPage.c" +#line 4367 "MediaPage.c" } -#line 552 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 562 "/home/jens/Source/shotwell/src/MediaPage.vala" break; -#line 4322 "MediaPage.c" +#line 4371 "MediaPage.c" } } } else if (_tmp5_ == ((0 != _tmp4_label16) ? _tmp4_label16 : (_tmp4_label16 = g_quark_from_static_string ("at")))) { -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { -#line 4328 "MediaPage.c" +#line 4377 "MediaPage.c" default: { gboolean _tmp9_ = FALSE; -#line 555 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 565 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = page_get_ctrl_pressed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 555 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 565 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp9_) { -#line 4336 "MediaPage.c" +#line 4385 "MediaPage.c" SearchViewFilter* _tmp10_ = NULL; SearchViewFilter* _tmp11_ = NULL; -#line 556 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 566 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = checkerboard_page_get_search_view_filter (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage)); -#line 556 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 566 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = _tmp10_; -#line 556 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 566 "/home/jens/Source/shotwell/src/MediaPage.vala" search_view_filter_set_rating_filter (_tmp11_, RATING_FILTER_TWO_OR_HIGHER); -#line 556 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 566 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_filter_unref0 (_tmp11_); -#line 4347 "MediaPage.c" +#line 4396 "MediaPage.c" } -#line 557 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 567 "/home/jens/Source/shotwell/src/MediaPage.vala" break; -#line 4351 "MediaPage.c" +#line 4400 "MediaPage.c" } } } else if (_tmp5_ == ((0 != _tmp4_label17) ? _tmp4_label17 : (_tmp4_label17 = g_quark_from_static_string ("numbersign")))) { -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { -#line 4357 "MediaPage.c" +#line 4406 "MediaPage.c" default: { gboolean _tmp12_ = FALSE; -#line 560 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 570 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = page_get_ctrl_pressed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 560 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 570 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp12_) { -#line 4365 "MediaPage.c" +#line 4414 "MediaPage.c" SearchViewFilter* _tmp13_ = NULL; SearchViewFilter* _tmp14_ = NULL; -#line 561 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 571 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp13_ = checkerboard_page_get_search_view_filter (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage)); -#line 561 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 571 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp14_ = _tmp13_; -#line 561 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 571 "/home/jens/Source/shotwell/src/MediaPage.vala" search_view_filter_set_rating_filter (_tmp14_, RATING_FILTER_THREE_OR_HIGHER); -#line 561 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 571 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_filter_unref0 (_tmp14_); -#line 4376 "MediaPage.c" +#line 4425 "MediaPage.c" } -#line 562 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 572 "/home/jens/Source/shotwell/src/MediaPage.vala" break; -#line 4380 "MediaPage.c" +#line 4429 "MediaPage.c" } } } else if (_tmp5_ == ((0 != _tmp4_label18) ? _tmp4_label18 : (_tmp4_label18 = g_quark_from_static_string ("dollar")))) { -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { -#line 4386 "MediaPage.c" +#line 4435 "MediaPage.c" default: { gboolean _tmp15_ = FALSE; -#line 565 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 575 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp15_ = page_get_ctrl_pressed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 565 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 575 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp15_) { -#line 4394 "MediaPage.c" +#line 4443 "MediaPage.c" SearchViewFilter* _tmp16_ = NULL; SearchViewFilter* _tmp17_ = NULL; -#line 566 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 576 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp16_ = checkerboard_page_get_search_view_filter (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage)); -#line 566 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 576 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp17_ = _tmp16_; -#line 566 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 576 "/home/jens/Source/shotwell/src/MediaPage.vala" search_view_filter_set_rating_filter (_tmp17_, RATING_FILTER_FOUR_OR_HIGHER); -#line 566 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 576 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_filter_unref0 (_tmp17_); -#line 4405 "MediaPage.c" +#line 4454 "MediaPage.c" } -#line 567 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 577 "/home/jens/Source/shotwell/src/MediaPage.vala" break; -#line 4409 "MediaPage.c" +#line 4458 "MediaPage.c" } } } else if (_tmp5_ == ((0 != _tmp4_label19) ? _tmp4_label19 : (_tmp4_label19 = g_quark_from_static_string ("percent")))) { -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { -#line 4415 "MediaPage.c" +#line 4464 "MediaPage.c" default: { gboolean _tmp18_ = FALSE; -#line 570 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 580 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp18_ = page_get_ctrl_pressed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 570 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 580 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp18_) { -#line 4423 "MediaPage.c" +#line 4472 "MediaPage.c" SearchViewFilter* _tmp19_ = NULL; SearchViewFilter* _tmp20_ = NULL; -#line 571 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 581 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp19_ = checkerboard_page_get_search_view_filter (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage)); -#line 571 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 581 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp20_ = _tmp19_; -#line 571 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 581 "/home/jens/Source/shotwell/src/MediaPage.vala" search_view_filter_set_rating_filter (_tmp20_, RATING_FILTER_FIVE_OR_HIGHER); -#line 571 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 581 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_filter_unref0 (_tmp20_); -#line 4434 "MediaPage.c" +#line 4483 "MediaPage.c" } -#line 572 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 582 "/home/jens/Source/shotwell/src/MediaPage.vala" break; -#line 4438 "MediaPage.c" +#line 4487 "MediaPage.c" } } } else if (_tmp5_ == ((0 != _tmp4_label20) ? _tmp4_label20 : (_tmp4_label20 = g_quark_from_static_string ("parenright")))) { -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { -#line 4444 "MediaPage.c" +#line 4493 "MediaPage.c" default: { gboolean _tmp21_ = FALSE; -#line 575 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 585 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp21_ = page_get_ctrl_pressed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 575 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 585 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp21_) { -#line 4452 "MediaPage.c" +#line 4501 "MediaPage.c" SearchViewFilter* _tmp22_ = NULL; SearchViewFilter* _tmp23_ = NULL; -#line 576 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 586 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp22_ = checkerboard_page_get_search_view_filter (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage)); -#line 576 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 586 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp23_ = _tmp22_; -#line 576 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 586 "/home/jens/Source/shotwell/src/MediaPage.vala" search_view_filter_set_rating_filter (_tmp23_, RATING_FILTER_UNRATED_OR_HIGHER); -#line 576 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 586 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_filter_unref0 (_tmp23_); -#line 4463 "MediaPage.c" +#line 4512 "MediaPage.c" } -#line 577 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 587 "/home/jens/Source/shotwell/src/MediaPage.vala" break; -#line 4467 "MediaPage.c" +#line 4516 "MediaPage.c" } } } else if (_tmp5_ == ((0 != _tmp4_label21) ? _tmp4_label21 : (_tmp4_label21 = g_quark_from_static_string ("parenleft")))) { -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { -#line 4473 "MediaPage.c" +#line 4522 "MediaPage.c" default: { gboolean _tmp24_ = FALSE; -#line 580 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 590 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp24_ = page_get_ctrl_pressed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 580 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 590 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp24_) { -#line 4481 "MediaPage.c" +#line 4530 "MediaPage.c" SearchViewFilter* _tmp25_ = NULL; SearchViewFilter* _tmp26_ = NULL; -#line 581 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 591 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp25_ = checkerboard_page_get_search_view_filter (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage)); -#line 581 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 591 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp26_ = _tmp25_; -#line 581 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 591 "/home/jens/Source/shotwell/src/MediaPage.vala" search_view_filter_set_rating_filter (_tmp26_, RATING_FILTER_REJECTED_OR_HIGHER); -#line 581 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 591 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_filter_unref0 (_tmp26_); -#line 4492 "MediaPage.c" +#line 4541 "MediaPage.c" } -#line 582 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 592 "/home/jens/Source/shotwell/src/MediaPage.vala" break; -#line 4496 "MediaPage.c" +#line 4545 "MediaPage.c" } } } else if (_tmp5_ == ((0 != _tmp4_label22) ? _tmp4_label22 : (_tmp4_label22 = g_quark_from_static_string ("asterisk")))) { -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { -#line 4502 "MediaPage.c" +#line 4551 "MediaPage.c" default: { gboolean _tmp27_ = FALSE; -#line 585 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 595 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp27_ = page_get_ctrl_pressed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 585 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 595 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp27_) { -#line 4510 "MediaPage.c" +#line 4559 "MediaPage.c" SearchViewFilter* _tmp28_ = NULL; SearchViewFilter* _tmp29_ = NULL; -#line 586 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 596 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp28_ = checkerboard_page_get_search_view_filter (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage)); -#line 586 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 596 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp29_ = _tmp28_; -#line 586 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 596 "/home/jens/Source/shotwell/src/MediaPage.vala" search_view_filter_set_rating_filter (_tmp29_, RATING_FILTER_REJECTED_ONLY); -#line 586 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 596 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_filter_unref0 (_tmp29_); -#line 4521 "MediaPage.c" +#line 4570 "MediaPage.c" } -#line 587 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 597 "/home/jens/Source/shotwell/src/MediaPage.vala" break; -#line 4525 "MediaPage.c" +#line 4574 "MediaPage.c" } } } else if (_tmp5_ == ((0 != _tmp4_label23) ? _tmp4_label23 : (_tmp4_label23 = g_quark_from_static_string ("slash")))) { -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { -#line 4531 "MediaPage.c" +#line 4580 "MediaPage.c" default: { -#line 590 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 600 "/home/jens/Source/shotwell/src/MediaPage.vala" page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Flag"); -#line 591 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 601 "/home/jens/Source/shotwell/src/MediaPage.vala" break; -#line 4538 "MediaPage.c" +#line 4587 "MediaPage.c" } } } else { -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 510 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { -#line 4544 "MediaPage.c" +#line 4593 "MediaPage.c" default: { -#line 594 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 604 "/home/jens/Source/shotwell/src/MediaPage.vala" handled = FALSE; -#line 595 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 605 "/home/jens/Source/shotwell/src/MediaPage.vala" break; -#line 4551 "MediaPage.c" +#line 4600 "MediaPage.c" } } } -#line 598 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 608 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp31_ = handled; -#line 598 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 608 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp31_) { -#line 598 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 608 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp30_ = TRUE; -#line 4561 "MediaPage.c" +#line 4610 "MediaPage.c" } else { GdkEventKey* _tmp32_ = NULL; gboolean _tmp33_ = FALSE; -#line 598 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 608 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp32_ = event; -#line 598 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 608 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp33_ = PAGE_CLASS (media_page_parent_class)->on_app_key_pressed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), _tmp32_); -#line 598 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 608 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp30_ = _tmp33_; -#line 4571 "MediaPage.c" +#line 4620 "MediaPage.c" } -#line 598 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 608 "/home/jens/Source/shotwell/src/MediaPage.vala" result = _tmp30_; -#line 598 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 608 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; -#line 4577 "MediaPage.c" +#line 4626 "MediaPage.c" } @@ -4599,142 +4648,142 @@ static void media_page_real_switched_to (Page* base) { ViewCollection* _tmp17_ = NULL; gint _tmp18_ = 0; gboolean _tmp19_ = FALSE; -#line 601 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 611 "/home/jens/Source/shotwell/src/MediaPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage); -#line 602 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 612 "/home/jens/Source/shotwell/src/MediaPage.vala" PAGE_CLASS (media_page_parent_class)->switched_to (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page)); -#line 605 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 615 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 605 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 615 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_; -#line 605 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 615 "/home/jens/Source/shotwell/src/MediaPage.vala" data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection)); -#line 605 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 615 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp1_); -#line 606 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 616 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = config_facade_get_instance (); -#line 606 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 616 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_; -#line 606 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 616 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = configuration_facade_get_display_photo_titles (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 606 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 616 "/home/jens/Source/shotwell/src/MediaPage.vala" checkerboard_page_set_display_titles (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), _tmp4_); -#line 606 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 616 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp3_); -#line 607 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 617 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = config_facade_get_instance (); -#line 607 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 617 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = _tmp5_; -#line 607 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 617 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = configuration_facade_get_display_photo_comments (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 607 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 617 "/home/jens/Source/shotwell/src/MediaPage.vala" checkerboard_page_set_display_comments (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), _tmp7_); -#line 607 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 617 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp6_); -#line 608 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 618 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = config_facade_get_instance (); -#line 608 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 618 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = _tmp8_; -#line 608 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 618 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = configuration_facade_get_display_photo_ratings (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 608 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 618 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_set_display_ratings (self, _tmp10_); -#line 608 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 618 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp9_); -#line 609 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 619 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = config_facade_get_instance (); -#line 609 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 619 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = _tmp11_; -#line 609 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 619 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp13_ = configuration_facade_get_display_photo_tags (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 609 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 619 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_set_display_tags (self, _tmp13_); -#line 609 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 619 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp12_); -#line 610 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 620 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp14_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 610 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 620 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp15_ = _tmp14_; -#line 610 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 620 "/home/jens/Source/shotwell/src/MediaPage.vala" data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_DATA_COLLECTION, DataCollection)); -#line 610 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 620 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp15_); -#line 614 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 624 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp16_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 614 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 624 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp17_ = _tmp16_; -#line 614 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 624 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp18_ = view_collection_get_selected_count (_tmp17_); -#line 614 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 624 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp19_ = _tmp18_ > 0; -#line 614 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 624 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp17_); -#line 614 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 624 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp19_) { -#line 4675 "MediaPage.c" +#line 4724 "MediaPage.c" CheckerboardItem* selected = NULL; ViewCollection* _tmp20_ = NULL; ViewCollection* _tmp21_ = NULL; DataView* _tmp22_ = NULL; CheckerboardItem* _tmp23_ = NULL; CheckerboardItem* _tmp24_ = NULL; -#line 615 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 625 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp20_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 615 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 625 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp21_ = _tmp20_; -#line 615 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 625 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp22_ = view_collection_get_selected_at (_tmp21_, 0); -#line 615 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 625 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp23_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_CHECKERBOARD_ITEM, CheckerboardItem); -#line 615 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 625 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp21_); -#line 615 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 625 "/home/jens/Source/shotwell/src/MediaPage.vala" selected = _tmp23_; -#line 616 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 626 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp24_ = selected; -#line 616 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 626 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp24_ != NULL) { -#line 4698 "MediaPage.c" +#line 4747 "MediaPage.c" CheckerboardItem* _tmp25_ = NULL; -#line 617 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 627 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp25_ = selected; -#line 617 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 627 "/home/jens/Source/shotwell/src/MediaPage.vala" checkerboard_page_cursor_to_item (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), _tmp25_); -#line 4704 "MediaPage.c" +#line 4753 "MediaPage.c" } -#line 614 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 624 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (selected); -#line 4708 "MediaPage.c" +#line 4757 "MediaPage.c" } -#line 620 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 630 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_sync_sort (self); -#line 4712 "MediaPage.c" +#line 4761 "MediaPage.c" } static void media_page_real_switching_from (Page* base) { MediaPage * self; -#line 623 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 633 "/home/jens/Source/shotwell/src/MediaPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage); -#line 624 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 634 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_disconnect_slider (self); -#line 626 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 636 "/home/jens/Source/shotwell/src/MediaPage.vala" PAGE_CLASS (media_page_parent_class)->switching_from (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page)); -#line 4724 "MediaPage.c" +#line 4773 "MediaPage.c" } static gpointer _g_object_ref0 (gpointer self) { -#line 630 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 640 "/home/jens/Source/shotwell/src/MediaPage.vala" return self ? g_object_ref (self) : NULL; -#line 4731 "MediaPage.c" +#line 4780 "MediaPage.c" } static void _media_page_on_zoom_changed_media_page_zoom_slider_assembly_zoom_changed (MediaPageZoomSliderAssembly* _sender, gpointer self) { -#line 631 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 641 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_zoom_changed ((MediaPage*) self); -#line 4738 "MediaPage.c" +#line 4787 "MediaPage.c" } @@ -4742,25 +4791,25 @@ void media_page_connect_slider (MediaPage* self, MediaPageZoomSliderAssembly* sl MediaPageZoomSliderAssembly* _tmp0_ = NULL; MediaPageZoomSliderAssembly* _tmp1_ = NULL; MediaPageZoomSliderAssembly* _tmp2_ = NULL; -#line 629 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 639 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 629 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 639 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (MEDIA_PAGE_IS_ZOOM_SLIDER_ASSEMBLY (slider)); -#line 630 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 640 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = slider; -#line 630 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 640 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _g_object_ref0 (_tmp0_); -#line 630 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 640 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (self->priv->connected_slider); -#line 630 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 640 "/home/jens/Source/shotwell/src/MediaPage.vala" self->priv->connected_slider = _tmp1_; -#line 631 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 641 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = self->priv->connected_slider; -#line 631 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 641 "/home/jens/Source/shotwell/src/MediaPage.vala" g_signal_connect_object (_tmp2_, "zoom-changed", (GCallback) _media_page_on_zoom_changed_media_page_zoom_slider_assembly_zoom_changed, self, 0); -#line 632 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 642 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_load_persistent_thumbnail_scale (self); -#line 4764 "MediaPage.c" +#line 4813 "MediaPage.c" } @@ -4770,29 +4819,29 @@ static void media_page_save_persistent_thumbnail_scale (MediaPage* self) { ConfigFacade* _tmp2_ = NULL; MediaPageZoomSliderAssembly* _tmp3_ = NULL; gint _tmp4_ = 0; -#line 635 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 645 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 636 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 646 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = self->priv->connected_slider; -#line 636 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 646 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp0_ == NULL) { -#line 637 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 647 "/home/jens/Source/shotwell/src/MediaPage.vala" return; -#line 4782 "MediaPage.c" +#line 4831 "MediaPage.c" } -#line 639 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 649 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = config_facade_get_instance (); -#line 639 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 649 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = _tmp1_; -#line 639 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 649 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = self->priv->connected_slider; -#line 639 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 649 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = media_page_zoom_slider_assembly_get_scale (_tmp3_); -#line 639 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 649 "/home/jens/Source/shotwell/src/MediaPage.vala" configuration_facade_set_photo_thumbnail_scale (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp4_); -#line 639 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 649 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp2_); -#line 4796 "MediaPage.c" +#line 4845 "MediaPage.c" } @@ -4806,39 +4855,39 @@ static void media_page_load_persistent_thumbnail_scale (MediaPage* self) { MediaPageZoomSliderAssembly* _tmp5_ = NULL; gint _tmp6_ = 0; gint _tmp7_ = 0; -#line 642 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 652 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 643 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 653 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = self->priv->connected_slider; -#line 643 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 653 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp0_ == NULL) { -#line 644 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 654 "/home/jens/Source/shotwell/src/MediaPage.vala" return; -#line 4818 "MediaPage.c" +#line 4867 "MediaPage.c" } -#line 646 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 656 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = config_facade_get_instance (); -#line 646 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 656 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = _tmp1_; -#line 646 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 656 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = configuration_facade_get_photo_thumbnail_scale (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 646 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 656 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = _tmp3_; -#line 646 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 656 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp2_); -#line 646 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 656 "/home/jens/Source/shotwell/src/MediaPage.vala" persistent_scale = _tmp4_; -#line 648 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 658 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = self->priv->connected_slider; -#line 648 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 658 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = persistent_scale; -#line 648 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 658 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_zoom_slider_assembly_set_scale (_tmp5_, _tmp6_); -#line 649 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 659 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = persistent_scale; -#line 649 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 659 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_set_thumb_size (self, _tmp7_); -#line 4842 "MediaPage.c" +#line 4891 "MediaPage.c" } @@ -4846,109 +4895,109 @@ void media_page_disconnect_slider (MediaPage* self) { MediaPageZoomSliderAssembly* _tmp0_ = NULL; MediaPageZoomSliderAssembly* _tmp1_ = NULL; guint _tmp2_ = 0U; -#line 652 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 662 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 653 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 663 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = self->priv->connected_slider; -#line 653 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 663 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp0_ == NULL) { -#line 654 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 664 "/home/jens/Source/shotwell/src/MediaPage.vala" return; -#line 4858 "MediaPage.c" +#line 4907 "MediaPage.c" } -#line 656 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 666 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = self->priv->connected_slider; -#line 656 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 666 "/home/jens/Source/shotwell/src/MediaPage.vala" g_signal_parse_name ("zoom-changed", MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY, &_tmp2_, NULL, FALSE); -#line 656 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 666 "/home/jens/Source/shotwell/src/MediaPage.vala" g_signal_handlers_disconnect_matched (_tmp1_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _media_page_on_zoom_changed_media_page_zoom_slider_assembly_zoom_changed, self); -#line 657 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 667 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (self->priv->connected_slider); -#line 657 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 667 "/home/jens/Source/shotwell/src/MediaPage.vala" self->priv->connected_slider = NULL; -#line 4870 "MediaPage.c" +#line 4919 "MediaPage.c" } static void media_page_real_on_zoom_changed (MediaPage* self) { MediaPageZoomSliderAssembly* _tmp0_ = NULL; -#line 661 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 671 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = self->priv->connected_slider; -#line 661 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 671 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp0_ != NULL) { -#line 4880 "MediaPage.c" +#line 4929 "MediaPage.c" MediaPageZoomSliderAssembly* _tmp1_ = NULL; gint _tmp2_ = 0; -#line 662 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 672 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = self->priv->connected_slider; -#line 662 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 672 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = media_page_zoom_slider_assembly_get_scale (_tmp1_); -#line 662 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 672 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_set_thumb_size (self, _tmp2_); -#line 4889 "MediaPage.c" +#line 4938 "MediaPage.c" } -#line 664 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 674 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_save_persistent_thumbnail_scale (self); -#line 4893 "MediaPage.c" +#line 4942 "MediaPage.c" } void media_page_on_zoom_changed (MediaPage* self) { -#line 660 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 670 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 660 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 670 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->on_zoom_changed (self); -#line 4902 "MediaPage.c" +#line 4951 "MediaPage.c" } static void media_page_real_on_export (MediaPage* self) { -#line 667 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 677 "/home/jens/Source/shotwell/src/MediaPage.vala" g_critical ("Type `%s' does not implement abstract method `media_page_on_export'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 667 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 677 "/home/jens/Source/shotwell/src/MediaPage.vala" return; -#line 4911 "MediaPage.c" +#line 4960 "MediaPage.c" } void media_page_on_export (MediaPage* self) { -#line 667 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 677 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 667 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 677 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->on_export (self); -#line 4920 "MediaPage.c" +#line 4969 "MediaPage.c" } static void media_page_real_on_increase_size (MediaPage* self) { -#line 670 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 680 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_increase_zoom_level (self); -#line 4927 "MediaPage.c" +#line 4976 "MediaPage.c" } void media_page_on_increase_size (MediaPage* self) { -#line 669 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 679 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 669 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 679 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->on_increase_size (self); -#line 4936 "MediaPage.c" +#line 4985 "MediaPage.c" } static void media_page_real_on_decrease_size (MediaPage* self) { -#line 674 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 684 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_decrease_zoom_level (self); -#line 4943 "MediaPage.c" +#line 4992 "MediaPage.c" } void media_page_on_decrease_size (MediaPage* self) { -#line 673 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 683 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 673 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 683 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->on_decrease_size (self); -#line 4952 "MediaPage.c" +#line 5001 "MediaPage.c" } @@ -4967,45 +5016,45 @@ static void media_page_on_add_tags (MediaPage* self) { gint _names_size_ = 0; gchar** _tmp8_ = NULL; gint _tmp8__length1 = 0; -#line 677 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 687 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 678 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 688 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 678 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 688 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_; -#line 678 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 688 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = view_collection_get_selected_count (_tmp1_); -#line 678 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 688 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_ == 0; -#line 678 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 688 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp1_); -#line 678 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 688 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp3_) { -#line 679 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 689 "/home/jens/Source/shotwell/src/MediaPage.vala" return; -#line 4987 "MediaPage.c" +#line 5036 "MediaPage.c" } -#line 681 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 691 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = add_tags_dialog_new (); -#line 681 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 691 "/home/jens/Source/shotwell/src/MediaPage.vala" dialog = _tmp4_; -#line 682 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 692 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = dialog; -#line 682 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 692 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = add_tags_dialog_execute (_tmp5_, &_tmp6_); -#line 682 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 692 "/home/jens/Source/shotwell/src/MediaPage.vala" names = _tmp7_; -#line 682 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 692 "/home/jens/Source/shotwell/src/MediaPage.vala" names_length1 = _tmp6_; -#line 682 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 692 "/home/jens/Source/shotwell/src/MediaPage.vala" _names_size_ = names_length1; -#line 684 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 694 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = names; -#line 684 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 694 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8__length1 = names_length1; -#line 684 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 694 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp8_ != NULL) { -#line 5009 "MediaPage.c" +#line 5058 "MediaPage.c" CommandManager* _tmp9_ = NULL; CommandManager* _tmp10_ = NULL; HierarchicalTagIndex* _tmp11_ = NULL; @@ -5022,57 +5071,57 @@ static void media_page_on_add_tags (MediaPage* self) { GeeCollection* _tmp20_ = NULL; AddTagsCommand* _tmp21_ = NULL; AddTagsCommand* _tmp22_ = NULL; -#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = _tmp9_; -#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = hierarchical_tag_index_get_global_index (); -#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = _tmp11_; -#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp13_ = names; -#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp13__length1 = names_length1; -#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp15_ = hierarchical_tag_index_get_paths_for_names_array (_tmp12_, _tmp13_, _tmp13__length1, &_tmp14_); -#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp16_ = _tmp15_; -#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp16__length1 = _tmp14_; -#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp17_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp18_ = _tmp17_; -#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp19_ = view_collection_get_selected_sources (_tmp18_); -#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp20_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_COLLECTION, GeeCollection); -#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp21_ = add_tags_command_new (_tmp16_, _tmp14_, _tmp20_); -#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp22_ = _tmp21_; -#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" command_manager_execute (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_COMMAND, Command)); -#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp22_); -#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp20_); -#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp18_); -#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp16_ = (_vala_array_free (_tmp16_, _tmp16__length1, (GDestroyNotify) g_free), NULL); -#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" _hierarchical_tag_index_unref0 (_tmp12_); -#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" _command_manager_unref0 (_tmp10_); -#line 5070 "MediaPage.c" +#line 5119 "MediaPage.c" } -#line 677 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 687 "/home/jens/Source/shotwell/src/MediaPage.vala" names = (_vala_array_free (names, names_length1, (GDestroyNotify) g_free), NULL); -#line 677 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 687 "/home/jens/Source/shotwell/src/MediaPage.vala" _text_entry_dialog_mediator_unref0 (dialog); -#line 5076 "MediaPage.c" +#line 5125 "MediaPage.c" } @@ -5101,93 +5150,93 @@ static void media_page_on_modify_tags (MediaPage* self) { GeeArrayList* _tmp18_ = NULL; ModifyTagsCommand* _tmp19_ = NULL; ModifyTagsCommand* _tmp20_ = NULL; -#line 691 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 701 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 692 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 702 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 692 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 702 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_; -#line 692 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 702 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = view_collection_get_selected_count (_tmp1_); -#line 692 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 702 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_ != 1; -#line 692 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 702 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp1_); -#line 692 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 702 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp3_) { -#line 693 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 703 "/home/jens/Source/shotwell/src/MediaPage.vala" return; -#line 5121 "MediaPage.c" +#line 5170 "MediaPage.c" } -#line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 705 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 705 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = _tmp4_; -#line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 705 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = view_collection_get_selected_at (_tmp5_, 0); -#line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 705 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = _tmp6_; -#line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 705 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = data_view_get_source (_tmp7_); -#line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 705 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_MEDIA_SOURCE, MediaSource); -#line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 705 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp7_); -#line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 705 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp5_); -#line 695 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 705 "/home/jens/Source/shotwell/src/MediaPage.vala" media = _tmp9_; -#line 697 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 707 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = media; -#line 697 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 707 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = modify_tags_dialog_new (_tmp10_); -#line 697 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 707 "/home/jens/Source/shotwell/src/MediaPage.vala" dialog = _tmp11_; -#line 698 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 708 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = dialog; -#line 698 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 708 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp13_ = modify_tags_dialog_execute (_tmp12_); -#line 698 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 708 "/home/jens/Source/shotwell/src/MediaPage.vala" new_tags = _tmp13_; -#line 700 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 710 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp14_ = new_tags; -#line 700 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 710 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp14_ == NULL) { -#line 701 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 711 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (new_tags); -#line 701 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 711 "/home/jens/Source/shotwell/src/MediaPage.vala" _text_entry_dialog_mediator_unref0 (dialog); -#line 701 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 711 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (media); -#line 701 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 711 "/home/jens/Source/shotwell/src/MediaPage.vala" return; -#line 5165 "MediaPage.c" +#line 5214 "MediaPage.c" } -#line 703 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 713 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp15_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 703 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 713 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp16_ = _tmp15_; -#line 703 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 713 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp17_ = media; -#line 703 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 713 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp18_ = new_tags; -#line 703 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 713 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp19_ = modify_tags_command_new (_tmp17_, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 703 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 713 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp20_ = _tmp19_; -#line 703 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 713 "/home/jens/Source/shotwell/src/MediaPage.vala" command_manager_execute (_tmp16_, G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_COMMAND, Command)); -#line 703 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 713 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp20_); -#line 703 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 713 "/home/jens/Source/shotwell/src/MediaPage.vala" _command_manager_unref0 (_tmp16_); -#line 691 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 701 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (new_tags); -#line 691 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 701 "/home/jens/Source/shotwell/src/MediaPage.vala" _text_entry_dialog_mediator_unref0 (dialog); -#line 691 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 701 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (media); -#line 5191 "MediaPage.c" +#line 5240 "MediaPage.c" } @@ -5201,45 +5250,45 @@ static void media_page_set_display_tags (MediaPage* self, gboolean display) { ViewCollection* _tmp6_ = NULL; ViewCollection* _tmp7_ = NULL; gboolean _tmp8_ = FALSE; -#line 706 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 716 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 707 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 717 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 707 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 717 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_; -#line 707 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 717 "/home/jens/Source/shotwell/src/MediaPage.vala" data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection)); -#line 707 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 717 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp1_); -#line 708 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 718 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 708 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 718 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_; -#line 708 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 718 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = display; -#line 708 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 718 "/home/jens/Source/shotwell/src/MediaPage.vala" g_value_init (&_tmp5_, G_TYPE_BOOLEAN); -#line 708 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 718 "/home/jens/Source/shotwell/src/MediaPage.vala" g_value_set_boolean (&_tmp5_, _tmp4_); -#line 708 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 718 "/home/jens/Source/shotwell/src/MediaPage.vala" data_collection_set_property (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_COLLECTION, DataCollection), THUMBNAIL_PROP_SHOW_TAGS, &_tmp5_, NULL, NULL); -#line 708 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 718 "/home/jens/Source/shotwell/src/MediaPage.vala" G_IS_VALUE (&_tmp5_) ? (g_value_unset (&_tmp5_), NULL) : NULL; -#line 708 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 718 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp3_); -#line 709 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 719 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 709 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 719 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = _tmp6_; -#line 709 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 719 "/home/jens/Source/shotwell/src/MediaPage.vala" data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_COLLECTION, DataCollection)); -#line 709 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 719 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp7_); -#line 711 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 721 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = display; -#line 711 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 721 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_active (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ViewTags", _tmp8_); -#line 5243 "MediaPage.c" +#line 5292 "MediaPage.c" } @@ -5248,21 +5297,21 @@ static void media_page_on_new_event (MediaPage* self) { ViewCollection* _tmp1_ = NULL; gint _tmp2_ = 0; gboolean _tmp3_ = FALSE; -#line 714 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 724 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 715 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 725 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 715 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 725 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_; -#line 715 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 725 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = view_collection_get_selected_count (_tmp1_); -#line 715 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 725 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_ > 0; -#line 715 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 725 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp1_); -#line 715 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 725 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp3_) { -#line 5266 "MediaPage.c" +#line 5315 "MediaPage.c" CommandManager* _tmp4_ = NULL; CommandManager* _tmp5_ = NULL; ViewCollection* _tmp6_ = NULL; @@ -5271,33 +5320,33 @@ static void media_page_on_new_event (MediaPage* self) { GeeList* _tmp9_ = NULL; NewEventCommand* _tmp10_ = NULL; NewEventCommand* _tmp11_ = NULL; -#line 716 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 726 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 716 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 726 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = _tmp4_; -#line 716 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 726 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 716 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 726 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = _tmp6_; -#line 716 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 726 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = view_collection_get_selected (_tmp7_); -#line 716 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 726 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = _tmp8_; -#line 716 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 726 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = new_event_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 716 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 726 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = _tmp10_; -#line 716 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 726 "/home/jens/Source/shotwell/src/MediaPage.vala" command_manager_execute (_tmp5_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_COMMAND, Command)); -#line 716 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 726 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp11_); -#line 716 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 726 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp9_); -#line 716 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 726 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp7_); -#line 716 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 726 "/home/jens/Source/shotwell/src/MediaPage.vala" _command_manager_unref0 (_tmp5_); -#line 5301 "MediaPage.c" +#line 5350 "MediaPage.c" } } @@ -5319,52 +5368,52 @@ static void media_page_on_flag_unflag (MediaPage* self) { gboolean _tmp23_ = FALSE; FlagUnflagCommand* _tmp24_ = NULL; FlagUnflagCommand* _tmp25_ = NULL; -#line 719 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 729 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 720 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 730 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 720 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 730 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_; -#line 720 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 730 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = view_collection_get_selected_count (_tmp1_); -#line 720 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 730 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_ == 0; -#line 720 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 730 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp1_); -#line 720 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 730 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp3_) { -#line 721 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 731 "/home/jens/Source/shotwell/src/MediaPage.vala" return; -#line 5339 "MediaPage.c" +#line 5388 "MediaPage.c" } -#line 723 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 733 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 723 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 733 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = _tmp4_; -#line 723 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 733 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = view_collection_get_selected_sources_of_type (_tmp5_, TYPE_MEDIA_SOURCE); -#line 723 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 733 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection); -#line 723 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 733 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp5_); -#line 723 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 733 "/home/jens/Source/shotwell/src/MediaPage.vala" sources = _tmp7_; -#line 727 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 737 "/home/jens/Source/shotwell/src/MediaPage.vala" flag = FALSE; -#line 5355 "MediaPage.c" +#line 5404 "MediaPage.c" { GeeIterator* _source_it = NULL; GeeCollection* _tmp8_ = NULL; GeeIterator* _tmp9_ = NULL; -#line 728 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 738 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = sources; -#line 728 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 738 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 728 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 738 "/home/jens/Source/shotwell/src/MediaPage.vala" _source_it = _tmp9_; -#line 728 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 738 "/home/jens/Source/shotwell/src/MediaPage.vala" while (TRUE) { -#line 5368 "MediaPage.c" +#line 5417 "MediaPage.c" GeeIterator* _tmp10_ = NULL; gboolean _tmp11_ = FALSE; MediaSource* source = NULL; @@ -5375,90 +5424,90 @@ static void media_page_on_flag_unflag (MediaPage* self) { Flaggable* _tmp15_ = NULL; gboolean _tmp16_ = FALSE; Flaggable* _tmp17_ = NULL; -#line 728 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 738 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = _source_it; -#line 728 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 738 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = gee_iterator_next (_tmp10_); -#line 728 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 738 "/home/jens/Source/shotwell/src/MediaPage.vala" if (!_tmp11_) { -#line 728 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 738 "/home/jens/Source/shotwell/src/MediaPage.vala" break; -#line 5387 "MediaPage.c" +#line 5436 "MediaPage.c" } -#line 728 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 738 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = _source_it; -#line 728 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 738 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp13_ = gee_iterator_get (_tmp12_); -#line 728 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 738 "/home/jens/Source/shotwell/src/MediaPage.vala" source = (MediaSource*) _tmp13_; -#line 729 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 739 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp14_ = source; -#line 729 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 739 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp15_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp14_, TYPE_FLAGGABLE) ? ((Flaggable*) _tmp14_) : NULL); -#line 729 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 739 "/home/jens/Source/shotwell/src/MediaPage.vala" flaggable = _tmp15_; -#line 730 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 740 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp17_ = flaggable; -#line 730 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 740 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp17_ != NULL) { -#line 5405 "MediaPage.c" +#line 5454 "MediaPage.c" Flaggable* _tmp18_ = NULL; gboolean _tmp19_ = FALSE; -#line 730 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 740 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp18_ = flaggable; -#line 730 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 740 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp19_ = flaggable_is_flagged (_tmp18_); -#line 730 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 740 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp16_ = !_tmp19_; -#line 5414 "MediaPage.c" +#line 5463 "MediaPage.c" } else { -#line 730 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 740 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp16_ = FALSE; -#line 5418 "MediaPage.c" +#line 5467 "MediaPage.c" } -#line 730 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 740 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp16_) { -#line 731 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 741 "/home/jens/Source/shotwell/src/MediaPage.vala" flag = TRUE; -#line 733 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 743 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (flaggable); -#line 733 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 743 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (source); -#line 733 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 743 "/home/jens/Source/shotwell/src/MediaPage.vala" break; -#line 5430 "MediaPage.c" +#line 5479 "MediaPage.c" } -#line 728 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 738 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (flaggable); -#line 728 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 738 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (source); -#line 5436 "MediaPage.c" +#line 5485 "MediaPage.c" } -#line 728 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 738 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_source_it); -#line 5440 "MediaPage.c" +#line 5489 "MediaPage.c" } -#line 737 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 747 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp20_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 737 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 747 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp21_ = _tmp20_; -#line 737 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 747 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp22_ = sources; -#line 737 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 747 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp23_ = flag; -#line 737 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 747 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp24_ = flag_unflag_command_new (_tmp22_, _tmp23_); -#line 737 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 747 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp25_ = _tmp24_; -#line 737 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 747 "/home/jens/Source/shotwell/src/MediaPage.vala" command_manager_execute (_tmp21_, G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_COMMAND, Command)); -#line 737 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 747 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp25_); -#line 737 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 747 "/home/jens/Source/shotwell/src/MediaPage.vala" _command_manager_unref0 (_tmp21_); -#line 719 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 729 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (sources); -#line 5462 "MediaPage.c" +#line 5511 "MediaPage.c" } @@ -5477,64 +5526,64 @@ static void media_page_real_on_increase_rating (MediaPage* self) { CommandManager* _tmp10_ = NULL; CommandManager* _tmp11_ = NULL; SetRatingCommand* _tmp12_ = NULL; -#line 741 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 751 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 741 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 751 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_; -#line 741 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 751 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = view_collection_get_selected_count (_tmp1_); -#line 741 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 751 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_ == 0; -#line 741 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 751 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp1_); -#line 741 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 751 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp3_) { -#line 742 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 752 "/home/jens/Source/shotwell/src/MediaPage.vala" return; -#line 5495 "MediaPage.c" +#line 5544 "MediaPage.c" } -#line 744 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 754 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 744 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 754 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = _tmp4_; -#line 744 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 754 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = view_collection_get_selected (_tmp5_); -#line 744 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 754 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = _tmp6_; -#line 744 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 754 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = set_rating_command_new_inc_dec (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ITERABLE, GeeIterable), TRUE); -#line 744 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 754 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = _tmp8_; -#line 744 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 754 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp7_); -#line 744 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 754 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp5_); -#line 744 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 754 "/home/jens/Source/shotwell/src/MediaPage.vala" command = _tmp9_; -#line 745 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 755 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 745 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 755 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = _tmp10_; -#line 745 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 755 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = command; -#line 745 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 755 "/home/jens/Source/shotwell/src/MediaPage.vala" command_manager_execute (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_COMMAND, Command)); -#line 745 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 755 "/home/jens/Source/shotwell/src/MediaPage.vala" _command_manager_unref0 (_tmp11_); -#line 747 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 757 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_update_rating_sensitivities (self); -#line 740 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 750 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (command); -#line 5529 "MediaPage.c" +#line 5578 "MediaPage.c" } void media_page_on_increase_rating (MediaPage* self) { -#line 740 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 750 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 740 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 750 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->on_increase_rating (self); -#line 5538 "MediaPage.c" +#line 5587 "MediaPage.c" } @@ -5553,64 +5602,64 @@ static void media_page_real_on_decrease_rating (MediaPage* self) { CommandManager* _tmp10_ = NULL; CommandManager* _tmp11_ = NULL; SetRatingCommand* _tmp12_ = NULL; -#line 751 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 761 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 751 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 761 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_; -#line 751 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 761 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = view_collection_get_selected_count (_tmp1_); -#line 751 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 761 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_ == 0; -#line 751 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 761 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp1_); -#line 751 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 761 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp3_) { -#line 752 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 762 "/home/jens/Source/shotwell/src/MediaPage.vala" return; -#line 5571 "MediaPage.c" +#line 5620 "MediaPage.c" } -#line 754 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 764 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 754 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 764 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = _tmp4_; -#line 754 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 764 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = view_collection_get_selected (_tmp5_); -#line 754 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 764 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = _tmp6_; -#line 754 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 764 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = set_rating_command_new_inc_dec (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ITERABLE, GeeIterable), FALSE); -#line 754 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 764 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = _tmp8_; -#line 754 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 764 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp7_); -#line 754 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 764 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp5_); -#line 754 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 764 "/home/jens/Source/shotwell/src/MediaPage.vala" command = _tmp9_; -#line 755 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 765 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 755 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 765 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = _tmp10_; -#line 755 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 765 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = command; -#line 755 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 765 "/home/jens/Source/shotwell/src/MediaPage.vala" command_manager_execute (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_COMMAND, Command)); -#line 755 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 765 "/home/jens/Source/shotwell/src/MediaPage.vala" _command_manager_unref0 (_tmp11_); -#line 757 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 767 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_update_rating_sensitivities (self); -#line 750 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 760 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (command); -#line 5605 "MediaPage.c" +#line 5654 "MediaPage.c" } void media_page_on_decrease_rating (MediaPage* self) { -#line 750 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 760 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 750 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 760 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->on_decrease_rating (self); -#line 5614 "MediaPage.c" +#line 5663 "MediaPage.c" } @@ -5630,178 +5679,178 @@ static void media_page_real_on_set_rating (MediaPage* self, Rating rating) { CommandManager* _tmp11_ = NULL; CommandManager* _tmp12_ = NULL; SetRatingCommand* _tmp13_ = NULL; -#line 761 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 771 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 761 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 771 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_; -#line 761 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 771 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = view_collection_get_selected_count (_tmp1_); -#line 761 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 771 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_ == 0; -#line 761 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 771 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp1_); -#line 761 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 771 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp3_) { -#line 762 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 772 "/home/jens/Source/shotwell/src/MediaPage.vala" return; -#line 5648 "MediaPage.c" +#line 5697 "MediaPage.c" } -#line 764 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 774 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 764 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 774 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = _tmp4_; -#line 764 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 774 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = view_collection_get_selected (_tmp5_); -#line 764 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 774 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = _tmp6_; -#line 764 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 774 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = rating; -#line 764 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 774 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = set_rating_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ITERABLE, GeeIterable), _tmp8_); -#line 764 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 774 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = _tmp9_; -#line 764 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 774 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp7_); -#line 764 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 774 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp5_); -#line 764 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 774 "/home/jens/Source/shotwell/src/MediaPage.vala" command = _tmp10_; -#line 765 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 775 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 765 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 775 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = _tmp11_; -#line 765 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 775 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp13_ = command; -#line 765 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 775 "/home/jens/Source/shotwell/src/MediaPage.vala" command_manager_execute (_tmp12_, G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_COMMAND, Command)); -#line 765 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 775 "/home/jens/Source/shotwell/src/MediaPage.vala" _command_manager_unref0 (_tmp12_); -#line 767 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 777 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_update_rating_sensitivities (self); -#line 760 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 770 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (command); -#line 5684 "MediaPage.c" +#line 5733 "MediaPage.c" } void media_page_on_set_rating (MediaPage* self, Rating rating) { -#line 760 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 770 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 760 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 770 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->on_set_rating (self, rating); -#line 5693 "MediaPage.c" +#line 5742 "MediaPage.c" } static void media_page_real_on_rate_rejected (MediaPage* self) { -#line 771 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 781 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_set_rating (self, RATING_REJECTED); -#line 5700 "MediaPage.c" +#line 5749 "MediaPage.c" } void media_page_on_rate_rejected (MediaPage* self) { -#line 770 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 780 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 770 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 780 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->on_rate_rejected (self); -#line 5709 "MediaPage.c" +#line 5758 "MediaPage.c" } static void media_page_real_on_rate_unrated (MediaPage* self) { -#line 775 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 785 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_set_rating (self, RATING_UNRATED); -#line 5716 "MediaPage.c" +#line 5765 "MediaPage.c" } void media_page_on_rate_unrated (MediaPage* self) { -#line 774 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 784 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 774 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 784 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->on_rate_unrated (self); -#line 5725 "MediaPage.c" +#line 5774 "MediaPage.c" } static void media_page_real_on_rate_one (MediaPage* self) { -#line 779 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 789 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_set_rating (self, RATING_ONE); -#line 5732 "MediaPage.c" +#line 5781 "MediaPage.c" } void media_page_on_rate_one (MediaPage* self) { -#line 778 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 788 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 778 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 788 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->on_rate_one (self); -#line 5741 "MediaPage.c" +#line 5790 "MediaPage.c" } static void media_page_real_on_rate_two (MediaPage* self) { -#line 783 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 793 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_set_rating (self, RATING_TWO); -#line 5748 "MediaPage.c" +#line 5797 "MediaPage.c" } void media_page_on_rate_two (MediaPage* self) { -#line 782 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 792 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 782 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 792 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->on_rate_two (self); -#line 5757 "MediaPage.c" +#line 5806 "MediaPage.c" } static void media_page_real_on_rate_three (MediaPage* self) { -#line 787 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 797 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_set_rating (self, RATING_THREE); -#line 5764 "MediaPage.c" +#line 5813 "MediaPage.c" } void media_page_on_rate_three (MediaPage* self) { -#line 786 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 796 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 786 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 796 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->on_rate_three (self); -#line 5773 "MediaPage.c" +#line 5822 "MediaPage.c" } static void media_page_real_on_rate_four (MediaPage* self) { -#line 791 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 801 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_set_rating (self, RATING_FOUR); -#line 5780 "MediaPage.c" +#line 5829 "MediaPage.c" } void media_page_on_rate_four (MediaPage* self) { -#line 790 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 800 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 790 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 800 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->on_rate_four (self); -#line 5789 "MediaPage.c" +#line 5838 "MediaPage.c" } static void media_page_real_on_rate_five (MediaPage* self) { -#line 795 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 805 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_on_set_rating (self, RATING_FIVE); -#line 5796 "MediaPage.c" +#line 5845 "MediaPage.c" } void media_page_on_rate_five (MediaPage* self) { -#line 794 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 804 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 794 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 804 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->on_rate_five (self); -#line 5805 "MediaPage.c" +#line 5854 "MediaPage.c" } @@ -5810,23 +5859,23 @@ static void media_page_on_remove_from_library (MediaPage* self) { ViewCollection* _tmp1_ = NULL; GeeList* _tmp2_ = NULL; GeeCollection* _tmp3_ = NULL; -#line 798 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 808 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 799 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 809 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 799 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 809 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_; -#line 799 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 809 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = view_collection_get_selected_sources (_tmp1_); -#line 799 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 809 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection); -#line 799 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 809 "/home/jens/Source/shotwell/src/MediaPage.vala" remove_photos_from_library (_tmp3_); -#line 799 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 809 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp3_); -#line 799 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 809 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp1_); -#line 5830 "MediaPage.c" +#line 5879 "MediaPage.c" } @@ -5839,55 +5888,55 @@ static void media_page_real_on_move_to_trash (MediaPage* self) { gboolean _tmp9_ = FALSE; gboolean _tmp18_ = FALSE; CheckerboardItem* _tmp19_ = NULL; -#line 803 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 813 "/home/jens/Source/shotwell/src/MediaPage.vala" restore_point = NULL; -#line 805 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 815 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage)->cursor; -#line 805 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 815 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp0_ != NULL) { -#line 5849 "MediaPage.c" +#line 5898 "MediaPage.c" ViewCollection* _tmp1_ = NULL; ViewCollection* _tmp2_ = NULL; CheckerboardItem* _tmp3_ = NULL; DataView* _tmp4_ = NULL; CheckerboardItem* _tmp5_ = NULL; -#line 806 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 816 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 806 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 816 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = _tmp1_; -#line 806 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 816 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage)->cursor; -#line 806 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 816 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = view_collection_get_next (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_VIEW, DataView)); -#line 806 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 816 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, TYPE_CHECKERBOARD_ITEM) ? ((CheckerboardItem*) _tmp4_) : NULL; -#line 806 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 816 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp5_ == NULL) { -#line 806 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 816 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp4_); -#line 5869 "MediaPage.c" +#line 5918 "MediaPage.c" } -#line 806 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 816 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (restore_point); -#line 806 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 816 "/home/jens/Source/shotwell/src/MediaPage.vala" restore_point = _tmp5_; -#line 806 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 816 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp2_); -#line 5877 "MediaPage.c" +#line 5926 "MediaPage.c" } -#line 809 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 819 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 809 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 819 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = _tmp6_; -#line 809 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 819 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = view_collection_get_selected_count (_tmp7_); -#line 809 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 819 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = _tmp8_ > 0; -#line 809 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 819 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp7_); -#line 809 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 819 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp9_) { -#line 5891 "MediaPage.c" +#line 5940 "MediaPage.c" CommandManager* _tmp10_ = NULL; CommandManager* _tmp11_ = NULL; ViewCollection* _tmp12_ = NULL; @@ -5896,83 +5945,83 @@ static void media_page_real_on_move_to_trash (MediaPage* self) { GeeCollection* _tmp15_ = NULL; TrashUntrashPhotosCommand* _tmp16_ = NULL; TrashUntrashPhotosCommand* _tmp17_ = NULL; -#line 810 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 820 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 810 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 820 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = _tmp10_; -#line 810 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 820 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 810 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 820 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp13_ = _tmp12_; -#line 810 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 820 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp14_ = view_collection_get_selected_sources (_tmp13_); -#line 810 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 820 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp15_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_COLLECTION, GeeCollection); -#line 810 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 820 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp16_ = trash_untrash_photos_command_new (_tmp15_, TRUE); -#line 810 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 820 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp17_ = _tmp16_; -#line 810 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 820 "/home/jens/Source/shotwell/src/MediaPage.vala" command_manager_execute (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_COMMAND, Command)); -#line 810 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 820 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp17_); -#line 810 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 820 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp15_); -#line 810 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 820 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp13_); -#line 810 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 820 "/home/jens/Source/shotwell/src/MediaPage.vala" _command_manager_unref0 (_tmp11_); -#line 5926 "MediaPage.c" +#line 5975 "MediaPage.c" } -#line 814 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 824 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp19_ = restore_point; -#line 814 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 824 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp19_ != NULL) { -#line 5932 "MediaPage.c" +#line 5981 "MediaPage.c" ViewCollection* _tmp20_ = NULL; ViewCollection* _tmp21_ = NULL; CheckerboardItem* _tmp22_ = NULL; gboolean _tmp23_ = FALSE; -#line 814 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 824 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp20_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 814 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 824 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp21_ = _tmp20_; -#line 814 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 824 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp22_ = restore_point; -#line 814 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 824 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp23_ = data_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_DATA_OBJECT, DataObject)); -#line 814 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 824 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp18_ = _tmp23_; -#line 814 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 824 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp21_); -#line 5949 "MediaPage.c" +#line 5998 "MediaPage.c" } else { -#line 814 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 824 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp18_ = FALSE; -#line 5953 "MediaPage.c" +#line 6002 "MediaPage.c" } -#line 814 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 824 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp18_) { -#line 5957 "MediaPage.c" +#line 6006 "MediaPage.c" CheckerboardItem* _tmp24_ = NULL; -#line 815 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 825 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp24_ = restore_point; -#line 815 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 825 "/home/jens/Source/shotwell/src/MediaPage.vala" checkerboard_page_set_cursor (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), _tmp24_); -#line 5963 "MediaPage.c" +#line 6012 "MediaPage.c" } -#line 802 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 812 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (restore_point); -#line 5967 "MediaPage.c" +#line 6016 "MediaPage.c" } void media_page_on_move_to_trash (MediaPage* self) { -#line 802 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 812 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 802 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 812 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->on_move_to_trash (self); -#line 5976 "MediaPage.c" +#line 6025 "MediaPage.c" } @@ -5998,107 +6047,107 @@ static void media_page_real_on_edit_title (MediaPage* self) { EditTitleDialog* _tmp15_ = NULL; gchar* _tmp16_ = NULL; const gchar* _tmp17_ = NULL; -#line 820 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 830 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 820 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 830 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_; -#line 820 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 830 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = view_collection_get_selected_count (_tmp1_); -#line 820 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 830 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_ == 0; -#line 820 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 830 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp1_); -#line 820 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 830 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp3_) { -#line 821 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 831 "/home/jens/Source/shotwell/src/MediaPage.vala" return; -#line 6016 "MediaPage.c" +#line 6065 "MediaPage.c" } -#line 823 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 833 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 823 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 833 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = _tmp4_; -#line 823 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 833 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = view_collection_get_selected_sources (_tmp5_); -#line 823 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 833 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_LIST, GeeList); -#line 823 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 833 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp5_); -#line 823 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 833 "/home/jens/Source/shotwell/src/MediaPage.vala" media_sources = _tmp7_; -#line 825 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 835 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = media_sources; -#line 825 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 835 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = gee_list_get (_tmp8_, 0); -#line 825 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 835 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = (MediaSource*) _tmp9_; -#line 825 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 835 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = media_source_get_title (_tmp10_); -#line 825 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 835 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = _tmp11_; -#line 825 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 835 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp13_ = edit_title_dialog_new (_tmp12_); -#line 825 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 835 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp14_ = _tmp13_; -#line 825 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 835 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_free0 (_tmp12_); -#line 825 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 835 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp10_); -#line 825 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 835 "/home/jens/Source/shotwell/src/MediaPage.vala" edit_title_dialog = _tmp14_; -#line 826 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 836 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp15_ = edit_title_dialog; -#line 826 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 836 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp16_ = edit_title_dialog_execute (_tmp15_); -#line 826 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 836 "/home/jens/Source/shotwell/src/MediaPage.vala" new_title = _tmp16_; -#line 827 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 837 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp17_ = new_title; -#line 827 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 837 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp17_ != NULL) { -#line 6060 "MediaPage.c" +#line 6109 "MediaPage.c" CommandManager* _tmp18_ = NULL; CommandManager* _tmp19_ = NULL; GeeList* _tmp20_ = NULL; const gchar* _tmp21_ = NULL; EditMultipleTitlesCommand* _tmp22_ = NULL; EditMultipleTitlesCommand* _tmp23_ = NULL; -#line 828 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 838 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp18_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 828 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 838 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp19_ = _tmp18_; -#line 828 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 838 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp20_ = media_sources; -#line 828 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 838 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp21_ = new_title; -#line 828 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 838 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp22_ = edit_multiple_titles_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_COLLECTION, GeeCollection), _tmp21_); -#line 828 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 838 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp23_ = _tmp22_; -#line 828 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 838 "/home/jens/Source/shotwell/src/MediaPage.vala" command_manager_execute (_tmp19_, G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_COMMAND, Command)); -#line 828 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 838 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp23_); -#line 828 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 838 "/home/jens/Source/shotwell/src/MediaPage.vala" _command_manager_unref0 (_tmp19_); -#line 6085 "MediaPage.c" +#line 6134 "MediaPage.c" } -#line 819 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 829 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_free0 (new_title); -#line 819 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 829 "/home/jens/Source/shotwell/src/MediaPage.vala" _text_entry_dialog_mediator_unref0 (edit_title_dialog); -#line 819 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 829 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (media_sources); -#line 6093 "MediaPage.c" +#line 6142 "MediaPage.c" } void media_page_on_edit_title (MediaPage* self) { -#line 819 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 829 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 819 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 829 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->on_edit_title (self); -#line 6102 "MediaPage.c" +#line 6151 "MediaPage.c" } @@ -6124,107 +6173,107 @@ static void media_page_real_on_edit_comment (MediaPage* self) { EditCommentDialog* _tmp15_ = NULL; gchar* _tmp16_ = NULL; const gchar* _tmp17_ = NULL; -#line 832 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 842 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 832 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 842 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_; -#line 832 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 842 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = view_collection_get_selected_count (_tmp1_); -#line 832 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 842 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_ == 0; -#line 832 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 842 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp1_); -#line 832 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 842 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp3_) { -#line 833 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 843 "/home/jens/Source/shotwell/src/MediaPage.vala" return; -#line 6142 "MediaPage.c" +#line 6191 "MediaPage.c" } -#line 835 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 845 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 835 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 845 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = _tmp4_; -#line 835 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 845 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = view_collection_get_selected_sources (_tmp5_); -#line 835 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 845 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_LIST, GeeList); -#line 835 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 845 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp5_); -#line 835 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 845 "/home/jens/Source/shotwell/src/MediaPage.vala" media_sources = _tmp7_; -#line 837 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 847 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = media_sources; -#line 837 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 847 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = gee_list_get (_tmp8_, 0); -#line 837 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 847 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = (MediaSource*) _tmp9_; -#line 837 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 847 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = media_source_get_comment (_tmp10_); -#line 837 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 847 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = _tmp11_; -#line 837 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 847 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp13_ = edit_comment_dialog_new (_tmp12_, FALSE); -#line 837 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 847 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp14_ = _tmp13_; -#line 837 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 847 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_free0 (_tmp12_); -#line 837 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 847 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp10_); -#line 837 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 847 "/home/jens/Source/shotwell/src/MediaPage.vala" edit_comment_dialog = _tmp14_; -#line 838 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 848 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp15_ = edit_comment_dialog; -#line 838 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 848 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp16_ = edit_comment_dialog_execute (_tmp15_); -#line 838 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 848 "/home/jens/Source/shotwell/src/MediaPage.vala" new_comment = _tmp16_; -#line 839 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 849 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp17_ = new_comment; -#line 839 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 849 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp17_ != NULL) { -#line 6186 "MediaPage.c" +#line 6235 "MediaPage.c" CommandManager* _tmp18_ = NULL; CommandManager* _tmp19_ = NULL; GeeList* _tmp20_ = NULL; const gchar* _tmp21_ = NULL; EditMultipleCommentsCommand* _tmp22_ = NULL; EditMultipleCommentsCommand* _tmp23_ = NULL; -#line 840 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 850 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp18_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 840 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 850 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp19_ = _tmp18_; -#line 840 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 850 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp20_ = media_sources; -#line 840 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 850 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp21_ = new_comment; -#line 840 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 850 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp22_ = edit_multiple_comments_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_COLLECTION, GeeCollection), _tmp21_); -#line 840 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 850 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp23_ = _tmp22_; -#line 840 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 850 "/home/jens/Source/shotwell/src/MediaPage.vala" command_manager_execute (_tmp19_, G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_COMMAND, Command)); -#line 840 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 850 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp23_); -#line 840 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 850 "/home/jens/Source/shotwell/src/MediaPage.vala" _command_manager_unref0 (_tmp19_); -#line 6211 "MediaPage.c" +#line 6260 "MediaPage.c" } -#line 831 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 841 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_free0 (new_comment); -#line 831 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 841 "/home/jens/Source/shotwell/src/MediaPage.vala" _multi_text_entry_dialog_mediator_unref0 (edit_comment_dialog); -#line 831 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 841 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (media_sources); -#line 6219 "MediaPage.c" +#line 6268 "MediaPage.c" } void media_page_on_edit_comment (MediaPage* self) { -#line 831 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 841 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 831 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 841 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->on_edit_comment (self); -#line 6228 "MediaPage.c" +#line 6277 "MediaPage.c" } @@ -6236,40 +6285,40 @@ static void media_page_real_on_display_titles (MediaPage* self, GSimpleAction* a ConfigFacade* _tmp3_ = NULL; GSimpleAction* _tmp4_ = NULL; GVariant* _tmp5_ = NULL; -#line 843 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 853 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (G_IS_SIMPLE_ACTION (action)); -#line 844 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 854 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = value; -#line 844 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 854 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = g_variant_get_boolean (_tmp0_); -#line 844 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 854 "/home/jens/Source/shotwell/src/MediaPage.vala" display = _tmp1_; -#line 846 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 856 "/home/jens/Source/shotwell/src/MediaPage.vala" checkerboard_page_set_display_titles (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), display); -#line 848 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 858 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = config_facade_get_instance (); -#line 848 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 858 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_; -#line 848 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 858 "/home/jens/Source/shotwell/src/MediaPage.vala" configuration_facade_set_display_photo_titles (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), display); -#line 848 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 858 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp3_); -#line 849 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 859 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = action; -#line 849 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 859 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = value; -#line 849 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 859 "/home/jens/Source/shotwell/src/MediaPage.vala" g_simple_action_set_state (_tmp4_, _tmp5_); -#line 6264 "MediaPage.c" +#line 6313 "MediaPage.c" } void media_page_on_display_titles (MediaPage* self, GSimpleAction* action, GVariant* value) { -#line 843 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 853 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 843 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 853 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->on_display_titles (self, action, value); -#line 6273 "MediaPage.c" +#line 6322 "MediaPage.c" } @@ -6281,40 +6330,40 @@ static void media_page_real_on_display_comments (MediaPage* self, GSimpleAction* ConfigFacade* _tmp3_ = NULL; GSimpleAction* _tmp4_ = NULL; GVariant* _tmp5_ = NULL; -#line 852 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 862 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (G_IS_SIMPLE_ACTION (action)); -#line 853 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 863 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = value; -#line 853 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 863 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = g_variant_get_boolean (_tmp0_); -#line 853 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 863 "/home/jens/Source/shotwell/src/MediaPage.vala" display = _tmp1_; -#line 855 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 865 "/home/jens/Source/shotwell/src/MediaPage.vala" checkerboard_page_set_display_comments (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), display); -#line 857 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 867 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = config_facade_get_instance (); -#line 857 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 867 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_; -#line 857 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 867 "/home/jens/Source/shotwell/src/MediaPage.vala" configuration_facade_set_display_photo_comments (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), display); -#line 857 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 867 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp3_); -#line 858 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 868 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = action; -#line 858 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 868 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = value; -#line 858 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 868 "/home/jens/Source/shotwell/src/MediaPage.vala" g_simple_action_set_state (_tmp4_, _tmp5_); -#line 6309 "MediaPage.c" +#line 6358 "MediaPage.c" } void media_page_on_display_comments (MediaPage* self, GSimpleAction* action, GVariant* value) { -#line 852 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 862 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 852 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 862 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->on_display_comments (self, action, value); -#line 6318 "MediaPage.c" +#line 6367 "MediaPage.c" } @@ -6326,40 +6375,40 @@ static void media_page_real_on_display_ratings (MediaPage* self, GSimpleAction* ConfigFacade* _tmp3_ = NULL; GSimpleAction* _tmp4_ = NULL; GVariant* _tmp5_ = NULL; -#line 861 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 871 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (G_IS_SIMPLE_ACTION (action)); -#line 862 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 872 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = value; -#line 862 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 872 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = g_variant_get_boolean (_tmp0_); -#line 862 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 872 "/home/jens/Source/shotwell/src/MediaPage.vala" display = _tmp1_; -#line 864 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 874 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_set_display_ratings (self, display); -#line 866 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 876 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = config_facade_get_instance (); -#line 866 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 876 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_; -#line 866 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 876 "/home/jens/Source/shotwell/src/MediaPage.vala" configuration_facade_set_display_photo_ratings (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), display); -#line 866 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 876 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp3_); -#line 867 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 877 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = action; -#line 867 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 877 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = value; -#line 867 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 877 "/home/jens/Source/shotwell/src/MediaPage.vala" g_simple_action_set_state (_tmp4_, _tmp5_); -#line 6354 "MediaPage.c" +#line 6403 "MediaPage.c" } void media_page_on_display_ratings (MediaPage* self, GSimpleAction* action, GVariant* value) { -#line 861 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 871 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 861 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 871 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->on_display_ratings (self, action, value); -#line 6363 "MediaPage.c" +#line 6412 "MediaPage.c" } @@ -6371,76 +6420,76 @@ static void media_page_real_on_display_tags (MediaPage* self, GSimpleAction* act ConfigFacade* _tmp3_ = NULL; GSimpleAction* _tmp4_ = NULL; GVariant* _tmp5_ = NULL; -#line 870 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 880 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (G_IS_SIMPLE_ACTION (action)); -#line 871 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 881 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = value; -#line 871 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 881 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = g_variant_get_boolean (_tmp0_); -#line 871 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 881 "/home/jens/Source/shotwell/src/MediaPage.vala" display = _tmp1_; -#line 873 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 883 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_set_display_tags (self, display); -#line 875 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 885 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = config_facade_get_instance (); -#line 875 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 885 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_; -#line 875 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 885 "/home/jens/Source/shotwell/src/MediaPage.vala" configuration_facade_set_display_photo_tags (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), display); -#line 875 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 885 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp3_); -#line 876 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 886 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = action; -#line 876 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 886 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = value; -#line 876 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 886 "/home/jens/Source/shotwell/src/MediaPage.vala" g_simple_action_set_state (_tmp4_, _tmp5_); -#line 6399 "MediaPage.c" +#line 6448 "MediaPage.c" } void media_page_on_display_tags (MediaPage* self, GSimpleAction* action, GVariant* value) { -#line 870 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 880 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 870 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 880 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->on_display_tags (self, action, value); -#line 6408 "MediaPage.c" +#line 6457 "MediaPage.c" } static void media_page_real_get_config_photos_sort (MediaPage* self, gboolean* sort_order, gint* sort_by) { -#line 879 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 889 "/home/jens/Source/shotwell/src/MediaPage.vala" g_critical ("Type `%s' does not implement abstract method `media_page_get_config_photos_sort'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 879 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 889 "/home/jens/Source/shotwell/src/MediaPage.vala" return; -#line 6417 "MediaPage.c" +#line 6466 "MediaPage.c" } void media_page_get_config_photos_sort (MediaPage* self, gboolean* sort_order, gint* sort_by) { -#line 879 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 889 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 879 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 889 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->get_config_photos_sort (self, sort_order, sort_by); -#line 6426 "MediaPage.c" +#line 6475 "MediaPage.c" } static void media_page_real_set_config_photos_sort (MediaPage* self, gboolean sort_order, gint sort_by) { -#line 881 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 891 "/home/jens/Source/shotwell/src/MediaPage.vala" g_critical ("Type `%s' does not implement abstract method `media_page_set_config_photos_sort'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 881 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 891 "/home/jens/Source/shotwell/src/MediaPage.vala" return; -#line 6435 "MediaPage.c" +#line 6484 "MediaPage.c" } void media_page_set_config_photos_sort (MediaPage* self, gboolean sort_order, gint sort_by) { -#line 881 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 891 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 881 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 891 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->set_config_photos_sort (self, sort_order, sort_by); -#line 6444 "MediaPage.c" +#line 6493 "MediaPage.c" } @@ -6451,54 +6500,36 @@ static void media_page_real_on_sort_changed (MediaPage* self, GSimpleAction* act gint _tmp2_ = 0; gboolean sort_order = FALSE; gboolean _tmp3_ = FALSE; -#line 883 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 893 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (G_IS_SIMPLE_ACTION (action)); -#line 884 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 894 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = action; -#line 884 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 894 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = value; -#line 884 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 894 "/home/jens/Source/shotwell/src/MediaPage.vala" g_simple_action_set_state (_tmp0_, _tmp1_); -#line 886 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = media_page_get_menu_sort_by (self); -#line 886 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala" sort_by = _tmp2_; -#line 887 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 897 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = media_page_get_menu_sort_order (self); -#line 887 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 897 "/home/jens/Source/shotwell/src/MediaPage.vala" sort_order = _tmp3_; -#line 889 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 899 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_set_view_comparator (self, sort_by, sort_order); -#line 890 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 900 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_set_config_photos_sort (self, sort_order, sort_by); -#line 6475 "MediaPage.c" +#line 6524 "MediaPage.c" } void media_page_on_sort_changed (MediaPage* self, GSimpleAction* action, GVariant* value) { -#line 883 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 883 "/home/jens/Source/shotwell/src/MediaPage.vala" - MEDIA_PAGE_GET_CLASS (self)->on_sort_changed (self, action, value); -#line 6484 "MediaPage.c" -} - - -void media_page_on_raw_developer_shotwell (MediaPage* self) { #line 893 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 894 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_developer_changed (self, RAW_DEVELOPER_SHOTWELL); -#line 6493 "MediaPage.c" -} - - -void media_page_on_raw_developer_camera (MediaPage* self) { -#line 897 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 898 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_developer_changed (self, RAW_DEVELOPER_CAMERA); -#line 6502 "MediaPage.c" +#line 893 "/home/jens/Source/shotwell/src/MediaPage.vala" + MEDIA_PAGE_GET_CLASS (self)->on_sort_changed (self, action, value); +#line 6533 "MediaPage.c" } @@ -6508,78 +6539,78 @@ static void media_page_on_raw_developer_changed (MediaPage* self, GSimpleAction* const gchar* _tmp1_ = NULL; const gchar* _tmp2_ = NULL; GQuark _tmp4_ = 0U; -#line 905 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 907 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp3_label0 = 0; -#line 905 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 907 "/home/jens/Source/shotwell/src/MediaPage.vala" static GQuark _tmp3_label1 = 0; -#line 6516 "MediaPage.c" +#line 6547 "MediaPage.c" RawDeveloper _tmp5_ = 0; GSimpleAction* _tmp6_ = NULL; GVariant* _tmp7_ = NULL; -#line 901 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 903 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 901 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (G_IS_SIMPLE_ACTION (action)); #line 903 "/home/jens/Source/shotwell/src/MediaPage.vala" - developer = RAW_DEVELOPER_SHOTWELL; + g_return_if_fail (G_IS_SIMPLE_ACTION (action)); #line 905 "/home/jens/Source/shotwell/src/MediaPage.vala" + developer = RAW_DEVELOPER_SHOTWELL; +#line 907 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = value; -#line 905 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 907 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = g_variant_get_string (_tmp0_, NULL); -#line 905 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 907 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = _tmp1_; -#line 905 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 907 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = (NULL == _tmp2_) ? 0 : g_quark_from_string (_tmp2_); -#line 905 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 907 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp4_ == ((0 != _tmp3_label0) ? _tmp3_label0 : (_tmp3_label0 = g_quark_from_static_string ("Shotwell")))) { -#line 905 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 907 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { -#line 6538 "MediaPage.c" +#line 6569 "MediaPage.c" default: { -#line 907 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 909 "/home/jens/Source/shotwell/src/MediaPage.vala" developer = RAW_DEVELOPER_SHOTWELL; -#line 908 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 910 "/home/jens/Source/shotwell/src/MediaPage.vala" break; -#line 6545 "MediaPage.c" +#line 6576 "MediaPage.c" } } } else if (_tmp4_ == ((0 != _tmp3_label1) ? _tmp3_label1 : (_tmp3_label1 = g_quark_from_static_string ("Camera")))) { -#line 905 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 907 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { -#line 6551 "MediaPage.c" +#line 6582 "MediaPage.c" default: { -#line 910 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 912 "/home/jens/Source/shotwell/src/MediaPage.vala" developer = RAW_DEVELOPER_CAMERA; -#line 911 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 913 "/home/jens/Source/shotwell/src/MediaPage.vala" break; -#line 6558 "MediaPage.c" +#line 6589 "MediaPage.c" } } } else { -#line 905 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 907 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (0) { -#line 6564 "MediaPage.c" +#line 6595 "MediaPage.c" default: { -#line 913 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 915 "/home/jens/Source/shotwell/src/MediaPage.vala" break; -#line 6569 "MediaPage.c" +#line 6600 "MediaPage.c" } } } -#line 916 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 918 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = developer; -#line 916 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_developer_changed (self, _tmp5_); #line 918 "/home/jens/Source/shotwell/src/MediaPage.vala" + media_page_developer_changed (self, _tmp5_); +#line 920 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = action; -#line 918 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 920 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = value; -#line 918 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 920 "/home/jens/Source/shotwell/src/MediaPage.vala" g_simple_action_set_state (_tmp6_, _tmp7_); -#line 6583 "MediaPage.c" +#line 6614 "MediaPage.c" } @@ -6593,29 +6624,29 @@ static void media_page_real_developer_changed (MediaPage* self, RawDeveloper rd) GeeArrayList* _tmp4_ = NULL; gboolean _tmp31_ = FALSE; gboolean _tmp32_ = FALSE; -#line 922 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 924 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 922 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 924 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_; -#line 922 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 924 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = view_collection_get_selected_count (_tmp1_); -#line 922 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 924 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_ == 0; -#line 922 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 924 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp1_); -#line 922 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 924 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp3_) { -#line 923 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 925 "/home/jens/Source/shotwell/src/MediaPage.vala" return; -#line 6611 "MediaPage.c" +#line 6642 "MediaPage.c" } -#line 928 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 930 "/home/jens/Source/shotwell/src/MediaPage.vala" need_warn = FALSE; -#line 931 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 933 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = gee_array_list_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL); -#line 931 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 933 "/home/jens/Source/shotwell/src/MediaPage.vala" to_set = _tmp4_; -#line 6619 "MediaPage.c" +#line 6650 "MediaPage.c" { GeeList* _view_list = NULL; ViewCollection* _tmp5_ = NULL; @@ -6627,31 +6658,31 @@ static void media_page_real_developer_changed (MediaPage* self, RawDeveloper rd) gint _tmp10_ = 0; gint _tmp11_ = 0; gint _view_index = 0; -#line 932 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 932 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = _tmp5_; -#line 932 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = view_collection_get_selected (_tmp6_); -#line 932 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = _tmp7_; -#line 932 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp6_); -#line 932 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_list = _tmp8_; -#line 932 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = _view_list; -#line 932 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 932 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = _tmp10_; -#line 932 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_size = _tmp11_; -#line 932 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_index = -1; -#line 932 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" while (TRUE) { -#line 6655 "MediaPage.c" +#line 6686 "MediaPage.c" gint _tmp12_ = 0; gint _tmp13_ = 0; gint _tmp14_ = 0; @@ -6665,128 +6696,128 @@ static void media_page_real_developer_changed (MediaPage* self, RawDeveloper rd) Photo* _tmp20_ = NULL; gboolean _tmp21_ = FALSE; Photo* _tmp22_ = NULL; -#line 932 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = _view_index; -#line 932 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" _view_index = _tmp12_ + 1; -#line 932 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp13_ = _view_index; -#line 932 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp14_ = _view_size; -#line 932 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" if (!(_tmp13_ < _tmp14_)) { -#line 932 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" break; -#line 6681 "MediaPage.c" +#line 6712 "MediaPage.c" } -#line 932 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp15_ = _view_list; -#line 932 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp16_ = _view_index; -#line 932 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp17_ = gee_list_get (_tmp15_, _tmp16_); -#line 932 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" view = (DataView*) _tmp17_; -#line 933 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 935 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp18_ = view; -#line 933 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 935 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp19_ = data_view_get_source (_tmp18_); -#line 933 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 935 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp20_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp19_, TYPE_PHOTO) ? ((Photo*) _tmp19_) : NULL; -#line 933 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 935 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp20_ == NULL) { -#line 933 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 935 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp19_); -#line 6701 "MediaPage.c" +#line 6732 "MediaPage.c" } -#line 933 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 935 "/home/jens/Source/shotwell/src/MediaPage.vala" p = _tmp20_; -#line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 936 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp22_ = p; -#line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 936 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp22_ != NULL) { -#line 6709 "MediaPage.c" +#line 6740 "MediaPage.c" RawDeveloper _tmp23_ = 0; Photo* _tmp24_ = NULL; RawDeveloper _tmp25_ = 0; gboolean _tmp26_ = FALSE; -#line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 936 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp23_ = rd; -#line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 936 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp24_ = p; -#line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 936 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp25_ = photo_get_raw_developer (_tmp24_); -#line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 936 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp26_ = raw_developer_is_equivalent (_tmp23_, _tmp25_); -#line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 936 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp21_ = !_tmp26_; -#line 6724 "MediaPage.c" +#line 6755 "MediaPage.c" } else { -#line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 936 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp21_ = FALSE; -#line 6728 "MediaPage.c" +#line 6759 "MediaPage.c" } -#line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 936 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp21_) { -#line 6732 "MediaPage.c" +#line 6763 "MediaPage.c" GeeArrayList* _tmp27_ = NULL; DataView* _tmp28_ = NULL; Photo* _tmp29_ = NULL; gboolean _tmp30_ = FALSE; -#line 935 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 937 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp27_ = to_set; -#line 935 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 937 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp28_ = view; -#line 935 "/home/jens/Source/shotwell/src/MediaPage.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp28_); #line 937 "/home/jens/Source/shotwell/src/MediaPage.vala" + gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp28_); +#line 939 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp29_ = p; -#line 937 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 939 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp30_ = photo_has_transformations (_tmp29_); -#line 937 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 939 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp30_) { -#line 938 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 940 "/home/jens/Source/shotwell/src/MediaPage.vala" need_warn = TRUE; -#line 6751 "MediaPage.c" +#line 6782 "MediaPage.c" } } -#line 932 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (p); -#line 932 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (view); -#line 6758 "MediaPage.c" +#line 6789 "MediaPage.c" } -#line 932 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_view_list); -#line 6762 "MediaPage.c" +#line 6793 "MediaPage.c" } -#line 943 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 945 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp32_ = need_warn; -#line 943 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 945 "/home/jens/Source/shotwell/src/MediaPage.vala" if (!_tmp32_) { -#line 943 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 945 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp31_ = TRUE; -#line 6770 "MediaPage.c" +#line 6801 "MediaPage.c" } else { GeeArrayList* _tmp33_ = NULL; gint _tmp34_ = 0; gint _tmp35_ = 0; gboolean _tmp36_ = FALSE; -#line 943 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 945 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp33_ = to_set; -#line 943 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 945 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp34_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 943 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 945 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp35_ = _tmp34_; -#line 943 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 945 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp36_ = dialogs_confirm_warn_developer_changed (_tmp35_); -#line 943 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 945 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp31_ = _tmp36_; -#line 6786 "MediaPage.c" +#line 6817 "MediaPage.c" } -#line 943 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 945 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp31_) { -#line 6790 "MediaPage.c" +#line 6821 "MediaPage.c" SetRawDeveloperCommand* command = NULL; GeeArrayList* _tmp37_ = NULL; RawDeveloper _tmp38_ = 0; @@ -6794,42 +6825,42 @@ static void media_page_real_developer_changed (MediaPage* self, RawDeveloper rd) CommandManager* _tmp40_ = NULL; CommandManager* _tmp41_ = NULL; SetRawDeveloperCommand* _tmp42_ = NULL; -#line 944 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 946 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp37_ = to_set; -#line 944 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 946 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp38_ = rd; -#line 944 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 946 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp39_ = set_raw_developer_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, GEE_TYPE_ITERABLE, GeeIterable), _tmp38_); -#line 944 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 946 "/home/jens/Source/shotwell/src/MediaPage.vala" command = _tmp39_; -#line 945 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 947 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp40_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 945 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 947 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp41_ = _tmp40_; -#line 945 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 947 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp42_ = command; -#line 945 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 947 "/home/jens/Source/shotwell/src/MediaPage.vala" command_manager_execute (_tmp41_, G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, TYPE_COMMAND, Command)); -#line 945 "/home/jens/Source/shotwell/src/MediaPage.vala" - _command_manager_unref0 (_tmp41_); #line 947 "/home/jens/Source/shotwell/src/MediaPage.vala" + _command_manager_unref0 (_tmp41_); +#line 949 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_update_development_menu_item_sensitivity (self); -#line 943 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 945 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (command); -#line 6820 "MediaPage.c" +#line 6851 "MediaPage.c" } -#line 921 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 923 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (to_set); -#line 6824 "MediaPage.c" +#line 6855 "MediaPage.c" } void media_page_developer_changed (MediaPage* self, RawDeveloper rd) { -#line 921 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 923 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 921 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 923 "/home/jens/Source/shotwell/src/MediaPage.vala" MEDIA_PAGE_GET_CLASS (self)->developer_changed (self, rd); -#line 6833 "MediaPage.c" +#line 6864 "MediaPage.c" } @@ -6837,17 +6868,17 @@ static void media_page_real_set_display_titles (CheckerboardPage* base, gboolean MediaPage * self; gboolean _tmp0_ = FALSE; gboolean _tmp1_ = FALSE; -#line 951 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 953 "/home/jens/Source/shotwell/src/MediaPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage); -#line 952 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 954 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = display; -#line 952 "/home/jens/Source/shotwell/src/MediaPage.vala" - CHECKERBOARD_PAGE_CLASS (media_page_parent_class)->set_display_titles (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), _tmp0_); #line 954 "/home/jens/Source/shotwell/src/MediaPage.vala" + CHECKERBOARD_PAGE_CLASS (media_page_parent_class)->set_display_titles (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), _tmp0_); +#line 956 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = display; -#line 954 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 956 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_active (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ViewTitle", _tmp1_); -#line 6851 "MediaPage.c" +#line 6882 "MediaPage.c" } @@ -6855,17 +6886,17 @@ static void media_page_real_set_display_comments (CheckerboardPage* base, gboole MediaPage * self; gboolean _tmp0_ = FALSE; gboolean _tmp1_ = FALSE; -#line 957 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 959 "/home/jens/Source/shotwell/src/MediaPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage); -#line 958 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 960 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = display; -#line 958 "/home/jens/Source/shotwell/src/MediaPage.vala" - CHECKERBOARD_PAGE_CLASS (media_page_parent_class)->set_display_comments (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), _tmp0_); #line 960 "/home/jens/Source/shotwell/src/MediaPage.vala" + CHECKERBOARD_PAGE_CLASS (media_page_parent_class)->set_display_comments (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), _tmp0_); +#line 962 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = display; -#line 960 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 962 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_active (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ViewComment", _tmp1_); -#line 6869 "MediaPage.c" +#line 6900 "MediaPage.c" } @@ -6873,19 +6904,19 @@ static GAction* media_page_sort_by_title_action (MediaPage* self) { GAction* result = NULL; GAction* action = NULL; GAction* _tmp0_ = NULL; -#line 963 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 965 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_val_if_fail (IS_MEDIA_PAGE (self), NULL); -#line 964 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 966 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SortBy"); -#line 964 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 966 "/home/jens/Source/shotwell/src/MediaPage.vala" action = _tmp0_; -#line 965 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 967 "/home/jens/Source/shotwell/src/MediaPage.vala" _vala_assert (action != NULL, "action != null"); -#line 966 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 968 "/home/jens/Source/shotwell/src/MediaPage.vala" result = action; -#line 966 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 968 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; -#line 6889 "MediaPage.c" +#line 6920 "MediaPage.c" } @@ -6893,19 +6924,19 @@ static GAction* media_page_sort_ascending_action (MediaPage* self) { GAction* result = NULL; GAction* action = NULL; GAction* _tmp0_ = NULL; -#line 969 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 971 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_val_if_fail (IS_MEDIA_PAGE (self), NULL); -#line 970 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 972 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Sort"); -#line 970 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 972 "/home/jens/Source/shotwell/src/MediaPage.vala" action = _tmp0_; -#line 971 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 973 "/home/jens/Source/shotwell/src/MediaPage.vala" _vala_assert (action != NULL, "action != null"); -#line 972 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 974 "/home/jens/Source/shotwell/src/MediaPage.vala" result = action; -#line 972 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 974 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; -#line 6909 "MediaPage.c" +#line 6940 "MediaPage.c" } @@ -6918,38 +6949,38 @@ gint media_page_get_menu_sort_by (MediaPage* self) { const gchar* _tmp4_ = NULL; gint _tmp5_ = 0; gint _tmp6_ = 0; -#line 975 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_val_if_fail (IS_MEDIA_PAGE (self), 0); #line 977 "/home/jens/Source/shotwell/src/MediaPage.vala" + g_return_val_if_fail (IS_MEDIA_PAGE (self), 0); +#line 979 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = media_page_sort_by_title_action (self); -#line 977 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 979 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_; -#line 977 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 979 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = g_action_get_state (_tmp1_); -#line 977 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 979 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_; -#line 977 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 979 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = g_variant_get_string (_tmp3_, NULL); -#line 977 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 979 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = atoi (_tmp4_); -#line 977 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 979 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = _tmp5_; -#line 977 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 979 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_variant_unref0 (_tmp3_); -#line 977 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 979 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp1_); -#line 977 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 979 "/home/jens/Source/shotwell/src/MediaPage.vala" result = _tmp6_; -#line 977 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 979 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; -#line 6946 "MediaPage.c" +#line 6977 "MediaPage.c" } static GVariant* _variant_new30 (const gchar* value) { -#line 982 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 984 "/home/jens/Source/shotwell/src/MediaPage.vala" return g_variant_ref_sink (g_variant_new_string (value)); -#line 6953 "MediaPage.c" +#line 6984 "MediaPage.c" } @@ -6960,29 +6991,29 @@ void media_page_set_menu_sort_by (MediaPage* self, gint val) { GAction* _tmp2_ = NULL; GAction* _tmp3_ = NULL; GVariant* _tmp4_ = NULL; -#line 980 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 982 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 981 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 983 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = val; -#line 981 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 983 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = g_strdup_printf ("%d", _tmp0_); -#line 981 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 983 "/home/jens/Source/shotwell/src/MediaPage.vala" sort = _tmp1_; -#line 982 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 984 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = media_page_sort_by_title_action (self); -#line 982 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 984 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_; -#line 982 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 984 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = _variant_new30 (sort); -#line 982 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 984 "/home/jens/Source/shotwell/src/MediaPage.vala" g_action_change_state (_tmp3_, _tmp4_); -#line 982 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 984 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_variant_unref0 (_tmp4_); -#line 982 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 984 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp3_); -#line 980 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 982 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_free0 (sort); -#line 6986 "MediaPage.c" +#line 7017 "MediaPage.c" } @@ -6994,36 +7025,36 @@ gboolean media_page_get_menu_sort_order (MediaPage* self) { GVariant* _tmp3_ = NULL; const gchar* _tmp4_ = NULL; gboolean _tmp5_ = FALSE; -#line 985 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_val_if_fail (IS_MEDIA_PAGE (self), FALSE); #line 987 "/home/jens/Source/shotwell/src/MediaPage.vala" + g_return_val_if_fail (IS_MEDIA_PAGE (self), FALSE); +#line 989 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = media_page_sort_ascending_action (self); -#line 987 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 989 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_; -#line 987 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 989 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = g_action_get_state (_tmp1_); -#line 987 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 989 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_; -#line 987 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 989 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = g_variant_get_string (_tmp3_, NULL); -#line 987 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 989 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = g_strcmp0 (_tmp4_, "ascending") == 0; -#line 987 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 989 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_variant_unref0 (_tmp3_); -#line 987 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 989 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp1_); -#line 987 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 989 "/home/jens/Source/shotwell/src/MediaPage.vala" result = _tmp5_; -#line 987 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 989 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; -#line 7020 "MediaPage.c" +#line 7051 "MediaPage.c" } static GVariant* _variant_new31 (const gchar* value) { -#line 991 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 993 "/home/jens/Source/shotwell/src/MediaPage.vala" return g_variant_ref_sink (g_variant_new_string (value)); -#line 7027 "MediaPage.c" +#line 7058 "MediaPage.c" } @@ -7033,141 +7064,141 @@ void media_page_set_menu_sort_order (MediaPage* self, gboolean ascending) { GAction* _tmp2_ = NULL; GAction* _tmp3_ = NULL; GVariant* _tmp4_ = NULL; -#line 990 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 992 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 991 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 993 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = ascending; -#line 991 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 993 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp1_) { -#line 991 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 993 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = "ascending"; -#line 7045 "MediaPage.c" +#line 7076 "MediaPage.c" } else { -#line 991 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 993 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = "descending"; -#line 7049 "MediaPage.c" +#line 7080 "MediaPage.c" } -#line 991 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 993 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = media_page_sort_ascending_action (self); -#line 991 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 993 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_; -#line 991 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 993 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = _variant_new31 (_tmp0_); -#line 991 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 993 "/home/jens/Source/shotwell/src/MediaPage.vala" g_action_change_state (_tmp3_, _tmp4_); -#line 991 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 993 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_variant_unref0 (_tmp4_); -#line 991 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 993 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp3_); -#line 7063 "MediaPage.c" +#line 7094 "MediaPage.c" } static gint64 _thumbnail_title_ascending_comparator_comparator (void* a, void* b, gpointer self) { gint64 result; result = thumbnail_title_ascending_comparator (a, b); -#line 1001 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1003 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; -#line 7072 "MediaPage.c" +#line 7103 "MediaPage.c" } static gint64 _thumbnail_title_descending_comparator_comparator (void* a, void* b, gpointer self) { gint64 result; result = thumbnail_title_descending_comparator (a, b); -#line 1002 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1004 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; -#line 7081 "MediaPage.c" +#line 7112 "MediaPage.c" } static gboolean _thumbnail_title_comparator_predicate_comparator_predicate (DataObject* object, Alteration* alteration, gpointer self) { gboolean result; result = thumbnail_title_comparator_predicate (object, alteration); -#line 1003 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1005 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; -#line 7090 "MediaPage.c" +#line 7121 "MediaPage.c" } static gint64 _thumbnail_exposure_time_ascending_comparator_comparator (void* a, void* b, gpointer self) { gint64 result; result = thumbnail_exposure_time_ascending_comparator (a, b); -#line 1008 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1010 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; -#line 7099 "MediaPage.c" +#line 7130 "MediaPage.c" } static gint64 _thumbnail_exposure_time_desending_comparator_comparator (void* a, void* b, gpointer self) { gint64 result; result = thumbnail_exposure_time_desending_comparator (a, b); -#line 1009 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1011 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; -#line 7108 "MediaPage.c" +#line 7139 "MediaPage.c" } static gboolean _thumbnail_exposure_time_comparator_predicate_comparator_predicate (DataObject* object, Alteration* alteration, gpointer self) { gboolean result; result = thumbnail_exposure_time_comparator_predicate (object, alteration); -#line 1010 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1012 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; -#line 7117 "MediaPage.c" +#line 7148 "MediaPage.c" } static gint64 _thumbnail_rating_ascending_comparator_comparator (void* a, void* b, gpointer self) { gint64 result; result = thumbnail_rating_ascending_comparator (a, b); -#line 1015 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1017 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; -#line 7126 "MediaPage.c" +#line 7157 "MediaPage.c" } static gint64 _thumbnail_rating_descending_comparator_comparator (void* a, void* b, gpointer self) { gint64 result; result = thumbnail_rating_descending_comparator (a, b); -#line 1016 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1018 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; -#line 7135 "MediaPage.c" +#line 7166 "MediaPage.c" } static gboolean _thumbnail_rating_comparator_predicate_comparator_predicate (DataObject* object, Alteration* alteration, gpointer self) { gboolean result; result = thumbnail_rating_comparator_predicate (object, alteration); -#line 1017 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1019 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; -#line 7144 "MediaPage.c" +#line 7175 "MediaPage.c" } static gint64 _thumbnail_filename_ascending_comparator_comparator (void* a, void* b, gpointer self) { gint64 result; result = thumbnail_filename_ascending_comparator (a, b); -#line 1022 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1024 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; -#line 7153 "MediaPage.c" +#line 7184 "MediaPage.c" } static gint64 _thumbnail_filename_descending_comparator_comparator (void* a, void* b, gpointer self) { gint64 result; result = thumbnail_filename_descending_comparator (a, b); -#line 1023 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1025 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; -#line 7162 "MediaPage.c" +#line 7193 "MediaPage.c" } static gboolean _thumbnail_filename_comparator_predicate_comparator_predicate (DataObject* object, Alteration* alteration, gpointer self) { gboolean result; result = thumbnail_filename_comparator_predicate (object, alteration); -#line 1024 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1026 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; -#line 7171 "MediaPage.c" +#line 7202 "MediaPage.c" } @@ -7185,329 +7216,329 @@ static void media_page_set_view_comparator (MediaPage* self, gint sort_by, gbool void* _tmp10__target = NULL; ComparatorPredicate _tmp11_ = NULL; void* _tmp11__target = NULL; -#line 994 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 996 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 998 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1000 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = sort_by; -#line 998 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1000 "/home/jens/Source/shotwell/src/MediaPage.vala" switch (_tmp0_) { -#line 998 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1000 "/home/jens/Source/shotwell/src/MediaPage.vala" case MEDIA_PAGE_SORT_BY_TITLE: -#line 7197 "MediaPage.c" +#line 7228 "MediaPage.c" { gboolean _tmp1_ = FALSE; -#line 1000 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1002 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = ascending; -#line 1000 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1002 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp1_) { -#line 1001 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1003 "/home/jens/Source/shotwell/src/MediaPage.vala" (comparator_target_destroy_notify == NULL) ? NULL : (comparator_target_destroy_notify (comparator_target), NULL); -#line 1001 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1003 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator = NULL; -#line 1001 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1003 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target = NULL; -#line 1001 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1003 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target_destroy_notify = NULL; -#line 1001 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1003 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator = _thumbnail_title_ascending_comparator_comparator; -#line 1001 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1003 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target = NULL; -#line 1001 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1003 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target_destroy_notify = NULL; -#line 7218 "MediaPage.c" +#line 7249 "MediaPage.c" } else { -#line 1002 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1004 "/home/jens/Source/shotwell/src/MediaPage.vala" (comparator_target_destroy_notify == NULL) ? NULL : (comparator_target_destroy_notify (comparator_target), NULL); -#line 1002 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1004 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator = NULL; -#line 1002 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1004 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target = NULL; -#line 1002 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1004 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target_destroy_notify = NULL; -#line 1002 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1004 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator = _thumbnail_title_descending_comparator_comparator; -#line 1002 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1004 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target = NULL; -#line 1002 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1004 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target_destroy_notify = NULL; -#line 7234 "MediaPage.c" +#line 7265 "MediaPage.c" } -#line 1003 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1005 "/home/jens/Source/shotwell/src/MediaPage.vala" (predicate_target_destroy_notify == NULL) ? NULL : (predicate_target_destroy_notify (predicate_target), NULL); -#line 1003 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1005 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate = NULL; -#line 1003 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1005 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate_target = NULL; -#line 1003 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1005 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate_target_destroy_notify = NULL; -#line 1003 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1005 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate = _thumbnail_title_comparator_predicate_comparator_predicate; -#line 1003 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1005 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate_target = NULL; -#line 1003 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1005 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate_target_destroy_notify = NULL; -#line 1004 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1006 "/home/jens/Source/shotwell/src/MediaPage.vala" break; -#line 7252 "MediaPage.c" +#line 7283 "MediaPage.c" } -#line 998 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1000 "/home/jens/Source/shotwell/src/MediaPage.vala" case MEDIA_PAGE_SORT_BY_EXPOSURE_DATE: -#line 7256 "MediaPage.c" +#line 7287 "MediaPage.c" { gboolean _tmp2_ = FALSE; -#line 1007 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1009 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = ascending; -#line 1007 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1009 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp2_) { -#line 1008 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1010 "/home/jens/Source/shotwell/src/MediaPage.vala" (comparator_target_destroy_notify == NULL) ? NULL : (comparator_target_destroy_notify (comparator_target), NULL); -#line 1008 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1010 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator = NULL; -#line 1008 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1010 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target = NULL; -#line 1008 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1010 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target_destroy_notify = NULL; -#line 1008 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1010 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator = _thumbnail_exposure_time_ascending_comparator_comparator; -#line 1008 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1010 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target = NULL; -#line 1008 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1010 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target_destroy_notify = NULL; -#line 7277 "MediaPage.c" +#line 7308 "MediaPage.c" } else { -#line 1009 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1011 "/home/jens/Source/shotwell/src/MediaPage.vala" (comparator_target_destroy_notify == NULL) ? NULL : (comparator_target_destroy_notify (comparator_target), NULL); -#line 1009 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1011 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator = NULL; -#line 1009 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1011 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target = NULL; -#line 1009 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1011 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target_destroy_notify = NULL; -#line 1009 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1011 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator = _thumbnail_exposure_time_desending_comparator_comparator; -#line 1009 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1011 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target = NULL; -#line 1009 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1011 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target_destroy_notify = NULL; -#line 7293 "MediaPage.c" +#line 7324 "MediaPage.c" } -#line 1010 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1012 "/home/jens/Source/shotwell/src/MediaPage.vala" (predicate_target_destroy_notify == NULL) ? NULL : (predicate_target_destroy_notify (predicate_target), NULL); -#line 1010 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1012 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate = NULL; -#line 1010 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1012 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate_target = NULL; -#line 1010 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1012 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate_target_destroy_notify = NULL; -#line 1010 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1012 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate = _thumbnail_exposure_time_comparator_predicate_comparator_predicate; -#line 1010 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1012 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate_target = NULL; -#line 1010 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1012 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate_target_destroy_notify = NULL; -#line 1011 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1013 "/home/jens/Source/shotwell/src/MediaPage.vala" break; -#line 7311 "MediaPage.c" +#line 7342 "MediaPage.c" } -#line 998 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1000 "/home/jens/Source/shotwell/src/MediaPage.vala" case MEDIA_PAGE_SORT_BY_RATING: -#line 7315 "MediaPage.c" +#line 7346 "MediaPage.c" { gboolean _tmp3_ = FALSE; -#line 1014 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1016 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = ascending; -#line 1014 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1016 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp3_) { -#line 1015 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1017 "/home/jens/Source/shotwell/src/MediaPage.vala" (comparator_target_destroy_notify == NULL) ? NULL : (comparator_target_destroy_notify (comparator_target), NULL); -#line 1015 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1017 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator = NULL; -#line 1015 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1017 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target = NULL; -#line 1015 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1017 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target_destroy_notify = NULL; -#line 1015 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1017 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator = _thumbnail_rating_ascending_comparator_comparator; -#line 1015 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1017 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target = NULL; -#line 1015 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1017 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target_destroy_notify = NULL; -#line 7336 "MediaPage.c" +#line 7367 "MediaPage.c" } else { -#line 1016 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1018 "/home/jens/Source/shotwell/src/MediaPage.vala" (comparator_target_destroy_notify == NULL) ? NULL : (comparator_target_destroy_notify (comparator_target), NULL); -#line 1016 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1018 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator = NULL; -#line 1016 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1018 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target = NULL; -#line 1016 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1018 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target_destroy_notify = NULL; -#line 1016 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1018 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator = _thumbnail_rating_descending_comparator_comparator; -#line 1016 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1018 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target = NULL; -#line 1016 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1018 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target_destroy_notify = NULL; -#line 7352 "MediaPage.c" +#line 7383 "MediaPage.c" } -#line 1017 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1019 "/home/jens/Source/shotwell/src/MediaPage.vala" (predicate_target_destroy_notify == NULL) ? NULL : (predicate_target_destroy_notify (predicate_target), NULL); -#line 1017 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1019 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate = NULL; -#line 1017 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1019 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate_target = NULL; -#line 1017 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1019 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate_target_destroy_notify = NULL; -#line 1017 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1019 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate = _thumbnail_rating_comparator_predicate_comparator_predicate; -#line 1017 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1019 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate_target = NULL; -#line 1017 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1019 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate_target_destroy_notify = NULL; -#line 1018 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1020 "/home/jens/Source/shotwell/src/MediaPage.vala" break; -#line 7370 "MediaPage.c" +#line 7401 "MediaPage.c" } -#line 998 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1000 "/home/jens/Source/shotwell/src/MediaPage.vala" case MEDIA_PAGE_SORT_BY_FILENAME: -#line 7374 "MediaPage.c" +#line 7405 "MediaPage.c" { gboolean _tmp4_ = FALSE; -#line 1021 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1023 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = ascending; -#line 1021 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1023 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp4_) { -#line 1022 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1024 "/home/jens/Source/shotwell/src/MediaPage.vala" (comparator_target_destroy_notify == NULL) ? NULL : (comparator_target_destroy_notify (comparator_target), NULL); -#line 1022 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1024 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator = NULL; -#line 1022 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1024 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target = NULL; -#line 1022 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1024 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target_destroy_notify = NULL; -#line 1022 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1024 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator = _thumbnail_filename_ascending_comparator_comparator; -#line 1022 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1024 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target = NULL; -#line 1022 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1024 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target_destroy_notify = NULL; -#line 7395 "MediaPage.c" +#line 7426 "MediaPage.c" } else { -#line 1023 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1025 "/home/jens/Source/shotwell/src/MediaPage.vala" (comparator_target_destroy_notify == NULL) ? NULL : (comparator_target_destroy_notify (comparator_target), NULL); -#line 1023 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1025 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator = NULL; -#line 1023 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1025 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target = NULL; -#line 1023 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1025 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target_destroy_notify = NULL; -#line 1023 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1025 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator = _thumbnail_filename_descending_comparator_comparator; -#line 1023 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1025 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target = NULL; -#line 1023 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1025 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target_destroy_notify = NULL; -#line 7411 "MediaPage.c" +#line 7442 "MediaPage.c" } -#line 1024 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1026 "/home/jens/Source/shotwell/src/MediaPage.vala" (predicate_target_destroy_notify == NULL) ? NULL : (predicate_target_destroy_notify (predicate_target), NULL); -#line 1024 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1026 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate = NULL; -#line 1024 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1026 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate_target = NULL; -#line 1024 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1026 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate_target_destroy_notify = NULL; -#line 1024 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1026 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate = _thumbnail_filename_comparator_predicate_comparator_predicate; -#line 1024 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1026 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate_target = NULL; -#line 1024 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1026 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate_target_destroy_notify = NULL; -#line 1025 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1027 "/home/jens/Source/shotwell/src/MediaPage.vala" break; -#line 7429 "MediaPage.c" +#line 7460 "MediaPage.c" } default: { gint _tmp5_ = 0; gchar* _tmp6_ = NULL; gchar* _tmp7_ = NULL; -#line 1028 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1030 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = media_page_get_menu_sort_by (self); -#line 1028 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1030 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = g_strdup_printf ("%i", _tmp5_); -#line 1028 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1030 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = _tmp6_; -#line 1028 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_debug ("MediaPage.vala:1028: Unknown sort criteria: %s", _tmp7_); -#line 1028 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1030 "/home/jens/Source/shotwell/src/MediaPage.vala" + g_debug ("MediaPage.vala:1030: Unknown sort criteria: %s", _tmp7_); +#line 1030 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_free0 (_tmp7_); -#line 1029 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1031 "/home/jens/Source/shotwell/src/MediaPage.vala" (comparator_target_destroy_notify == NULL) ? NULL : (comparator_target_destroy_notify (comparator_target), NULL); -#line 1029 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1031 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator = NULL; -#line 1029 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1031 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target = NULL; -#line 1029 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1031 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target_destroy_notify = NULL; -#line 1029 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1031 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator = _thumbnail_title_descending_comparator_comparator; -#line 1029 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1031 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target = NULL; -#line 1029 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1031 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target_destroy_notify = NULL; -#line 1030 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1032 "/home/jens/Source/shotwell/src/MediaPage.vala" (predicate_target_destroy_notify == NULL) ? NULL : (predicate_target_destroy_notify (predicate_target), NULL); -#line 1030 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1032 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate = NULL; -#line 1030 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1032 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate_target = NULL; -#line 1030 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1032 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate_target_destroy_notify = NULL; -#line 1030 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1032 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate = _thumbnail_title_comparator_predicate_comparator_predicate; -#line 1030 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1032 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate_target = NULL; -#line 1030 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1032 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate_target_destroy_notify = NULL; -#line 1031 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1033 "/home/jens/Source/shotwell/src/MediaPage.vala" break; -#line 7476 "MediaPage.c" +#line 7507 "MediaPage.c" } } -#line 1034 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1036 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1034 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1036 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = _tmp8_; -#line 1034 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1036 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = comparator; -#line 1034 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1036 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10__target = comparator_target; -#line 1034 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1036 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = predicate; -#line 1034 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1036 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11__target = predicate_target; -#line 1034 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1036 "/home/jens/Source/shotwell/src/MediaPage.vala" data_collection_set_comparator (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_COLLECTION, DataCollection), _tmp10_, _tmp10__target, _tmp11_, _tmp11__target); -#line 1034 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1036 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp9_); -#line 994 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 996 "/home/jens/Source/shotwell/src/MediaPage.vala" (predicate_target_destroy_notify == NULL) ? NULL : (predicate_target_destroy_notify (predicate_target), NULL); -#line 994 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 996 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate = NULL; -#line 994 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 996 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate_target = NULL; -#line 994 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 996 "/home/jens/Source/shotwell/src/MediaPage.vala" predicate_target_destroy_notify = NULL; -#line 994 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 996 "/home/jens/Source/shotwell/src/MediaPage.vala" (comparator_target_destroy_notify == NULL) ? NULL : (comparator_target_destroy_notify (comparator_target), NULL); -#line 994 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 996 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator = NULL; -#line 994 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 996 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target = NULL; -#line 994 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 996 "/home/jens/Source/shotwell/src/MediaPage.vala" comparator_target_destroy_notify = NULL; -#line 7511 "MediaPage.c" +#line 7542 "MediaPage.c" } @@ -7516,106 +7547,106 @@ void media_page_sync_sort (MediaPage* self) { gint sort_by = 0; gboolean _tmp0_ = FALSE; gint _tmp1_ = 0; -#line 1037 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1039 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 1054 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1056 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_get_config_photos_sort (self, &_tmp0_, &_tmp1_); -#line 1054 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1056 "/home/jens/Source/shotwell/src/MediaPage.vala" sort_ascending = _tmp0_; -#line 1054 "/home/jens/Source/shotwell/src/MediaPage.vala" - sort_by = _tmp1_; #line 1056 "/home/jens/Source/shotwell/src/MediaPage.vala" + sort_by = _tmp1_; +#line 1058 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_set_menu_sort_by (self, sort_by); -#line 1057 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_set_menu_sort_order (self, sort_ascending); #line 1059 "/home/jens/Source/shotwell/src/MediaPage.vala" + media_page_set_menu_sort_order (self, sort_ascending); +#line 1061 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_set_view_comparator (self, sort_by, sort_ascending); -#line 7534 "MediaPage.c" +#line 7565 "MediaPage.c" } static void media_page_real_destroy (GtkWidget* base) { MediaPage * self; -#line 1062 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1064 "/home/jens/Source/shotwell/src/MediaPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage); -#line 1063 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_disconnect_slider (self); #line 1065 "/home/jens/Source/shotwell/src/MediaPage.vala" + media_page_disconnect_slider (self); +#line 1067 "/home/jens/Source/shotwell/src/MediaPage.vala" GTK_WIDGET_CLASS (media_page_parent_class)->destroy (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), gtk_widget_get_type (), GtkWidget)); -#line 7546 "MediaPage.c" +#line 7577 "MediaPage.c" } void media_page_increase_zoom_level (MediaPage* self) { MediaPageZoomSliderAssembly* _tmp0_ = NULL; -#line 1068 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1070 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 1069 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1071 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = self->priv->connected_slider; -#line 1069 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1071 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp0_ != NULL) { -#line 7558 "MediaPage.c" +#line 7589 "MediaPage.c" MediaPageZoomSliderAssembly* _tmp1_ = NULL; -#line 1070 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1072 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = self->priv->connected_slider; -#line 1070 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1072 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_zoom_slider_assembly_increase_step (_tmp1_); -#line 7564 "MediaPage.c" +#line 7595 "MediaPage.c" } else { gint new_scale = 0; gint _tmp2_ = 0; gint _tmp3_ = 0; gint _tmp4_ = 0; -#line 1072 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1074 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = media_page_get_thumb_size (self); -#line 1072 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1074 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = media_page_compute_zoom_scale_increase (_tmp2_); -#line 1072 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1074 "/home/jens/Source/shotwell/src/MediaPage.vala" new_scale = _tmp3_; -#line 1073 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1075 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_save_persistent_thumbnail_scale (self); -#line 1074 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1076 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = new_scale; -#line 1074 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1076 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_set_thumb_size (self, _tmp4_); -#line 7582 "MediaPage.c" +#line 7613 "MediaPage.c" } } void media_page_decrease_zoom_level (MediaPage* self) { MediaPageZoomSliderAssembly* _tmp0_ = NULL; -#line 1078 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1080 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 1079 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1081 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = self->priv->connected_slider; -#line 1079 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1081 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp0_ != NULL) { -#line 7595 "MediaPage.c" +#line 7626 "MediaPage.c" MediaPageZoomSliderAssembly* _tmp1_ = NULL; -#line 1080 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1082 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = self->priv->connected_slider; -#line 1080 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1082 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_zoom_slider_assembly_decrease_step (_tmp1_); -#line 7601 "MediaPage.c" +#line 7632 "MediaPage.c" } else { gint new_scale = 0; gint _tmp2_ = 0; gint _tmp3_ = 0; gint _tmp4_ = 0; -#line 1082 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1084 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = media_page_get_thumb_size (self); -#line 1082 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1084 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = media_page_compute_zoom_scale_decrease (_tmp2_); -#line 1082 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1084 "/home/jens/Source/shotwell/src/MediaPage.vala" new_scale = _tmp3_; -#line 1083 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1085 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_save_persistent_thumbnail_scale (self); -#line 1084 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1086 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = new_scale; -#line 1084 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1086 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_set_thumb_size (self, _tmp4_); -#line 7619 "MediaPage.c" +#line 7650 "MediaPage.c" } } @@ -7625,28 +7656,28 @@ static DataView* media_page_real_create_thumbnail (MediaPage* self, DataSource* DataSource* _tmp0_ = NULL; gint _tmp1_ = 0; Thumbnail* _tmp2_ = NULL; -#line 1088 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1090 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_val_if_fail (IS_DATA_SOURCE (source), NULL); -#line 1089 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1091 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = source; -#line 1089 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1091 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = media_page_get_thumb_size (self); -#line 1089 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1091 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = thumbnail_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE, MediaSource), _tmp1_); -#line 1089 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1091 "/home/jens/Source/shotwell/src/MediaPage.vala" result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_VIEW, DataView); -#line 1089 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1091 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; -#line 7641 "MediaPage.c" +#line 7672 "MediaPage.c" } DataView* media_page_create_thumbnail (MediaPage* self, DataSource* source) { -#line 1088 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1090 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_val_if_fail (IS_MEDIA_PAGE (self), NULL); -#line 1088 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1090 "/home/jens/Source/shotwell/src/MediaPage.vala" return MEDIA_PAGE_GET_CLASS (self)->create_thumbnail (self, source); -#line 7650 "MediaPage.c" +#line 7681 "MediaPage.c" } @@ -7677,104 +7708,104 @@ void media_page_set_thumb_size (MediaPage* self, gint new_scale) { gint _tmp24_ = 0; gint _tmp25_ = 0; gint _tmp26_ = 0; -#line 1094 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1096 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 1095 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1097 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = media_page_get_thumb_size (self); -#line 1095 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1097 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = new_scale; -#line 1095 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1097 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp1_ == _tmp2_) { -#line 1095 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1097 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = TRUE; -#line 7691 "MediaPage.c" +#line 7722 "MediaPage.c" } else { gboolean _tmp3_ = FALSE; -#line 1095 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1097 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = page_is_in_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1095 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1097 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = !_tmp3_; -#line 7698 "MediaPage.c" +#line 7729 "MediaPage.c" } -#line 1095 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1097 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp0_) { -#line 1096 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1098 "/home/jens/Source/shotwell/src/MediaPage.vala" return; -#line 7704 "MediaPage.c" +#line 7735 "MediaPage.c" } -#line 1098 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1100 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = new_scale; -#line 1098 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1100 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = thumbnail_get_MIN_SCALE (); -#line 1098 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1100 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = _tmp5_; -#line 1098 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1100 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = thumbnail_get_MAX_SCALE (); -#line 1098 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1100 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = _tmp7_; -#line 1098 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1100 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = CLAMP (_tmp4_, _tmp6_, _tmp8_); -#line 1098 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1100 "/home/jens/Source/shotwell/src/MediaPage.vala" new_scale = _tmp9_; -#line 1099 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1101 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = checkerboard_page_get_checkerboard_layout (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage)); -#line 1099 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1101 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = _tmp10_; -#line 1099 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1101 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = new_scale; -#line 1099 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1101 "/home/jens/Source/shotwell/src/MediaPage.vala" checkerboard_layout_set_scale (_tmp11_, _tmp12_); -#line 1099 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1101 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp11_); -#line 1102 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1104 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp13_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1102 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1104 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp14_ = _tmp13_; -#line 1102 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1104 "/home/jens/Source/shotwell/src/MediaPage.vala" data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1102 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1104 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp14_); -#line 1103 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1105 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp15_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1103 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1105 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp16_ = _tmp15_; -#line 1103 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1105 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp17_ = new_scale; -#line 1103 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1105 "/home/jens/Source/shotwell/src/MediaPage.vala" g_value_init (&_tmp18_, G_TYPE_INT); -#line 1103 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1105 "/home/jens/Source/shotwell/src/MediaPage.vala" g_value_set_int (&_tmp18_, _tmp17_); -#line 1103 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1105 "/home/jens/Source/shotwell/src/MediaPage.vala" data_collection_set_property (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_DATA_COLLECTION, DataCollection), THUMBNAIL_PROP_SIZE, &_tmp18_, NULL, NULL); -#line 1103 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1105 "/home/jens/Source/shotwell/src/MediaPage.vala" G_IS_VALUE (&_tmp18_) ? (g_value_unset (&_tmp18_), NULL) : NULL; -#line 1103 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1105 "/home/jens/Source/shotwell/src/MediaPage.vala" _data_collection_unref0 (_tmp16_); -#line 1104 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1106 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp19_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1104 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1106 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp20_ = _tmp19_; -#line 1104 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1106 "/home/jens/Source/shotwell/src/MediaPage.vala" data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1104 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp20_); #line 1106 "/home/jens/Source/shotwell/src/MediaPage.vala" + _data_collection_unref0 (_tmp20_); +#line 1108 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp21_ = new_scale; -#line 1106 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1108 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp22_ = thumbnail_get_MAX_SCALE (); -#line 1106 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1108 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp23_ = _tmp22_; -#line 1106 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1108 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "IncreaseSize", _tmp21_ < _tmp23_); -#line 1107 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1109 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp24_ = new_scale; -#line 1107 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1109 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp25_ = thumbnail_get_MIN_SCALE (); -#line 1107 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1109 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp26_ = _tmp25_; -#line 1107 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1109 "/home/jens/Source/shotwell/src/MediaPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DecreaseSize", _tmp24_ > _tmp26_); -#line 7778 "MediaPage.c" +#line 7809 "MediaPage.c" } @@ -7788,59 +7819,59 @@ gint media_page_get_thumb_size (MediaPage* self) { CheckerboardLayout* _tmp10_ = NULL; gint _tmp11_ = 0; gint _tmp12_ = 0; -#line 1110 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1112 "/home/jens/Source/shotwell/src/MediaPage.vala" g_return_val_if_fail (IS_MEDIA_PAGE (self), 0); -#line 1111 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1113 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp0_ = checkerboard_page_get_checkerboard_layout (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage)); -#line 1111 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1113 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp1_ = _tmp0_; -#line 1111 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1113 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = checkerboard_layout_get_scale (_tmp1_); -#line 1111 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1113 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp3_ = _tmp2_ <= 0; -#line 1111 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1113 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp1_); -#line 1111 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1113 "/home/jens/Source/shotwell/src/MediaPage.vala" if (_tmp3_) { -#line 7806 "MediaPage.c" +#line 7837 "MediaPage.c" CheckerboardLayout* _tmp4_ = NULL; CheckerboardLayout* _tmp5_ = NULL; ConfigFacade* _tmp6_ = NULL; ConfigFacade* _tmp7_ = NULL; gint _tmp8_ = 0; -#line 1112 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1114 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = checkerboard_page_get_checkerboard_layout (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage)); -#line 1112 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1114 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp5_ = _tmp4_; -#line 1112 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1114 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp6_ = config_facade_get_instance (); -#line 1112 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1114 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp7_ = _tmp6_; -#line 1112 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1114 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp8_ = configuration_facade_get_photo_thumbnail_scale (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 1112 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1114 "/home/jens/Source/shotwell/src/MediaPage.vala" checkerboard_layout_set_scale (_tmp5_, _tmp8_); -#line 1112 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1114 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp7_); -#line 1112 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1114 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp5_); -#line 7828 "MediaPage.c" +#line 7859 "MediaPage.c" } -#line 1114 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1116 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp9_ = checkerboard_page_get_checkerboard_layout (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage)); -#line 1114 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1116 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp10_ = _tmp9_; -#line 1114 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1116 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp11_ = checkerboard_layout_get_scale (_tmp10_); -#line 1114 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1116 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp12_ = _tmp11_; -#line 1114 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1116 "/home/jens/Source/shotwell/src/MediaPage.vala" _g_object_unref0 (_tmp10_); -#line 1114 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1116 "/home/jens/Source/shotwell/src/MediaPage.vala" result = _tmp12_; -#line 1114 "/home/jens/Source/shotwell/src/MediaPage.vala" +#line 1116 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; -#line 7844 "MediaPage.c" +#line 7875 "MediaPage.c" } @@ -7849,14 +7880,14 @@ static gboolean _media_page_zoom_slider_assembly_on_zoom_out_pressed_gtk_widget_ result = media_page_zoom_slider_assembly_on_zoom_out_pressed ((MediaPageZoomSliderAssembly*) self, event); #line 144 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; -#line 7853 "MediaPage.c" +#line 7884 "MediaPage.c" } static void _media_page_zoom_slider_assembly_on_slider_changed_gtk_range_value_changed (GtkRange* _sender, gpointer self) { #line 155 "/home/jens/Source/shotwell/src/MediaPage.vala" media_page_zoom_slider_assembly_on_slider_changed ((MediaPageZoomSliderAssembly*) self); -#line 7860 "MediaPage.c" +#line 7891 "MediaPage.c" } @@ -7865,7 +7896,7 @@ static gboolean _media_page_zoom_slider_assembly_on_zoom_in_pressed_gtk_widget_b result = media_page_zoom_slider_assembly_on_zoom_in_pressed ((MediaPageZoomSliderAssembly*) self, event); #line 168 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; -#line 7869 "MediaPage.c" +#line 7900 "MediaPage.c" } @@ -8047,14 +8078,14 @@ MediaPageZoomSliderAssembly* media_page_zoom_slider_assembly_construct (GType ob _g_object_unref0 (zoom_group); #line 135 "/home/jens/Source/shotwell/src/MediaPage.vala" return self; -#line 8051 "MediaPage.c" +#line 8082 "MediaPage.c" } MediaPageZoomSliderAssembly* media_page_zoom_slider_assembly_new (void) { #line 135 "/home/jens/Source/shotwell/src/MediaPage.vala" return media_page_zoom_slider_assembly_construct (MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY); -#line 8058 "MediaPage.c" +#line 8089 "MediaPage.c" } @@ -8095,7 +8126,7 @@ gdouble media_page_zoom_slider_assembly_scale_to_slider (gint value) { result = (gdouble) ((_tmp6_ - _tmp8_) / MEDIA_PAGE_SLIDER_STEPPING); #line 179 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; -#line 8099 "MediaPage.c" +#line 8130 "MediaPage.c" } @@ -8133,7 +8164,7 @@ gint media_page_zoom_slider_assembly_slider_to_scale (gdouble value) { result = res; #line 188 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; -#line 8137 "MediaPage.c" +#line 8168 "MediaPage.c" } @@ -8149,7 +8180,7 @@ static gboolean media_page_zoom_slider_assembly_on_zoom_out_pressed (MediaPageZo result = TRUE; #line 193 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; -#line 8153 "MediaPage.c" +#line 8184 "MediaPage.c" } @@ -8165,7 +8196,7 @@ static gboolean media_page_zoom_slider_assembly_on_zoom_in_pressed (MediaPageZoo result = TRUE; #line 198 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; -#line 8169 "MediaPage.c" +#line 8200 "MediaPage.c" } @@ -8174,7 +8205,7 @@ static void media_page_zoom_slider_assembly_on_slider_changed (MediaPageZoomSlid g_return_if_fail (MEDIA_PAGE_IS_ZOOM_SLIDER_ASSEMBLY (self)); #line 202 "/home/jens/Source/shotwell/src/MediaPage.vala" g_signal_emit_by_name (self, "zoom-changed"); -#line 8178 "MediaPage.c" +#line 8209 "MediaPage.c" } @@ -8195,7 +8226,7 @@ void media_page_zoom_slider_assembly_snap_to_min (MediaPageZoomSliderAssembly* s _tmp3_ = media_page_zoom_slider_assembly_scale_to_slider (_tmp2_); #line 206 "/home/jens/Source/shotwell/src/MediaPage.vala" gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_range_get_type (), GtkRange), _tmp3_); -#line 8199 "MediaPage.c" +#line 8230 "MediaPage.c" } @@ -8216,7 +8247,7 @@ void media_page_zoom_slider_assembly_snap_to_max (MediaPageZoomSliderAssembly* s _tmp3_ = media_page_zoom_slider_assembly_scale_to_slider (_tmp2_); #line 210 "/home/jens/Source/shotwell/src/MediaPage.vala" gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_range_get_type (), GtkRange), _tmp3_); -#line 8220 "MediaPage.c" +#line 8251 "MediaPage.c" } @@ -8245,7 +8276,7 @@ void media_page_zoom_slider_assembly_increase_step (MediaPageZoomSliderAssembly* if (_tmp2_ == _tmp3_) { #line 217 "/home/jens/Source/shotwell/src/MediaPage.vala" return; -#line 8249 "MediaPage.c" +#line 8280 "MediaPage.c" } #line 219 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = self->priv->slider; @@ -8255,7 +8286,7 @@ void media_page_zoom_slider_assembly_increase_step (MediaPageZoomSliderAssembly* _tmp6_ = media_page_zoom_slider_assembly_scale_to_slider (_tmp5_); #line 219 "/home/jens/Source/shotwell/src/MediaPage.vala" gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_range_get_type (), GtkRange), _tmp6_); -#line 8259 "MediaPage.c" +#line 8290 "MediaPage.c" } @@ -8284,7 +8315,7 @@ void media_page_zoom_slider_assembly_decrease_step (MediaPageZoomSliderAssembly* if (_tmp2_ == _tmp3_) { #line 226 "/home/jens/Source/shotwell/src/MediaPage.vala" return; -#line 8288 "MediaPage.c" +#line 8319 "MediaPage.c" } #line 228 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp4_ = self->priv->slider; @@ -8294,7 +8325,7 @@ void media_page_zoom_slider_assembly_decrease_step (MediaPageZoomSliderAssembly* _tmp6_ = media_page_zoom_slider_assembly_scale_to_slider (_tmp5_); #line 228 "/home/jens/Source/shotwell/src/MediaPage.vala" gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_range_get_type (), GtkRange), _tmp6_); -#line 8298 "MediaPage.c" +#line 8329 "MediaPage.c" } @@ -8315,7 +8346,7 @@ gint media_page_zoom_slider_assembly_get_scale (MediaPageZoomSliderAssembly* sel result = _tmp2_; #line 232 "/home/jens/Source/shotwell/src/MediaPage.vala" return result; -#line 8319 "MediaPage.c" +#line 8350 "MediaPage.c" } @@ -8335,7 +8366,7 @@ void media_page_zoom_slider_assembly_set_scale (MediaPageZoomSliderAssembly* sel if (_tmp0_ == _tmp1_) { #line 237 "/home/jens/Source/shotwell/src/MediaPage.vala" return; -#line 8339 "MediaPage.c" +#line 8370 "MediaPage.c" } #line 239 "/home/jens/Source/shotwell/src/MediaPage.vala" _tmp2_ = self->priv->slider; @@ -8345,7 +8376,7 @@ void media_page_zoom_slider_assembly_set_scale (MediaPageZoomSliderAssembly* sel _tmp4_ = media_page_zoom_slider_assembly_scale_to_slider (_tmp3_); #line 239 "/home/jens/Source/shotwell/src/MediaPage.vala" gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_range_get_type (), GtkRange), _tmp4_); -#line 8349 "MediaPage.c" +#line 8380 "MediaPage.c" } @@ -8358,14 +8389,14 @@ static void media_page_zoom_slider_assembly_class_init (MediaPageZoomSliderAssem G_OBJECT_CLASS (klass)->finalize = media_page_zoom_slider_assembly_finalize; #line 129 "/home/jens/Source/shotwell/src/MediaPage.vala" g_signal_new ("zoom_changed", MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 8362 "MediaPage.c" +#line 8393 "MediaPage.c" } static void media_page_zoom_slider_assembly_instance_init (MediaPageZoomSliderAssembly * self) { #line 129 "/home/jens/Source/shotwell/src/MediaPage.vala" self->priv = MEDIA_PAGE_ZOOM_SLIDER_ASSEMBLY_GET_PRIVATE (self); -#line 8369 "MediaPage.c" +#line 8400 "MediaPage.c" } @@ -8379,7 +8410,7 @@ static void media_page_zoom_slider_assembly_finalize (GObject* obj) { _g_object_unref0 (self->priv->adjustment); #line 129 "/home/jens/Source/shotwell/src/MediaPage.vala" G_OBJECT_CLASS (media_page_zoom_slider_assembly_parent_class)->finalize (obj); -#line 8383 "MediaPage.c" +#line 8414 "MediaPage.c" } @@ -8405,6 +8436,8 @@ static void media_page_class_init (MediaPageClass * klass) { #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" ((PageClass *) klass)->add_actions = media_page_real_add_actions; #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" + ((PageClass *) klass)->remove_actions = media_page_real_remove_actions; +#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" ((PageClass *) klass)->update_actions = media_page_real_update_actions; #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" ((CheckerboardPageClass *) klass)->get_view_tracker = media_page_real_get_view_tracker; @@ -8478,7 +8511,7 @@ static void media_page_class_init (MediaPageClass * klass) { ((MediaPageClass *) klass)->create_thumbnail = media_page_real_create_thumbnail; #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" G_OBJECT_CLASS (klass)->finalize = media_page_finalize; -#line 8482 "MediaPage.c" +#line 8515 "MediaPage.c" } @@ -8489,7 +8522,7 @@ static void media_page_instance_init (MediaPage * self) { self->priv->connected_slider = NULL; #line 244 "/home/jens/Source/shotwell/src/MediaPage.vala" self->priv->dnd_handler = NULL; -#line 8493 "MediaPage.c" +#line 8526 "MediaPage.c" } @@ -8505,7 +8538,7 @@ static void media_page_finalize (GObject* obj) { _core_tracker_unref0 (self->priv->tracker); #line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" G_OBJECT_CLASS (media_page_parent_class)->finalize (obj); -#line 8509 "MediaPage.c" +#line 8542 "MediaPage.c" } diff --git a/src/MediaPage.vala b/src/MediaPage.vala index ee5ef0e..a2d5185 100644 --- a/src/MediaPage.vala +++ b/src/MediaPage.vala @@ -318,17 +318,16 @@ public abstract class MediaPage : CheckerboardPage { // Radio actions { "SortBy", on_action_radio, "s", "'1'", on_sort_changed }, { "Sort", on_action_radio, "s", "'ascending'", on_sort_changed }, - { "RawDeveloper", on_action_radio, "s", "'Shotwell'", on_raw_developer_changed } }; - protected override void add_actions () { - base.add_actions (); + protected override void add_actions (GLib.ActionMap map) { + base.add_actions (map); bool sort_order; int sort_by; get_config_photos_sort(out sort_order, out sort_by); - AppWindow.get_instance ().add_action_entries (entries, this); + map.add_action_entries (entries, this); get_action ("ViewTitle").change_state (Config.Facade.get_instance ().get_display_photo_titles ()); get_action ("ViewComment").change_state (Config.Facade.get_instance ().get_display_photo_comments ()); get_action ("ViewRatings").change_state (Config.Facade.get_instance ().get_display_photo_ratings ()); @@ -337,9 +336,20 @@ public abstract class MediaPage : CheckerboardPage { get_action ("Sort").change_state (sort_order ? "ascending" : "descending"); var d = Config.Facade.get_instance().get_default_raw_developer(); - get_action ("RawDeveloper").change_state (d == RawDeveloper.SHOTWELL ? "Shotwell" : "Camera"); + var action = new GLib.SimpleAction.stateful("RawDeveloper", + GLib.VariantType.STRING, d == RawDeveloper.SHOTWELL ? "Shotwell" : "Camera"); + action.change_state.connect(on_raw_developer_changed); + action.set_enabled(true); + map.add_action(action); } - + + protected override void remove_actions(GLib.ActionMap map) { + base.remove_actions(map); + foreach (var entry in entries) { + map.remove_action(entry.name); + } + } + protected override void update_actions(int selected_count, int count) { set_action_sensitive("Export", selected_count > 0); set_action_sensitive("EditTitle", selected_count > 0); @@ -890,14 +900,6 @@ public abstract class MediaPage : CheckerboardPage { set_config_photos_sort(sort_order, sort_by); } - public void on_raw_developer_shotwell() { - developer_changed(RawDeveloper.SHOTWELL); - } - - public void on_raw_developer_camera() { - developer_changed(RawDeveloper.CAMERA); - } - private void on_raw_developer_changed(GLib.SimpleAction action, Variant? value) { RawDeveloper developer = RawDeveloper.SHOTWELL; diff --git a/src/MediaViewTracker.c b/src/MediaViewTracker.c index 3187c83..a858bc2 100644 --- a/src/MediaViewTracker.c +++ b/src/MediaViewTracker.c @@ -1,4 +1,4 @@ -/* MediaViewTracker.c generated by valac 0.32.1, the Vala compiler +/* MediaViewTracker.c generated by valac 0.34.4, the Vala compiler * generated from MediaViewTracker.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/MetadataWriter.c b/src/MetadataWriter.c index eff07e9..46ac165 100644 --- a/src/MetadataWriter.c +++ b/src/MetadataWriter.c @@ -1,4 +1,4 @@ -/* MetadataWriter.c generated by valac 0.32.1, the Vala compiler +/* MetadataWriter.c generated by valac 0.34.4, the Vala compiler * generated from MetadataWriter.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -2958,7 +2958,7 @@ static void metadata_writer_photos_are_dirty (MetadataWriter* self, GeeCollectio #line 538 "/home/jens/Source/shotwell/src/MetadataWriter.vala" _g_object_unref0 (_photo_it); #line 2961 "MetadataWriter.c" - goto __catch549_g_error; + goto __catch551_g_error; } #line 537 "/home/jens/Source/shotwell/src/MetadataWriter.vala" _g_object_unref0 (photo); @@ -2978,8 +2978,8 @@ static void metadata_writer_photos_are_dirty (MetadataWriter* self, GeeCollectio transaction_controller_commit (_tmp23_); #line 2980 "MetadataWriter.c" } - goto __finally549; - __catch549_g_error: + goto __finally551; + __catch551_g_error: { GError* err = NULL; GError* _tmp24_ = NULL; @@ -3013,7 +3013,7 @@ static void metadata_writer_photos_are_dirty (MetadataWriter* self, GeeCollectio _g_error_free0 (err); #line 3015 "MetadataWriter.c" } - __finally549: + __finally551: #line 534 "/home/jens/Source/shotwell/src/MetadataWriter.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 534 "/home/jens/Source/shotwell/src/MetadataWriter.vala" @@ -3796,7 +3796,7 @@ static void metadata_writer_on_update_completed (MetadataWriter* self, Backgroun #line 664 "/home/jens/Source/shotwell/src/MetadataWriter.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 3799 "MetadataWriter.c" - goto __catch550_database_error; + goto __catch552_database_error; } { LibraryPhoto* _tmp67_ = NULL; @@ -3853,7 +3853,7 @@ static void metadata_writer_on_update_completed (MetadataWriter* self, Backgroun #line 667 "/home/jens/Source/shotwell/src/MetadataWriter.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 3856 "MetadataWriter.c" - goto __catch550_database_error; + goto __catch552_database_error; } { LibraryPhoto* _tmp76_ = NULL; @@ -3885,8 +3885,8 @@ static void metadata_writer_on_update_completed (MetadataWriter* self, Backgroun } } } - goto __finally550; - __catch550_database_error: + goto __finally552; + __catch552_database_error: { GError* err = NULL; GError* _tmp79_ = NULL; @@ -3902,7 +3902,7 @@ static void metadata_writer_on_update_completed (MetadataWriter* self, Backgroun _g_error_free0 (err); #line 3904 "MetadataWriter.c" } - __finally550: + __finally552: { LibraryPhoto* _tmp80_ = NULL; MetadataWriterCommitJob* _tmp81_ = NULL; @@ -3949,7 +3949,7 @@ static void metadata_writer_on_update_completed (MetadataWriter* self, Backgroun #line 683 "/home/jens/Source/shotwell/src/MetadataWriter.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 3952 "MetadataWriter.c" - goto __catch551_database_error; + goto __catch553_database_error; } #line 683 "/home/jens/Source/shotwell/src/MetadataWriter.vala" _background_job_unref0 (job); @@ -3962,8 +3962,8 @@ static void metadata_writer_on_update_completed (MetadataWriter* self, Backgroun #line 3963 "MetadataWriter.c" } } - goto __finally551; - __catch551_database_error: + goto __finally553; + __catch553_database_error: { GError* err = NULL; GError* _tmp85_ = NULL; @@ -3979,7 +3979,7 @@ static void metadata_writer_on_update_completed (MetadataWriter* self, Backgroun _g_error_free0 (err); #line 3981 "MetadataWriter.c" } - __finally551: + __finally553: #line 682 "/home/jens/Source/shotwell/src/MetadataWriter.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 682 "/home/jens/Source/shotwell/src/MetadataWriter.vala" @@ -4157,18 +4157,18 @@ static void metadata_writer_commit_job_real_execute (BackgroundJob* base) { #line 38 "/home/jens/Source/shotwell/src/MetadataWriter.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 4160 "MetadataWriter.c" - goto __catch552_g_error; + goto __catch554_g_error; } #line 39 "/home/jens/Source/shotwell/src/MetadataWriter.vala" metadata_writer_commit_job_commit_editable (self, &_inner_error_); #line 39 "/home/jens/Source/shotwell/src/MetadataWriter.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 4167 "MetadataWriter.c" - goto __catch552_g_error; + goto __catch554_g_error; } } - goto __finally552; - __catch552_g_error: + goto __finally554; + __catch554_g_error: { GError* err = NULL; GError* _tmp0_ = NULL; @@ -4189,7 +4189,7 @@ static void metadata_writer_commit_job_real_execute (BackgroundJob* base) { _g_error_free0 (err); #line 4191 "MetadataWriter.c" } - __finally552: + __finally554: #line 37 "/home/jens/Source/shotwell/src/MetadataWriter.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 37 "/home/jens/Source/shotwell/src/MetadataWriter.vala" @@ -4291,10 +4291,10 @@ static void metadata_writer_commit_job_commit_master (MetadataWriterCommitJob* s #line 58 "/home/jens/Source/shotwell/src/MetadataWriter.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 4294 "MetadataWriter.c" - goto __finally553; + goto __finally555; } } - __finally553: + __finally555: { LibraryPhoto* _tmp16_ = NULL; GFile* _tmp17_ = NULL; @@ -4433,10 +4433,10 @@ static void metadata_writer_commit_job_commit_editable (MetadataWriterCommitJob* #line 77 "/home/jens/Source/shotwell/src/MetadataWriter.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 4436 "MetadataWriter.c" - goto __finally554; + goto __finally556; } } - __finally554: + __finally556: { LibraryPhoto* _tmp18_ = NULL; GFile* _tmp19_ = NULL; diff --git a/src/NaturalCollate.c b/src/NaturalCollate.c index 35b129c..7466854 100644 --- a/src/NaturalCollate.c +++ b/src/NaturalCollate.c @@ -1,4 +1,4 @@ -/* NaturalCollate.c generated by valac 0.32.1, the Vala compiler +/* NaturalCollate.c generated by valac 0.34.4, the Vala compiler * generated from NaturalCollate.vala, do not modify */ @@ -27,15 +27,15 @@ static gunichar string_get_char (const gchar* self, glong index) { gunichar result = 0U; glong _tmp0_ = 0L; gunichar _tmp1_ = 0U; -#line 1116 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1116 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, 0U); -#line 1117 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1117 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = index; -#line 1117 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1117 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = g_utf8_get_char (((gchar*) self) + _tmp0_); -#line 1117 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1117 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp1_; -#line 1117 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1117 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 41 "NaturalCollate.c" } @@ -45,15 +45,15 @@ static gint string_index_of_nth_char (const gchar* self, glong c) { gint result = 0; glong _tmp0_ = 0L; gchar* _tmp1_ = NULL; -#line 1136 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1136 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, 0); -#line 1137 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1137 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = c; -#line 1137 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1137 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = g_utf8_offset_to_pointer (self, _tmp0_); -#line 1137 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1137 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = (gint) (_tmp1_ - ((gchar*) self)); -#line 1137 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1137 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 59 "NaturalCollate.c" } @@ -66,37 +66,37 @@ static glong string_strnlen (gchar* str, glong maxlen) { glong _tmp1_ = 0L; gchar* _tmp2_ = NULL; gchar* _tmp3_ = NULL; -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = str; -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = maxlen; -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = memchr (_tmp0_, 0, (gsize) _tmp1_); -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" end = _tmp2_; -#line 1296 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1296 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = end; -#line 1296 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1296 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp3_ == NULL) { #line 82 "NaturalCollate.c" glong _tmp4_ = 0L; -#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = maxlen; -#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp4_; -#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 90 "NaturalCollate.c" } else { gchar* _tmp5_ = NULL; gchar* _tmp6_ = NULL; -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = end; -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp6_ = str; -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = (glong) (_tmp5_ - _tmp6_); -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 102 "NaturalCollate.c" } @@ -116,112 +116,112 @@ static gchar* string_substring (const gchar* self, glong offset, glong len) { glong _tmp20_ = 0L; glong _tmp21_ = 0L; gchar* _tmp22_ = NULL; -#line 1306 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1306 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, NULL); -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = offset; -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp1_ >= ((glong) 0)) { #line 126 "NaturalCollate.c" glong _tmp2_ = 0L; -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = len; -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = _tmp2_ >= ((glong) 0); #line 132 "NaturalCollate.c" } else { -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = FALSE; #line 136 "NaturalCollate.c" } -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp0_) { #line 140 "NaturalCollate.c" glong _tmp3_ = 0L; glong _tmp4_ = 0L; glong _tmp5_ = 0L; -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = offset; -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = len; -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = string_strnlen ((gchar*) self, _tmp3_ + _tmp4_); -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" string_length = _tmp5_; #line 152 "NaturalCollate.c" } else { gint _tmp6_ = 0; gint _tmp7_ = 0; -#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp6_ = strlen (self); -#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp7_ = _tmp6_; -#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" string_length = (glong) _tmp7_; #line 162 "NaturalCollate.c" } -#line 1315 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1315 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp8_ = offset; -#line 1315 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1315 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp8_ < ((glong) 0)) { #line 168 "NaturalCollate.c" glong _tmp9_ = 0L; glong _tmp10_ = 0L; glong _tmp11_ = 0L; -#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp9_ = string_length; -#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp10_ = offset; -#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" offset = _tmp9_ + _tmp10_; -#line 1317 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1317 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp11_ = offset; -#line 1317 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1317 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (_tmp11_ >= ((glong) 0), NULL); #line 182 "NaturalCollate.c" } else { glong _tmp12_ = 0L; glong _tmp13_ = 0L; -#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp12_ = offset; -#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp13_ = string_length; -#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (_tmp12_ <= _tmp13_, NULL); #line 192 "NaturalCollate.c" } -#line 1321 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1321 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp14_ = len; -#line 1321 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1321 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp14_ < ((glong) 0)) { #line 198 "NaturalCollate.c" glong _tmp15_ = 0L; glong _tmp16_ = 0L; -#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp15_ = string_length; -#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp16_ = offset; -#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" len = _tmp15_ - _tmp16_; #line 207 "NaturalCollate.c" } -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp17_ = offset; -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp18_ = len; -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp19_ = string_length; -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail ((_tmp17_ + _tmp18_) <= _tmp19_, NULL); -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp20_ = offset; -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp21_ = len; -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp22_ = g_strndup (((gchar*) self) + _tmp20_, (gsize) _tmp21_); -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp22_; -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 227 "NaturalCollate.c" } @@ -389,17 +389,17 @@ static gboolean string_contains (const gchar* self, const gchar* needle) { gboolean result = FALSE; const gchar* _tmp0_ = NULL; gchar* _tmp1_ = NULL; -#line 1376 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1376 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, FALSE); -#line 1376 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1376 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (needle != NULL, FALSE); -#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = needle; -#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = strstr ((gchar*) self, (gchar*) _tmp0_); -#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp1_ != NULL; -#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 405 "NaturalCollate.c" } @@ -410,17 +410,17 @@ static gchar* g_unichar_to_string (gunichar self) { gchar* str = NULL; gchar* _tmp0_ = NULL; const gchar* _tmp1_ = NULL; -#line 941 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 941 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = g_new0 (gchar, 7); -#line 941 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 941 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" str = (gchar*) _tmp0_; -#line 942 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 942 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = str; -#line 942 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 942 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_unichar_to_utf8 (self, _tmp1_); -#line 943 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 943 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = str; -#line 943 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 943 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 426 "NaturalCollate.c" } diff --git a/src/Orientation.c b/src/Orientation.c index 3e2da2a..c5d5b8d 100644 --- a/src/Orientation.c +++ b/src/Orientation.c @@ -1,4 +1,4 @@ -/* Orientation.c generated by valac 0.32.1, the Vala compiler +/* Orientation.c generated by valac 0.34.4, the Vala compiler * generated from Orientation.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -1,4 +1,4 @@ -/* Page.c generated by valac 0.32.1, the Vala compiler +/* Page.c generated by valac 0.34.4, the Vala compiler * generated from Page.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -13,8 +13,8 @@ #include <string.h> #include <gee.h> #include <gtk/gtk.h> -#include <gdk/gdk.h> #include <gio/gio.h> +#include <gdk/gdk.h> #include <cairo.h> #include <glib/gi18n-lib.h> #include <float.h> @@ -509,7 +509,8 @@ struct _PageClass { void (*ready) (Page* self); void (*switching_to_fullscreen) (Page* self, FullscreenWindow* fsw); void (*returning_from_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*add_actions) (Page* self); + void (*add_actions) (Page* self, GActionMap* map); + void (*remove_actions) (Page* self, GActionMap* map); void (*init_collect_ui_filenames) (Page* self, GeeList* ui_filenames); InjectionGroup** (*init_collect_injection_groups) (Page* self, int* result_length1); void (*init_actions) (Page* self, gint selected_count, gint count); @@ -932,7 +933,6 @@ ViewCollection* view_collection_new (const gchar* name); ViewCollection* view_collection_construct (GType object_type, const gchar* name); gboolean page_on_context_keypress (Page* self); static gboolean _page_on_context_keypress_gtk_widget_popup_menu (GtkWidget* _sender, gpointer self); -static void page_init_ui (Page* self); static void page_attach_view_signals (Page* self); static void _page_attach_view_signals_gtk_widget_realize (GtkWidget* _sender, gpointer self); static void page_real_destroy (GtkWidget* base); @@ -974,9 +974,17 @@ GtkMenu* page_get_page_context_menu (Page* self); static GtkMenu* page_real_get_page_context_menu (Page* self); void page_switching_from (Page* self); static void page_real_switching_from (Page* self); +void page_remove_actions (Page* self, GActionMap* map); +GType app_window_get_type (void) G_GNUC_CONST; +AppWindow* app_window_get_instance (void); void page_switched_to (Page* self); static void page_real_switched_to (Page* self); static void page_add_ui (Page* self); +void page_add_actions (Page* self, GActionMap* map); +gint view_collection_get_selected_count (ViewCollection* self); +gint data_collection_get_count (DataCollection* self); +void page_init_actions (Page* self, gint selected_count, gint count); +void page_update_actions (Page* self, gint selected_count, gint count); static void page_update_modifiers (Page* self); void page_ready (Page* self); static void page_real_ready (Page* self); @@ -986,8 +994,6 @@ static void page_real_switching_to_fullscreen (Page* self, FullscreenWindow* fsw void page_returning_from_fullscreen (Page* self, FullscreenWindow* fsw); static void page_real_returning_from_fullscreen (Page* self, FullscreenWindow* fsw); GAction* page_get_action (Page* self, const gchar* name); -GType app_window_get_type (void) G_GNUC_CONST; -AppWindow* app_window_get_instance (void); void page_set_action_sensitive (Page* self, const gchar* name, gboolean sensitive); void page_set_action_important (Page* self, const gchar* name, gboolean important); void page_set_action_visible (Page* self, const gchar* name, gboolean visible); @@ -1025,8 +1031,8 @@ gpointer value_get_command_manager (const GValue* value); GType command_manager_get_type (void) G_GNUC_CONST; CommandManager* page_get_command_manager (Page* self); CommandManager* app_window_get_command_manager (void); -void page_add_actions (Page* self); -static void page_real_add_actions (Page* self); +static void page_real_add_actions (Page* self, GActionMap* map); +static void page_real_remove_actions (Page* self, GActionMap* map); void page_on_action_toggle (Page* self, GAction* action, GVariant* value); static gboolean _variant_get21 (GVariant* value); static GVariant* _variant_new22 (gboolean value); @@ -1034,10 +1040,6 @@ void page_on_action_radio (Page* self, GAction* action, GVariant* value); void page_init_collect_ui_filenames (Page* self, GeeList* ui_filenames); static void page_init_load_ui (Page* self, const gchar* ui_filename); void page_init_toolbar (Page* self, const gchar* path); -gint view_collection_get_selected_count (ViewCollection* self); -gint data_collection_get_count (DataCollection* self); -void page_init_actions (Page* self, gint selected_count, gint count); -void page_update_actions (Page* self, gint selected_count, gint count); static void page_on_update_actions (Page* self); GType data_object_get_type (void) G_GNUC_CONST; GType data_view_get_type (void) G_GNUC_CONST; @@ -1504,14 +1506,14 @@ InjectionGroup* injection_group_construct (GType object_type, const gchar* path) self->priv->path = _tmp1_; #line 31 "/home/jens/Source/shotwell/src/Page.vala" return self; -#line 1508 "Page.c" +#line 1510 "Page.c" } InjectionGroup* injection_group_new (const gchar* path) { #line 31 "/home/jens/Source/shotwell/src/Page.vala" return injection_group_construct (TYPE_INJECTION_GROUP, path); -#line 1515 "Page.c" +#line 1517 "Page.c" } @@ -1529,14 +1531,14 @@ gchar* injection_group_get_path (InjectionGroup* self) { result = _tmp1_; #line 36 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 1533 "Page.c" +#line 1535 "Page.c" } static gpointer _g_object_ref0 (gpointer self) { #line 40 "/home/jens/Source/shotwell/src/Page.vala" return self ? g_object_ref (self) : NULL; -#line 1540 "Page.c" +#line 1542 "Page.c" } @@ -1554,7 +1556,7 @@ GeeList* injection_group_get_elements (InjectionGroup* self) { result = _tmp1_; #line 40 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 1558 "Page.c" +#line 1560 "Page.c" } @@ -1585,7 +1587,7 @@ void injection_group_add_menu_item (InjectionGroup* self, const gchar* name, con gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp5_); #line 44 "/home/jens/Source/shotwell/src/Page.vala" _injection_group_element_unref0 (_tmp5_); -#line 1589 "Page.c" +#line 1591 "Page.c" } @@ -1613,7 +1615,7 @@ void injection_group_add_menu (InjectionGroup* self, const gchar* name, const gc gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp4_); #line 48 "/home/jens/Source/shotwell/src/Page.vala" _injection_group_element_unref0 (_tmp4_); -#line 1617 "Page.c" +#line 1619 "Page.c" } @@ -1646,7 +1648,7 @@ void injection_group_add_separator (InjectionGroup* self) { _injection_group_element_unref0 (_tmp5_); #line 52 "/home/jens/Source/shotwell/src/Page.vala" _g_free0 (_tmp3_); -#line 1650 "Page.c" +#line 1652 "Page.c" } @@ -1688,20 +1690,20 @@ InjectionGroupElement* injection_group_element_construct (GType object_type, con _tmp3_ = action; #line 21 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp3_ != NULL) { -#line 1692 "Page.c" +#line 1694 "Page.c" const gchar* _tmp4_ = NULL; #line 21 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = action; #line 21 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = _tmp4_; -#line 1698 "Page.c" +#line 1700 "Page.c" } else { const gchar* _tmp5_ = NULL; #line 21 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = name; #line 21 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = _tmp5_; -#line 1705 "Page.c" +#line 1707 "Page.c" } #line 21 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = g_strdup (_tmp2_); @@ -1723,21 +1725,21 @@ InjectionGroupElement* injection_group_element_construct (GType object_type, con self->kind = _tmp9_; #line 19 "/home/jens/Source/shotwell/src/Page.vala" return self; -#line 1727 "Page.c" +#line 1729 "Page.c" } InjectionGroupElement* injection_group_element_new (const gchar* name, const gchar* action, const gchar* accellerator, InjectionGroupElementItemType kind) { #line 19 "/home/jens/Source/shotwell/src/Page.vala" return injection_group_element_construct (INJECTION_GROUP_TYPE_ELEMENT, name, action, accellerator, kind); -#line 1734 "Page.c" +#line 1736 "Page.c" } static void injection_group_value_element_init (GValue* value) { #line 8 "/home/jens/Source/shotwell/src/Page.vala" value->data[0].v_pointer = NULL; -#line 1741 "Page.c" +#line 1743 "Page.c" } @@ -1746,7 +1748,7 @@ static void injection_group_value_element_free_value (GValue* value) { if (value->data[0].v_pointer) { #line 8 "/home/jens/Source/shotwell/src/Page.vala" injection_group_element_unref (value->data[0].v_pointer); -#line 1750 "Page.c" +#line 1752 "Page.c" } } @@ -1756,11 +1758,11 @@ static void injection_group_value_element_copy_value (const GValue* src_value, G if (src_value->data[0].v_pointer) { #line 8 "/home/jens/Source/shotwell/src/Page.vala" dest_value->data[0].v_pointer = injection_group_element_ref (src_value->data[0].v_pointer); -#line 1760 "Page.c" +#line 1762 "Page.c" } else { #line 8 "/home/jens/Source/shotwell/src/Page.vala" dest_value->data[0].v_pointer = NULL; -#line 1764 "Page.c" +#line 1766 "Page.c" } } @@ -1768,37 +1770,37 @@ static void injection_group_value_element_copy_value (const GValue* src_value, G static gpointer injection_group_value_element_peek_pointer (const GValue* value) { #line 8 "/home/jens/Source/shotwell/src/Page.vala" return value->data[0].v_pointer; -#line 1772 "Page.c" +#line 1774 "Page.c" } static gchar* injection_group_value_element_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) { #line 8 "/home/jens/Source/shotwell/src/Page.vala" if (collect_values[0].v_pointer) { -#line 1779 "Page.c" +#line 1781 "Page.c" InjectionGroupElement* object; object = collect_values[0].v_pointer; #line 8 "/home/jens/Source/shotwell/src/Page.vala" if (object->parent_instance.g_class == NULL) { #line 8 "/home/jens/Source/shotwell/src/Page.vala" return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1786 "Page.c" +#line 1788 "Page.c" } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { #line 8 "/home/jens/Source/shotwell/src/Page.vala" return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1790 "Page.c" +#line 1792 "Page.c" } #line 8 "/home/jens/Source/shotwell/src/Page.vala" value->data[0].v_pointer = injection_group_element_ref (object); -#line 1794 "Page.c" +#line 1796 "Page.c" } else { #line 8 "/home/jens/Source/shotwell/src/Page.vala" value->data[0].v_pointer = NULL; -#line 1798 "Page.c" +#line 1800 "Page.c" } #line 8 "/home/jens/Source/shotwell/src/Page.vala" return NULL; -#line 1802 "Page.c" +#line 1804 "Page.c" } @@ -1809,25 +1811,25 @@ static gchar* injection_group_value_element_lcopy_value (const GValue* value, gu if (!object_p) { #line 8 "/home/jens/Source/shotwell/src/Page.vala" return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1813 "Page.c" +#line 1815 "Page.c" } #line 8 "/home/jens/Source/shotwell/src/Page.vala" if (!value->data[0].v_pointer) { #line 8 "/home/jens/Source/shotwell/src/Page.vala" *object_p = NULL; -#line 1819 "Page.c" +#line 1821 "Page.c" } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { #line 8 "/home/jens/Source/shotwell/src/Page.vala" *object_p = value->data[0].v_pointer; -#line 1823 "Page.c" +#line 1825 "Page.c" } else { #line 8 "/home/jens/Source/shotwell/src/Page.vala" *object_p = injection_group_element_ref (value->data[0].v_pointer); -#line 1827 "Page.c" +#line 1829 "Page.c" } #line 8 "/home/jens/Source/shotwell/src/Page.vala" return NULL; -#line 1831 "Page.c" +#line 1833 "Page.c" } @@ -1841,7 +1843,7 @@ GParamSpec* injection_group_param_spec_element (const gchar* name, const gchar* G_PARAM_SPEC (spec)->value_type = object_type; #line 8 "/home/jens/Source/shotwell/src/Page.vala" return G_PARAM_SPEC (spec); -#line 1845 "Page.c" +#line 1847 "Page.c" } @@ -1850,7 +1852,7 @@ gpointer injection_group_value_get_element (const GValue* value) { g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, INJECTION_GROUP_TYPE_ELEMENT), NULL); #line 8 "/home/jens/Source/shotwell/src/Page.vala" return value->data[0].v_pointer; -#line 1854 "Page.c" +#line 1856 "Page.c" } @@ -1870,17 +1872,17 @@ void injection_group_value_set_element (GValue* value, gpointer v_object) { value->data[0].v_pointer = v_object; #line 8 "/home/jens/Source/shotwell/src/Page.vala" injection_group_element_ref (value->data[0].v_pointer); -#line 1874 "Page.c" +#line 1876 "Page.c" } else { #line 8 "/home/jens/Source/shotwell/src/Page.vala" value->data[0].v_pointer = NULL; -#line 1878 "Page.c" +#line 1880 "Page.c" } #line 8 "/home/jens/Source/shotwell/src/Page.vala" if (old) { #line 8 "/home/jens/Source/shotwell/src/Page.vala" injection_group_element_unref (old); -#line 1884 "Page.c" +#line 1886 "Page.c" } } @@ -1899,17 +1901,17 @@ void injection_group_value_take_element (GValue* value, gpointer v_object) { g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); #line 8 "/home/jens/Source/shotwell/src/Page.vala" value->data[0].v_pointer = v_object; -#line 1903 "Page.c" +#line 1905 "Page.c" } else { #line 8 "/home/jens/Source/shotwell/src/Page.vala" value->data[0].v_pointer = NULL; -#line 1907 "Page.c" +#line 1909 "Page.c" } #line 8 "/home/jens/Source/shotwell/src/Page.vala" if (old) { #line 8 "/home/jens/Source/shotwell/src/Page.vala" injection_group_element_unref (old); -#line 1913 "Page.c" +#line 1915 "Page.c" } } @@ -1919,14 +1921,14 @@ static void injection_group_element_class_init (InjectionGroupElementClass * kla injection_group_element_parent_class = g_type_class_peek_parent (klass); #line 8 "/home/jens/Source/shotwell/src/Page.vala" ((InjectionGroupElementClass *) klass)->finalize = injection_group_element_finalize; -#line 1923 "Page.c" +#line 1925 "Page.c" } static void injection_group_element_instance_init (InjectionGroupElement * self) { #line 8 "/home/jens/Source/shotwell/src/Page.vala" self->ref_count = 1; -#line 1930 "Page.c" +#line 1932 "Page.c" } @@ -1942,7 +1944,7 @@ static void injection_group_element_finalize (InjectionGroupElement* obj) { _g_free0 (self->action); #line 16 "/home/jens/Source/shotwell/src/Page.vala" _g_free0 (self->accellerator); -#line 1946 "Page.c" +#line 1948 "Page.c" } @@ -1967,7 +1969,7 @@ gpointer injection_group_element_ref (gpointer instance) { g_atomic_int_inc (&self->ref_count); #line 8 "/home/jens/Source/shotwell/src/Page.vala" return instance; -#line 1971 "Page.c" +#line 1973 "Page.c" } @@ -1980,7 +1982,7 @@ void injection_group_element_unref (gpointer instance) { INJECTION_GROUP_ELEMENT_GET_CLASS (self)->finalize (self); #line 8 "/home/jens/Source/shotwell/src/Page.vala" g_type_free_instance ((GTypeInstance *) self); -#line 1984 "Page.c" +#line 1986 "Page.c" } } @@ -1988,7 +1990,7 @@ void injection_group_element_unref (gpointer instance) { static void value_injection_group_init (GValue* value) { #line 7 "/home/jens/Source/shotwell/src/Page.vala" value->data[0].v_pointer = NULL; -#line 1992 "Page.c" +#line 1994 "Page.c" } @@ -1997,7 +1999,7 @@ static void value_injection_group_free_value (GValue* value) { if (value->data[0].v_pointer) { #line 7 "/home/jens/Source/shotwell/src/Page.vala" injection_group_unref (value->data[0].v_pointer); -#line 2001 "Page.c" +#line 2003 "Page.c" } } @@ -2007,11 +2009,11 @@ static void value_injection_group_copy_value (const GValue* src_value, GValue* d if (src_value->data[0].v_pointer) { #line 7 "/home/jens/Source/shotwell/src/Page.vala" dest_value->data[0].v_pointer = injection_group_ref (src_value->data[0].v_pointer); -#line 2011 "Page.c" +#line 2013 "Page.c" } else { #line 7 "/home/jens/Source/shotwell/src/Page.vala" dest_value->data[0].v_pointer = NULL; -#line 2015 "Page.c" +#line 2017 "Page.c" } } @@ -2019,37 +2021,37 @@ static void value_injection_group_copy_value (const GValue* src_value, GValue* d static gpointer value_injection_group_peek_pointer (const GValue* value) { #line 7 "/home/jens/Source/shotwell/src/Page.vala" return value->data[0].v_pointer; -#line 2023 "Page.c" +#line 2025 "Page.c" } static gchar* value_injection_group_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) { #line 7 "/home/jens/Source/shotwell/src/Page.vala" if (collect_values[0].v_pointer) { -#line 2030 "Page.c" +#line 2032 "Page.c" InjectionGroup* object; object = collect_values[0].v_pointer; #line 7 "/home/jens/Source/shotwell/src/Page.vala" if (object->parent_instance.g_class == NULL) { #line 7 "/home/jens/Source/shotwell/src/Page.vala" return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2037 "Page.c" +#line 2039 "Page.c" } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { #line 7 "/home/jens/Source/shotwell/src/Page.vala" return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2041 "Page.c" +#line 2043 "Page.c" } #line 7 "/home/jens/Source/shotwell/src/Page.vala" value->data[0].v_pointer = injection_group_ref (object); -#line 2045 "Page.c" +#line 2047 "Page.c" } else { #line 7 "/home/jens/Source/shotwell/src/Page.vala" value->data[0].v_pointer = NULL; -#line 2049 "Page.c" +#line 2051 "Page.c" } #line 7 "/home/jens/Source/shotwell/src/Page.vala" return NULL; -#line 2053 "Page.c" +#line 2055 "Page.c" } @@ -2060,25 +2062,25 @@ static gchar* value_injection_group_lcopy_value (const GValue* value, guint n_co if (!object_p) { #line 7 "/home/jens/Source/shotwell/src/Page.vala" return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 2064 "Page.c" +#line 2066 "Page.c" } #line 7 "/home/jens/Source/shotwell/src/Page.vala" if (!value->data[0].v_pointer) { #line 7 "/home/jens/Source/shotwell/src/Page.vala" *object_p = NULL; -#line 2070 "Page.c" +#line 2072 "Page.c" } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { #line 7 "/home/jens/Source/shotwell/src/Page.vala" *object_p = value->data[0].v_pointer; -#line 2074 "Page.c" +#line 2076 "Page.c" } else { #line 7 "/home/jens/Source/shotwell/src/Page.vala" *object_p = injection_group_ref (value->data[0].v_pointer); -#line 2078 "Page.c" +#line 2080 "Page.c" } #line 7 "/home/jens/Source/shotwell/src/Page.vala" return NULL; -#line 2082 "Page.c" +#line 2084 "Page.c" } @@ -2092,7 +2094,7 @@ GParamSpec* param_spec_injection_group (const gchar* name, const gchar* nick, co G_PARAM_SPEC (spec)->value_type = object_type; #line 7 "/home/jens/Source/shotwell/src/Page.vala" return G_PARAM_SPEC (spec); -#line 2096 "Page.c" +#line 2098 "Page.c" } @@ -2101,7 +2103,7 @@ gpointer value_get_injection_group (const GValue* value) { g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_INJECTION_GROUP), NULL); #line 7 "/home/jens/Source/shotwell/src/Page.vala" return value->data[0].v_pointer; -#line 2105 "Page.c" +#line 2107 "Page.c" } @@ -2121,17 +2123,17 @@ void value_set_injection_group (GValue* value, gpointer v_object) { value->data[0].v_pointer = v_object; #line 7 "/home/jens/Source/shotwell/src/Page.vala" injection_group_ref (value->data[0].v_pointer); -#line 2125 "Page.c" +#line 2127 "Page.c" } else { #line 7 "/home/jens/Source/shotwell/src/Page.vala" value->data[0].v_pointer = NULL; -#line 2129 "Page.c" +#line 2131 "Page.c" } #line 7 "/home/jens/Source/shotwell/src/Page.vala" if (old) { #line 7 "/home/jens/Source/shotwell/src/Page.vala" injection_group_unref (old); -#line 2135 "Page.c" +#line 2137 "Page.c" } } @@ -2150,17 +2152,17 @@ void value_take_injection_group (GValue* value, gpointer v_object) { g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); #line 7 "/home/jens/Source/shotwell/src/Page.vala" value->data[0].v_pointer = v_object; -#line 2154 "Page.c" +#line 2156 "Page.c" } else { #line 7 "/home/jens/Source/shotwell/src/Page.vala" value->data[0].v_pointer = NULL; -#line 2158 "Page.c" +#line 2160 "Page.c" } #line 7 "/home/jens/Source/shotwell/src/Page.vala" if (old) { #line 7 "/home/jens/Source/shotwell/src/Page.vala" injection_group_unref (old); -#line 2164 "Page.c" +#line 2166 "Page.c" } } @@ -2172,7 +2174,7 @@ static void injection_group_class_init (InjectionGroupClass * klass) { ((InjectionGroupClass *) klass)->finalize = injection_group_finalize; #line 7 "/home/jens/Source/shotwell/src/Page.vala" g_type_class_add_private (klass, sizeof (InjectionGroupPrivate)); -#line 2176 "Page.c" +#line 2178 "Page.c" } @@ -2188,7 +2190,7 @@ static void injection_group_instance_init (InjectionGroup * self) { self->priv->separator_id = 0; #line 7 "/home/jens/Source/shotwell/src/Page.vala" self->ref_count = 1; -#line 2192 "Page.c" +#line 2194 "Page.c" } @@ -2202,7 +2204,7 @@ static void injection_group_finalize (InjectionGroup* obj) { _g_free0 (self->priv->path); #line 28 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->priv->elements); -#line 2206 "Page.c" +#line 2208 "Page.c" } @@ -2227,7 +2229,7 @@ gpointer injection_group_ref (gpointer instance) { g_atomic_int_inc (&self->ref_count); #line 7 "/home/jens/Source/shotwell/src/Page.vala" return instance; -#line 2231 "Page.c" +#line 2233 "Page.c" } @@ -2240,7 +2242,7 @@ void injection_group_unref (gpointer instance) { INJECTION_GROUP_GET_CLASS (self)->finalize (self); #line 7 "/home/jens/Source/shotwell/src/Page.vala" g_type_free_instance ((GTypeInstance *) self); -#line 2244 "Page.c" +#line 2246 "Page.c" } } @@ -2250,14 +2252,14 @@ static gboolean _page_on_context_keypress_gtk_widget_popup_menu (GtkWidget* _sen result = page_on_context_keypress ((Page*) self); #line 98 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 2254 "Page.c" +#line 2256 "Page.c" } static void _page_attach_view_signals_gtk_widget_realize (GtkWidget* _sender, gpointer self) { -#line 102 "/home/jens/Source/shotwell/src/Page.vala" +#line 100 "/home/jens/Source/shotwell/src/Page.vala" page_attach_view_signals ((Page*) self); -#line 2261 "Page.c" +#line 2263 "Page.c" } @@ -2307,8 +2309,6 @@ Page* page_construct (GType object_type, const gchar* page_name) { #line 98 "/home/jens/Source/shotwell/src/Page.vala" g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "popup-menu", (GCallback) _page_on_context_keypress_gtk_widget_popup_menu, self, 0); #line 100 "/home/jens/Source/shotwell/src/Page.vala" - page_init_ui (self); -#line 102 "/home/jens/Source/shotwell/src/Page.vala" g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "realize", (GCallback) _page_attach_view_signals_gtk_widget_realize, self, 0); #line 89 "/home/jens/Source/shotwell/src/Page.vala" return self; @@ -2324,61 +2324,61 @@ static void page_real_destroy (GtkWidget* base) { OneShotScheduler* _tmp4_ = NULL; gchar* _tmp6_ = NULL; gchar* _tmp7_ = NULL; -#line 113 "/home/jens/Source/shotwell/src/Page.vala" +#line 111 "/home/jens/Source/shotwell/src/Page.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PAGE, Page); -#line 114 "/home/jens/Source/shotwell/src/Page.vala" +#line 112 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->is_destroyed; -#line 114 "/home/jens/Source/shotwell/src/Page.vala" +#line 112 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp0_) { -#line 115 "/home/jens/Source/shotwell/src/Page.vala" +#line 113 "/home/jens/Source/shotwell/src/Page.vala" return; #line 2336 "Page.c" } -#line 118 "/home/jens/Source/shotwell/src/Page.vala" +#line 116 "/home/jens/Source/shotwell/src/Page.vala" page_detach_event_source (self); -#line 119 "/home/jens/Source/shotwell/src/Page.vala" +#line 117 "/home/jens/Source/shotwell/src/Page.vala" page_detach_view_signals (self); -#line 120 "/home/jens/Source/shotwell/src/Page.vala" +#line 118 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = self->priv->view; -#line 120 "/home/jens/Source/shotwell/src/Page.vala" +#line 118 "/home/jens/Source/shotwell/src/Page.vala" data_collection_close (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection)); -#line 123 "/home/jens/Source/shotwell/src/Page.vala" +#line 121 "/home/jens/Source/shotwell/src/Page.vala" page_clear_container (self); -#line 125 "/home/jens/Source/shotwell/src/Page.vala" +#line 123 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = self->toolbar; -#line 125 "/home/jens/Source/shotwell/src/Page.vala" +#line 123 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp2_ != NULL) { #line 2352 "Page.c" GtkToolbar* _tmp3_ = NULL; -#line 126 "/home/jens/Source/shotwell/src/Page.vala" +#line 124 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = self->toolbar; -#line 126 "/home/jens/Source/shotwell/src/Page.vala" +#line 124 "/home/jens/Source/shotwell/src/Page.vala" gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget)); #line 2358 "Page.c" } -#line 129 "/home/jens/Source/shotwell/src/Page.vala" +#line 127 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = self->priv->update_actions_scheduler; -#line 129 "/home/jens/Source/shotwell/src/Page.vala" +#line 127 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp4_ != NULL) { #line 2364 "Page.c" OneShotScheduler* _tmp5_ = NULL; -#line 130 "/home/jens/Source/shotwell/src/Page.vala" +#line 128 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = self->priv->update_actions_scheduler; -#line 130 "/home/jens/Source/shotwell/src/Page.vala" +#line 128 "/home/jens/Source/shotwell/src/Page.vala" one_shot_scheduler_cancel (_tmp5_); #line 2370 "Page.c" } -#line 132 "/home/jens/Source/shotwell/src/Page.vala" +#line 130 "/home/jens/Source/shotwell/src/Page.vala" self->priv->is_destroyed = TRUE; -#line 134 "/home/jens/Source/shotwell/src/Page.vala" +#line 132 "/home/jens/Source/shotwell/src/Page.vala" GTK_WIDGET_CLASS (page_parent_class)->destroy (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_scrolled_window_get_type (), GtkScrolledWindow), gtk_widget_get_type (), GtkWidget)); -#line 136 "/home/jens/Source/shotwell/src/Page.vala" +#line 134 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = page_get_page_name (self); -#line 136 "/home/jens/Source/shotwell/src/Page.vala" +#line 134 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = _tmp6_; -#line 136 "/home/jens/Source/shotwell/src/Page.vala" - g_debug ("Page.vala:136: Page %s Destroyed", _tmp7_); -#line 136 "/home/jens/Source/shotwell/src/Page.vala" +#line 134 "/home/jens/Source/shotwell/src/Page.vala" + g_debug ("Page.vala:134: Page %s Destroyed", _tmp7_); +#line 134 "/home/jens/Source/shotwell/src/Page.vala" _g_free0 (_tmp7_); #line 2384 "Page.c" } @@ -2388,15 +2388,15 @@ gchar* page_get_page_name (Page* self) { gchar* result = NULL; const gchar* _tmp0_ = NULL; gchar* _tmp1_ = NULL; -#line 139 "/home/jens/Source/shotwell/src/Page.vala" +#line 137 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), NULL); -#line 140 "/home/jens/Source/shotwell/src/Page.vala" +#line 138 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->page_name; -#line 140 "/home/jens/Source/shotwell/src/Page.vala" +#line 138 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = g_strdup (_tmp0_); -#line 140 "/home/jens/Source/shotwell/src/Page.vala" +#line 138 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp1_; -#line 140 "/home/jens/Source/shotwell/src/Page.vala" +#line 138 "/home/jens/Source/shotwell/src/Page.vala" return result; #line 2402 "Page.c" } @@ -2405,24 +2405,24 @@ gchar* page_get_page_name (Page* self) { static void page_real_set_page_name (Page* self, const gchar* page_name) { const gchar* _tmp0_ = NULL; gchar* _tmp1_ = NULL; -#line 143 "/home/jens/Source/shotwell/src/Page.vala" +#line 141 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (page_name != NULL); -#line 144 "/home/jens/Source/shotwell/src/Page.vala" +#line 142 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = page_name; -#line 144 "/home/jens/Source/shotwell/src/Page.vala" +#line 142 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = g_strdup (_tmp0_); -#line 144 "/home/jens/Source/shotwell/src/Page.vala" +#line 142 "/home/jens/Source/shotwell/src/Page.vala" _g_free0 (self->priv->page_name); -#line 144 "/home/jens/Source/shotwell/src/Page.vala" +#line 142 "/home/jens/Source/shotwell/src/Page.vala" self->priv->page_name = _tmp1_; #line 2419 "Page.c" } void page_set_page_name (Page* self, const gchar* page_name) { -#line 143 "/home/jens/Source/shotwell/src/Page.vala" +#line 141 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 143 "/home/jens/Source/shotwell/src/Page.vala" +#line 141 "/home/jens/Source/shotwell/src/Page.vala" PAGE_GET_CLASS (self)->set_page_name (self, page_name); #line 2428 "Page.c" } @@ -2432,22 +2432,22 @@ gchar* page_to_string (Page* self) { gchar* result = NULL; const gchar* _tmp0_ = NULL; gchar* _tmp1_ = NULL; -#line 147 "/home/jens/Source/shotwell/src/Page.vala" +#line 145 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), NULL); -#line 148 "/home/jens/Source/shotwell/src/Page.vala" +#line 146 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->page_name; -#line 148 "/home/jens/Source/shotwell/src/Page.vala" +#line 146 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = g_strdup (_tmp0_); -#line 148 "/home/jens/Source/shotwell/src/Page.vala" +#line 146 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp1_; -#line 148 "/home/jens/Source/shotwell/src/Page.vala" +#line 146 "/home/jens/Source/shotwell/src/Page.vala" return result; #line 2446 "Page.c" } static gpointer _data_collection_ref0 (gpointer self) { -#line 152 "/home/jens/Source/shotwell/src/Page.vala" +#line 150 "/home/jens/Source/shotwell/src/Page.vala" return self ? data_collection_ref (self) : NULL; #line 2453 "Page.c" } @@ -2457,15 +2457,15 @@ ViewCollection* page_get_view (Page* self) { ViewCollection* result = NULL; ViewCollection* _tmp0_ = NULL; ViewCollection* _tmp1_ = NULL; -#line 151 "/home/jens/Source/shotwell/src/Page.vala" +#line 149 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), NULL); -#line 152 "/home/jens/Source/shotwell/src/Page.vala" +#line 150 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->view; -#line 152 "/home/jens/Source/shotwell/src/Page.vala" +#line 150 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = _data_collection_ref0 (_tmp0_); -#line 152 "/home/jens/Source/shotwell/src/Page.vala" +#line 150 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp1_; -#line 152 "/home/jens/Source/shotwell/src/Page.vala" +#line 150 "/home/jens/Source/shotwell/src/Page.vala" return result; #line 2471 "Page.c" } @@ -2475,15 +2475,15 @@ GtkWindow* page_get_container (Page* self) { GtkWindow* result = NULL; GtkWindow* _tmp0_ = NULL; GtkWindow* _tmp1_ = NULL; -#line 155 "/home/jens/Source/shotwell/src/Page.vala" +#line 153 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), NULL); -#line 156 "/home/jens/Source/shotwell/src/Page.vala" +#line 154 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->container; -#line 156 "/home/jens/Source/shotwell/src/Page.vala" +#line 154 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = _g_object_ref0 (_tmp0_); -#line 156 "/home/jens/Source/shotwell/src/Page.vala" +#line 154 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp1_; -#line 156 "/home/jens/Source/shotwell/src/Page.vala" +#line 154 "/home/jens/Source/shotwell/src/Page.vala" return result; #line 2489 "Page.c" } @@ -2493,46 +2493,46 @@ static void page_real_set_container (Page* self, GtkWindow* container) { GtkWindow* _tmp0_ = NULL; GtkWindow* _tmp1_ = NULL; GtkWindow* _tmp2_ = NULL; -#line 159 "/home/jens/Source/shotwell/src/Page.vala" +#line 157 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (GTK_IS_WINDOW (container)); -#line 160 "/home/jens/Source/shotwell/src/Page.vala" +#line 158 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->container; -#line 160 "/home/jens/Source/shotwell/src/Page.vala" +#line 158 "/home/jens/Source/shotwell/src/Page.vala" _vala_assert (_tmp0_ == NULL, "this.container == null"); -#line 162 "/home/jens/Source/shotwell/src/Page.vala" +#line 160 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = container; -#line 162 "/home/jens/Source/shotwell/src/Page.vala" +#line 160 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = _g_object_ref0 (_tmp1_); -#line 162 "/home/jens/Source/shotwell/src/Page.vala" +#line 160 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->priv->container); -#line 162 "/home/jens/Source/shotwell/src/Page.vala" +#line 160 "/home/jens/Source/shotwell/src/Page.vala" self->priv->container = _tmp2_; #line 2511 "Page.c" } void page_set_container (Page* self, GtkWindow* container) { -#line 159 "/home/jens/Source/shotwell/src/Page.vala" +#line 157 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 159 "/home/jens/Source/shotwell/src/Page.vala" +#line 157 "/home/jens/Source/shotwell/src/Page.vala" PAGE_GET_CLASS (self)->set_container (self, container); #line 2520 "Page.c" } static void page_real_clear_container (Page* self) { -#line 166 "/home/jens/Source/shotwell/src/Page.vala" +#line 164 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->priv->container); -#line 166 "/home/jens/Source/shotwell/src/Page.vala" +#line 164 "/home/jens/Source/shotwell/src/Page.vala" self->priv->container = NULL; #line 2529 "Page.c" } void page_clear_container (Page* self) { -#line 165 "/home/jens/Source/shotwell/src/Page.vala" +#line 163 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 165 "/home/jens/Source/shotwell/src/Page.vala" +#line 163 "/home/jens/Source/shotwell/src/Page.vala" PAGE_GET_CLASS (self)->clear_container (self); #line 2538 "Page.c" } @@ -2541,7 +2541,7 @@ void page_clear_container (Page* self) { static gboolean _page_on_button_pressed_internal_gtk_widget_button_press_event (GtkWidget* _sender, GdkEventButton* event, gpointer self) { gboolean result; result = page_on_button_pressed_internal ((Page*) self, event); -#line 180 "/home/jens/Source/shotwell/src/Page.vala" +#line 178 "/home/jens/Source/shotwell/src/Page.vala" return result; #line 2547 "Page.c" } @@ -2550,7 +2550,7 @@ static gboolean _page_on_button_pressed_internal_gtk_widget_button_press_event ( static gboolean _page_on_button_released_internal_gtk_widget_button_release_event (GtkWidget* _sender, GdkEventButton* event, gpointer self) { gboolean result; result = page_on_button_released_internal ((Page*) self, event); -#line 181 "/home/jens/Source/shotwell/src/Page.vala" +#line 179 "/home/jens/Source/shotwell/src/Page.vala" return result; #line 2556 "Page.c" } @@ -2559,7 +2559,7 @@ static gboolean _page_on_button_released_internal_gtk_widget_button_release_even static gboolean _page_on_motion_internal_gtk_widget_motion_notify_event (GtkWidget* _sender, GdkEventMotion* event, gpointer self) { gboolean result; result = page_on_motion_internal ((Page*) self, event); -#line 182 "/home/jens/Source/shotwell/src/Page.vala" +#line 180 "/home/jens/Source/shotwell/src/Page.vala" return result; #line 2565 "Page.c" } @@ -2568,7 +2568,7 @@ static gboolean _page_on_motion_internal_gtk_widget_motion_notify_event (GtkWidg static gboolean _page_on_leave_notify_event_gtk_widget_leave_notify_event (GtkWidget* _sender, GdkEventCrossing* event, gpointer self) { gboolean result; result = page_on_leave_notify_event ((Page*) self); -#line 183 "/home/jens/Source/shotwell/src/Page.vala" +#line 181 "/home/jens/Source/shotwell/src/Page.vala" return result; #line 2574 "Page.c" } @@ -2577,14 +2577,14 @@ static gboolean _page_on_leave_notify_event_gtk_widget_leave_notify_event (GtkWi static gboolean _page_on_mousewheel_internal_gtk_widget_scroll_event (GtkWidget* _sender, GdkEventScroll* event, gpointer self) { gboolean result; result = page_on_mousewheel_internal ((Page*) self, event); -#line 184 "/home/jens/Source/shotwell/src/Page.vala" +#line 182 "/home/jens/Source/shotwell/src/Page.vala" return result; #line 2583 "Page.c" } static void _page_on_event_source_realize_gtk_widget_realize (GtkWidget* _sender, gpointer self) { -#line 185 "/home/jens/Source/shotwell/src/Page.vala" +#line 183 "/home/jens/Source/shotwell/src/Page.vala" page_on_event_source_realize ((Page*) self); #line 2590 "Page.c" } @@ -2602,53 +2602,53 @@ void page_set_event_source (Page* self, GtkWidget* event_source) { GtkWidget* _tmp8_ = NULL; GtkWidget* _tmp9_ = NULL; GtkWidget* _tmp10_ = NULL; -#line 169 "/home/jens/Source/shotwell/src/Page.vala" +#line 167 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 169 "/home/jens/Source/shotwell/src/Page.vala" +#line 167 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (GTK_IS_WIDGET (event_source)); -#line 170 "/home/jens/Source/shotwell/src/Page.vala" +#line 168 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->event_source; -#line 170 "/home/jens/Source/shotwell/src/Page.vala" +#line 168 "/home/jens/Source/shotwell/src/Page.vala" _vala_assert (_tmp0_ == NULL, "this.event_source == null"); -#line 172 "/home/jens/Source/shotwell/src/Page.vala" +#line 170 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = event_source; -#line 172 "/home/jens/Source/shotwell/src/Page.vala" +#line 170 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = _g_object_ref0 (_tmp1_); -#line 172 "/home/jens/Source/shotwell/src/Page.vala" +#line 170 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->priv->event_source); -#line 172 "/home/jens/Source/shotwell/src/Page.vala" +#line 170 "/home/jens/Source/shotwell/src/Page.vala" self->priv->event_source = _tmp2_; -#line 173 "/home/jens/Source/shotwell/src/Page.vala" +#line 171 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = event_source; -#line 173 "/home/jens/Source/shotwell/src/Page.vala" +#line 171 "/home/jens/Source/shotwell/src/Page.vala" gtk_widget_set_can_focus (_tmp3_, TRUE); -#line 176 "/home/jens/Source/shotwell/src/Page.vala" +#line 174 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = event_source; -#line 176 "/home/jens/Source/shotwell/src/Page.vala" +#line 174 "/home/jens/Source/shotwell/src/Page.vala" gtk_widget_add_events (_tmp4_, (gint) ((((((GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK) | GDK_POINTER_MOTION_MASK) | GDK_POINTER_MOTION_HINT_MASK) | GDK_BUTTON_MOTION_MASK) | GDK_LEAVE_NOTIFY_MASK) | GDK_SCROLL_MASK)); -#line 180 "/home/jens/Source/shotwell/src/Page.vala" +#line 178 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = event_source; -#line 180 "/home/jens/Source/shotwell/src/Page.vala" +#line 178 "/home/jens/Source/shotwell/src/Page.vala" g_signal_connect_object (_tmp5_, "button-press-event", (GCallback) _page_on_button_pressed_internal_gtk_widget_button_press_event, self, 0); -#line 181 "/home/jens/Source/shotwell/src/Page.vala" +#line 179 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = event_source; -#line 181 "/home/jens/Source/shotwell/src/Page.vala" +#line 179 "/home/jens/Source/shotwell/src/Page.vala" g_signal_connect_object (_tmp6_, "button-release-event", (GCallback) _page_on_button_released_internal_gtk_widget_button_release_event, self, 0); -#line 182 "/home/jens/Source/shotwell/src/Page.vala" +#line 180 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = event_source; -#line 182 "/home/jens/Source/shotwell/src/Page.vala" +#line 180 "/home/jens/Source/shotwell/src/Page.vala" g_signal_connect_object (_tmp7_, "motion-notify-event", (GCallback) _page_on_motion_internal_gtk_widget_motion_notify_event, self, 0); -#line 183 "/home/jens/Source/shotwell/src/Page.vala" +#line 181 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = event_source; -#line 183 "/home/jens/Source/shotwell/src/Page.vala" +#line 181 "/home/jens/Source/shotwell/src/Page.vala" g_signal_connect_object (_tmp8_, "leave-notify-event", (GCallback) _page_on_leave_notify_event_gtk_widget_leave_notify_event, self, 0); -#line 184 "/home/jens/Source/shotwell/src/Page.vala" +#line 182 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = event_source; -#line 184 "/home/jens/Source/shotwell/src/Page.vala" +#line 182 "/home/jens/Source/shotwell/src/Page.vala" g_signal_connect_object (_tmp9_, "scroll-event", (GCallback) _page_on_mousewheel_internal_gtk_widget_scroll_event, self, 0); -#line 185 "/home/jens/Source/shotwell/src/Page.vala" +#line 183 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = event_source; -#line 185 "/home/jens/Source/shotwell/src/Page.vala" +#line 183 "/home/jens/Source/shotwell/src/Page.vala" g_signal_connect_object (_tmp10_, "realize", (GCallback) _page_on_event_source_realize_gtk_widget_realize, self, 0); #line 2654 "Page.c" } @@ -2666,51 +2666,51 @@ static void page_detach_event_source (Page* self) { guint _tmp8_ = 0U; GtkWidget* _tmp9_ = NULL; guint _tmp10_ = 0U; -#line 188 "/home/jens/Source/shotwell/src/Page.vala" +#line 186 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 189 "/home/jens/Source/shotwell/src/Page.vala" +#line 187 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->event_source; -#line 189 "/home/jens/Source/shotwell/src/Page.vala" +#line 187 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp0_ == NULL) { -#line 190 "/home/jens/Source/shotwell/src/Page.vala" +#line 188 "/home/jens/Source/shotwell/src/Page.vala" return; #line 2678 "Page.c" } -#line 192 "/home/jens/Source/shotwell/src/Page.vala" +#line 190 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = self->priv->event_source; -#line 192 "/home/jens/Source/shotwell/src/Page.vala" +#line 190 "/home/jens/Source/shotwell/src/Page.vala" g_signal_parse_name ("button-press-event", gtk_widget_get_type (), &_tmp2_, NULL, FALSE); -#line 192 "/home/jens/Source/shotwell/src/Page.vala" +#line 190 "/home/jens/Source/shotwell/src/Page.vala" g_signal_handlers_disconnect_matched (_tmp1_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _page_on_button_pressed_internal_gtk_widget_button_press_event, self); -#line 193 "/home/jens/Source/shotwell/src/Page.vala" +#line 191 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = self->priv->event_source; -#line 193 "/home/jens/Source/shotwell/src/Page.vala" +#line 191 "/home/jens/Source/shotwell/src/Page.vala" g_signal_parse_name ("button-release-event", gtk_widget_get_type (), &_tmp4_, NULL, FALSE); -#line 193 "/home/jens/Source/shotwell/src/Page.vala" +#line 191 "/home/jens/Source/shotwell/src/Page.vala" g_signal_handlers_disconnect_matched (_tmp3_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp4_, 0, NULL, (GCallback) _page_on_button_released_internal_gtk_widget_button_release_event, self); -#line 194 "/home/jens/Source/shotwell/src/Page.vala" +#line 192 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = self->priv->event_source; -#line 194 "/home/jens/Source/shotwell/src/Page.vala" +#line 192 "/home/jens/Source/shotwell/src/Page.vala" g_signal_parse_name ("motion-notify-event", gtk_widget_get_type (), &_tmp6_, NULL, FALSE); -#line 194 "/home/jens/Source/shotwell/src/Page.vala" +#line 192 "/home/jens/Source/shotwell/src/Page.vala" g_signal_handlers_disconnect_matched (_tmp5_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp6_, 0, NULL, (GCallback) _page_on_motion_internal_gtk_widget_motion_notify_event, self); -#line 195 "/home/jens/Source/shotwell/src/Page.vala" +#line 193 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = self->priv->event_source; -#line 195 "/home/jens/Source/shotwell/src/Page.vala" +#line 193 "/home/jens/Source/shotwell/src/Page.vala" g_signal_parse_name ("leave-notify-event", gtk_widget_get_type (), &_tmp8_, NULL, FALSE); -#line 195 "/home/jens/Source/shotwell/src/Page.vala" +#line 193 "/home/jens/Source/shotwell/src/Page.vala" g_signal_handlers_disconnect_matched (_tmp7_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp8_, 0, NULL, (GCallback) _page_on_leave_notify_event_gtk_widget_leave_notify_event, self); -#line 196 "/home/jens/Source/shotwell/src/Page.vala" +#line 194 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = self->priv->event_source; -#line 196 "/home/jens/Source/shotwell/src/Page.vala" +#line 194 "/home/jens/Source/shotwell/src/Page.vala" g_signal_parse_name ("scroll-event", gtk_widget_get_type (), &_tmp10_, NULL, FALSE); -#line 196 "/home/jens/Source/shotwell/src/Page.vala" +#line 194 "/home/jens/Source/shotwell/src/Page.vala" g_signal_handlers_disconnect_matched (_tmp9_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp10_, 0, NULL, (GCallback) _page_on_mousewheel_internal_gtk_widget_scroll_event, self); -#line 198 "/home/jens/Source/shotwell/src/Page.vala" +#line 196 "/home/jens/Source/shotwell/src/Page.vala" page_disable_drag_source (self); -#line 200 "/home/jens/Source/shotwell/src/Page.vala" +#line 198 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->priv->event_source); -#line 200 "/home/jens/Source/shotwell/src/Page.vala" +#line 198 "/home/jens/Source/shotwell/src/Page.vala" self->priv->event_source = NULL; #line 2716 "Page.c" } @@ -2720,22 +2720,22 @@ GtkWidget* page_get_event_source (Page* self) { GtkWidget* result = NULL; GtkWidget* _tmp0_ = NULL; GtkWidget* _tmp1_ = NULL; -#line 203 "/home/jens/Source/shotwell/src/Page.vala" +#line 201 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), NULL); -#line 204 "/home/jens/Source/shotwell/src/Page.vala" +#line 202 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->event_source; -#line 204 "/home/jens/Source/shotwell/src/Page.vala" +#line 202 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = _g_object_ref0 (_tmp0_); -#line 204 "/home/jens/Source/shotwell/src/Page.vala" +#line 202 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp1_; -#line 204 "/home/jens/Source/shotwell/src/Page.vala" +#line 202 "/home/jens/Source/shotwell/src/Page.vala" return result; #line 2734 "Page.c" } static gpointer _injection_group_ref0 (gpointer self) { -#line 217 "/home/jens/Source/shotwell/src/Page.vala" +#line 215 "/home/jens/Source/shotwell/src/Page.vala" return self ? injection_group_ref (self) : NULL; #line 2741 "Page.c" } @@ -2749,35 +2749,35 @@ GMenuModel* page_get_menubar (Page* self) { GMenu* _tmp2_ = NULL; GMenu* _tmp3_ = NULL; gboolean _tmp5_ = FALSE; -#line 208 "/home/jens/Source/shotwell/src/Page.vala" +#line 206 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), NULL); -#line 209 "/home/jens/Source/shotwell/src/Page.vala" +#line 207 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->builder; -#line 209 "/home/jens/Source/shotwell/src/Page.vala" +#line 207 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = gtk_builder_get_object (_tmp0_, "MenuBar"); -#line 209 "/home/jens/Source/shotwell/src/Page.vala" +#line 207 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, g_menu_get_type ()) ? ((GMenu*) _tmp1_) : NULL); -#line 209 "/home/jens/Source/shotwell/src/Page.vala" +#line 207 "/home/jens/Source/shotwell/src/Page.vala" model = _tmp2_; -#line 210 "/home/jens/Source/shotwell/src/Page.vala" +#line 208 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = model; -#line 210 "/home/jens/Source/shotwell/src/Page.vala" +#line 208 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp3_ == NULL) { #line 2767 "Page.c" GMenu* _tmp4_ = NULL; -#line 211 "/home/jens/Source/shotwell/src/Page.vala" +#line 209 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = g_menu_new (); -#line 211 "/home/jens/Source/shotwell/src/Page.vala" +#line 209 "/home/jens/Source/shotwell/src/Page.vala" result = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, g_menu_model_get_type (), GMenuModel); -#line 211 "/home/jens/Source/shotwell/src/Page.vala" +#line 209 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (model); -#line 211 "/home/jens/Source/shotwell/src/Page.vala" +#line 209 "/home/jens/Source/shotwell/src/Page.vala" return result; #line 2777 "Page.c" } -#line 214 "/home/jens/Source/shotwell/src/Page.vala" +#line 212 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = self->priv->menubar_injected; -#line 214 "/home/jens/Source/shotwell/src/Page.vala" +#line 212 "/home/jens/Source/shotwell/src/Page.vala" if (!_tmp5_) { #line 2783 "Page.c" InjectionGroup** injection_groups = NULL; @@ -2787,17 +2787,17 @@ GMenuModel* page_get_menubar (Page* self) { gint _injection_groups_size_ = 0; InjectionGroup** _tmp8_ = NULL; gint _tmp8__length1 = 0; -#line 216 "/home/jens/Source/shotwell/src/Page.vala" +#line 214 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = page_init_collect_injection_groups (self, &_tmp6_); -#line 216 "/home/jens/Source/shotwell/src/Page.vala" +#line 214 "/home/jens/Source/shotwell/src/Page.vala" injection_groups = _tmp7_; -#line 216 "/home/jens/Source/shotwell/src/Page.vala" +#line 214 "/home/jens/Source/shotwell/src/Page.vala" injection_groups_length1 = _tmp6_; -#line 216 "/home/jens/Source/shotwell/src/Page.vala" +#line 214 "/home/jens/Source/shotwell/src/Page.vala" _injection_groups_size_ = injection_groups_length1; -#line 217 "/home/jens/Source/shotwell/src/Page.vala" +#line 215 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = injection_groups; -#line 217 "/home/jens/Source/shotwell/src/Page.vala" +#line 215 "/home/jens/Source/shotwell/src/Page.vala" _tmp8__length1 = injection_groups_length1; #line 2803 "Page.c" { @@ -2805,41 +2805,41 @@ GMenuModel* page_get_menubar (Page* self) { gint group_collection_length1 = 0; gint _group_collection_size_ = 0; gint group_it = 0; -#line 217 "/home/jens/Source/shotwell/src/Page.vala" +#line 215 "/home/jens/Source/shotwell/src/Page.vala" group_collection = _tmp8_; -#line 217 "/home/jens/Source/shotwell/src/Page.vala" +#line 215 "/home/jens/Source/shotwell/src/Page.vala" group_collection_length1 = _tmp8__length1; -#line 217 "/home/jens/Source/shotwell/src/Page.vala" +#line 215 "/home/jens/Source/shotwell/src/Page.vala" for (group_it = 0; group_it < _tmp8__length1; group_it = group_it + 1) { #line 2815 "Page.c" InjectionGroup* _tmp9_ = NULL; InjectionGroup* group = NULL; -#line 217 "/home/jens/Source/shotwell/src/Page.vala" +#line 215 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = _injection_group_ref0 (group_collection[group_it]); -#line 217 "/home/jens/Source/shotwell/src/Page.vala" +#line 215 "/home/jens/Source/shotwell/src/Page.vala" group = _tmp9_; #line 2822 "Page.c" { gint items = 0; GMenu* _tmp10_ = NULL; gint _tmp11_ = 0; -#line 218 "/home/jens/Source/shotwell/src/Page.vala" +#line 216 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = model; -#line 218 "/home/jens/Source/shotwell/src/Page.vala" +#line 216 "/home/jens/Source/shotwell/src/Page.vala" _tmp11_ = g_menu_model_get_n_items (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, g_menu_model_get_type (), GMenuModel)); -#line 218 "/home/jens/Source/shotwell/src/Page.vala" +#line 216 "/home/jens/Source/shotwell/src/Page.vala" items = _tmp11_; #line 2833 "Page.c" { gint i = 0; -#line 219 "/home/jens/Source/shotwell/src/Page.vala" +#line 217 "/home/jens/Source/shotwell/src/Page.vala" i = 0; #line 2838 "Page.c" { gboolean _tmp12_ = FALSE; -#line 219 "/home/jens/Source/shotwell/src/Page.vala" +#line 217 "/home/jens/Source/shotwell/src/Page.vala" _tmp12_ = TRUE; -#line 219 "/home/jens/Source/shotwell/src/Page.vala" +#line 217 "/home/jens/Source/shotwell/src/Page.vala" while (TRUE) { #line 2845 "Page.c" gint _tmp14_ = 0; @@ -2856,61 +2856,61 @@ GMenuModel* page_get_menubar (Page* self) { GMenuModel* _tmp23_ = NULL; GMenuModel* _tmp24_ = NULL; GMenuModel* _tmp25_ = NULL; -#line 219 "/home/jens/Source/shotwell/src/Page.vala" +#line 217 "/home/jens/Source/shotwell/src/Page.vala" if (!_tmp12_) { #line 2862 "Page.c" gint _tmp13_ = 0; -#line 219 "/home/jens/Source/shotwell/src/Page.vala" +#line 217 "/home/jens/Source/shotwell/src/Page.vala" _tmp13_ = i; -#line 219 "/home/jens/Source/shotwell/src/Page.vala" +#line 217 "/home/jens/Source/shotwell/src/Page.vala" i = _tmp13_ + 1; #line 2868 "Page.c" } -#line 219 "/home/jens/Source/shotwell/src/Page.vala" +#line 217 "/home/jens/Source/shotwell/src/Page.vala" _tmp12_ = FALSE; -#line 219 "/home/jens/Source/shotwell/src/Page.vala" +#line 217 "/home/jens/Source/shotwell/src/Page.vala" _tmp14_ = i; -#line 219 "/home/jens/Source/shotwell/src/Page.vala" +#line 217 "/home/jens/Source/shotwell/src/Page.vala" _tmp15_ = items; -#line 219 "/home/jens/Source/shotwell/src/Page.vala" +#line 217 "/home/jens/Source/shotwell/src/Page.vala" if (!(_tmp14_ < _tmp15_)) { -#line 219 "/home/jens/Source/shotwell/src/Page.vala" +#line 217 "/home/jens/Source/shotwell/src/Page.vala" break; #line 2880 "Page.c" } -#line 220 "/home/jens/Source/shotwell/src/Page.vala" +#line 218 "/home/jens/Source/shotwell/src/Page.vala" _tmp16_ = model; -#line 220 "/home/jens/Source/shotwell/src/Page.vala" +#line 218 "/home/jens/Source/shotwell/src/Page.vala" _tmp17_ = i; -#line 220 "/home/jens/Source/shotwell/src/Page.vala" +#line 218 "/home/jens/Source/shotwell/src/Page.vala" _tmp18_ = g_menu_model_get_item_link (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, g_menu_model_get_type (), GMenuModel), _tmp17_, G_MENU_LINK_SUBMENU); -#line 220 "/home/jens/Source/shotwell/src/Page.vala" +#line 218 "/home/jens/Source/shotwell/src/Page.vala" submenu = _tmp18_; -#line 222 "/home/jens/Source/shotwell/src/Page.vala" +#line 220 "/home/jens/Source/shotwell/src/Page.vala" _tmp19_ = submenu; -#line 222 "/home/jens/Source/shotwell/src/Page.vala" +#line 220 "/home/jens/Source/shotwell/src/Page.vala" _tmp20_ = group; -#line 222 "/home/jens/Source/shotwell/src/Page.vala" +#line 220 "/home/jens/Source/shotwell/src/Page.vala" _tmp21_ = injection_group_get_path (_tmp20_); -#line 222 "/home/jens/Source/shotwell/src/Page.vala" +#line 220 "/home/jens/Source/shotwell/src/Page.vala" _tmp22_ = _tmp21_; -#line 222 "/home/jens/Source/shotwell/src/Page.vala" +#line 220 "/home/jens/Source/shotwell/src/Page.vala" _tmp23_ = page_find_extension_point (self, _tmp19_, _tmp22_); -#line 222 "/home/jens/Source/shotwell/src/Page.vala" +#line 220 "/home/jens/Source/shotwell/src/Page.vala" _tmp24_ = _tmp23_; -#line 222 "/home/jens/Source/shotwell/src/Page.vala" +#line 220 "/home/jens/Source/shotwell/src/Page.vala" _g_free0 (_tmp22_); -#line 222 "/home/jens/Source/shotwell/src/Page.vala" +#line 220 "/home/jens/Source/shotwell/src/Page.vala" section = _tmp24_; -#line 225 "/home/jens/Source/shotwell/src/Page.vala" +#line 223 "/home/jens/Source/shotwell/src/Page.vala" _tmp25_ = section; -#line 225 "/home/jens/Source/shotwell/src/Page.vala" +#line 223 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp25_ == NULL) { -#line 226 "/home/jens/Source/shotwell/src/Page.vala" +#line 224 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (section); -#line 226 "/home/jens/Source/shotwell/src/Page.vala" +#line 224 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (submenu); -#line 226 "/home/jens/Source/shotwell/src/Page.vala" +#line 224 "/home/jens/Source/shotwell/src/Page.vala" continue; #line 2916 "Page.c" } @@ -2923,23 +2923,23 @@ GMenuModel* page_get_menubar (Page* self) { gint _tmp29_ = 0; gint _tmp30_ = 0; gint _element_index = 0; -#line 229 "/home/jens/Source/shotwell/src/Page.vala" +#line 227 "/home/jens/Source/shotwell/src/Page.vala" _tmp26_ = group; -#line 229 "/home/jens/Source/shotwell/src/Page.vala" +#line 227 "/home/jens/Source/shotwell/src/Page.vala" _tmp27_ = injection_group_get_elements (_tmp26_); -#line 229 "/home/jens/Source/shotwell/src/Page.vala" +#line 227 "/home/jens/Source/shotwell/src/Page.vala" _element_list = _tmp27_; -#line 229 "/home/jens/Source/shotwell/src/Page.vala" +#line 227 "/home/jens/Source/shotwell/src/Page.vala" _tmp28_ = _element_list; -#line 229 "/home/jens/Source/shotwell/src/Page.vala" +#line 227 "/home/jens/Source/shotwell/src/Page.vala" _tmp29_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 229 "/home/jens/Source/shotwell/src/Page.vala" +#line 227 "/home/jens/Source/shotwell/src/Page.vala" _tmp30_ = _tmp29_; -#line 229 "/home/jens/Source/shotwell/src/Page.vala" +#line 227 "/home/jens/Source/shotwell/src/Page.vala" _element_size = _tmp30_; -#line 229 "/home/jens/Source/shotwell/src/Page.vala" +#line 227 "/home/jens/Source/shotwell/src/Page.vala" _element_index = -1; -#line 229 "/home/jens/Source/shotwell/src/Page.vala" +#line 227 "/home/jens/Source/shotwell/src/Page.vala" while (TRUE) { #line 2945 "Page.c" gint _tmp31_ = 0; @@ -2954,41 +2954,41 @@ GMenuModel* page_get_menubar (Page* self) { GMenu* _tmp38_ = NULL; InjectionGroupElement* _tmp39_ = NULL; InjectionGroupElementItemType _tmp40_ = 0; -#line 229 "/home/jens/Source/shotwell/src/Page.vala" +#line 227 "/home/jens/Source/shotwell/src/Page.vala" _tmp31_ = _element_index; -#line 229 "/home/jens/Source/shotwell/src/Page.vala" +#line 227 "/home/jens/Source/shotwell/src/Page.vala" _element_index = _tmp31_ + 1; -#line 229 "/home/jens/Source/shotwell/src/Page.vala" +#line 227 "/home/jens/Source/shotwell/src/Page.vala" _tmp32_ = _element_index; -#line 229 "/home/jens/Source/shotwell/src/Page.vala" +#line 227 "/home/jens/Source/shotwell/src/Page.vala" _tmp33_ = _element_size; -#line 229 "/home/jens/Source/shotwell/src/Page.vala" +#line 227 "/home/jens/Source/shotwell/src/Page.vala" if (!(_tmp32_ < _tmp33_)) { -#line 229 "/home/jens/Source/shotwell/src/Page.vala" +#line 227 "/home/jens/Source/shotwell/src/Page.vala" break; #line 2970 "Page.c" } -#line 229 "/home/jens/Source/shotwell/src/Page.vala" +#line 227 "/home/jens/Source/shotwell/src/Page.vala" _tmp34_ = _element_list; -#line 229 "/home/jens/Source/shotwell/src/Page.vala" +#line 227 "/home/jens/Source/shotwell/src/Page.vala" _tmp35_ = _element_index; -#line 229 "/home/jens/Source/shotwell/src/Page.vala" +#line 227 "/home/jens/Source/shotwell/src/Page.vala" _tmp36_ = gee_list_get (_tmp34_, _tmp35_); -#line 229 "/home/jens/Source/shotwell/src/Page.vala" +#line 227 "/home/jens/Source/shotwell/src/Page.vala" element = (InjectionGroupElement*) _tmp36_; -#line 230 "/home/jens/Source/shotwell/src/Page.vala" +#line 228 "/home/jens/Source/shotwell/src/Page.vala" _tmp37_ = section; -#line 230 "/home/jens/Source/shotwell/src/Page.vala" +#line 228 "/home/jens/Source/shotwell/src/Page.vala" _tmp38_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp37_, g_menu_get_type ()) ? ((GMenu*) _tmp37_) : NULL); -#line 230 "/home/jens/Source/shotwell/src/Page.vala" +#line 228 "/home/jens/Source/shotwell/src/Page.vala" menu = _tmp38_; -#line 231 "/home/jens/Source/shotwell/src/Page.vala" +#line 229 "/home/jens/Source/shotwell/src/Page.vala" _tmp39_ = element; -#line 231 "/home/jens/Source/shotwell/src/Page.vala" +#line 229 "/home/jens/Source/shotwell/src/Page.vala" _tmp40_ = _tmp39_->kind; -#line 231 "/home/jens/Source/shotwell/src/Page.vala" +#line 229 "/home/jens/Source/shotwell/src/Page.vala" switch (_tmp40_) { -#line 231 "/home/jens/Source/shotwell/src/Page.vala" +#line 229 "/home/jens/Source/shotwell/src/Page.vala" case INJECTION_GROUP_ELEMENT_ITEM_TYPE_MENUITEM: #line 2994 "Page.c" { @@ -3005,98 +3005,98 @@ GMenuModel* page_get_menubar (Page* self) { const gchar* _tmp50_ = NULL; GMenu* _tmp54_ = NULL; GMenuItem* _tmp55_ = NULL; -#line 233 "/home/jens/Source/shotwell/src/Page.vala" +#line 231 "/home/jens/Source/shotwell/src/Page.vala" _tmp41_ = element; -#line 233 "/home/jens/Source/shotwell/src/Page.vala" +#line 231 "/home/jens/Source/shotwell/src/Page.vala" _tmp42_ = _tmp41_->name; -#line 233 "/home/jens/Source/shotwell/src/Page.vala" +#line 231 "/home/jens/Source/shotwell/src/Page.vala" _tmp43_ = element; -#line 233 "/home/jens/Source/shotwell/src/Page.vala" +#line 231 "/home/jens/Source/shotwell/src/Page.vala" _tmp44_ = _tmp43_->action; -#line 233 "/home/jens/Source/shotwell/src/Page.vala" +#line 231 "/home/jens/Source/shotwell/src/Page.vala" _tmp45_ = g_strconcat ("win.", _tmp44_, NULL); -#line 233 "/home/jens/Source/shotwell/src/Page.vala" +#line 231 "/home/jens/Source/shotwell/src/Page.vala" _tmp46_ = _tmp45_; -#line 233 "/home/jens/Source/shotwell/src/Page.vala" +#line 231 "/home/jens/Source/shotwell/src/Page.vala" _tmp47_ = g_menu_item_new (_tmp42_, _tmp46_); -#line 233 "/home/jens/Source/shotwell/src/Page.vala" +#line 231 "/home/jens/Source/shotwell/src/Page.vala" _tmp48_ = _tmp47_; -#line 233 "/home/jens/Source/shotwell/src/Page.vala" +#line 231 "/home/jens/Source/shotwell/src/Page.vala" _g_free0 (_tmp46_); -#line 233 "/home/jens/Source/shotwell/src/Page.vala" +#line 231 "/home/jens/Source/shotwell/src/Page.vala" item = _tmp48_; -#line 235 "/home/jens/Source/shotwell/src/Page.vala" +#line 233 "/home/jens/Source/shotwell/src/Page.vala" _tmp49_ = element; -#line 235 "/home/jens/Source/shotwell/src/Page.vala" +#line 233 "/home/jens/Source/shotwell/src/Page.vala" _tmp50_ = _tmp49_->accellerator; -#line 235 "/home/jens/Source/shotwell/src/Page.vala" +#line 233 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp50_ != NULL) { #line 3035 "Page.c" GMenuItem* _tmp51_ = NULL; InjectionGroupElement* _tmp52_ = NULL; const gchar* _tmp53_ = NULL; -#line 236 "/home/jens/Source/shotwell/src/Page.vala" +#line 234 "/home/jens/Source/shotwell/src/Page.vala" _tmp51_ = item; -#line 236 "/home/jens/Source/shotwell/src/Page.vala" +#line 234 "/home/jens/Source/shotwell/src/Page.vala" _tmp52_ = element; -#line 236 "/home/jens/Source/shotwell/src/Page.vala" +#line 234 "/home/jens/Source/shotwell/src/Page.vala" _tmp53_ = _tmp52_->accellerator; -#line 236 "/home/jens/Source/shotwell/src/Page.vala" +#line 234 "/home/jens/Source/shotwell/src/Page.vala" g_menu_item_set_attribute (_tmp51_, "accel", "s", _tmp53_, NULL); #line 3047 "Page.c" } -#line 241 "/home/jens/Source/shotwell/src/Page.vala" +#line 239 "/home/jens/Source/shotwell/src/Page.vala" _tmp54_ = menu; -#line 241 "/home/jens/Source/shotwell/src/Page.vala" +#line 239 "/home/jens/Source/shotwell/src/Page.vala" _tmp55_ = item; -#line 241 "/home/jens/Source/shotwell/src/Page.vala" +#line 239 "/home/jens/Source/shotwell/src/Page.vala" g_menu_append_item (_tmp54_, _tmp55_); -#line 242 "/home/jens/Source/shotwell/src/Page.vala" +#line 240 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (item); -#line 242 "/home/jens/Source/shotwell/src/Page.vala" +#line 240 "/home/jens/Source/shotwell/src/Page.vala" break; #line 3059 "Page.c" } default: { -#line 244 "/home/jens/Source/shotwell/src/Page.vala" +#line 242 "/home/jens/Source/shotwell/src/Page.vala" break; #line 3065 "Page.c" } } -#line 229 "/home/jens/Source/shotwell/src/Page.vala" +#line 227 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (menu); -#line 229 "/home/jens/Source/shotwell/src/Page.vala" +#line 227 "/home/jens/Source/shotwell/src/Page.vala" _injection_group_element_unref0 (element); #line 3072 "Page.c" } -#line 229 "/home/jens/Source/shotwell/src/Page.vala" +#line 227 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (_element_list); #line 3076 "Page.c" } -#line 219 "/home/jens/Source/shotwell/src/Page.vala" +#line 217 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (section); -#line 219 "/home/jens/Source/shotwell/src/Page.vala" +#line 217 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (submenu); #line 3082 "Page.c" } } } -#line 217 "/home/jens/Source/shotwell/src/Page.vala" +#line 215 "/home/jens/Source/shotwell/src/Page.vala" _injection_group_unref0 (group); #line 3088 "Page.c" } } } -#line 250 "/home/jens/Source/shotwell/src/Page.vala" +#line 248 "/home/jens/Source/shotwell/src/Page.vala" self->priv->menubar_injected = TRUE; -#line 214 "/home/jens/Source/shotwell/src/Page.vala" +#line 212 "/home/jens/Source/shotwell/src/Page.vala" injection_groups = (_vala_array_free (injection_groups, injection_groups_length1, (GDestroyNotify) injection_group_unref), NULL); #line 3096 "Page.c" } -#line 253 "/home/jens/Source/shotwell/src/Page.vala" +#line 251 "/home/jens/Source/shotwell/src/Page.vala" result = G_TYPE_CHECK_INSTANCE_CAST (model, g_menu_model_get_type (), GMenuModel); -#line 253 "/home/jens/Source/shotwell/src/Page.vala" +#line 251 "/home/jens/Source/shotwell/src/Page.vala" return result; #line 3102 "Page.c" } @@ -3107,9 +3107,9 @@ static GtkToolbar* page_real_get_toolbar (Page* self) { GtkToolbar* _tmp0_ = NULL; GtkToolbar* _tmp12_ = NULL; GtkToolbar* _tmp13_ = NULL; -#line 257 "/home/jens/Source/shotwell/src/Page.vala" +#line 255 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->toolbar; -#line 257 "/home/jens/Source/shotwell/src/Page.vala" +#line 255 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp0_ == NULL) { #line 3115 "Page.c" GtkToolbar* _tmp1_ = NULL; @@ -3118,19 +3118,19 @@ static GtkToolbar* page_real_get_toolbar (Page* self) { GtkToolbar* _tmp9_ = NULL; GtkStyleContext* _tmp10_ = NULL; GtkToolbar* _tmp11_ = NULL; -#line 258 "/home/jens/Source/shotwell/src/Page.vala" +#line 256 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = self->priv->toolbar_path; -#line 258 "/home/jens/Source/shotwell/src/Page.vala" +#line 256 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp2_ == NULL) { #line 3126 "Page.c" GtkToolbar* _tmp3_ = NULL; -#line 258 "/home/jens/Source/shotwell/src/Page.vala" +#line 256 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = (GtkToolbar*) gtk_toolbar_new (); -#line 258 "/home/jens/Source/shotwell/src/Page.vala" +#line 256 "/home/jens/Source/shotwell/src/Page.vala" g_object_ref_sink (_tmp3_); -#line 258 "/home/jens/Source/shotwell/src/Page.vala" +#line 256 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (_tmp1_); -#line 258 "/home/jens/Source/shotwell/src/Page.vala" +#line 256 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = _tmp3_; #line 3136 "Page.c" } else { @@ -3138,56 +3138,56 @@ static GtkToolbar* page_real_get_toolbar (Page* self) { const gchar* _tmp5_ = NULL; GObject* _tmp6_ = NULL; GtkToolbar* _tmp7_ = NULL; -#line 259 "/home/jens/Source/shotwell/src/Page.vala" +#line 257 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = self->builder; -#line 259 "/home/jens/Source/shotwell/src/Page.vala" +#line 257 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = self->priv->toolbar_path; -#line 259 "/home/jens/Source/shotwell/src/Page.vala" +#line 257 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = gtk_builder_get_object (_tmp4_, _tmp5_); -#line 259 "/home/jens/Source/shotwell/src/Page.vala" +#line 257 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp6_, gtk_toolbar_get_type ()) ? ((GtkToolbar*) _tmp6_) : NULL); -#line 259 "/home/jens/Source/shotwell/src/Page.vala" +#line 257 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (_tmp1_); -#line 259 "/home/jens/Source/shotwell/src/Page.vala" +#line 257 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = _tmp7_; #line 3154 "Page.c" } -#line 258 "/home/jens/Source/shotwell/src/Page.vala" +#line 256 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = _g_object_ref0 (_tmp1_); -#line 258 "/home/jens/Source/shotwell/src/Page.vala" +#line 256 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->toolbar); -#line 258 "/home/jens/Source/shotwell/src/Page.vala" +#line 256 "/home/jens/Source/shotwell/src/Page.vala" self->toolbar = _tmp8_; -#line 261 "/home/jens/Source/shotwell/src/Page.vala" +#line 259 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = self->toolbar; -#line 261 "/home/jens/Source/shotwell/src/Page.vala" +#line 259 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = gtk_widget_get_style_context (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget)); -#line 261 "/home/jens/Source/shotwell/src/Page.vala" +#line 259 "/home/jens/Source/shotwell/src/Page.vala" gtk_style_context_add_class (_tmp10_, "bottom-toolbar"); -#line 262 "/home/jens/Source/shotwell/src/Page.vala" +#line 260 "/home/jens/Source/shotwell/src/Page.vala" _tmp11_ = self->toolbar; -#line 262 "/home/jens/Source/shotwell/src/Page.vala" +#line 260 "/home/jens/Source/shotwell/src/Page.vala" gtk_toolbar_set_icon_size (_tmp11_, GTK_ICON_SIZE_SMALL_TOOLBAR); -#line 257 "/home/jens/Source/shotwell/src/Page.vala" +#line 255 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (_tmp1_); #line 3174 "Page.c" } -#line 264 "/home/jens/Source/shotwell/src/Page.vala" +#line 262 "/home/jens/Source/shotwell/src/Page.vala" _tmp12_ = self->toolbar; -#line 264 "/home/jens/Source/shotwell/src/Page.vala" +#line 262 "/home/jens/Source/shotwell/src/Page.vala" _tmp13_ = _g_object_ref0 (_tmp12_); -#line 264 "/home/jens/Source/shotwell/src/Page.vala" +#line 262 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp13_; -#line 264 "/home/jens/Source/shotwell/src/Page.vala" +#line 262 "/home/jens/Source/shotwell/src/Page.vala" return result; #line 3184 "Page.c" } GtkToolbar* page_get_toolbar (Page* self) { -#line 256 "/home/jens/Source/shotwell/src/Page.vala" +#line 254 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), NULL); -#line 256 "/home/jens/Source/shotwell/src/Page.vala" +#line 254 "/home/jens/Source/shotwell/src/Page.vala" return PAGE_GET_CLASS (self)->get_toolbar (self); #line 3193 "Page.c" } @@ -3195,66 +3195,124 @@ GtkToolbar* page_get_toolbar (Page* self) { static GtkMenu* page_real_get_page_context_menu (Page* self) { GtkMenu* result = NULL; -#line 268 "/home/jens/Source/shotwell/src/Page.vala" +#line 266 "/home/jens/Source/shotwell/src/Page.vala" result = NULL; -#line 268 "/home/jens/Source/shotwell/src/Page.vala" +#line 266 "/home/jens/Source/shotwell/src/Page.vala" return result; #line 3203 "Page.c" } GtkMenu* page_get_page_context_menu (Page* self) { -#line 267 "/home/jens/Source/shotwell/src/Page.vala" +#line 265 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), NULL); -#line 267 "/home/jens/Source/shotwell/src/Page.vala" +#line 265 "/home/jens/Source/shotwell/src/Page.vala" return PAGE_GET_CLASS (self)->get_page_context_menu (self); #line 3212 "Page.c" } static void page_real_switching_from (Page* self) { - const gchar* _tmp0_ = NULL; -#line 272 "/home/jens/Source/shotwell/src/Page.vala" + AppWindow* _tmp0_ = NULL; + AppWindow* _tmp1_ = NULL; + const gchar* _tmp2_ = NULL; +#line 270 "/home/jens/Source/shotwell/src/Page.vala" self->in_view = FALSE; +#line 271 "/home/jens/Source/shotwell/src/Page.vala" + _tmp0_ = app_window_get_instance (); +#line 271 "/home/jens/Source/shotwell/src/Page.vala" + _tmp1_ = _tmp0_; +#line 271 "/home/jens/Source/shotwell/src/Page.vala" + page_remove_actions (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, g_action_map_get_type (), GActionMap)); +#line 271 "/home/jens/Source/shotwell/src/Page.vala" + _g_object_unref0 (_tmp1_); +#line 272 "/home/jens/Source/shotwell/src/Page.vala" + _tmp2_ = self->priv->toolbar_path; +#line 272 "/home/jens/Source/shotwell/src/Page.vala" + if (_tmp2_ != NULL) { #line 273 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->toolbar_path; -#line 273 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp0_ != NULL) { -#line 274 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->toolbar); -#line 274 "/home/jens/Source/shotwell/src/Page.vala" +#line 273 "/home/jens/Source/shotwell/src/Page.vala" self->toolbar = NULL; -#line 3228 "Page.c" +#line 3238 "Page.c" } } void page_switching_from (Page* self) { -#line 271 "/home/jens/Source/shotwell/src/Page.vala" +#line 269 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 271 "/home/jens/Source/shotwell/src/Page.vala" +#line 269 "/home/jens/Source/shotwell/src/Page.vala" PAGE_GET_CLASS (self)->switching_from (self); -#line 3238 "Page.c" +#line 3248 "Page.c" } static void page_real_switched_to (Page* self) { -#line 278 "/home/jens/Source/shotwell/src/Page.vala" + AppWindow* _tmp0_ = NULL; + AppWindow* _tmp1_ = NULL; + gint selected_count = 0; + ViewCollection* _tmp2_ = NULL; + ViewCollection* _tmp3_ = NULL; + gint _tmp4_ = 0; + gint _tmp5_ = 0; + gint count = 0; + ViewCollection* _tmp6_ = NULL; + ViewCollection* _tmp7_ = NULL; + gint _tmp8_ = 0; + gint _tmp9_ = 0; +#line 277 "/home/jens/Source/shotwell/src/Page.vala" self->in_view = TRUE; -#line 279 "/home/jens/Source/shotwell/src/Page.vala" +#line 278 "/home/jens/Source/shotwell/src/Page.vala" page_add_ui (self); +#line 279 "/home/jens/Source/shotwell/src/Page.vala" + _tmp0_ = app_window_get_instance (); +#line 279 "/home/jens/Source/shotwell/src/Page.vala" + _tmp1_ = _tmp0_; +#line 279 "/home/jens/Source/shotwell/src/Page.vala" + page_add_actions (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, g_action_map_get_type (), GActionMap)); +#line 279 "/home/jens/Source/shotwell/src/Page.vala" + _g_object_unref0 (_tmp1_); #line 280 "/home/jens/Source/shotwell/src/Page.vala" + _tmp2_ = page_get_view (self); +#line 280 "/home/jens/Source/shotwell/src/Page.vala" + _tmp3_ = _tmp2_; +#line 280 "/home/jens/Source/shotwell/src/Page.vala" + _tmp4_ = view_collection_get_selected_count (_tmp3_); +#line 280 "/home/jens/Source/shotwell/src/Page.vala" + _tmp5_ = _tmp4_; +#line 280 "/home/jens/Source/shotwell/src/Page.vala" + _data_collection_unref0 (_tmp3_); +#line 280 "/home/jens/Source/shotwell/src/Page.vala" + selected_count = _tmp5_; +#line 281 "/home/jens/Source/shotwell/src/Page.vala" + _tmp6_ = page_get_view (self); +#line 281 "/home/jens/Source/shotwell/src/Page.vala" + _tmp7_ = _tmp6_; +#line 281 "/home/jens/Source/shotwell/src/Page.vala" + _tmp8_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_COLLECTION, DataCollection)); +#line 281 "/home/jens/Source/shotwell/src/Page.vala" + _tmp9_ = _tmp8_; +#line 281 "/home/jens/Source/shotwell/src/Page.vala" + _data_collection_unref0 (_tmp7_); +#line 281 "/home/jens/Source/shotwell/src/Page.vala" + count = _tmp9_; +#line 282 "/home/jens/Source/shotwell/src/Page.vala" + page_init_actions (self, selected_count, count); +#line 283 "/home/jens/Source/shotwell/src/Page.vala" + page_update_actions (self, selected_count, count); +#line 284 "/home/jens/Source/shotwell/src/Page.vala" page_update_modifiers (self); -#line 3249 "Page.c" +#line 3307 "Page.c" } void page_switched_to (Page* self) { -#line 277 "/home/jens/Source/shotwell/src/Page.vala" +#line 276 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 277 "/home/jens/Source/shotwell/src/Page.vala" +#line 276 "/home/jens/Source/shotwell/src/Page.vala" PAGE_GET_CLASS (self)->switched_to (self); -#line 3258 "Page.c" +#line 3316 "Page.c" } @@ -3263,106 +3321,151 @@ static void page_real_ready (Page* self) { void page_ready (Page* self) { -#line 283 "/home/jens/Source/shotwell/src/Page.vala" +#line 287 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 283 "/home/jens/Source/shotwell/src/Page.vala" +#line 287 "/home/jens/Source/shotwell/src/Page.vala" PAGE_GET_CLASS (self)->ready (self); -#line 3271 "Page.c" +#line 3329 "Page.c" } gboolean page_is_in_view (Page* self) { gboolean result = FALSE; gboolean _tmp0_ = FALSE; -#line 286 "/home/jens/Source/shotwell/src/Page.vala" +#line 290 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 287 "/home/jens/Source/shotwell/src/Page.vala" +#line 291 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->in_view; -#line 287 "/home/jens/Source/shotwell/src/Page.vala" +#line 291 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp0_; -#line 287 "/home/jens/Source/shotwell/src/Page.vala" +#line 291 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 3286 "Page.c" +#line 3344 "Page.c" } static void page_real_switching_to_fullscreen (Page* self, FullscreenWindow* fsw) { -#line 290 "/home/jens/Source/shotwell/src/Page.vala" + FullscreenWindow* _tmp0_ = NULL; +#line 294 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_FULLSCREEN_WINDOW (fsw)); -#line 3293 "Page.c" +#line 295 "/home/jens/Source/shotwell/src/Page.vala" + _tmp0_ = fsw; +#line 295 "/home/jens/Source/shotwell/src/Page.vala" + page_add_actions (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, g_action_map_get_type (), GActionMap)); +#line 3356 "Page.c" } void page_switching_to_fullscreen (Page* self, FullscreenWindow* fsw) { -#line 290 "/home/jens/Source/shotwell/src/Page.vala" +#line 294 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 290 "/home/jens/Source/shotwell/src/Page.vala" +#line 294 "/home/jens/Source/shotwell/src/Page.vala" PAGE_GET_CLASS (self)->switching_to_fullscreen (self, fsw); -#line 3302 "Page.c" +#line 3365 "Page.c" } static void page_real_returning_from_fullscreen (Page* self, FullscreenWindow* fsw) { -#line 293 "/home/jens/Source/shotwell/src/Page.vala" + FullscreenWindow* _tmp0_ = NULL; +#line 298 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_FULLSCREEN_WINDOW (fsw)); -#line 3309 "Page.c" +#line 299 "/home/jens/Source/shotwell/src/Page.vala" + _tmp0_ = fsw; +#line 299 "/home/jens/Source/shotwell/src/Page.vala" + page_remove_actions (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, g_action_map_get_type (), GActionMap)); +#line 300 "/home/jens/Source/shotwell/src/Page.vala" + page_switched_to (self); +#line 3379 "Page.c" } void page_returning_from_fullscreen (Page* self, FullscreenWindow* fsw) { -#line 293 "/home/jens/Source/shotwell/src/Page.vala" +#line 298 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 293 "/home/jens/Source/shotwell/src/Page.vala" +#line 298 "/home/jens/Source/shotwell/src/Page.vala" PAGE_GET_CLASS (self)->returning_from_fullscreen (self, fsw); -#line 3318 "Page.c" +#line 3388 "Page.c" } GAction* page_get_action (Page* self, const gchar* name) { GAction* result = NULL; - AppWindow* aw = NULL; - AppWindow* _tmp0_ = NULL; - AppWindow* _tmp1_ = NULL; -#line 296 "/home/jens/Source/shotwell/src/Page.vala" + GActionMap* map = NULL; + GtkWindow* _tmp0_ = NULL; + GActionMap* _tmp5_ = NULL; +#line 303 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), NULL); -#line 296 "/home/jens/Source/shotwell/src/Page.vala" +#line 303 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (name != NULL, NULL); -#line 297 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = app_window_get_instance (); -#line 297 "/home/jens/Source/shotwell/src/Page.vala" - aw = _tmp0_; -#line 299 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = aw; -#line 299 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp1_ != NULL) { -#line 3339 "Page.c" - AppWindow* _tmp2_ = NULL; - const gchar* _tmp3_ = NULL; - GAction* _tmp4_ = NULL; - GAction* _tmp5_ = NULL; -#line 300 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = aw; -#line 300 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = name; -#line 300 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = g_action_map_lookup_action (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, g_action_map_get_type (), GActionMap), _tmp3_); -#line 300 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = _g_object_ref0 (_tmp4_); -#line 300 "/home/jens/Source/shotwell/src/Page.vala" - result = _tmp5_; -#line 300 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (aw); -#line 300 "/home/jens/Source/shotwell/src/Page.vala" +#line 304 "/home/jens/Source/shotwell/src/Page.vala" + map = NULL; +#line 305 "/home/jens/Source/shotwell/src/Page.vala" + _tmp0_ = self->priv->container; +#line 305 "/home/jens/Source/shotwell/src/Page.vala" + if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_FULLSCREEN_WINDOW)) { +#line 3407 "Page.c" + GtkWindow* _tmp1_ = NULL; + GActionMap* _tmp2_ = NULL; +#line 306 "/home/jens/Source/shotwell/src/Page.vala" + _tmp1_ = self->priv->container; +#line 306 "/home/jens/Source/shotwell/src/Page.vala" + _tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, g_action_map_get_type ()) ? ((GActionMap*) _tmp1_) : NULL); +#line 306 "/home/jens/Source/shotwell/src/Page.vala" + _g_object_unref0 (map); +#line 306 "/home/jens/Source/shotwell/src/Page.vala" + map = _tmp2_; +#line 3418 "Page.c" + } else { + AppWindow* _tmp3_ = NULL; + GActionMap* _tmp4_ = NULL; +#line 308 "/home/jens/Source/shotwell/src/Page.vala" + _tmp3_ = app_window_get_instance (); +#line 308 "/home/jens/Source/shotwell/src/Page.vala" + _tmp4_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, g_action_map_get_type ()) ? ((GActionMap*) _tmp3_) : NULL; +#line 308 "/home/jens/Source/shotwell/src/Page.vala" + if (_tmp4_ == NULL) { +#line 308 "/home/jens/Source/shotwell/src/Page.vala" + _g_object_unref0 (_tmp3_); +#line 3430 "Page.c" + } +#line 308 "/home/jens/Source/shotwell/src/Page.vala" + _g_object_unref0 (map); +#line 308 "/home/jens/Source/shotwell/src/Page.vala" + map = _tmp4_; +#line 3436 "Page.c" + } +#line 311 "/home/jens/Source/shotwell/src/Page.vala" + _tmp5_ = map; +#line 311 "/home/jens/Source/shotwell/src/Page.vala" + if (_tmp5_ != NULL) { +#line 3442 "Page.c" + GActionMap* _tmp6_ = NULL; + const gchar* _tmp7_ = NULL; + GAction* _tmp8_ = NULL; + GAction* _tmp9_ = NULL; +#line 312 "/home/jens/Source/shotwell/src/Page.vala" + _tmp6_ = map; +#line 312 "/home/jens/Source/shotwell/src/Page.vala" + _tmp7_ = name; +#line 312 "/home/jens/Source/shotwell/src/Page.vala" + _tmp8_ = g_action_map_lookup_action (_tmp6_, _tmp7_); +#line 312 "/home/jens/Source/shotwell/src/Page.vala" + _tmp9_ = _g_object_ref0 (_tmp8_); +#line 312 "/home/jens/Source/shotwell/src/Page.vala" + result = _tmp9_; +#line 312 "/home/jens/Source/shotwell/src/Page.vala" + _g_object_unref0 (map); +#line 312 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 3358 "Page.c" +#line 3461 "Page.c" } -#line 303 "/home/jens/Source/shotwell/src/Page.vala" +#line 315 "/home/jens/Source/shotwell/src/Page.vala" result = NULL; -#line 303 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (aw); -#line 303 "/home/jens/Source/shotwell/src/Page.vala" +#line 315 "/home/jens/Source/shotwell/src/Page.vala" + _g_object_unref0 (map); +#line 315 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 3366 "Page.c" +#line 3469 "Page.c" } @@ -3372,92 +3475,92 @@ void page_set_action_sensitive (Page* self, const gchar* name, gboolean sensitiv GAction* _tmp1_ = NULL; GSimpleAction* _tmp2_ = NULL; GSimpleAction* _tmp3_ = NULL; -#line 306 "/home/jens/Source/shotwell/src/Page.vala" +#line 318 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 306 "/home/jens/Source/shotwell/src/Page.vala" +#line 318 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (name != NULL); -#line 307 "/home/jens/Source/shotwell/src/Page.vala" +#line 319 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = name; -#line 307 "/home/jens/Source/shotwell/src/Page.vala" +#line 319 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = page_get_action (self, _tmp0_); -#line 307 "/home/jens/Source/shotwell/src/Page.vala" +#line 319 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp1_) : NULL; -#line 307 "/home/jens/Source/shotwell/src/Page.vala" +#line 319 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp2_ == NULL) { -#line 307 "/home/jens/Source/shotwell/src/Page.vala" +#line 319 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (_tmp1_); -#line 3390 "Page.c" +#line 3493 "Page.c" } -#line 307 "/home/jens/Source/shotwell/src/Page.vala" +#line 319 "/home/jens/Source/shotwell/src/Page.vala" action = _tmp2_; -#line 308 "/home/jens/Source/shotwell/src/Page.vala" +#line 320 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = action; -#line 308 "/home/jens/Source/shotwell/src/Page.vala" +#line 320 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp3_ != NULL) { -#line 3398 "Page.c" +#line 3501 "Page.c" GSimpleAction* _tmp4_ = NULL; gboolean _tmp5_ = FALSE; -#line 309 "/home/jens/Source/shotwell/src/Page.vala" +#line 321 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = action; -#line 309 "/home/jens/Source/shotwell/src/Page.vala" +#line 321 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = sensitive; -#line 309 "/home/jens/Source/shotwell/src/Page.vala" +#line 321 "/home/jens/Source/shotwell/src/Page.vala" g_simple_action_set_enabled (_tmp4_, _tmp5_); -#line 3407 "Page.c" +#line 3510 "Page.c" } -#line 306 "/home/jens/Source/shotwell/src/Page.vala" +#line 318 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (action); -#line 3411 "Page.c" +#line 3514 "Page.c" } void page_set_action_important (Page* self, const gchar* name, gboolean important) { const gchar* _tmp0_ = NULL; gboolean _tmp1_ = FALSE; -#line 312 "/home/jens/Source/shotwell/src/Page.vala" +#line 324 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 312 "/home/jens/Source/shotwell/src/Page.vala" +#line 324 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (name != NULL); -#line 313 "/home/jens/Source/shotwell/src/Page.vala" +#line 325 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = name; -#line 313 "/home/jens/Source/shotwell/src/Page.vala" +#line 325 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = important; -#line 313 "/home/jens/Source/shotwell/src/Page.vala" +#line 325 "/home/jens/Source/shotwell/src/Page.vala" page_set_action_sensitive (self, _tmp0_, _tmp1_); -#line 3428 "Page.c" +#line 3531 "Page.c" } void page_set_action_visible (Page* self, const gchar* name, gboolean visible) { const gchar* _tmp0_ = NULL; gboolean _tmp1_ = FALSE; -#line 316 "/home/jens/Source/shotwell/src/Page.vala" +#line 328 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 316 "/home/jens/Source/shotwell/src/Page.vala" +#line 328 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (name != NULL); -#line 317 "/home/jens/Source/shotwell/src/Page.vala" +#line 329 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = name; -#line 317 "/home/jens/Source/shotwell/src/Page.vala" +#line 329 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = visible; -#line 317 "/home/jens/Source/shotwell/src/Page.vala" +#line 329 "/home/jens/Source/shotwell/src/Page.vala" page_set_action_sensitive (self, _tmp0_, _tmp1_); -#line 3445 "Page.c" +#line 3548 "Page.c" } void page_set_action_short_label (Page* self, const gchar* name, const gchar* short_label) { const gchar* _tmp0_ = NULL; -#line 320 "/home/jens/Source/shotwell/src/Page.vala" +#line 332 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 320 "/home/jens/Source/shotwell/src/Page.vala" +#line 332 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (name != NULL); -#line 320 "/home/jens/Source/shotwell/src/Page.vala" +#line 332 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (short_label != NULL); -#line 321 "/home/jens/Source/shotwell/src/Page.vala" +#line 333 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = name; -#line 321 "/home/jens/Source/shotwell/src/Page.vala" - g_debug ("Page.vala:321: => Set action short_label called for %s", _tmp0_); -#line 3461 "Page.c" +#line 333 "/home/jens/Source/shotwell/src/Page.vala" + g_debug ("Page.vala:333: => Set action short_label called for %s", _tmp0_); +#line 3564 "Page.c" } @@ -3470,58 +3573,58 @@ void page_set_action_details (Page* self, const gchar* name, const gchar* label, const gchar* _tmp4_ = NULL; GSimpleAction* _tmp7_ = NULL; gboolean _tmp8_ = FALSE; -#line 324 "/home/jens/Source/shotwell/src/Page.vala" +#line 336 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 324 "/home/jens/Source/shotwell/src/Page.vala" +#line 336 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (name != NULL); -#line 325 "/home/jens/Source/shotwell/src/Page.vala" +#line 337 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = name; -#line 325 "/home/jens/Source/shotwell/src/Page.vala" +#line 337 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = page_get_action (self, _tmp0_); -#line 325 "/home/jens/Source/shotwell/src/Page.vala" +#line 337 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp1_) : NULL; -#line 325 "/home/jens/Source/shotwell/src/Page.vala" +#line 337 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp2_ == NULL) { -#line 325 "/home/jens/Source/shotwell/src/Page.vala" +#line 337 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (_tmp1_); -#line 3488 "Page.c" +#line 3591 "Page.c" } -#line 325 "/home/jens/Source/shotwell/src/Page.vala" +#line 337 "/home/jens/Source/shotwell/src/Page.vala" action = _tmp2_; -#line 327 "/home/jens/Source/shotwell/src/Page.vala" +#line 339 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = action; -#line 327 "/home/jens/Source/shotwell/src/Page.vala" +#line 339 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp3_ == NULL) { -#line 328 "/home/jens/Source/shotwell/src/Page.vala" +#line 340 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (action); -#line 328 "/home/jens/Source/shotwell/src/Page.vala" +#line 340 "/home/jens/Source/shotwell/src/Page.vala" return; -#line 3500 "Page.c" +#line 3603 "Page.c" } -#line 330 "/home/jens/Source/shotwell/src/Page.vala" +#line 342 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = label; -#line 330 "/home/jens/Source/shotwell/src/Page.vala" +#line 342 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp4_ != NULL) { -#line 3506 "Page.c" +#line 3609 "Page.c" const gchar* _tmp5_ = NULL; const gchar* _tmp6_ = NULL; -#line 331 "/home/jens/Source/shotwell/src/Page.vala" +#line 343 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = name; -#line 331 "/home/jens/Source/shotwell/src/Page.vala" +#line 343 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = label; -#line 331 "/home/jens/Source/shotwell/src/Page.vala" +#line 343 "/home/jens/Source/shotwell/src/Page.vala" page_update_menu_item_label (self, _tmp5_, _tmp6_); -#line 3515 "Page.c" +#line 3618 "Page.c" } -#line 333 "/home/jens/Source/shotwell/src/Page.vala" +#line 345 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = action; -#line 333 "/home/jens/Source/shotwell/src/Page.vala" +#line 345 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = sensitive; -#line 333 "/home/jens/Source/shotwell/src/Page.vala" +#line 345 "/home/jens/Source/shotwell/src/Page.vala" g_simple_action_set_enabled (_tmp7_, _tmp8_); -#line 324 "/home/jens/Source/shotwell/src/Page.vala" +#line 336 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (action); -#line 3525 "Page.c" +#line 3628 "Page.c" } @@ -3530,31 +3633,31 @@ void page_activate_action (Page* self, const gchar* name) { const gchar* _tmp0_ = NULL; GAction* _tmp1_ = NULL; GAction* _tmp2_ = NULL; -#line 336 "/home/jens/Source/shotwell/src/Page.vala" +#line 348 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 336 "/home/jens/Source/shotwell/src/Page.vala" +#line 348 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (name != NULL); -#line 337 "/home/jens/Source/shotwell/src/Page.vala" +#line 349 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = name; -#line 337 "/home/jens/Source/shotwell/src/Page.vala" +#line 349 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = page_get_action (self, _tmp0_); -#line 337 "/home/jens/Source/shotwell/src/Page.vala" +#line 349 "/home/jens/Source/shotwell/src/Page.vala" action = _tmp1_; -#line 339 "/home/jens/Source/shotwell/src/Page.vala" +#line 351 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = action; -#line 339 "/home/jens/Source/shotwell/src/Page.vala" +#line 351 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp2_ != NULL) { -#line 3548 "Page.c" +#line 3651 "Page.c" GAction* _tmp3_ = NULL; -#line 340 "/home/jens/Source/shotwell/src/Page.vala" +#line 352 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = action; -#line 340 "/home/jens/Source/shotwell/src/Page.vala" +#line 352 "/home/jens/Source/shotwell/src/Page.vala" g_action_activate (_tmp3_, NULL); -#line 3554 "Page.c" +#line 3657 "Page.c" } -#line 336 "/home/jens/Source/shotwell/src/Page.vala" +#line 348 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (action); -#line 3558 "Page.c" +#line 3661 "Page.c" } @@ -3565,53 +3668,53 @@ GAction* page_get_common_action (Page* self, const gchar* name, gboolean log_war GAction* _tmp1_ = NULL; GAction* _tmp2_ = NULL; gboolean _tmp3_ = FALSE; -#line 343 "/home/jens/Source/shotwell/src/Page.vala" +#line 355 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), NULL); -#line 343 "/home/jens/Source/shotwell/src/Page.vala" +#line 355 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (name != NULL, NULL); -#line 344 "/home/jens/Source/shotwell/src/Page.vala" +#line 356 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = name; -#line 344 "/home/jens/Source/shotwell/src/Page.vala" +#line 356 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = page_get_action (self, _tmp0_); -#line 344 "/home/jens/Source/shotwell/src/Page.vala" +#line 356 "/home/jens/Source/shotwell/src/Page.vala" action = _tmp1_; -#line 346 "/home/jens/Source/shotwell/src/Page.vala" +#line 358 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = action; -#line 346 "/home/jens/Source/shotwell/src/Page.vala" +#line 358 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp2_ != NULL) { -#line 347 "/home/jens/Source/shotwell/src/Page.vala" +#line 359 "/home/jens/Source/shotwell/src/Page.vala" result = action; -#line 347 "/home/jens/Source/shotwell/src/Page.vala" +#line 359 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 3587 "Page.c" +#line 3690 "Page.c" } -#line 349 "/home/jens/Source/shotwell/src/Page.vala" +#line 361 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = log_warning; -#line 349 "/home/jens/Source/shotwell/src/Page.vala" +#line 361 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp3_) { -#line 3593 "Page.c" +#line 3696 "Page.c" gchar* _tmp4_ = NULL; gchar* _tmp5_ = NULL; const gchar* _tmp6_ = NULL; -#line 350 "/home/jens/Source/shotwell/src/Page.vala" +#line 362 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = page_get_page_name (self); -#line 350 "/home/jens/Source/shotwell/src/Page.vala" +#line 362 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = _tmp4_; -#line 350 "/home/jens/Source/shotwell/src/Page.vala" +#line 362 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = name; -#line 350 "/home/jens/Source/shotwell/src/Page.vala" - g_warning ("Page.vala:350: Page %s: Unable to locate common action %s", _tmp5_, _tmp6_); -#line 350 "/home/jens/Source/shotwell/src/Page.vala" +#line 362 "/home/jens/Source/shotwell/src/Page.vala" + g_warning ("Page.vala:362: Page %s: Unable to locate common action %s", _tmp5_, _tmp6_); +#line 362 "/home/jens/Source/shotwell/src/Page.vala" _g_free0 (_tmp5_); -#line 3607 "Page.c" +#line 3710 "Page.c" } -#line 352 "/home/jens/Source/shotwell/src/Page.vala" +#line 364 "/home/jens/Source/shotwell/src/Page.vala" result = NULL; -#line 352 "/home/jens/Source/shotwell/src/Page.vala" +#line 364 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (action); -#line 352 "/home/jens/Source/shotwell/src/Page.vala" +#line 364 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 3615 "Page.c" +#line 3718 "Page.c" } @@ -3621,72 +3724,72 @@ void page_set_common_action_sensitive (Page* self, const gchar* name, gboolean s GAction* _tmp1_ = NULL; GSimpleAction* _tmp2_ = NULL; GSimpleAction* _tmp3_ = NULL; -#line 355 "/home/jens/Source/shotwell/src/Page.vala" +#line 367 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 355 "/home/jens/Source/shotwell/src/Page.vala" +#line 367 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (name != NULL); -#line 356 "/home/jens/Source/shotwell/src/Page.vala" +#line 368 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = name; -#line 356 "/home/jens/Source/shotwell/src/Page.vala" +#line 368 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = page_get_common_action (self, _tmp0_, TRUE); -#line 356 "/home/jens/Source/shotwell/src/Page.vala" +#line 368 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp1_) : NULL; -#line 356 "/home/jens/Source/shotwell/src/Page.vala" +#line 368 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp2_ == NULL) { -#line 356 "/home/jens/Source/shotwell/src/Page.vala" +#line 368 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (_tmp1_); -#line 3639 "Page.c" +#line 3742 "Page.c" } -#line 356 "/home/jens/Source/shotwell/src/Page.vala" +#line 368 "/home/jens/Source/shotwell/src/Page.vala" action = _tmp2_; -#line 357 "/home/jens/Source/shotwell/src/Page.vala" +#line 369 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = action; -#line 357 "/home/jens/Source/shotwell/src/Page.vala" +#line 369 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp3_ != NULL) { -#line 3647 "Page.c" +#line 3750 "Page.c" GSimpleAction* _tmp4_ = NULL; gboolean _tmp5_ = FALSE; -#line 358 "/home/jens/Source/shotwell/src/Page.vala" +#line 370 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = action; -#line 358 "/home/jens/Source/shotwell/src/Page.vala" +#line 370 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = sensitive; -#line 358 "/home/jens/Source/shotwell/src/Page.vala" +#line 370 "/home/jens/Source/shotwell/src/Page.vala" g_simple_action_set_enabled (_tmp4_, _tmp5_); -#line 3656 "Page.c" +#line 3759 "Page.c" } -#line 355 "/home/jens/Source/shotwell/src/Page.vala" +#line 367 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (action); -#line 3660 "Page.c" +#line 3763 "Page.c" } void page_set_common_action_label (Page* self, const gchar* name, const gchar* label) { const gchar* _tmp0_ = NULL; -#line 361 "/home/jens/Source/shotwell/src/Page.vala" +#line 373 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 361 "/home/jens/Source/shotwell/src/Page.vala" +#line 373 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (name != NULL); -#line 361 "/home/jens/Source/shotwell/src/Page.vala" +#line 373 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (label != NULL); -#line 362 "/home/jens/Source/shotwell/src/Page.vala" +#line 374 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = name; -#line 362 "/home/jens/Source/shotwell/src/Page.vala" - g_debug ("Page.vala:362: Trying to set common action label for %s", _tmp0_); -#line 3676 "Page.c" +#line 374 "/home/jens/Source/shotwell/src/Page.vala" + g_debug ("Page.vala:374: Trying to set common action label for %s", _tmp0_); +#line 3779 "Page.c" } void page_set_common_action_important (Page* self, const gchar* name, gboolean important) { const gchar* _tmp0_ = NULL; -#line 365 "/home/jens/Source/shotwell/src/Page.vala" +#line 377 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 365 "/home/jens/Source/shotwell/src/Page.vala" +#line 377 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (name != NULL); -#line 366 "/home/jens/Source/shotwell/src/Page.vala" +#line 378 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = name; -#line 366 "/home/jens/Source/shotwell/src/Page.vala" - g_debug ("Page.vala:366: Setting action to important: %s", _tmp0_); -#line 3690 "Page.c" +#line 378 "/home/jens/Source/shotwell/src/Page.vala" + g_debug ("Page.vala:378: Setting action to important: %s", _tmp0_); +#line 3793 "Page.c" } @@ -3696,106 +3799,106 @@ void page_activate_common_action (Page* self, const gchar* name) { GAction* _tmp1_ = NULL; GSimpleAction* _tmp2_ = NULL; GSimpleAction* _tmp3_ = NULL; -#line 369 "/home/jens/Source/shotwell/src/Page.vala" +#line 381 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 369 "/home/jens/Source/shotwell/src/Page.vala" +#line 381 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (name != NULL); -#line 370 "/home/jens/Source/shotwell/src/Page.vala" +#line 382 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = name; -#line 370 "/home/jens/Source/shotwell/src/Page.vala" +#line 382 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = page_get_common_action (self, _tmp0_, TRUE); -#line 370 "/home/jens/Source/shotwell/src/Page.vala" +#line 382 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp1_) : NULL; -#line 370 "/home/jens/Source/shotwell/src/Page.vala" +#line 382 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp2_ == NULL) { -#line 370 "/home/jens/Source/shotwell/src/Page.vala" +#line 382 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (_tmp1_); -#line 3714 "Page.c" +#line 3817 "Page.c" } -#line 370 "/home/jens/Source/shotwell/src/Page.vala" +#line 382 "/home/jens/Source/shotwell/src/Page.vala" action = _tmp2_; -#line 371 "/home/jens/Source/shotwell/src/Page.vala" +#line 383 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = action; -#line 371 "/home/jens/Source/shotwell/src/Page.vala" +#line 383 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp3_ != NULL) { -#line 3722 "Page.c" +#line 3825 "Page.c" GSimpleAction* _tmp4_ = NULL; -#line 372 "/home/jens/Source/shotwell/src/Page.vala" +#line 384 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = action; -#line 372 "/home/jens/Source/shotwell/src/Page.vala" +#line 384 "/home/jens/Source/shotwell/src/Page.vala" g_signal_emit_by_name (_tmp4_, "activate", NULL); -#line 3728 "Page.c" +#line 3831 "Page.c" } -#line 369 "/home/jens/Source/shotwell/src/Page.vala" +#line 381 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (action); -#line 3732 "Page.c" +#line 3835 "Page.c" } gboolean page_get_ctrl_pressed (Page* self) { gboolean result = FALSE; gboolean _tmp0_ = FALSE; -#line 375 "/home/jens/Source/shotwell/src/Page.vala" +#line 387 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 376 "/home/jens/Source/shotwell/src/Page.vala" +#line 388 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->ctrl_pressed; -#line 376 "/home/jens/Source/shotwell/src/Page.vala" +#line 388 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp0_; -#line 376 "/home/jens/Source/shotwell/src/Page.vala" +#line 388 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 3747 "Page.c" +#line 3850 "Page.c" } gboolean page_get_alt_pressed (Page* self) { gboolean result = FALSE; gboolean _tmp0_ = FALSE; -#line 379 "/home/jens/Source/shotwell/src/Page.vala" +#line 391 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 380 "/home/jens/Source/shotwell/src/Page.vala" +#line 392 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->alt_pressed; -#line 380 "/home/jens/Source/shotwell/src/Page.vala" +#line 392 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp0_; -#line 380 "/home/jens/Source/shotwell/src/Page.vala" +#line 392 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 3762 "Page.c" +#line 3865 "Page.c" } gboolean page_get_shift_pressed (Page* self) { gboolean result = FALSE; gboolean _tmp0_ = FALSE; -#line 383 "/home/jens/Source/shotwell/src/Page.vala" +#line 395 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 384 "/home/jens/Source/shotwell/src/Page.vala" +#line 396 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->shift_pressed; -#line 384 "/home/jens/Source/shotwell/src/Page.vala" +#line 396 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp0_; -#line 384 "/home/jens/Source/shotwell/src/Page.vala" +#line 396 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 3777 "Page.c" +#line 3880 "Page.c" } gboolean page_get_super_pressed (Page* self) { gboolean result = FALSE; gboolean _tmp0_ = FALSE; -#line 387 "/home/jens/Source/shotwell/src/Page.vala" +#line 399 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 388 "/home/jens/Source/shotwell/src/Page.vala" +#line 400 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->super_pressed; -#line 388 "/home/jens/Source/shotwell/src/Page.vala" +#line 400 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp0_; -#line 388 "/home/jens/Source/shotwell/src/Page.vala" +#line 400 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 3792 "Page.c" +#line 3895 "Page.c" } static GVariant* _variant_new20 (gboolean value) { -#line 394 "/home/jens/Source/shotwell/src/Page.vala" +#line 406 "/home/jens/Source/shotwell/src/Page.vala" return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 3799 "Page.c" +#line 3902 "Page.c" } @@ -3805,47 +3908,47 @@ void page_set_action_active (Page* self, const gchar* name, gboolean active) { GAction* _tmp1_ = NULL; GSimpleAction* _tmp2_ = NULL; GSimpleAction* _tmp3_ = NULL; -#line 391 "/home/jens/Source/shotwell/src/Page.vala" +#line 403 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 391 "/home/jens/Source/shotwell/src/Page.vala" +#line 403 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (name != NULL); -#line 392 "/home/jens/Source/shotwell/src/Page.vala" +#line 404 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = name; -#line 392 "/home/jens/Source/shotwell/src/Page.vala" +#line 404 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = page_get_action (self, _tmp0_); -#line 392 "/home/jens/Source/shotwell/src/Page.vala" +#line 404 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp1_) : NULL; -#line 392 "/home/jens/Source/shotwell/src/Page.vala" +#line 404 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp2_ == NULL) { -#line 392 "/home/jens/Source/shotwell/src/Page.vala" +#line 404 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (_tmp1_); -#line 3823 "Page.c" +#line 3926 "Page.c" } -#line 392 "/home/jens/Source/shotwell/src/Page.vala" +#line 404 "/home/jens/Source/shotwell/src/Page.vala" action = _tmp2_; -#line 393 "/home/jens/Source/shotwell/src/Page.vala" +#line 405 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = action; -#line 393 "/home/jens/Source/shotwell/src/Page.vala" +#line 405 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp3_ != NULL) { -#line 3831 "Page.c" +#line 3934 "Page.c" GSimpleAction* _tmp4_ = NULL; gboolean _tmp5_ = FALSE; GVariant* _tmp6_ = NULL; -#line 394 "/home/jens/Source/shotwell/src/Page.vala" +#line 406 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = action; -#line 394 "/home/jens/Source/shotwell/src/Page.vala" +#line 406 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = active; -#line 394 "/home/jens/Source/shotwell/src/Page.vala" +#line 406 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = _variant_new20 (_tmp5_); -#line 394 "/home/jens/Source/shotwell/src/Page.vala" +#line 406 "/home/jens/Source/shotwell/src/Page.vala" g_simple_action_set_state (_tmp4_, _tmp6_); -#line 394 "/home/jens/Source/shotwell/src/Page.vala" +#line 406 "/home/jens/Source/shotwell/src/Page.vala" _g_variant_unref0 (_tmp6_); -#line 3845 "Page.c" +#line 3948 "Page.c" } -#line 391 "/home/jens/Source/shotwell/src/Page.vala" +#line 403 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (action); -#line 3849 "Page.c" +#line 3952 "Page.c" } @@ -3875,125 +3978,125 @@ static gboolean page_get_modifiers (Page* self, gboolean* ctrl, gboolean* alt, g GdkModifierType _tmp14_ = 0; GdkModifierType _tmp15_ = 0; GdkModifierType _tmp16_ = 0; -#line 398 "/home/jens/Source/shotwell/src/Page.vala" +#line 410 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 399 "/home/jens/Source/shotwell/src/Page.vala" +#line 411 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = app_window_get_instance (); -#line 399 "/home/jens/Source/shotwell/src/Page.vala" +#line 411 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = _tmp0_; -#line 399 "/home/jens/Source/shotwell/src/Page.vala" +#line 411 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget)); -#line 399 "/home/jens/Source/shotwell/src/Page.vala" +#line 411 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = _tmp2_ == NULL; -#line 399 "/home/jens/Source/shotwell/src/Page.vala" +#line 411 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (_tmp1_); -#line 399 "/home/jens/Source/shotwell/src/Page.vala" +#line 411 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp3_) { -#line 400 "/home/jens/Source/shotwell/src/Page.vala" +#line 412 "/home/jens/Source/shotwell/src/Page.vala" _vala_ctrl = FALSE; -#line 401 "/home/jens/Source/shotwell/src/Page.vala" +#line 413 "/home/jens/Source/shotwell/src/Page.vala" _vala_alt = FALSE; -#line 402 "/home/jens/Source/shotwell/src/Page.vala" +#line 414 "/home/jens/Source/shotwell/src/Page.vala" _vala_shift = FALSE; -#line 403 "/home/jens/Source/shotwell/src/Page.vala" +#line 415 "/home/jens/Source/shotwell/src/Page.vala" _vala_super = FALSE; -#line 405 "/home/jens/Source/shotwell/src/Page.vala" +#line 417 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 405 "/home/jens/Source/shotwell/src/Page.vala" +#line 417 "/home/jens/Source/shotwell/src/Page.vala" if (ctrl) { -#line 405 "/home/jens/Source/shotwell/src/Page.vala" +#line 417 "/home/jens/Source/shotwell/src/Page.vala" *ctrl = _vala_ctrl; -#line 3907 "Page.c" +#line 4010 "Page.c" } -#line 405 "/home/jens/Source/shotwell/src/Page.vala" +#line 417 "/home/jens/Source/shotwell/src/Page.vala" if (alt) { -#line 405 "/home/jens/Source/shotwell/src/Page.vala" +#line 417 "/home/jens/Source/shotwell/src/Page.vala" *alt = _vala_alt; -#line 3913 "Page.c" +#line 4016 "Page.c" } -#line 405 "/home/jens/Source/shotwell/src/Page.vala" +#line 417 "/home/jens/Source/shotwell/src/Page.vala" if (shift) { -#line 405 "/home/jens/Source/shotwell/src/Page.vala" +#line 417 "/home/jens/Source/shotwell/src/Page.vala" *shift = _vala_shift; -#line 3919 "Page.c" +#line 4022 "Page.c" } -#line 405 "/home/jens/Source/shotwell/src/Page.vala" +#line 417 "/home/jens/Source/shotwell/src/Page.vala" if (super) { -#line 405 "/home/jens/Source/shotwell/src/Page.vala" +#line 417 "/home/jens/Source/shotwell/src/Page.vala" *super = _vala_super; -#line 3925 "Page.c" +#line 4028 "Page.c" } -#line 405 "/home/jens/Source/shotwell/src/Page.vala" +#line 417 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 3929 "Page.c" +#line 4032 "Page.c" } -#line 410 "/home/jens/Source/shotwell/src/Page.vala" +#line 422 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = app_window_get_instance (); -#line 410 "/home/jens/Source/shotwell/src/Page.vala" +#line 422 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = _tmp4_; -#line 410 "/home/jens/Source/shotwell/src/Page.vala" +#line 422 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget)); -#line 410 "/home/jens/Source/shotwell/src/Page.vala" +#line 422 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = gdk_display_get_default (); -#line 410 "/home/jens/Source/shotwell/src/Page.vala" +#line 422 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = gdk_display_get_device_manager (_tmp7_); -#line 410 "/home/jens/Source/shotwell/src/Page.vala" +#line 422 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = gdk_device_manager_get_client_pointer (_tmp8_); -#line 410 "/home/jens/Source/shotwell/src/Page.vala" +#line 422 "/home/jens/Source/shotwell/src/Page.vala" gdk_window_get_device_position (_tmp6_, _tmp9_, &_tmp10_, &_tmp11_, &_tmp12_); -#line 410 "/home/jens/Source/shotwell/src/Page.vala" +#line 422 "/home/jens/Source/shotwell/src/Page.vala" x = _tmp10_; -#line 410 "/home/jens/Source/shotwell/src/Page.vala" +#line 422 "/home/jens/Source/shotwell/src/Page.vala" y = _tmp11_; -#line 410 "/home/jens/Source/shotwell/src/Page.vala" +#line 422 "/home/jens/Source/shotwell/src/Page.vala" mask = _tmp12_; -#line 410 "/home/jens/Source/shotwell/src/Page.vala" +#line 422 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (_tmp5_); -#line 413 "/home/jens/Source/shotwell/src/Page.vala" +#line 425 "/home/jens/Source/shotwell/src/Page.vala" _tmp13_ = mask; -#line 413 "/home/jens/Source/shotwell/src/Page.vala" +#line 425 "/home/jens/Source/shotwell/src/Page.vala" _vala_ctrl = (_tmp13_ & GDK_CONTROL_MASK) != 0; -#line 414 "/home/jens/Source/shotwell/src/Page.vala" +#line 426 "/home/jens/Source/shotwell/src/Page.vala" _tmp14_ = mask; -#line 414 "/home/jens/Source/shotwell/src/Page.vala" +#line 426 "/home/jens/Source/shotwell/src/Page.vala" _vala_alt = (_tmp14_ & GDK_MOD1_MASK) != 0; -#line 415 "/home/jens/Source/shotwell/src/Page.vala" +#line 427 "/home/jens/Source/shotwell/src/Page.vala" _tmp15_ = mask; -#line 415 "/home/jens/Source/shotwell/src/Page.vala" +#line 427 "/home/jens/Source/shotwell/src/Page.vala" _vala_shift = (_tmp15_ & GDK_SHIFT_MASK) != 0; -#line 416 "/home/jens/Source/shotwell/src/Page.vala" +#line 428 "/home/jens/Source/shotwell/src/Page.vala" _tmp16_ = mask; -#line 416 "/home/jens/Source/shotwell/src/Page.vala" +#line 428 "/home/jens/Source/shotwell/src/Page.vala" _vala_super = (_tmp16_ & GDK_MOD4_MASK) != 0; -#line 418 "/home/jens/Source/shotwell/src/Page.vala" +#line 430 "/home/jens/Source/shotwell/src/Page.vala" result = TRUE; -#line 418 "/home/jens/Source/shotwell/src/Page.vala" +#line 430 "/home/jens/Source/shotwell/src/Page.vala" if (ctrl) { -#line 418 "/home/jens/Source/shotwell/src/Page.vala" +#line 430 "/home/jens/Source/shotwell/src/Page.vala" *ctrl = _vala_ctrl; -#line 3975 "Page.c" +#line 4078 "Page.c" } -#line 418 "/home/jens/Source/shotwell/src/Page.vala" +#line 430 "/home/jens/Source/shotwell/src/Page.vala" if (alt) { -#line 418 "/home/jens/Source/shotwell/src/Page.vala" +#line 430 "/home/jens/Source/shotwell/src/Page.vala" *alt = _vala_alt; -#line 3981 "Page.c" +#line 4084 "Page.c" } -#line 418 "/home/jens/Source/shotwell/src/Page.vala" +#line 430 "/home/jens/Source/shotwell/src/Page.vala" if (shift) { -#line 418 "/home/jens/Source/shotwell/src/Page.vala" +#line 430 "/home/jens/Source/shotwell/src/Page.vala" *shift = _vala_shift; -#line 3987 "Page.c" +#line 4090 "Page.c" } -#line 418 "/home/jens/Source/shotwell/src/Page.vala" +#line 430 "/home/jens/Source/shotwell/src/Page.vala" if (super) { -#line 418 "/home/jens/Source/shotwell/src/Page.vala" +#line 430 "/home/jens/Source/shotwell/src/Page.vala" *super = _vala_super; -#line 3993 "Page.c" +#line 4096 "Page.c" } -#line 418 "/home/jens/Source/shotwell/src/Page.vala" +#line 430 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 3997 "Page.c" +#line 4100 "Page.c" } @@ -4019,229 +4122,229 @@ static void page_update_modifiers (Page* self) { gboolean _tmp30_ = FALSE; gboolean _tmp31_ = FALSE; gboolean _tmp32_ = FALSE; -#line 421 "/home/jens/Source/shotwell/src/Page.vala" +#line 433 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 424 "/home/jens/Source/shotwell/src/Page.vala" +#line 436 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = page_get_modifiers (self, &_tmp0_, &_tmp1_, &_tmp2_, &_tmp3_); -#line 424 "/home/jens/Source/shotwell/src/Page.vala" +#line 436 "/home/jens/Source/shotwell/src/Page.vala" ctrl_currently_pressed = _tmp0_; -#line 424 "/home/jens/Source/shotwell/src/Page.vala" +#line 436 "/home/jens/Source/shotwell/src/Page.vala" alt_currently_pressed = _tmp1_; -#line 424 "/home/jens/Source/shotwell/src/Page.vala" +#line 436 "/home/jens/Source/shotwell/src/Page.vala" shift_currently_pressed = _tmp2_; -#line 424 "/home/jens/Source/shotwell/src/Page.vala" +#line 436 "/home/jens/Source/shotwell/src/Page.vala" super_currently_pressed = _tmp3_; -#line 424 "/home/jens/Source/shotwell/src/Page.vala" +#line 436 "/home/jens/Source/shotwell/src/Page.vala" if (!_tmp4_) { -#line 426 "/home/jens/Source/shotwell/src/Page.vala" +#line 438 "/home/jens/Source/shotwell/src/Page.vala" return; -#line 4039 "Page.c" +#line 4142 "Page.c" } -#line 429 "/home/jens/Source/shotwell/src/Page.vala" +#line 441 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = self->priv->ctrl_pressed; -#line 429 "/home/jens/Source/shotwell/src/Page.vala" +#line 441 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp6_) { -#line 4045 "Page.c" +#line 4148 "Page.c" gboolean _tmp7_ = FALSE; -#line 429 "/home/jens/Source/shotwell/src/Page.vala" +#line 441 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = ctrl_currently_pressed; -#line 429 "/home/jens/Source/shotwell/src/Page.vala" +#line 441 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = !_tmp7_; -#line 4051 "Page.c" +#line 4154 "Page.c" } else { -#line 429 "/home/jens/Source/shotwell/src/Page.vala" +#line 441 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = FALSE; -#line 4055 "Page.c" +#line 4158 "Page.c" } -#line 429 "/home/jens/Source/shotwell/src/Page.vala" +#line 441 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp5_) { -#line 430 "/home/jens/Source/shotwell/src/Page.vala" +#line 442 "/home/jens/Source/shotwell/src/Page.vala" page_on_ctrl_released (self, NULL); -#line 4061 "Page.c" +#line 4164 "Page.c" } else { gboolean _tmp8_ = FALSE; gboolean _tmp9_ = FALSE; -#line 431 "/home/jens/Source/shotwell/src/Page.vala" +#line 443 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = self->priv->ctrl_pressed; -#line 431 "/home/jens/Source/shotwell/src/Page.vala" +#line 443 "/home/jens/Source/shotwell/src/Page.vala" if (!_tmp9_) { -#line 4069 "Page.c" +#line 4172 "Page.c" gboolean _tmp10_ = FALSE; -#line 431 "/home/jens/Source/shotwell/src/Page.vala" +#line 443 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = ctrl_currently_pressed; -#line 431 "/home/jens/Source/shotwell/src/Page.vala" +#line 443 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = _tmp10_; -#line 4075 "Page.c" +#line 4178 "Page.c" } else { -#line 431 "/home/jens/Source/shotwell/src/Page.vala" +#line 443 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = FALSE; -#line 4079 "Page.c" +#line 4182 "Page.c" } -#line 431 "/home/jens/Source/shotwell/src/Page.vala" +#line 443 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp8_) { -#line 432 "/home/jens/Source/shotwell/src/Page.vala" +#line 444 "/home/jens/Source/shotwell/src/Page.vala" page_on_ctrl_pressed (self, NULL); -#line 4085 "Page.c" +#line 4188 "Page.c" } } -#line 434 "/home/jens/Source/shotwell/src/Page.vala" +#line 446 "/home/jens/Source/shotwell/src/Page.vala" _tmp12_ = self->priv->alt_pressed; -#line 434 "/home/jens/Source/shotwell/src/Page.vala" +#line 446 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp12_) { -#line 4092 "Page.c" +#line 4195 "Page.c" gboolean _tmp13_ = FALSE; -#line 434 "/home/jens/Source/shotwell/src/Page.vala" +#line 446 "/home/jens/Source/shotwell/src/Page.vala" _tmp13_ = alt_currently_pressed; -#line 434 "/home/jens/Source/shotwell/src/Page.vala" +#line 446 "/home/jens/Source/shotwell/src/Page.vala" _tmp11_ = !_tmp13_; -#line 4098 "Page.c" +#line 4201 "Page.c" } else { -#line 434 "/home/jens/Source/shotwell/src/Page.vala" +#line 446 "/home/jens/Source/shotwell/src/Page.vala" _tmp11_ = FALSE; -#line 4102 "Page.c" +#line 4205 "Page.c" } -#line 434 "/home/jens/Source/shotwell/src/Page.vala" +#line 446 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp11_) { -#line 435 "/home/jens/Source/shotwell/src/Page.vala" +#line 447 "/home/jens/Source/shotwell/src/Page.vala" page_on_alt_released (self, NULL); -#line 4108 "Page.c" +#line 4211 "Page.c" } else { gboolean _tmp14_ = FALSE; gboolean _tmp15_ = FALSE; -#line 436 "/home/jens/Source/shotwell/src/Page.vala" +#line 448 "/home/jens/Source/shotwell/src/Page.vala" _tmp15_ = self->priv->alt_pressed; -#line 436 "/home/jens/Source/shotwell/src/Page.vala" +#line 448 "/home/jens/Source/shotwell/src/Page.vala" if (!_tmp15_) { -#line 4116 "Page.c" +#line 4219 "Page.c" gboolean _tmp16_ = FALSE; -#line 436 "/home/jens/Source/shotwell/src/Page.vala" +#line 448 "/home/jens/Source/shotwell/src/Page.vala" _tmp16_ = alt_currently_pressed; -#line 436 "/home/jens/Source/shotwell/src/Page.vala" +#line 448 "/home/jens/Source/shotwell/src/Page.vala" _tmp14_ = _tmp16_; -#line 4122 "Page.c" +#line 4225 "Page.c" } else { -#line 436 "/home/jens/Source/shotwell/src/Page.vala" +#line 448 "/home/jens/Source/shotwell/src/Page.vala" _tmp14_ = FALSE; -#line 4126 "Page.c" +#line 4229 "Page.c" } -#line 436 "/home/jens/Source/shotwell/src/Page.vala" +#line 448 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp14_) { -#line 437 "/home/jens/Source/shotwell/src/Page.vala" +#line 449 "/home/jens/Source/shotwell/src/Page.vala" page_on_alt_pressed (self, NULL); -#line 4132 "Page.c" +#line 4235 "Page.c" } } -#line 439 "/home/jens/Source/shotwell/src/Page.vala" +#line 451 "/home/jens/Source/shotwell/src/Page.vala" _tmp18_ = self->priv->shift_pressed; -#line 439 "/home/jens/Source/shotwell/src/Page.vala" +#line 451 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp18_) { -#line 4139 "Page.c" +#line 4242 "Page.c" gboolean _tmp19_ = FALSE; -#line 439 "/home/jens/Source/shotwell/src/Page.vala" +#line 451 "/home/jens/Source/shotwell/src/Page.vala" _tmp19_ = shift_currently_pressed; -#line 439 "/home/jens/Source/shotwell/src/Page.vala" +#line 451 "/home/jens/Source/shotwell/src/Page.vala" _tmp17_ = !_tmp19_; -#line 4145 "Page.c" +#line 4248 "Page.c" } else { -#line 439 "/home/jens/Source/shotwell/src/Page.vala" +#line 451 "/home/jens/Source/shotwell/src/Page.vala" _tmp17_ = FALSE; -#line 4149 "Page.c" +#line 4252 "Page.c" } -#line 439 "/home/jens/Source/shotwell/src/Page.vala" +#line 451 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp17_) { -#line 440 "/home/jens/Source/shotwell/src/Page.vala" +#line 452 "/home/jens/Source/shotwell/src/Page.vala" page_on_shift_released (self, NULL); -#line 4155 "Page.c" +#line 4258 "Page.c" } else { gboolean _tmp20_ = FALSE; gboolean _tmp21_ = FALSE; -#line 441 "/home/jens/Source/shotwell/src/Page.vala" +#line 453 "/home/jens/Source/shotwell/src/Page.vala" _tmp21_ = self->priv->shift_pressed; -#line 441 "/home/jens/Source/shotwell/src/Page.vala" +#line 453 "/home/jens/Source/shotwell/src/Page.vala" if (!_tmp21_) { -#line 4163 "Page.c" +#line 4266 "Page.c" gboolean _tmp22_ = FALSE; -#line 441 "/home/jens/Source/shotwell/src/Page.vala" +#line 453 "/home/jens/Source/shotwell/src/Page.vala" _tmp22_ = shift_currently_pressed; -#line 441 "/home/jens/Source/shotwell/src/Page.vala" +#line 453 "/home/jens/Source/shotwell/src/Page.vala" _tmp20_ = _tmp22_; -#line 4169 "Page.c" +#line 4272 "Page.c" } else { -#line 441 "/home/jens/Source/shotwell/src/Page.vala" +#line 453 "/home/jens/Source/shotwell/src/Page.vala" _tmp20_ = FALSE; -#line 4173 "Page.c" +#line 4276 "Page.c" } -#line 441 "/home/jens/Source/shotwell/src/Page.vala" +#line 453 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp20_) { -#line 442 "/home/jens/Source/shotwell/src/Page.vala" +#line 454 "/home/jens/Source/shotwell/src/Page.vala" page_on_shift_pressed (self, NULL); -#line 4179 "Page.c" +#line 4282 "Page.c" } } -#line 444 "/home/jens/Source/shotwell/src/Page.vala" +#line 456 "/home/jens/Source/shotwell/src/Page.vala" _tmp24_ = self->priv->super_pressed; -#line 444 "/home/jens/Source/shotwell/src/Page.vala" +#line 456 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp24_) { -#line 4186 "Page.c" +#line 4289 "Page.c" gboolean _tmp25_ = FALSE; -#line 444 "/home/jens/Source/shotwell/src/Page.vala" +#line 456 "/home/jens/Source/shotwell/src/Page.vala" _tmp25_ = super_currently_pressed; -#line 444 "/home/jens/Source/shotwell/src/Page.vala" +#line 456 "/home/jens/Source/shotwell/src/Page.vala" _tmp23_ = !_tmp25_; -#line 4192 "Page.c" +#line 4295 "Page.c" } else { -#line 444 "/home/jens/Source/shotwell/src/Page.vala" +#line 456 "/home/jens/Source/shotwell/src/Page.vala" _tmp23_ = FALSE; -#line 4196 "Page.c" +#line 4299 "Page.c" } -#line 444 "/home/jens/Source/shotwell/src/Page.vala" +#line 456 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp23_) { -#line 445 "/home/jens/Source/shotwell/src/Page.vala" +#line 457 "/home/jens/Source/shotwell/src/Page.vala" page_on_super_released (self, NULL); -#line 4202 "Page.c" +#line 4305 "Page.c" } else { gboolean _tmp26_ = FALSE; gboolean _tmp27_ = FALSE; -#line 446 "/home/jens/Source/shotwell/src/Page.vala" +#line 458 "/home/jens/Source/shotwell/src/Page.vala" _tmp27_ = self->priv->super_pressed; -#line 446 "/home/jens/Source/shotwell/src/Page.vala" +#line 458 "/home/jens/Source/shotwell/src/Page.vala" if (!_tmp27_) { -#line 4210 "Page.c" +#line 4313 "Page.c" gboolean _tmp28_ = FALSE; -#line 446 "/home/jens/Source/shotwell/src/Page.vala" +#line 458 "/home/jens/Source/shotwell/src/Page.vala" _tmp28_ = super_currently_pressed; -#line 446 "/home/jens/Source/shotwell/src/Page.vala" +#line 458 "/home/jens/Source/shotwell/src/Page.vala" _tmp26_ = _tmp28_; -#line 4216 "Page.c" +#line 4319 "Page.c" } else { -#line 446 "/home/jens/Source/shotwell/src/Page.vala" +#line 458 "/home/jens/Source/shotwell/src/Page.vala" _tmp26_ = FALSE; -#line 4220 "Page.c" +#line 4323 "Page.c" } -#line 446 "/home/jens/Source/shotwell/src/Page.vala" +#line 458 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp26_) { -#line 447 "/home/jens/Source/shotwell/src/Page.vala" +#line 459 "/home/jens/Source/shotwell/src/Page.vala" page_on_super_pressed (self, NULL); -#line 4226 "Page.c" +#line 4329 "Page.c" } } -#line 449 "/home/jens/Source/shotwell/src/Page.vala" +#line 461 "/home/jens/Source/shotwell/src/Page.vala" _tmp29_ = ctrl_currently_pressed; -#line 449 "/home/jens/Source/shotwell/src/Page.vala" +#line 461 "/home/jens/Source/shotwell/src/Page.vala" self->priv->ctrl_pressed = _tmp29_; -#line 450 "/home/jens/Source/shotwell/src/Page.vala" +#line 462 "/home/jens/Source/shotwell/src/Page.vala" _tmp30_ = alt_currently_pressed; -#line 450 "/home/jens/Source/shotwell/src/Page.vala" +#line 462 "/home/jens/Source/shotwell/src/Page.vala" self->priv->alt_pressed = _tmp30_; -#line 451 "/home/jens/Source/shotwell/src/Page.vala" +#line 463 "/home/jens/Source/shotwell/src/Page.vala" _tmp31_ = shift_currently_pressed; -#line 451 "/home/jens/Source/shotwell/src/Page.vala" +#line 463 "/home/jens/Source/shotwell/src/Page.vala" self->priv->shift_pressed = _tmp31_; -#line 452 "/home/jens/Source/shotwell/src/Page.vala" +#line 464 "/home/jens/Source/shotwell/src/Page.vala" _tmp32_ = super_currently_pressed; -#line 452 "/home/jens/Source/shotwell/src/Page.vala" +#line 464 "/home/jens/Source/shotwell/src/Page.vala" self->priv->super_pressed = _tmp32_; -#line 4245 "Page.c" +#line 4348 "Page.c" } @@ -4251,115 +4354,134 @@ PageWindow* page_get_page_window (Page* self) { GtkContainer* _tmp0_ = NULL; GtkContainer* _tmp1_ = NULL; GtkWidget* _tmp2_ = NULL; -#line 455 "/home/jens/Source/shotwell/src/Page.vala" +#line 467 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), NULL); -#line 456 "/home/jens/Source/shotwell/src/Page.vala" +#line 468 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = gtk_widget_get_parent (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 456 "/home/jens/Source/shotwell/src/Page.vala" +#line 468 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = _tmp0_; -#line 456 "/home/jens/Source/shotwell/src/Page.vala" +#line 468 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget)); -#line 456 "/home/jens/Source/shotwell/src/Page.vala" +#line 468 "/home/jens/Source/shotwell/src/Page.vala" p = _tmp2_; -#line 457 "/home/jens/Source/shotwell/src/Page.vala" +#line 469 "/home/jens/Source/shotwell/src/Page.vala" while (TRUE) { -#line 4267 "Page.c" +#line 4370 "Page.c" GtkWidget* _tmp3_ = NULL; GtkWidget* _tmp4_ = NULL; GtkWidget* _tmp7_ = NULL; GtkContainer* _tmp8_ = NULL; GtkContainer* _tmp9_ = NULL; GtkWidget* _tmp10_ = NULL; -#line 457 "/home/jens/Source/shotwell/src/Page.vala" +#line 469 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = p; -#line 457 "/home/jens/Source/shotwell/src/Page.vala" +#line 469 "/home/jens/Source/shotwell/src/Page.vala" if (!(_tmp3_ != NULL)) { -#line 457 "/home/jens/Source/shotwell/src/Page.vala" +#line 469 "/home/jens/Source/shotwell/src/Page.vala" break; -#line 4280 "Page.c" +#line 4383 "Page.c" } -#line 458 "/home/jens/Source/shotwell/src/Page.vala" +#line 470 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = p; -#line 458 "/home/jens/Source/shotwell/src/Page.vala" +#line 470 "/home/jens/Source/shotwell/src/Page.vala" if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, TYPE_PAGE_WINDOW)) { -#line 4286 "Page.c" +#line 4389 "Page.c" GtkWidget* _tmp5_ = NULL; PageWindow* _tmp6_ = NULL; -#line 459 "/home/jens/Source/shotwell/src/Page.vala" +#line 471 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = p; -#line 459 "/home/jens/Source/shotwell/src/Page.vala" +#line 471 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_PAGE_WINDOW, PageWindow)); -#line 459 "/home/jens/Source/shotwell/src/Page.vala" +#line 471 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp6_; -#line 459 "/home/jens/Source/shotwell/src/Page.vala" +#line 471 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (p); -#line 459 "/home/jens/Source/shotwell/src/Page.vala" +#line 471 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 4299 "Page.c" +#line 4402 "Page.c" } -#line 461 "/home/jens/Source/shotwell/src/Page.vala" +#line 473 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = p; -#line 461 "/home/jens/Source/shotwell/src/Page.vala" +#line 473 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = gtk_widget_get_parent (_tmp7_); -#line 461 "/home/jens/Source/shotwell/src/Page.vala" +#line 473 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = _tmp8_; -#line 461 "/home/jens/Source/shotwell/src/Page.vala" +#line 473 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget)); -#line 461 "/home/jens/Source/shotwell/src/Page.vala" +#line 473 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (p); -#line 461 "/home/jens/Source/shotwell/src/Page.vala" +#line 473 "/home/jens/Source/shotwell/src/Page.vala" p = _tmp10_; -#line 4313 "Page.c" +#line 4416 "Page.c" } -#line 464 "/home/jens/Source/shotwell/src/Page.vala" +#line 476 "/home/jens/Source/shotwell/src/Page.vala" result = NULL; -#line 464 "/home/jens/Source/shotwell/src/Page.vala" +#line 476 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (p); -#line 464 "/home/jens/Source/shotwell/src/Page.vala" +#line 476 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 4321 "Page.c" +#line 4424 "Page.c" } CommandManager* page_get_command_manager (Page* self) { CommandManager* result = NULL; CommandManager* _tmp0_ = NULL; -#line 467 "/home/jens/Source/shotwell/src/Page.vala" +#line 479 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), NULL); -#line 468 "/home/jens/Source/shotwell/src/Page.vala" +#line 480 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = app_window_get_command_manager (); -#line 468 "/home/jens/Source/shotwell/src/Page.vala" +#line 480 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp0_; -#line 468 "/home/jens/Source/shotwell/src/Page.vala" +#line 480 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 4336 "Page.c" +#line 4439 "Page.c" } -static void page_real_add_actions (Page* self) { +static void page_real_add_actions (Page* self, GActionMap* map) { +#line 483 "/home/jens/Source/shotwell/src/Page.vala" + g_return_if_fail (G_IS_ACTION_MAP (map)); +#line 4446 "Page.c" } -void page_add_actions (Page* self) { -#line 471 "/home/jens/Source/shotwell/src/Page.vala" +void page_add_actions (Page* self, GActionMap* map) { +#line 483 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 471 "/home/jens/Source/shotwell/src/Page.vala" - PAGE_GET_CLASS (self)->add_actions (self); -#line 4349 "Page.c" +#line 483 "/home/jens/Source/shotwell/src/Page.vala" + PAGE_GET_CLASS (self)->add_actions (self, map); +#line 4455 "Page.c" +} + + +static void page_real_remove_actions (Page* self, GActionMap* map) { +#line 484 "/home/jens/Source/shotwell/src/Page.vala" + g_return_if_fail (G_IS_ACTION_MAP (map)); +#line 4462 "Page.c" +} + + +void page_remove_actions (Page* self, GActionMap* map) { +#line 484 "/home/jens/Source/shotwell/src/Page.vala" + g_return_if_fail (IS_PAGE (self)); +#line 484 "/home/jens/Source/shotwell/src/Page.vala" + PAGE_GET_CLASS (self)->remove_actions (self, map); +#line 4471 "Page.c" } static gboolean _variant_get21 (GVariant* value) { -#line 474 "/home/jens/Source/shotwell/src/Page.vala" +#line 487 "/home/jens/Source/shotwell/src/Page.vala" return g_variant_get_boolean (value); -#line 4356 "Page.c" +#line 4478 "Page.c" } static GVariant* _variant_new22 (gboolean value) { -#line 474 "/home/jens/Source/shotwell/src/Page.vala" +#line 487 "/home/jens/Source/shotwell/src/Page.vala" return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 4363 "Page.c" +#line 4485 "Page.c" } @@ -4372,59 +4494,50 @@ void page_on_action_toggle (Page* self, GAction* action, GVariant* value) { GVariant* _tmp4_ = NULL; GVariant* _tmp5_ = NULL; GAction* _tmp6_ = NULL; -#line 473 "/home/jens/Source/shotwell/src/Page.vala" +#line 486 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 473 "/home/jens/Source/shotwell/src/Page.vala" +#line 486 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (G_IS_ACTION (action)); -#line 474 "/home/jens/Source/shotwell/src/Page.vala" +#line 487 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = action; -#line 474 "/home/jens/Source/shotwell/src/Page.vala" +#line 487 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = g_action_get_state (_tmp0_); -#line 474 "/home/jens/Source/shotwell/src/Page.vala" +#line 487 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = _tmp1_; -#line 474 "/home/jens/Source/shotwell/src/Page.vala" +#line 487 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = _variant_get21 (_tmp2_); -#line 474 "/home/jens/Source/shotwell/src/Page.vala" +#line 487 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = _variant_new22 (!_tmp3_); -#line 474 "/home/jens/Source/shotwell/src/Page.vala" +#line 487 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = _tmp4_; -#line 474 "/home/jens/Source/shotwell/src/Page.vala" +#line 487 "/home/jens/Source/shotwell/src/Page.vala" _g_variant_unref0 (_tmp2_); -#line 474 "/home/jens/Source/shotwell/src/Page.vala" +#line 487 "/home/jens/Source/shotwell/src/Page.vala" new_state = _tmp5_; -#line 475 "/home/jens/Source/shotwell/src/Page.vala" +#line 488 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = action; -#line 475 "/home/jens/Source/shotwell/src/Page.vala" +#line 488 "/home/jens/Source/shotwell/src/Page.vala" g_action_change_state (_tmp6_, new_state); -#line 473 "/home/jens/Source/shotwell/src/Page.vala" +#line 486 "/home/jens/Source/shotwell/src/Page.vala" _g_variant_unref0 (new_state); -#line 4402 "Page.c" +#line 4524 "Page.c" } void page_on_action_radio (Page* self, GAction* action, GVariant* value) { GAction* _tmp0_ = NULL; GVariant* _tmp1_ = NULL; -#line 478 "/home/jens/Source/shotwell/src/Page.vala" +#line 491 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 478 "/home/jens/Source/shotwell/src/Page.vala" +#line 491 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (G_IS_ACTION (action)); -#line 479 "/home/jens/Source/shotwell/src/Page.vala" +#line 492 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = action; -#line 479 "/home/jens/Source/shotwell/src/Page.vala" +#line 492 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = value; -#line 479 "/home/jens/Source/shotwell/src/Page.vala" +#line 492 "/home/jens/Source/shotwell/src/Page.vala" g_action_change_state (_tmp0_, _tmp1_); -#line 4419 "Page.c" -} - - -static void page_init_ui (Page* self) { -#line 482 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 483 "/home/jens/Source/shotwell/src/Page.vala" - page_add_actions (self); -#line 4428 "Page.c" +#line 4541 "Page.c" } @@ -4435,36 +4548,36 @@ static void page_add_ui (Page* self) { GeeList* _tmp2_ = NULL; gint _tmp3_ = 0; gint _tmp4_ = 0; -#line 486 "/home/jens/Source/shotwell/src/Page.vala" +#line 495 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 488 "/home/jens/Source/shotwell/src/Page.vala" +#line 497 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL, NULL); -#line 488 "/home/jens/Source/shotwell/src/Page.vala" +#line 497 "/home/jens/Source/shotwell/src/Page.vala" ui_filenames = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_LIST, GeeList); -#line 489 "/home/jens/Source/shotwell/src/Page.vala" +#line 498 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = ui_filenames; -#line 489 "/home/jens/Source/shotwell/src/Page.vala" +#line 498 "/home/jens/Source/shotwell/src/Page.vala" page_init_collect_ui_filenames (self, _tmp1_); -#line 490 "/home/jens/Source/shotwell/src/Page.vala" +#line 499 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = ui_filenames; -#line 490 "/home/jens/Source/shotwell/src/Page.vala" +#line 499 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 490 "/home/jens/Source/shotwell/src/Page.vala" +#line 499 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = _tmp3_; -#line 490 "/home/jens/Source/shotwell/src/Page.vala" +#line 499 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp4_ == 0) { -#line 4457 "Page.c" +#line 4570 "Page.c" gchar* _tmp5_ = NULL; gchar* _tmp6_ = NULL; -#line 491 "/home/jens/Source/shotwell/src/Page.vala" +#line 500 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = page_get_page_name (self); -#line 491 "/home/jens/Source/shotwell/src/Page.vala" +#line 500 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = _tmp5_; -#line 491 "/home/jens/Source/shotwell/src/Page.vala" - g_message ("Page.vala:491: No UI file specified for %s", _tmp6_); -#line 491 "/home/jens/Source/shotwell/src/Page.vala" +#line 500 "/home/jens/Source/shotwell/src/Page.vala" + g_message ("Page.vala:500: No UI file specified for %s", _tmp6_); +#line 500 "/home/jens/Source/shotwell/src/Page.vala" _g_free0 (_tmp6_); -#line 4468 "Page.c" +#line 4581 "Page.c" } { GeeList* _ui_filename_list = NULL; @@ -4475,25 +4588,25 @@ static void page_add_ui (Page* self) { gint _tmp10_ = 0; gint _tmp11_ = 0; gint _ui_filename_index = 0; -#line 493 "/home/jens/Source/shotwell/src/Page.vala" +#line 502 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = ui_filenames; -#line 493 "/home/jens/Source/shotwell/src/Page.vala" +#line 502 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = _g_object_ref0 (_tmp7_); -#line 493 "/home/jens/Source/shotwell/src/Page.vala" +#line 502 "/home/jens/Source/shotwell/src/Page.vala" _ui_filename_list = _tmp8_; -#line 493 "/home/jens/Source/shotwell/src/Page.vala" +#line 502 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = _ui_filename_list; -#line 493 "/home/jens/Source/shotwell/src/Page.vala" +#line 502 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 493 "/home/jens/Source/shotwell/src/Page.vala" +#line 502 "/home/jens/Source/shotwell/src/Page.vala" _tmp11_ = _tmp10_; -#line 493 "/home/jens/Source/shotwell/src/Page.vala" +#line 502 "/home/jens/Source/shotwell/src/Page.vala" _ui_filename_size = _tmp11_; -#line 493 "/home/jens/Source/shotwell/src/Page.vala" +#line 502 "/home/jens/Source/shotwell/src/Page.vala" _ui_filename_index = -1; -#line 493 "/home/jens/Source/shotwell/src/Page.vala" +#line 502 "/home/jens/Source/shotwell/src/Page.vala" while (TRUE) { -#line 4497 "Page.c" +#line 4610 "Page.c" gint _tmp12_ = 0; gint _tmp13_ = 0; gint _tmp14_ = 0; @@ -4502,90 +4615,90 @@ static void page_add_ui (Page* self) { gint _tmp16_ = 0; gpointer _tmp17_ = NULL; const gchar* _tmp18_ = NULL; -#line 493 "/home/jens/Source/shotwell/src/Page.vala" +#line 502 "/home/jens/Source/shotwell/src/Page.vala" _tmp12_ = _ui_filename_index; -#line 493 "/home/jens/Source/shotwell/src/Page.vala" +#line 502 "/home/jens/Source/shotwell/src/Page.vala" _ui_filename_index = _tmp12_ + 1; -#line 493 "/home/jens/Source/shotwell/src/Page.vala" +#line 502 "/home/jens/Source/shotwell/src/Page.vala" _tmp13_ = _ui_filename_index; -#line 493 "/home/jens/Source/shotwell/src/Page.vala" +#line 502 "/home/jens/Source/shotwell/src/Page.vala" _tmp14_ = _ui_filename_size; -#line 493 "/home/jens/Source/shotwell/src/Page.vala" +#line 502 "/home/jens/Source/shotwell/src/Page.vala" if (!(_tmp13_ < _tmp14_)) { -#line 493 "/home/jens/Source/shotwell/src/Page.vala" +#line 502 "/home/jens/Source/shotwell/src/Page.vala" break; -#line 4518 "Page.c" +#line 4631 "Page.c" } -#line 493 "/home/jens/Source/shotwell/src/Page.vala" +#line 502 "/home/jens/Source/shotwell/src/Page.vala" _tmp15_ = _ui_filename_list; -#line 493 "/home/jens/Source/shotwell/src/Page.vala" +#line 502 "/home/jens/Source/shotwell/src/Page.vala" _tmp16_ = _ui_filename_index; -#line 493 "/home/jens/Source/shotwell/src/Page.vala" +#line 502 "/home/jens/Source/shotwell/src/Page.vala" _tmp17_ = gee_list_get (_tmp15_, _tmp16_); -#line 493 "/home/jens/Source/shotwell/src/Page.vala" +#line 502 "/home/jens/Source/shotwell/src/Page.vala" ui_filename = (gchar*) _tmp17_; -#line 494 "/home/jens/Source/shotwell/src/Page.vala" +#line 503 "/home/jens/Source/shotwell/src/Page.vala" _tmp18_ = ui_filename; -#line 494 "/home/jens/Source/shotwell/src/Page.vala" +#line 503 "/home/jens/Source/shotwell/src/Page.vala" page_init_load_ui (self, _tmp18_); -#line 493 "/home/jens/Source/shotwell/src/Page.vala" +#line 502 "/home/jens/Source/shotwell/src/Page.vala" _g_free0 (ui_filename); -#line 4534 "Page.c" +#line 4647 "Page.c" } -#line 493 "/home/jens/Source/shotwell/src/Page.vala" +#line 502 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (_ui_filename_list); -#line 4538 "Page.c" +#line 4651 "Page.c" } -#line 486 "/home/jens/Source/shotwell/src/Page.vala" +#line 495 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (ui_filenames); -#line 4542 "Page.c" +#line 4655 "Page.c" } void page_init_toolbar (Page* self, const gchar* path) { const gchar* _tmp0_ = NULL; gchar* _tmp1_ = NULL; -#line 499 "/home/jens/Source/shotwell/src/Page.vala" +#line 508 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 499 "/home/jens/Source/shotwell/src/Page.vala" +#line 508 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (path != NULL); -#line 500 "/home/jens/Source/shotwell/src/Page.vala" +#line 509 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = path; -#line 500 "/home/jens/Source/shotwell/src/Page.vala" +#line 509 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = g_strdup (_tmp0_); -#line 500 "/home/jens/Source/shotwell/src/Page.vala" +#line 509 "/home/jens/Source/shotwell/src/Page.vala" _g_free0 (self->priv->toolbar_path); -#line 500 "/home/jens/Source/shotwell/src/Page.vala" +#line 509 "/home/jens/Source/shotwell/src/Page.vala" self->priv->toolbar_path = _tmp1_; -#line 4561 "Page.c" +#line 4674 "Page.c" } static void _page_on_update_actions_view_collection_items_state_changed (ViewCollection* _sender, GeeIterable* changed, gpointer self) { -#line 515 "/home/jens/Source/shotwell/src/Page.vala" +#line 524 "/home/jens/Source/shotwell/src/Page.vala" page_on_update_actions ((Page*) self); -#line 4568 "Page.c" +#line 4681 "Page.c" } static void _page_on_update_actions_view_collection_selection_group_altered (ViewCollection* _sender, gpointer self) { -#line 516 "/home/jens/Source/shotwell/src/Page.vala" +#line 525 "/home/jens/Source/shotwell/src/Page.vala" page_on_update_actions ((Page*) self); -#line 4575 "Page.c" +#line 4688 "Page.c" } static void _page_on_update_actions_view_collection_items_visibility_changed (ViewCollection* _sender, GeeCollection* changed, gpointer self) { -#line 517 "/home/jens/Source/shotwell/src/Page.vala" +#line 526 "/home/jens/Source/shotwell/src/Page.vala" page_on_update_actions ((Page*) self); -#line 4582 "Page.c" +#line 4695 "Page.c" } static void _page_on_update_actions_data_collection_contents_altered (DataCollection* _sender, GeeIterable* added, GeeIterable* removed, gpointer self) { -#line 518 "/home/jens/Source/shotwell/src/Page.vala" +#line 527 "/home/jens/Source/shotwell/src/Page.vala" page_on_update_actions ((Page*) self); -#line 4589 "Page.c" +#line 4702 "Page.c" } @@ -4613,87 +4726,87 @@ static void page_attach_view_signals (Page* self) { ViewCollection* _tmp18_ = NULL; ViewCollection* _tmp19_ = NULL; ViewCollection* _tmp20_ = NULL; -#line 504 "/home/jens/Source/shotwell/src/Page.vala" +#line 513 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 505 "/home/jens/Source/shotwell/src/Page.vala" +#line 514 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->are_actions_attached; -#line 505 "/home/jens/Source/shotwell/src/Page.vala" +#line 514 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp0_) { -#line 506 "/home/jens/Source/shotwell/src/Page.vala" +#line 515 "/home/jens/Source/shotwell/src/Page.vala" return; -#line 4625 "Page.c" +#line 4738 "Page.c" } -#line 509 "/home/jens/Source/shotwell/src/Page.vala" +#line 518 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = page_get_view (self); -#line 509 "/home/jens/Source/shotwell/src/Page.vala" +#line 518 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = _tmp1_; -#line 509 "/home/jens/Source/shotwell/src/Page.vala" +#line 518 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = view_collection_get_selected_count (_tmp2_); -#line 509 "/home/jens/Source/shotwell/src/Page.vala" +#line 518 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = _tmp3_; -#line 509 "/home/jens/Source/shotwell/src/Page.vala" +#line 518 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp2_); -#line 509 "/home/jens/Source/shotwell/src/Page.vala" +#line 518 "/home/jens/Source/shotwell/src/Page.vala" selected_count = _tmp4_; -#line 510 "/home/jens/Source/shotwell/src/Page.vala" +#line 519 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = page_get_view (self); -#line 510 "/home/jens/Source/shotwell/src/Page.vala" +#line 519 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = _tmp5_; -#line 510 "/home/jens/Source/shotwell/src/Page.vala" +#line 519 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_COLLECTION, DataCollection)); -#line 510 "/home/jens/Source/shotwell/src/Page.vala" +#line 519 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = _tmp7_; -#line 510 "/home/jens/Source/shotwell/src/Page.vala" +#line 519 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp6_); -#line 510 "/home/jens/Source/shotwell/src/Page.vala" +#line 519 "/home/jens/Source/shotwell/src/Page.vala" count = _tmp8_; -#line 511 "/home/jens/Source/shotwell/src/Page.vala" +#line 520 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = selected_count; -#line 511 "/home/jens/Source/shotwell/src/Page.vala" +#line 520 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = count; -#line 511 "/home/jens/Source/shotwell/src/Page.vala" +#line 520 "/home/jens/Source/shotwell/src/Page.vala" page_init_actions (self, _tmp9_, _tmp10_); -#line 512 "/home/jens/Source/shotwell/src/Page.vala" +#line 521 "/home/jens/Source/shotwell/src/Page.vala" _tmp11_ = selected_count; -#line 512 "/home/jens/Source/shotwell/src/Page.vala" +#line 521 "/home/jens/Source/shotwell/src/Page.vala" _tmp12_ = count; -#line 512 "/home/jens/Source/shotwell/src/Page.vala" +#line 521 "/home/jens/Source/shotwell/src/Page.vala" page_update_actions (self, _tmp11_, _tmp12_); -#line 515 "/home/jens/Source/shotwell/src/Page.vala" +#line 524 "/home/jens/Source/shotwell/src/Page.vala" _tmp13_ = page_get_view (self); -#line 515 "/home/jens/Source/shotwell/src/Page.vala" +#line 524 "/home/jens/Source/shotwell/src/Page.vala" _tmp14_ = _tmp13_; -#line 515 "/home/jens/Source/shotwell/src/Page.vala" +#line 524 "/home/jens/Source/shotwell/src/Page.vala" g_signal_connect_object (_tmp14_, "items-state-changed", (GCallback) _page_on_update_actions_view_collection_items_state_changed, self, 0); -#line 515 "/home/jens/Source/shotwell/src/Page.vala" +#line 524 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp14_); -#line 516 "/home/jens/Source/shotwell/src/Page.vala" +#line 525 "/home/jens/Source/shotwell/src/Page.vala" _tmp15_ = page_get_view (self); -#line 516 "/home/jens/Source/shotwell/src/Page.vala" +#line 525 "/home/jens/Source/shotwell/src/Page.vala" _tmp16_ = _tmp15_; -#line 516 "/home/jens/Source/shotwell/src/Page.vala" +#line 525 "/home/jens/Source/shotwell/src/Page.vala" g_signal_connect_object (_tmp16_, "selection-group-altered", (GCallback) _page_on_update_actions_view_collection_selection_group_altered, self, 0); -#line 516 "/home/jens/Source/shotwell/src/Page.vala" +#line 525 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp16_); -#line 517 "/home/jens/Source/shotwell/src/Page.vala" +#line 526 "/home/jens/Source/shotwell/src/Page.vala" _tmp17_ = page_get_view (self); -#line 517 "/home/jens/Source/shotwell/src/Page.vala" +#line 526 "/home/jens/Source/shotwell/src/Page.vala" _tmp18_ = _tmp17_; -#line 517 "/home/jens/Source/shotwell/src/Page.vala" +#line 526 "/home/jens/Source/shotwell/src/Page.vala" g_signal_connect_object (_tmp18_, "items-visibility-changed", (GCallback) _page_on_update_actions_view_collection_items_visibility_changed, self, 0); -#line 517 "/home/jens/Source/shotwell/src/Page.vala" +#line 526 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp18_); -#line 518 "/home/jens/Source/shotwell/src/Page.vala" +#line 527 "/home/jens/Source/shotwell/src/Page.vala" _tmp19_ = page_get_view (self); -#line 518 "/home/jens/Source/shotwell/src/Page.vala" +#line 527 "/home/jens/Source/shotwell/src/Page.vala" _tmp20_ = _tmp19_; -#line 518 "/home/jens/Source/shotwell/src/Page.vala" +#line 527 "/home/jens/Source/shotwell/src/Page.vala" g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_DATA_COLLECTION, DataCollection), "contents-altered", (GCallback) _page_on_update_actions_data_collection_contents_altered, self, 0); -#line 518 "/home/jens/Source/shotwell/src/Page.vala" +#line 527 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp20_); -#line 520 "/home/jens/Source/shotwell/src/Page.vala" +#line 529 "/home/jens/Source/shotwell/src/Page.vala" self->priv->are_actions_attached = TRUE; -#line 4697 "Page.c" +#line 4810 "Page.c" } @@ -4711,149 +4824,158 @@ static void page_detach_view_signals (Page* self) { ViewCollection* _tmp10_ = NULL; ViewCollection* _tmp11_ = NULL; guint _tmp12_ = 0U; -#line 524 "/home/jens/Source/shotwell/src/Page.vala" +#line 533 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 525 "/home/jens/Source/shotwell/src/Page.vala" +#line 534 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->are_actions_attached; -#line 525 "/home/jens/Source/shotwell/src/Page.vala" +#line 534 "/home/jens/Source/shotwell/src/Page.vala" if (!_tmp0_) { -#line 526 "/home/jens/Source/shotwell/src/Page.vala" +#line 535 "/home/jens/Source/shotwell/src/Page.vala" return; -#line 4723 "Page.c" +#line 4836 "Page.c" } -#line 528 "/home/jens/Source/shotwell/src/Page.vala" +#line 537 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = page_get_view (self); -#line 528 "/home/jens/Source/shotwell/src/Page.vala" +#line 537 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = _tmp1_; -#line 528 "/home/jens/Source/shotwell/src/Page.vala" +#line 537 "/home/jens/Source/shotwell/src/Page.vala" g_signal_parse_name ("items-state-changed", TYPE_VIEW_COLLECTION, &_tmp3_, NULL, FALSE); -#line 528 "/home/jens/Source/shotwell/src/Page.vala" +#line 537 "/home/jens/Source/shotwell/src/Page.vala" g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _page_on_update_actions_view_collection_items_state_changed, self); -#line 528 "/home/jens/Source/shotwell/src/Page.vala" +#line 537 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp2_); -#line 529 "/home/jens/Source/shotwell/src/Page.vala" +#line 538 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = page_get_view (self); -#line 529 "/home/jens/Source/shotwell/src/Page.vala" +#line 538 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = _tmp4_; -#line 529 "/home/jens/Source/shotwell/src/Page.vala" +#line 538 "/home/jens/Source/shotwell/src/Page.vala" g_signal_parse_name ("selection-group-altered", TYPE_VIEW_COLLECTION, &_tmp6_, NULL, FALSE); -#line 529 "/home/jens/Source/shotwell/src/Page.vala" +#line 538 "/home/jens/Source/shotwell/src/Page.vala" g_signal_handlers_disconnect_matched (_tmp5_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp6_, 0, NULL, (GCallback) _page_on_update_actions_view_collection_selection_group_altered, self); -#line 529 "/home/jens/Source/shotwell/src/Page.vala" +#line 538 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp5_); -#line 530 "/home/jens/Source/shotwell/src/Page.vala" +#line 539 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = page_get_view (self); -#line 530 "/home/jens/Source/shotwell/src/Page.vala" +#line 539 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = _tmp7_; -#line 530 "/home/jens/Source/shotwell/src/Page.vala" +#line 539 "/home/jens/Source/shotwell/src/Page.vala" g_signal_parse_name ("items-visibility-changed", TYPE_VIEW_COLLECTION, &_tmp9_, NULL, FALSE); -#line 530 "/home/jens/Source/shotwell/src/Page.vala" +#line 539 "/home/jens/Source/shotwell/src/Page.vala" g_signal_handlers_disconnect_matched (_tmp8_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp9_, 0, NULL, (GCallback) _page_on_update_actions_view_collection_items_visibility_changed, self); -#line 530 "/home/jens/Source/shotwell/src/Page.vala" +#line 539 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp8_); -#line 531 "/home/jens/Source/shotwell/src/Page.vala" +#line 540 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = page_get_view (self); -#line 531 "/home/jens/Source/shotwell/src/Page.vala" +#line 540 "/home/jens/Source/shotwell/src/Page.vala" _tmp11_ = _tmp10_; -#line 531 "/home/jens/Source/shotwell/src/Page.vala" +#line 540 "/home/jens/Source/shotwell/src/Page.vala" g_signal_parse_name ("contents-altered", TYPE_DATA_COLLECTION, &_tmp12_, NULL, FALSE); -#line 531 "/home/jens/Source/shotwell/src/Page.vala" +#line 540 "/home/jens/Source/shotwell/src/Page.vala" g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp12_, 0, NULL, (GCallback) _page_on_update_actions_data_collection_contents_altered, self); -#line 531 "/home/jens/Source/shotwell/src/Page.vala" +#line 540 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp11_); -#line 533 "/home/jens/Source/shotwell/src/Page.vala" +#line 542 "/home/jens/Source/shotwell/src/Page.vala" self->priv->are_actions_attached = FALSE; -#line 4767 "Page.c" +#line 4880 "Page.c" } static void _page_on_update_actions_on_idle_one_shot_callback (gpointer self) { -#line 538 "/home/jens/Source/shotwell/src/Page.vala" +#line 547 "/home/jens/Source/shotwell/src/Page.vala" page_on_update_actions_on_idle ((Page*) self); -#line 4774 "Page.c" +#line 4887 "Page.c" } static void page_on_update_actions (Page* self) { OneShotScheduler* _tmp0_ = NULL; OneShotScheduler* _tmp6_ = NULL; -#line 536 "/home/jens/Source/shotwell/src/Page.vala" +#line 545 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 537 "/home/jens/Source/shotwell/src/Page.vala" +#line 546 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->update_actions_scheduler; -#line 537 "/home/jens/Source/shotwell/src/Page.vala" +#line 546 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp0_ == NULL) { -#line 4787 "Page.c" +#line 4900 "Page.c" gchar* _tmp1_ = NULL; gchar* _tmp2_ = NULL; gchar* _tmp3_ = NULL; gchar* _tmp4_ = NULL; OneShotScheduler* _tmp5_ = NULL; -#line 538 "/home/jens/Source/shotwell/src/Page.vala" +#line 547 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = page_get_page_name (self); -#line 538 "/home/jens/Source/shotwell/src/Page.vala" +#line 547 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = _tmp1_; -#line 538 "/home/jens/Source/shotwell/src/Page.vala" +#line 547 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = g_strdup_printf ("Update actions scheduler for %s", _tmp2_); -#line 538 "/home/jens/Source/shotwell/src/Page.vala" +#line 547 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = _tmp3_; -#line 538 "/home/jens/Source/shotwell/src/Page.vala" +#line 547 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = one_shot_scheduler_new (_tmp4_, _page_on_update_actions_on_idle_one_shot_callback, self); -#line 538 "/home/jens/Source/shotwell/src/Page.vala" +#line 547 "/home/jens/Source/shotwell/src/Page.vala" _one_shot_scheduler_unref0 (self->priv->update_actions_scheduler); -#line 538 "/home/jens/Source/shotwell/src/Page.vala" +#line 547 "/home/jens/Source/shotwell/src/Page.vala" self->priv->update_actions_scheduler = _tmp5_; -#line 538 "/home/jens/Source/shotwell/src/Page.vala" +#line 547 "/home/jens/Source/shotwell/src/Page.vala" _g_free0 (_tmp4_); -#line 538 "/home/jens/Source/shotwell/src/Page.vala" +#line 547 "/home/jens/Source/shotwell/src/Page.vala" _g_free0 (_tmp2_); -#line 4811 "Page.c" +#line 4924 "Page.c" } -#line 543 "/home/jens/Source/shotwell/src/Page.vala" +#line 552 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = self->priv->update_actions_scheduler; -#line 543 "/home/jens/Source/shotwell/src/Page.vala" +#line 552 "/home/jens/Source/shotwell/src/Page.vala" one_shot_scheduler_at_priority_idle (_tmp6_, G_PRIORITY_LOW); -#line 4817 "Page.c" +#line 4930 "Page.c" } static void page_on_update_actions_on_idle (Page* self) { gboolean _tmp0_ = FALSE; - ViewCollection* _tmp1_ = NULL; + gboolean _tmp1_ = FALSE; ViewCollection* _tmp2_ = NULL; - gint _tmp3_ = 0; - ViewCollection* _tmp4_ = NULL; + ViewCollection* _tmp3_ = NULL; + gint _tmp4_ = 0; ViewCollection* _tmp5_ = NULL; - gint _tmp6_ = 0; -#line 546 "/home/jens/Source/shotwell/src/Page.vala" + ViewCollection* _tmp6_ = NULL; + gint _tmp7_ = 0; +#line 555 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 547 "/home/jens/Source/shotwell/src/Page.vala" +#line 556 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->is_destroyed; -#line 547 "/home/jens/Source/shotwell/src/Page.vala" +#line 556 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp0_) { -#line 548 "/home/jens/Source/shotwell/src/Page.vala" +#line 557 "/home/jens/Source/shotwell/src/Page.vala" return; -#line 4837 "Page.c" +#line 4951 "Page.c" } -#line 550 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = page_get_view (self); -#line 550 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = _tmp1_; -#line 550 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = view_collection_get_selected_count (_tmp2_); -#line 550 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = page_get_view (self); -#line 550 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = _tmp4_; -#line 550 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_COLLECTION, DataCollection)); -#line 550 "/home/jens/Source/shotwell/src/Page.vala" - page_update_actions (self, _tmp3_, _tmp6_); -#line 550 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp5_); -#line 550 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp2_); -#line 4857 "Page.c" +#line 559 "/home/jens/Source/shotwell/src/Page.vala" + _tmp1_ = self->in_view; +#line 559 "/home/jens/Source/shotwell/src/Page.vala" + if (!_tmp1_) { +#line 560 "/home/jens/Source/shotwell/src/Page.vala" + return; +#line 4959 "Page.c" + } +#line 562 "/home/jens/Source/shotwell/src/Page.vala" + _tmp2_ = page_get_view (self); +#line 562 "/home/jens/Source/shotwell/src/Page.vala" + _tmp3_ = _tmp2_; +#line 562 "/home/jens/Source/shotwell/src/Page.vala" + _tmp4_ = view_collection_get_selected_count (_tmp3_); +#line 562 "/home/jens/Source/shotwell/src/Page.vala" + _tmp5_ = page_get_view (self); +#line 562 "/home/jens/Source/shotwell/src/Page.vala" + _tmp6_ = _tmp5_; +#line 562 "/home/jens/Source/shotwell/src/Page.vala" + _tmp7_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_COLLECTION, DataCollection)); +#line 562 "/home/jens/Source/shotwell/src/Page.vala" + page_update_actions (self, _tmp4_, _tmp7_); +#line 562 "/home/jens/Source/shotwell/src/Page.vala" + _data_collection_unref0 (_tmp6_); +#line 562 "/home/jens/Source/shotwell/src/Page.vala" + _data_collection_unref0 (_tmp3_); +#line 4979 "Page.c" } @@ -4862,39 +4984,39 @@ static void page_init_load_ui (Page* self, const gchar* ui_filename) { const gchar* _tmp0_ = NULL; GFile* _tmp1_ = NULL; GError * _inner_error_ = NULL; -#line 553 "/home/jens/Source/shotwell/src/Page.vala" +#line 565 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 553 "/home/jens/Source/shotwell/src/Page.vala" +#line 565 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (ui_filename != NULL); -#line 554 "/home/jens/Source/shotwell/src/Page.vala" +#line 566 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = ui_filename; -#line 554 "/home/jens/Source/shotwell/src/Page.vala" +#line 566 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = resources_get_ui (_tmp0_); -#line 554 "/home/jens/Source/shotwell/src/Page.vala" +#line 566 "/home/jens/Source/shotwell/src/Page.vala" ui_file = _tmp1_; -#line 4876 "Page.c" +#line 4998 "Page.c" { GtkBuilder* _tmp2_ = NULL; gchar* _tmp3_ = NULL; gchar* _tmp4_ = NULL; -#line 557 "/home/jens/Source/shotwell/src/Page.vala" +#line 569 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = self->builder; -#line 557 "/home/jens/Source/shotwell/src/Page.vala" +#line 569 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = g_file_get_path (ui_file); -#line 557 "/home/jens/Source/shotwell/src/Page.vala" +#line 569 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = _tmp3_; -#line 557 "/home/jens/Source/shotwell/src/Page.vala" +#line 569 "/home/jens/Source/shotwell/src/Page.vala" gtk_builder_add_from_file (_tmp2_, _tmp4_, &_inner_error_); -#line 557 "/home/jens/Source/shotwell/src/Page.vala" +#line 569 "/home/jens/Source/shotwell/src/Page.vala" _g_free0 (_tmp4_); -#line 557 "/home/jens/Source/shotwell/src/Page.vala" +#line 569 "/home/jens/Source/shotwell/src/Page.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4893 "Page.c" - goto __catch251_g_error; +#line 5015 "Page.c" + goto __catch253_g_error; } } - goto __finally251; - __catch251_g_error: + goto __finally253; + __catch253_g_error: { GError* err = NULL; gchar* _tmp5_ = NULL; @@ -4905,72 +5027,72 @@ static void page_init_load_ui (Page* self, const gchar* ui_filename) { gchar* _tmp10_ = NULL; Application* _tmp11_ = NULL; Application* _tmp12_ = NULL; -#line 556 "/home/jens/Source/shotwell/src/Page.vala" +#line 568 "/home/jens/Source/shotwell/src/Page.vala" err = _inner_error_; -#line 556 "/home/jens/Source/shotwell/src/Page.vala" +#line 568 "/home/jens/Source/shotwell/src/Page.vala" _inner_error_ = NULL; -#line 559 "/home/jens/Source/shotwell/src/Page.vala" +#line 571 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = g_file_get_path (ui_file); -#line 559 "/home/jens/Source/shotwell/src/Page.vala" +#line 571 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = _tmp5_; -#line 559 "/home/jens/Source/shotwell/src/Page.vala" +#line 571 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = err; -#line 559 "/home/jens/Source/shotwell/src/Page.vala" +#line 571 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = _tmp7_->message; -#line 559 "/home/jens/Source/shotwell/src/Page.vala" +#line 571 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = g_strdup_printf ("Error loading UI file %s: %s", _tmp6_, _tmp8_); -#line 559 "/home/jens/Source/shotwell/src/Page.vala" +#line 571 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = _tmp9_; -#line 559 "/home/jens/Source/shotwell/src/Page.vala" +#line 571 "/home/jens/Source/shotwell/src/Page.vala" app_window_error_message (_tmp10_, NULL); -#line 559 "/home/jens/Source/shotwell/src/Page.vala" +#line 571 "/home/jens/Source/shotwell/src/Page.vala" _g_free0 (_tmp10_); -#line 559 "/home/jens/Source/shotwell/src/Page.vala" +#line 571 "/home/jens/Source/shotwell/src/Page.vala" _g_free0 (_tmp6_); -#line 561 "/home/jens/Source/shotwell/src/Page.vala" +#line 573 "/home/jens/Source/shotwell/src/Page.vala" _tmp11_ = application_get_instance (); -#line 561 "/home/jens/Source/shotwell/src/Page.vala" +#line 573 "/home/jens/Source/shotwell/src/Page.vala" _tmp12_ = _tmp11_; -#line 561 "/home/jens/Source/shotwell/src/Page.vala" +#line 573 "/home/jens/Source/shotwell/src/Page.vala" application_panic (_tmp12_); -#line 561 "/home/jens/Source/shotwell/src/Page.vala" +#line 573 "/home/jens/Source/shotwell/src/Page.vala" _application_unref0 (_tmp12_); -#line 556 "/home/jens/Source/shotwell/src/Page.vala" +#line 568 "/home/jens/Source/shotwell/src/Page.vala" _g_error_free0 (err); -#line 4941 "Page.c" +#line 5063 "Page.c" } - __finally251: -#line 556 "/home/jens/Source/shotwell/src/Page.vala" + __finally253: +#line 568 "/home/jens/Source/shotwell/src/Page.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 556 "/home/jens/Source/shotwell/src/Page.vala" +#line 568 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (ui_file); -#line 556 "/home/jens/Source/shotwell/src/Page.vala" +#line 568 "/home/jens/Source/shotwell/src/Page.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 556 "/home/jens/Source/shotwell/src/Page.vala" +#line 568 "/home/jens/Source/shotwell/src/Page.vala" g_clear_error (&_inner_error_); -#line 556 "/home/jens/Source/shotwell/src/Page.vala" +#line 568 "/home/jens/Source/shotwell/src/Page.vala" return; -#line 4954 "Page.c" +#line 5076 "Page.c" } -#line 553 "/home/jens/Source/shotwell/src/Page.vala" +#line 565 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (ui_file); -#line 4958 "Page.c" +#line 5080 "Page.c" } static void page_real_init_collect_ui_filenames (Page* self, GeeList* ui_filenames) { -#line 568 "/home/jens/Source/shotwell/src/Page.vala" +#line 580 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (GEE_IS_LIST (ui_filenames)); -#line 4965 "Page.c" +#line 5087 "Page.c" } void page_init_collect_ui_filenames (Page* self, GeeList* ui_filenames) { -#line 568 "/home/jens/Source/shotwell/src/Page.vala" +#line 580 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 568 "/home/jens/Source/shotwell/src/Page.vala" +#line 580 "/home/jens/Source/shotwell/src/Page.vala" PAGE_GET_CLASS (self)->init_collect_ui_filenames (self, ui_filenames); -#line 4974 "Page.c" +#line 5096 "Page.c" } @@ -4979,32 +5101,32 @@ static InjectionGroup** page_real_init_collect_injection_groups (Page* self, int InjectionGroup** _tmp0_ = NULL; InjectionGroup** _tmp1_ = NULL; gint _tmp1__length1 = 0; -#line 574 "/home/jens/Source/shotwell/src/Page.vala" +#line 586 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = g_new0 (InjectionGroup*, 0 + 1); -#line 574 "/home/jens/Source/shotwell/src/Page.vala" +#line 586 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = _tmp0_; -#line 574 "/home/jens/Source/shotwell/src/Page.vala" +#line 586 "/home/jens/Source/shotwell/src/Page.vala" _tmp1__length1 = 0; -#line 574 "/home/jens/Source/shotwell/src/Page.vala" +#line 586 "/home/jens/Source/shotwell/src/Page.vala" if (result_length1) { -#line 574 "/home/jens/Source/shotwell/src/Page.vala" +#line 586 "/home/jens/Source/shotwell/src/Page.vala" *result_length1 = _tmp1__length1; -#line 4993 "Page.c" +#line 5115 "Page.c" } -#line 574 "/home/jens/Source/shotwell/src/Page.vala" +#line 586 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp1_; -#line 574 "/home/jens/Source/shotwell/src/Page.vala" +#line 586 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 4999 "Page.c" +#line 5121 "Page.c" } InjectionGroup** page_init_collect_injection_groups (Page* self, int* result_length1) { -#line 573 "/home/jens/Source/shotwell/src/Page.vala" +#line 585 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), NULL); -#line 573 "/home/jens/Source/shotwell/src/Page.vala" +#line 585 "/home/jens/Source/shotwell/src/Page.vala" return PAGE_GET_CLASS (self)->init_collect_injection_groups (self, result_length1); -#line 5008 "Page.c" +#line 5130 "Page.c" } @@ -5013,11 +5135,11 @@ static void page_real_init_actions (Page* self, gint selected_count, gint count) void page_init_actions (Page* self, gint selected_count, gint count) { -#line 579 "/home/jens/Source/shotwell/src/Page.vala" +#line 591 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 579 "/home/jens/Source/shotwell/src/Page.vala" +#line 591 "/home/jens/Source/shotwell/src/Page.vala" PAGE_GET_CLASS (self)->init_actions (self, selected_count, count); -#line 5021 "Page.c" +#line 5143 "Page.c" } @@ -5026,48 +5148,48 @@ static void page_real_update_actions (Page* self, gint selected_count, gint coun void page_update_actions (Page* self, gint selected_count, gint count) { -#line 585 "/home/jens/Source/shotwell/src/Page.vala" +#line 597 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 585 "/home/jens/Source/shotwell/src/Page.vala" +#line 597 "/home/jens/Source/shotwell/src/Page.vala" PAGE_GET_CLASS (self)->update_actions (self, selected_count, count); -#line 5034 "Page.c" +#line 5156 "Page.c" } static void _page_on_drag_begin_gtk_widget_drag_begin (GtkWidget* _sender, GdkDragContext* context, gpointer self) { -#line 600 "/home/jens/Source/shotwell/src/Page.vala" +#line 612 "/home/jens/Source/shotwell/src/Page.vala" page_on_drag_begin ((Page*) self, context); -#line 5041 "Page.c" +#line 5163 "Page.c" } static void _page_on_drag_data_get_gtk_widget_drag_data_get (GtkWidget* _sender, GdkDragContext* context, GtkSelectionData* selection_data, guint info, guint time_, gpointer self) { -#line 601 "/home/jens/Source/shotwell/src/Page.vala" +#line 613 "/home/jens/Source/shotwell/src/Page.vala" page_on_drag_data_get ((Page*) self, context, selection_data, info, time_); -#line 5048 "Page.c" +#line 5170 "Page.c" } static void _page_on_drag_data_delete_gtk_widget_drag_data_delete (GtkWidget* _sender, GdkDragContext* context, gpointer self) { -#line 602 "/home/jens/Source/shotwell/src/Page.vala" +#line 614 "/home/jens/Source/shotwell/src/Page.vala" page_on_drag_data_delete ((Page*) self, context); -#line 5055 "Page.c" +#line 5177 "Page.c" } static void _page_on_drag_end_gtk_widget_drag_end (GtkWidget* _sender, GdkDragContext* context, gpointer self) { -#line 603 "/home/jens/Source/shotwell/src/Page.vala" +#line 615 "/home/jens/Source/shotwell/src/Page.vala" page_on_drag_end ((Page*) self, context); -#line 5062 "Page.c" +#line 5184 "Page.c" } static gboolean _page_on_drag_failed_gtk_widget_drag_failed (GtkWidget* _sender, GdkDragContext* context, GtkDragResult _result_, gpointer self) { gboolean result; result = page_on_drag_failed ((Page*) self, context, _result_); -#line 604 "/home/jens/Source/shotwell/src/Page.vala" +#line 616 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 5071 "Page.c" +#line 5193 "Page.c" } @@ -5083,53 +5205,53 @@ void page_enable_drag_source (Page* self, GdkDragAction actions, GtkTargetEntry* GtkWidget* _tmp7_ = NULL; GtkWidget* _tmp8_ = NULL; GtkWidget* _tmp9_ = NULL; -#line 590 "/home/jens/Source/shotwell/src/Page.vala" +#line 602 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 591 "/home/jens/Source/shotwell/src/Page.vala" +#line 603 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->dnd_enabled; -#line 591 "/home/jens/Source/shotwell/src/Page.vala" +#line 603 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp0_) { -#line 592 "/home/jens/Source/shotwell/src/Page.vala" +#line 604 "/home/jens/Source/shotwell/src/Page.vala" return; -#line 5095 "Page.c" +#line 5217 "Page.c" } -#line 594 "/home/jens/Source/shotwell/src/Page.vala" +#line 606 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = self->priv->event_source; -#line 594 "/home/jens/Source/shotwell/src/Page.vala" +#line 606 "/home/jens/Source/shotwell/src/Page.vala" _vala_assert (_tmp1_ != NULL, "event_source != null"); -#line 596 "/home/jens/Source/shotwell/src/Page.vala" +#line 608 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = self->priv->event_source; -#line 596 "/home/jens/Source/shotwell/src/Page.vala" +#line 608 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = source_target_entries; -#line 596 "/home/jens/Source/shotwell/src/Page.vala" +#line 608 "/home/jens/Source/shotwell/src/Page.vala" _tmp3__length1 = source_target_entries_length1; -#line 596 "/home/jens/Source/shotwell/src/Page.vala" +#line 608 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = actions; -#line 596 "/home/jens/Source/shotwell/src/Page.vala" +#line 608 "/home/jens/Source/shotwell/src/Page.vala" gtk_drag_source_set (_tmp2_, GDK_BUTTON1_MASK, _tmp3_, _tmp3__length1, _tmp4_); -#line 600 "/home/jens/Source/shotwell/src/Page.vala" +#line 612 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = self->priv->event_source; -#line 600 "/home/jens/Source/shotwell/src/Page.vala" +#line 612 "/home/jens/Source/shotwell/src/Page.vala" g_signal_connect_object (_tmp5_, "drag-begin", (GCallback) _page_on_drag_begin_gtk_widget_drag_begin, self, 0); -#line 601 "/home/jens/Source/shotwell/src/Page.vala" +#line 613 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = self->priv->event_source; -#line 601 "/home/jens/Source/shotwell/src/Page.vala" +#line 613 "/home/jens/Source/shotwell/src/Page.vala" g_signal_connect_object (_tmp6_, "drag-data-get", (GCallback) _page_on_drag_data_get_gtk_widget_drag_data_get, self, 0); -#line 602 "/home/jens/Source/shotwell/src/Page.vala" +#line 614 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = self->priv->event_source; -#line 602 "/home/jens/Source/shotwell/src/Page.vala" +#line 614 "/home/jens/Source/shotwell/src/Page.vala" g_signal_connect_object (_tmp7_, "drag-data-delete", (GCallback) _page_on_drag_data_delete_gtk_widget_drag_data_delete, self, 0); -#line 603 "/home/jens/Source/shotwell/src/Page.vala" +#line 615 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = self->priv->event_source; -#line 603 "/home/jens/Source/shotwell/src/Page.vala" +#line 615 "/home/jens/Source/shotwell/src/Page.vala" g_signal_connect_object (_tmp8_, "drag-end", (GCallback) _page_on_drag_end_gtk_widget_drag_end, self, 0); -#line 604 "/home/jens/Source/shotwell/src/Page.vala" +#line 616 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = self->priv->event_source; -#line 604 "/home/jens/Source/shotwell/src/Page.vala" +#line 616 "/home/jens/Source/shotwell/src/Page.vala" g_signal_connect_object (_tmp9_, "drag-failed", (GCallback) _page_on_drag_failed_gtk_widget_drag_failed, self, 0); -#line 606 "/home/jens/Source/shotwell/src/Page.vala" +#line 618 "/home/jens/Source/shotwell/src/Page.vala" self->priv->dnd_enabled = TRUE; -#line 5133 "Page.c" +#line 5255 "Page.c" } @@ -5147,86 +5269,86 @@ void page_disable_drag_source (Page* self) { GtkWidget* _tmp10_ = NULL; guint _tmp11_ = 0U; GtkWidget* _tmp12_ = NULL; -#line 609 "/home/jens/Source/shotwell/src/Page.vala" +#line 621 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 610 "/home/jens/Source/shotwell/src/Page.vala" +#line 622 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->dnd_enabled; -#line 610 "/home/jens/Source/shotwell/src/Page.vala" +#line 622 "/home/jens/Source/shotwell/src/Page.vala" if (!_tmp0_) { -#line 611 "/home/jens/Source/shotwell/src/Page.vala" +#line 623 "/home/jens/Source/shotwell/src/Page.vala" return; -#line 5159 "Page.c" +#line 5281 "Page.c" } -#line 613 "/home/jens/Source/shotwell/src/Page.vala" +#line 625 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = self->priv->event_source; -#line 613 "/home/jens/Source/shotwell/src/Page.vala" +#line 625 "/home/jens/Source/shotwell/src/Page.vala" _vala_assert (_tmp1_ != NULL, "event_source != null"); -#line 615 "/home/jens/Source/shotwell/src/Page.vala" +#line 627 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = self->priv->event_source; -#line 615 "/home/jens/Source/shotwell/src/Page.vala" +#line 627 "/home/jens/Source/shotwell/src/Page.vala" g_signal_parse_name ("drag-begin", gtk_widget_get_type (), &_tmp3_, NULL, FALSE); -#line 615 "/home/jens/Source/shotwell/src/Page.vala" +#line 627 "/home/jens/Source/shotwell/src/Page.vala" g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _page_on_drag_begin_gtk_widget_drag_begin, self); -#line 616 "/home/jens/Source/shotwell/src/Page.vala" +#line 628 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = self->priv->event_source; -#line 616 "/home/jens/Source/shotwell/src/Page.vala" +#line 628 "/home/jens/Source/shotwell/src/Page.vala" g_signal_parse_name ("drag-data-get", gtk_widget_get_type (), &_tmp5_, NULL, FALSE); -#line 616 "/home/jens/Source/shotwell/src/Page.vala" +#line 628 "/home/jens/Source/shotwell/src/Page.vala" g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _page_on_drag_data_get_gtk_widget_drag_data_get, self); -#line 617 "/home/jens/Source/shotwell/src/Page.vala" +#line 629 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = self->priv->event_source; -#line 617 "/home/jens/Source/shotwell/src/Page.vala" +#line 629 "/home/jens/Source/shotwell/src/Page.vala" g_signal_parse_name ("drag-data-delete", gtk_widget_get_type (), &_tmp7_, NULL, FALSE); -#line 617 "/home/jens/Source/shotwell/src/Page.vala" +#line 629 "/home/jens/Source/shotwell/src/Page.vala" g_signal_handlers_disconnect_matched (_tmp6_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp7_, 0, NULL, (GCallback) _page_on_drag_data_delete_gtk_widget_drag_data_delete, self); -#line 618 "/home/jens/Source/shotwell/src/Page.vala" +#line 630 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = self->priv->event_source; -#line 618 "/home/jens/Source/shotwell/src/Page.vala" +#line 630 "/home/jens/Source/shotwell/src/Page.vala" g_signal_parse_name ("drag-end", gtk_widget_get_type (), &_tmp9_, NULL, FALSE); -#line 618 "/home/jens/Source/shotwell/src/Page.vala" +#line 630 "/home/jens/Source/shotwell/src/Page.vala" g_signal_handlers_disconnect_matched (_tmp8_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp9_, 0, NULL, (GCallback) _page_on_drag_end_gtk_widget_drag_end, self); -#line 619 "/home/jens/Source/shotwell/src/Page.vala" +#line 631 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = self->priv->event_source; -#line 619 "/home/jens/Source/shotwell/src/Page.vala" +#line 631 "/home/jens/Source/shotwell/src/Page.vala" g_signal_parse_name ("drag-failed", gtk_widget_get_type (), &_tmp11_, NULL, FALSE); -#line 619 "/home/jens/Source/shotwell/src/Page.vala" +#line 631 "/home/jens/Source/shotwell/src/Page.vala" g_signal_handlers_disconnect_matched (_tmp10_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp11_, 0, NULL, (GCallback) _page_on_drag_failed_gtk_widget_drag_failed, self); -#line 620 "/home/jens/Source/shotwell/src/Page.vala" +#line 632 "/home/jens/Source/shotwell/src/Page.vala" _tmp12_ = self->priv->event_source; -#line 620 "/home/jens/Source/shotwell/src/Page.vala" +#line 632 "/home/jens/Source/shotwell/src/Page.vala" gtk_drag_source_unset (_tmp12_); -#line 622 "/home/jens/Source/shotwell/src/Page.vala" +#line 634 "/home/jens/Source/shotwell/src/Page.vala" self->priv->dnd_enabled = FALSE; -#line 5201 "Page.c" +#line 5323 "Page.c" } gboolean page_is_dnd_enabled (Page* self) { gboolean result = FALSE; gboolean _tmp0_ = FALSE; -#line 625 "/home/jens/Source/shotwell/src/Page.vala" +#line 637 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 626 "/home/jens/Source/shotwell/src/Page.vala" +#line 638 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->dnd_enabled; -#line 626 "/home/jens/Source/shotwell/src/Page.vala" +#line 638 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp0_; -#line 626 "/home/jens/Source/shotwell/src/Page.vala" +#line 638 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 5216 "Page.c" +#line 5338 "Page.c" } static void page_on_drag_begin (Page* self, GdkDragContext* context) { GdkDragContext* _tmp0_ = NULL; -#line 629 "/home/jens/Source/shotwell/src/Page.vala" +#line 641 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 629 "/home/jens/Source/shotwell/src/Page.vala" +#line 641 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (GDK_IS_DRAG_CONTEXT (context)); -#line 630 "/home/jens/Source/shotwell/src/Page.vala" +#line 642 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = context; -#line 630 "/home/jens/Source/shotwell/src/Page.vala" +#line 642 "/home/jens/Source/shotwell/src/Page.vala" g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "drag-begin", _tmp0_); -#line 5230 "Page.c" +#line 5352 "Page.c" } @@ -5235,72 +5357,72 @@ static void page_on_drag_data_get (Page* self, GdkDragContext* context, GtkSelec GtkSelectionData* _tmp1_ = NULL; guint _tmp2_ = 0U; guint _tmp3_ = 0U; -#line 633 "/home/jens/Source/shotwell/src/Page.vala" +#line 645 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 633 "/home/jens/Source/shotwell/src/Page.vala" +#line 645 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (GDK_IS_DRAG_CONTEXT (context)); -#line 633 "/home/jens/Source/shotwell/src/Page.vala" +#line 645 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (selection_data != NULL); -#line 635 "/home/jens/Source/shotwell/src/Page.vala" +#line 647 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = context; -#line 635 "/home/jens/Source/shotwell/src/Page.vala" +#line 647 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = selection_data; -#line 635 "/home/jens/Source/shotwell/src/Page.vala" +#line 647 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = info; -#line 635 "/home/jens/Source/shotwell/src/Page.vala" +#line 647 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = time; -#line 635 "/home/jens/Source/shotwell/src/Page.vala" +#line 647 "/home/jens/Source/shotwell/src/Page.vala" g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "drag-data-get", _tmp0_, _tmp1_, _tmp2_, _tmp3_); -#line 5255 "Page.c" +#line 5377 "Page.c" } static void page_on_drag_data_delete (Page* self, GdkDragContext* context) { GdkDragContext* _tmp0_ = NULL; -#line 638 "/home/jens/Source/shotwell/src/Page.vala" +#line 650 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 638 "/home/jens/Source/shotwell/src/Page.vala" +#line 650 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (GDK_IS_DRAG_CONTEXT (context)); -#line 639 "/home/jens/Source/shotwell/src/Page.vala" +#line 651 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = context; -#line 639 "/home/jens/Source/shotwell/src/Page.vala" +#line 651 "/home/jens/Source/shotwell/src/Page.vala" g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "drag-data-delete", _tmp0_); -#line 5269 "Page.c" +#line 5391 "Page.c" } static void page_on_drag_end (Page* self, GdkDragContext* context) { GdkDragContext* _tmp0_ = NULL; -#line 642 "/home/jens/Source/shotwell/src/Page.vala" +#line 654 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 642 "/home/jens/Source/shotwell/src/Page.vala" +#line 654 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (GDK_IS_DRAG_CONTEXT (context)); -#line 643 "/home/jens/Source/shotwell/src/Page.vala" +#line 655 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = context; -#line 643 "/home/jens/Source/shotwell/src/Page.vala" +#line 655 "/home/jens/Source/shotwell/src/Page.vala" g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "drag-end", _tmp0_); -#line 5283 "Page.c" +#line 5405 "Page.c" } static gboolean page_real_source_drag_failed (Page* self, GdkDragContext* context, GtkDragResult drag_result) { gboolean result = FALSE; -#line 650 "/home/jens/Source/shotwell/src/Page.vala" +#line 662 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (GDK_IS_DRAG_CONTEXT (context), FALSE); -#line 651 "/home/jens/Source/shotwell/src/Page.vala" +#line 663 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 651 "/home/jens/Source/shotwell/src/Page.vala" +#line 663 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 5295 "Page.c" +#line 5417 "Page.c" } gboolean page_source_drag_failed (Page* self, GdkDragContext* context, GtkDragResult drag_result) { -#line 650 "/home/jens/Source/shotwell/src/Page.vala" +#line 662 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 650 "/home/jens/Source/shotwell/src/Page.vala" +#line 662 "/home/jens/Source/shotwell/src/Page.vala" return PAGE_GET_CLASS (self)->source_drag_failed (self, context, drag_result); -#line 5304 "Page.c" +#line 5426 "Page.c" } @@ -5309,21 +5431,21 @@ static gboolean page_on_drag_failed (Page* self, GdkDragContext* context, GtkDra GdkDragContext* _tmp0_ = NULL; GtkDragResult _tmp1_ = 0; gboolean _tmp2_ = FALSE; -#line 654 "/home/jens/Source/shotwell/src/Page.vala" +#line 666 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 654 "/home/jens/Source/shotwell/src/Page.vala" +#line 666 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (GDK_IS_DRAG_CONTEXT (context), FALSE); -#line 655 "/home/jens/Source/shotwell/src/Page.vala" +#line 667 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = context; -#line 655 "/home/jens/Source/shotwell/src/Page.vala" +#line 667 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = drag_result; -#line 655 "/home/jens/Source/shotwell/src/Page.vala" +#line 667 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = page_source_drag_failed (self, _tmp0_, _tmp1_); -#line 655 "/home/jens/Source/shotwell/src/Page.vala" +#line 667 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp2_; -#line 655 "/home/jens/Source/shotwell/src/Page.vala" +#line 667 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 5327 "Page.c" +#line 5449 "Page.c" } @@ -5352,291 +5474,291 @@ gboolean page_get_event_source_pointer (Page* self, gint* x, gint* y, GdkModifie GdkPoint _tmp20_ = {0}; gint _tmp21_ = 0; gint _tmp22_ = 0; -#line 662 "/home/jens/Source/shotwell/src/Page.vala" +#line 674 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 663 "/home/jens/Source/shotwell/src/Page.vala" +#line 675 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->event_source; -#line 663 "/home/jens/Source/shotwell/src/Page.vala" +#line 675 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp0_ == NULL) { -#line 664 "/home/jens/Source/shotwell/src/Page.vala" +#line 676 "/home/jens/Source/shotwell/src/Page.vala" _vala_x = 0; -#line 665 "/home/jens/Source/shotwell/src/Page.vala" +#line 677 "/home/jens/Source/shotwell/src/Page.vala" _vala_y = 0; -#line 666 "/home/jens/Source/shotwell/src/Page.vala" +#line 678 "/home/jens/Source/shotwell/src/Page.vala" _vala_mask = 0; -#line 668 "/home/jens/Source/shotwell/src/Page.vala" +#line 680 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 668 "/home/jens/Source/shotwell/src/Page.vala" +#line 680 "/home/jens/Source/shotwell/src/Page.vala" if (x) { -#line 668 "/home/jens/Source/shotwell/src/Page.vala" +#line 680 "/home/jens/Source/shotwell/src/Page.vala" *x = _vala_x; -#line 5374 "Page.c" +#line 5496 "Page.c" } -#line 668 "/home/jens/Source/shotwell/src/Page.vala" +#line 680 "/home/jens/Source/shotwell/src/Page.vala" if (y) { -#line 668 "/home/jens/Source/shotwell/src/Page.vala" +#line 680 "/home/jens/Source/shotwell/src/Page.vala" *y = _vala_y; -#line 5380 "Page.c" +#line 5502 "Page.c" } -#line 668 "/home/jens/Source/shotwell/src/Page.vala" +#line 680 "/home/jens/Source/shotwell/src/Page.vala" if (mask) { -#line 668 "/home/jens/Source/shotwell/src/Page.vala" +#line 680 "/home/jens/Source/shotwell/src/Page.vala" *mask = _vala_mask; -#line 5386 "Page.c" +#line 5508 "Page.c" } -#line 668 "/home/jens/Source/shotwell/src/Page.vala" +#line 680 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 5390 "Page.c" +#line 5512 "Page.c" } -#line 671 "/home/jens/Source/shotwell/src/Page.vala" +#line 683 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = self->priv->event_source; -#line 671 "/home/jens/Source/shotwell/src/Page.vala" +#line 683 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = gtk_widget_get_window (_tmp1_); -#line 671 "/home/jens/Source/shotwell/src/Page.vala" +#line 683 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = gdk_display_get_default (); -#line 671 "/home/jens/Source/shotwell/src/Page.vala" +#line 683 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = gdk_display_get_device_manager (_tmp3_); -#line 671 "/home/jens/Source/shotwell/src/Page.vala" +#line 683 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = gdk_device_manager_get_client_pointer (_tmp4_); -#line 671 "/home/jens/Source/shotwell/src/Page.vala" +#line 683 "/home/jens/Source/shotwell/src/Page.vala" gdk_window_get_device_position (_tmp2_, _tmp5_, &_tmp6_, &_tmp7_, &_tmp8_); -#line 671 "/home/jens/Source/shotwell/src/Page.vala" +#line 683 "/home/jens/Source/shotwell/src/Page.vala" _vala_x = _tmp6_; -#line 671 "/home/jens/Source/shotwell/src/Page.vala" +#line 683 "/home/jens/Source/shotwell/src/Page.vala" _vala_y = _tmp7_; -#line 671 "/home/jens/Source/shotwell/src/Page.vala" +#line 683 "/home/jens/Source/shotwell/src/Page.vala" _vala_mask = _tmp8_; -#line 674 "/home/jens/Source/shotwell/src/Page.vala" +#line 686 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = self->priv->last_down; -#line 674 "/home/jens/Source/shotwell/src/Page.vala" +#line 686 "/home/jens/Source/shotwell/src/Page.vala" _tmp11_ = _tmp10_.x; -#line 674 "/home/jens/Source/shotwell/src/Page.vala" +#line 686 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp11_ < 0) { -#line 674 "/home/jens/Source/shotwell/src/Page.vala" +#line 686 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = TRUE; -#line 5418 "Page.c" +#line 5540 "Page.c" } else { GdkPoint _tmp12_ = {0}; gint _tmp13_ = 0; -#line 674 "/home/jens/Source/shotwell/src/Page.vala" +#line 686 "/home/jens/Source/shotwell/src/Page.vala" _tmp12_ = self->priv->last_down; -#line 674 "/home/jens/Source/shotwell/src/Page.vala" +#line 686 "/home/jens/Source/shotwell/src/Page.vala" _tmp13_ = _tmp12_.y; -#line 674 "/home/jens/Source/shotwell/src/Page.vala" +#line 686 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = _tmp13_ < 0; -#line 5428 "Page.c" +#line 5550 "Page.c" } -#line 674 "/home/jens/Source/shotwell/src/Page.vala" +#line 686 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp9_) { -#line 675 "/home/jens/Source/shotwell/src/Page.vala" +#line 687 "/home/jens/Source/shotwell/src/Page.vala" result = TRUE; -#line 675 "/home/jens/Source/shotwell/src/Page.vala" +#line 687 "/home/jens/Source/shotwell/src/Page.vala" if (x) { -#line 675 "/home/jens/Source/shotwell/src/Page.vala" +#line 687 "/home/jens/Source/shotwell/src/Page.vala" *x = _vala_x; -#line 5438 "Page.c" +#line 5560 "Page.c" } -#line 675 "/home/jens/Source/shotwell/src/Page.vala" +#line 687 "/home/jens/Source/shotwell/src/Page.vala" if (y) { -#line 675 "/home/jens/Source/shotwell/src/Page.vala" +#line 687 "/home/jens/Source/shotwell/src/Page.vala" *y = _vala_y; -#line 5444 "Page.c" +#line 5566 "Page.c" } -#line 675 "/home/jens/Source/shotwell/src/Page.vala" +#line 687 "/home/jens/Source/shotwell/src/Page.vala" if (mask) { -#line 675 "/home/jens/Source/shotwell/src/Page.vala" +#line 687 "/home/jens/Source/shotwell/src/Page.vala" *mask = _vala_mask; -#line 5450 "Page.c" +#line 5572 "Page.c" } -#line 675 "/home/jens/Source/shotwell/src/Page.vala" +#line 687 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 5454 "Page.c" +#line 5576 "Page.c" } -#line 681 "/home/jens/Source/shotwell/src/Page.vala" +#line 693 "/home/jens/Source/shotwell/src/Page.vala" _tmp14_ = _vala_x; -#line 681 "/home/jens/Source/shotwell/src/Page.vala" +#line 693 "/home/jens/Source/shotwell/src/Page.vala" _tmp15_ = self->priv->last_down; -#line 681 "/home/jens/Source/shotwell/src/Page.vala" +#line 693 "/home/jens/Source/shotwell/src/Page.vala" _tmp16_ = _tmp15_.x; -#line 681 "/home/jens/Source/shotwell/src/Page.vala" +#line 693 "/home/jens/Source/shotwell/src/Page.vala" _tmp17_ = abs (_tmp14_ - _tmp16_); -#line 681 "/home/jens/Source/shotwell/src/Page.vala" +#line 693 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp17_ >= 0x7FFF) { -#line 5466 "Page.c" +#line 5588 "Page.c" gint _tmp18_ = 0; -#line 682 "/home/jens/Source/shotwell/src/Page.vala" +#line 694 "/home/jens/Source/shotwell/src/Page.vala" _tmp18_ = _vala_x; -#line 682 "/home/jens/Source/shotwell/src/Page.vala" +#line 694 "/home/jens/Source/shotwell/src/Page.vala" _vala_x = _tmp18_ + 0xFFFF; -#line 5472 "Page.c" +#line 5594 "Page.c" } -#line 684 "/home/jens/Source/shotwell/src/Page.vala" +#line 696 "/home/jens/Source/shotwell/src/Page.vala" _tmp19_ = _vala_y; -#line 684 "/home/jens/Source/shotwell/src/Page.vala" +#line 696 "/home/jens/Source/shotwell/src/Page.vala" _tmp20_ = self->priv->last_down; -#line 684 "/home/jens/Source/shotwell/src/Page.vala" +#line 696 "/home/jens/Source/shotwell/src/Page.vala" _tmp21_ = _tmp20_.y; -#line 684 "/home/jens/Source/shotwell/src/Page.vala" +#line 696 "/home/jens/Source/shotwell/src/Page.vala" _tmp22_ = abs (_tmp19_ - _tmp21_); -#line 684 "/home/jens/Source/shotwell/src/Page.vala" +#line 696 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp22_ >= 0x7FFF) { -#line 5484 "Page.c" +#line 5606 "Page.c" gint _tmp23_ = 0; -#line 685 "/home/jens/Source/shotwell/src/Page.vala" +#line 697 "/home/jens/Source/shotwell/src/Page.vala" _tmp23_ = _vala_y; -#line 685 "/home/jens/Source/shotwell/src/Page.vala" +#line 697 "/home/jens/Source/shotwell/src/Page.vala" _vala_y = _tmp23_ + 0xFFFF; -#line 5490 "Page.c" +#line 5612 "Page.c" } -#line 687 "/home/jens/Source/shotwell/src/Page.vala" +#line 699 "/home/jens/Source/shotwell/src/Page.vala" result = TRUE; -#line 687 "/home/jens/Source/shotwell/src/Page.vala" +#line 699 "/home/jens/Source/shotwell/src/Page.vala" if (x) { -#line 687 "/home/jens/Source/shotwell/src/Page.vala" +#line 699 "/home/jens/Source/shotwell/src/Page.vala" *x = _vala_x; -#line 5498 "Page.c" +#line 5620 "Page.c" } -#line 687 "/home/jens/Source/shotwell/src/Page.vala" +#line 699 "/home/jens/Source/shotwell/src/Page.vala" if (y) { -#line 687 "/home/jens/Source/shotwell/src/Page.vala" +#line 699 "/home/jens/Source/shotwell/src/Page.vala" *y = _vala_y; -#line 5504 "Page.c" +#line 5626 "Page.c" } -#line 687 "/home/jens/Source/shotwell/src/Page.vala" +#line 699 "/home/jens/Source/shotwell/src/Page.vala" if (mask) { -#line 687 "/home/jens/Source/shotwell/src/Page.vala" +#line 699 "/home/jens/Source/shotwell/src/Page.vala" *mask = _vala_mask; -#line 5510 "Page.c" +#line 5632 "Page.c" } -#line 687 "/home/jens/Source/shotwell/src/Page.vala" +#line 699 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 5514 "Page.c" +#line 5636 "Page.c" } static gboolean page_real_on_left_click (Page* self, GdkEventButton* event) { gboolean result = FALSE; -#line 690 "/home/jens/Source/shotwell/src/Page.vala" +#line 702 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 691 "/home/jens/Source/shotwell/src/Page.vala" +#line 703 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 691 "/home/jens/Source/shotwell/src/Page.vala" +#line 703 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 5526 "Page.c" +#line 5648 "Page.c" } gboolean page_on_left_click (Page* self, GdkEventButton* event) { -#line 690 "/home/jens/Source/shotwell/src/Page.vala" +#line 702 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 690 "/home/jens/Source/shotwell/src/Page.vala" +#line 702 "/home/jens/Source/shotwell/src/Page.vala" return PAGE_GET_CLASS (self)->on_left_click (self, event); -#line 5535 "Page.c" +#line 5657 "Page.c" } static gboolean page_real_on_middle_click (Page* self, GdkEventButton* event) { gboolean result = FALSE; -#line 694 "/home/jens/Source/shotwell/src/Page.vala" +#line 706 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 695 "/home/jens/Source/shotwell/src/Page.vala" +#line 707 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 695 "/home/jens/Source/shotwell/src/Page.vala" +#line 707 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 5547 "Page.c" +#line 5669 "Page.c" } gboolean page_on_middle_click (Page* self, GdkEventButton* event) { -#line 694 "/home/jens/Source/shotwell/src/Page.vala" +#line 706 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 694 "/home/jens/Source/shotwell/src/Page.vala" +#line 706 "/home/jens/Source/shotwell/src/Page.vala" return PAGE_GET_CLASS (self)->on_middle_click (self, event); -#line 5556 "Page.c" +#line 5678 "Page.c" } static gboolean page_real_on_right_click (Page* self, GdkEventButton* event) { gboolean result = FALSE; -#line 698 "/home/jens/Source/shotwell/src/Page.vala" +#line 710 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 699 "/home/jens/Source/shotwell/src/Page.vala" +#line 711 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 699 "/home/jens/Source/shotwell/src/Page.vala" +#line 711 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 5568 "Page.c" +#line 5690 "Page.c" } gboolean page_on_right_click (Page* self, GdkEventButton* event) { -#line 698 "/home/jens/Source/shotwell/src/Page.vala" +#line 710 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 698 "/home/jens/Source/shotwell/src/Page.vala" +#line 710 "/home/jens/Source/shotwell/src/Page.vala" return PAGE_GET_CLASS (self)->on_right_click (self, event); -#line 5577 "Page.c" +#line 5699 "Page.c" } static gboolean page_real_on_left_released (Page* self, GdkEventButton* event) { gboolean result = FALSE; -#line 702 "/home/jens/Source/shotwell/src/Page.vala" +#line 714 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 703 "/home/jens/Source/shotwell/src/Page.vala" +#line 715 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 703 "/home/jens/Source/shotwell/src/Page.vala" +#line 715 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 5589 "Page.c" +#line 5711 "Page.c" } gboolean page_on_left_released (Page* self, GdkEventButton* event) { -#line 702 "/home/jens/Source/shotwell/src/Page.vala" +#line 714 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 702 "/home/jens/Source/shotwell/src/Page.vala" +#line 714 "/home/jens/Source/shotwell/src/Page.vala" return PAGE_GET_CLASS (self)->on_left_released (self, event); -#line 5598 "Page.c" +#line 5720 "Page.c" } static gboolean page_real_on_middle_released (Page* self, GdkEventButton* event) { gboolean result = FALSE; -#line 706 "/home/jens/Source/shotwell/src/Page.vala" +#line 718 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 707 "/home/jens/Source/shotwell/src/Page.vala" +#line 719 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 707 "/home/jens/Source/shotwell/src/Page.vala" +#line 719 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 5610 "Page.c" +#line 5732 "Page.c" } gboolean page_on_middle_released (Page* self, GdkEventButton* event) { -#line 706 "/home/jens/Source/shotwell/src/Page.vala" +#line 718 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 706 "/home/jens/Source/shotwell/src/Page.vala" +#line 718 "/home/jens/Source/shotwell/src/Page.vala" return PAGE_GET_CLASS (self)->on_middle_released (self, event); -#line 5619 "Page.c" +#line 5741 "Page.c" } static gboolean page_real_on_right_released (Page* self, GdkEventButton* event) { gboolean result = FALSE; -#line 710 "/home/jens/Source/shotwell/src/Page.vala" +#line 722 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 711 "/home/jens/Source/shotwell/src/Page.vala" +#line 723 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 711 "/home/jens/Source/shotwell/src/Page.vala" +#line 723 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 5631 "Page.c" +#line 5753 "Page.c" } gboolean page_on_right_released (Page* self, GdkEventButton* event) { -#line 710 "/home/jens/Source/shotwell/src/Page.vala" +#line 722 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 710 "/home/jens/Source/shotwell/src/Page.vala" +#line 722 "/home/jens/Source/shotwell/src/Page.vala" return PAGE_GET_CLASS (self)->on_right_released (self, event); -#line 5640 "Page.c" +#line 5762 "Page.c" } @@ -5644,19 +5766,19 @@ static gboolean page_on_button_pressed_internal (Page* self, GdkEventButton* eve gboolean result = FALSE; GdkEventButton* _tmp0_ = NULL; guint _tmp1_ = 0U; -#line 714 "/home/jens/Source/shotwell/src/Page.vala" +#line 726 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 714 "/home/jens/Source/shotwell/src/Page.vala" +#line 726 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 715 "/home/jens/Source/shotwell/src/Page.vala" +#line 727 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = event; -#line 715 "/home/jens/Source/shotwell/src/Page.vala" +#line 727 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = _tmp0_->button; -#line 715 "/home/jens/Source/shotwell/src/Page.vala" +#line 727 "/home/jens/Source/shotwell/src/Page.vala" switch (_tmp1_) { -#line 715 "/home/jens/Source/shotwell/src/Page.vala" +#line 727 "/home/jens/Source/shotwell/src/Page.vala" case 1: -#line 5660 "Page.c" +#line 5782 "Page.c" { GtkWidget* _tmp2_ = NULL; GdkEventButton* _tmp4_ = NULL; @@ -5665,79 +5787,79 @@ static gboolean page_on_button_pressed_internal (Page* self, GdkEventButton* eve gdouble _tmp7_ = 0.0; GdkEventButton* _tmp8_ = NULL; gboolean _tmp9_ = FALSE; -#line 717 "/home/jens/Source/shotwell/src/Page.vala" +#line 729 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = self->priv->event_source; -#line 717 "/home/jens/Source/shotwell/src/Page.vala" +#line 729 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp2_ != NULL) { -#line 5673 "Page.c" +#line 5795 "Page.c" GtkWidget* _tmp3_ = NULL; -#line 718 "/home/jens/Source/shotwell/src/Page.vala" +#line 730 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = self->priv->event_source; -#line 718 "/home/jens/Source/shotwell/src/Page.vala" +#line 730 "/home/jens/Source/shotwell/src/Page.vala" gtk_widget_grab_focus (_tmp3_); -#line 5679 "Page.c" +#line 5801 "Page.c" } -#line 721 "/home/jens/Source/shotwell/src/Page.vala" +#line 733 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = event; -#line 721 "/home/jens/Source/shotwell/src/Page.vala" +#line 733 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = _tmp4_->x; -#line 721 "/home/jens/Source/shotwell/src/Page.vala" +#line 733 "/home/jens/Source/shotwell/src/Page.vala" self->priv->last_down.x = (gint) _tmp5_; -#line 722 "/home/jens/Source/shotwell/src/Page.vala" +#line 734 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = event; -#line 722 "/home/jens/Source/shotwell/src/Page.vala" +#line 734 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = _tmp6_->y; -#line 722 "/home/jens/Source/shotwell/src/Page.vala" +#line 734 "/home/jens/Source/shotwell/src/Page.vala" self->priv->last_down.y = (gint) _tmp7_; -#line 724 "/home/jens/Source/shotwell/src/Page.vala" +#line 736 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = event; -#line 724 "/home/jens/Source/shotwell/src/Page.vala" +#line 736 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = page_on_left_click (self, _tmp8_); -#line 724 "/home/jens/Source/shotwell/src/Page.vala" +#line 736 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp9_; -#line 724 "/home/jens/Source/shotwell/src/Page.vala" +#line 736 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 5701 "Page.c" +#line 5823 "Page.c" } -#line 715 "/home/jens/Source/shotwell/src/Page.vala" +#line 727 "/home/jens/Source/shotwell/src/Page.vala" case 2: -#line 5705 "Page.c" +#line 5827 "Page.c" { GdkEventButton* _tmp10_ = NULL; gboolean _tmp11_ = FALSE; -#line 727 "/home/jens/Source/shotwell/src/Page.vala" +#line 739 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = event; -#line 727 "/home/jens/Source/shotwell/src/Page.vala" +#line 739 "/home/jens/Source/shotwell/src/Page.vala" _tmp11_ = page_on_middle_click (self, _tmp10_); -#line 727 "/home/jens/Source/shotwell/src/Page.vala" +#line 739 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp11_; -#line 727 "/home/jens/Source/shotwell/src/Page.vala" +#line 739 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 5717 "Page.c" +#line 5839 "Page.c" } -#line 715 "/home/jens/Source/shotwell/src/Page.vala" +#line 727 "/home/jens/Source/shotwell/src/Page.vala" case 3: -#line 5721 "Page.c" +#line 5843 "Page.c" { GdkEventButton* _tmp12_ = NULL; gboolean _tmp13_ = FALSE; -#line 730 "/home/jens/Source/shotwell/src/Page.vala" +#line 742 "/home/jens/Source/shotwell/src/Page.vala" _tmp12_ = event; -#line 730 "/home/jens/Source/shotwell/src/Page.vala" +#line 742 "/home/jens/Source/shotwell/src/Page.vala" _tmp13_ = page_on_right_click (self, _tmp12_); -#line 730 "/home/jens/Source/shotwell/src/Page.vala" +#line 742 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp13_; -#line 730 "/home/jens/Source/shotwell/src/Page.vala" +#line 742 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 5733 "Page.c" +#line 5855 "Page.c" } default: { -#line 733 "/home/jens/Source/shotwell/src/Page.vala" +#line 745 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 733 "/home/jens/Source/shotwell/src/Page.vala" +#line 745 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 5741 "Page.c" +#line 5863 "Page.c" } } } @@ -5747,78 +5869,78 @@ static gboolean page_on_button_released_internal (Page* self, GdkEventButton* ev gboolean result = FALSE; GdkEventButton* _tmp0_ = NULL; guint _tmp1_ = 0U; -#line 737 "/home/jens/Source/shotwell/src/Page.vala" +#line 749 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 737 "/home/jens/Source/shotwell/src/Page.vala" +#line 749 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 738 "/home/jens/Source/shotwell/src/Page.vala" +#line 750 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = event; -#line 738 "/home/jens/Source/shotwell/src/Page.vala" +#line 750 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = _tmp0_->button; -#line 738 "/home/jens/Source/shotwell/src/Page.vala" +#line 750 "/home/jens/Source/shotwell/src/Page.vala" switch (_tmp1_) { -#line 738 "/home/jens/Source/shotwell/src/Page.vala" +#line 750 "/home/jens/Source/shotwell/src/Page.vala" case 1: -#line 5763 "Page.c" +#line 5885 "Page.c" { GdkPoint _tmp2_ = {0}; GdkEventButton* _tmp3_ = NULL; gboolean _tmp4_ = FALSE; -#line 741 "/home/jens/Source/shotwell/src/Page.vala" +#line 753 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_.x = -1; -#line 741 "/home/jens/Source/shotwell/src/Page.vala" +#line 753 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_.y = -1; -#line 741 "/home/jens/Source/shotwell/src/Page.vala" +#line 753 "/home/jens/Source/shotwell/src/Page.vala" self->priv->last_down = _tmp2_; -#line 743 "/home/jens/Source/shotwell/src/Page.vala" +#line 755 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = event; -#line 743 "/home/jens/Source/shotwell/src/Page.vala" +#line 755 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = page_on_left_released (self, _tmp3_); -#line 743 "/home/jens/Source/shotwell/src/Page.vala" +#line 755 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp4_; -#line 743 "/home/jens/Source/shotwell/src/Page.vala" +#line 755 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 5782 "Page.c" +#line 5904 "Page.c" } -#line 738 "/home/jens/Source/shotwell/src/Page.vala" +#line 750 "/home/jens/Source/shotwell/src/Page.vala" case 2: -#line 5786 "Page.c" +#line 5908 "Page.c" { GdkEventButton* _tmp5_ = NULL; gboolean _tmp6_ = FALSE; -#line 746 "/home/jens/Source/shotwell/src/Page.vala" +#line 758 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = event; -#line 746 "/home/jens/Source/shotwell/src/Page.vala" +#line 758 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = page_on_middle_released (self, _tmp5_); -#line 746 "/home/jens/Source/shotwell/src/Page.vala" +#line 758 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp6_; -#line 746 "/home/jens/Source/shotwell/src/Page.vala" +#line 758 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 5798 "Page.c" +#line 5920 "Page.c" } -#line 738 "/home/jens/Source/shotwell/src/Page.vala" +#line 750 "/home/jens/Source/shotwell/src/Page.vala" case 3: -#line 5802 "Page.c" +#line 5924 "Page.c" { GdkEventButton* _tmp7_ = NULL; gboolean _tmp8_ = FALSE; -#line 749 "/home/jens/Source/shotwell/src/Page.vala" +#line 761 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = event; -#line 749 "/home/jens/Source/shotwell/src/Page.vala" +#line 761 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = page_on_right_released (self, _tmp7_); -#line 749 "/home/jens/Source/shotwell/src/Page.vala" +#line 761 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp8_; -#line 749 "/home/jens/Source/shotwell/src/Page.vala" +#line 761 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 5814 "Page.c" +#line 5936 "Page.c" } default: { -#line 752 "/home/jens/Source/shotwell/src/Page.vala" +#line 764 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 752 "/home/jens/Source/shotwell/src/Page.vala" +#line 764 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 5822 "Page.c" +#line 5944 "Page.c" } } } @@ -5826,195 +5948,195 @@ static gboolean page_on_button_released_internal (Page* self, GdkEventButton* ev static gboolean page_real_on_ctrl_pressed (Page* self, GdkEventKey* event) { gboolean result = FALSE; -#line 757 "/home/jens/Source/shotwell/src/Page.vala" +#line 769 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 757 "/home/jens/Source/shotwell/src/Page.vala" +#line 769 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 5834 "Page.c" +#line 5956 "Page.c" } gboolean page_on_ctrl_pressed (Page* self, GdkEventKey* event) { -#line 756 "/home/jens/Source/shotwell/src/Page.vala" +#line 768 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 756 "/home/jens/Source/shotwell/src/Page.vala" +#line 768 "/home/jens/Source/shotwell/src/Page.vala" return PAGE_GET_CLASS (self)->on_ctrl_pressed (self, event); -#line 5843 "Page.c" +#line 5965 "Page.c" } static gboolean page_real_on_ctrl_released (Page* self, GdkEventKey* event) { gboolean result = FALSE; -#line 761 "/home/jens/Source/shotwell/src/Page.vala" +#line 773 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 761 "/home/jens/Source/shotwell/src/Page.vala" +#line 773 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 5853 "Page.c" +#line 5975 "Page.c" } gboolean page_on_ctrl_released (Page* self, GdkEventKey* event) { -#line 760 "/home/jens/Source/shotwell/src/Page.vala" +#line 772 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 760 "/home/jens/Source/shotwell/src/Page.vala" +#line 772 "/home/jens/Source/shotwell/src/Page.vala" return PAGE_GET_CLASS (self)->on_ctrl_released (self, event); -#line 5862 "Page.c" +#line 5984 "Page.c" } static gboolean page_real_on_alt_pressed (Page* self, GdkEventKey* event) { gboolean result = FALSE; -#line 765 "/home/jens/Source/shotwell/src/Page.vala" +#line 777 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 765 "/home/jens/Source/shotwell/src/Page.vala" +#line 777 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 5872 "Page.c" +#line 5994 "Page.c" } gboolean page_on_alt_pressed (Page* self, GdkEventKey* event) { -#line 764 "/home/jens/Source/shotwell/src/Page.vala" +#line 776 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 764 "/home/jens/Source/shotwell/src/Page.vala" +#line 776 "/home/jens/Source/shotwell/src/Page.vala" return PAGE_GET_CLASS (self)->on_alt_pressed (self, event); -#line 5881 "Page.c" +#line 6003 "Page.c" } static gboolean page_real_on_alt_released (Page* self, GdkEventKey* event) { gboolean result = FALSE; -#line 769 "/home/jens/Source/shotwell/src/Page.vala" +#line 781 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 769 "/home/jens/Source/shotwell/src/Page.vala" +#line 781 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 5891 "Page.c" +#line 6013 "Page.c" } gboolean page_on_alt_released (Page* self, GdkEventKey* event) { -#line 768 "/home/jens/Source/shotwell/src/Page.vala" +#line 780 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 768 "/home/jens/Source/shotwell/src/Page.vala" +#line 780 "/home/jens/Source/shotwell/src/Page.vala" return PAGE_GET_CLASS (self)->on_alt_released (self, event); -#line 5900 "Page.c" +#line 6022 "Page.c" } static gboolean page_real_on_shift_pressed (Page* self, GdkEventKey* event) { gboolean result = FALSE; -#line 773 "/home/jens/Source/shotwell/src/Page.vala" +#line 785 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 773 "/home/jens/Source/shotwell/src/Page.vala" +#line 785 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 5910 "Page.c" +#line 6032 "Page.c" } gboolean page_on_shift_pressed (Page* self, GdkEventKey* event) { -#line 772 "/home/jens/Source/shotwell/src/Page.vala" +#line 784 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 772 "/home/jens/Source/shotwell/src/Page.vala" +#line 784 "/home/jens/Source/shotwell/src/Page.vala" return PAGE_GET_CLASS (self)->on_shift_pressed (self, event); -#line 5919 "Page.c" +#line 6041 "Page.c" } static gboolean page_real_on_shift_released (Page* self, GdkEventKey* event) { gboolean result = FALSE; -#line 777 "/home/jens/Source/shotwell/src/Page.vala" +#line 789 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 777 "/home/jens/Source/shotwell/src/Page.vala" +#line 789 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 5929 "Page.c" +#line 6051 "Page.c" } gboolean page_on_shift_released (Page* self, GdkEventKey* event) { -#line 776 "/home/jens/Source/shotwell/src/Page.vala" +#line 788 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 776 "/home/jens/Source/shotwell/src/Page.vala" +#line 788 "/home/jens/Source/shotwell/src/Page.vala" return PAGE_GET_CLASS (self)->on_shift_released (self, event); -#line 5938 "Page.c" +#line 6060 "Page.c" } static gboolean page_real_on_super_pressed (Page* self, GdkEventKey* event) { gboolean result = FALSE; -#line 781 "/home/jens/Source/shotwell/src/Page.vala" +#line 793 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 781 "/home/jens/Source/shotwell/src/Page.vala" +#line 793 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 5948 "Page.c" +#line 6070 "Page.c" } gboolean page_on_super_pressed (Page* self, GdkEventKey* event) { -#line 780 "/home/jens/Source/shotwell/src/Page.vala" +#line 792 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 780 "/home/jens/Source/shotwell/src/Page.vala" +#line 792 "/home/jens/Source/shotwell/src/Page.vala" return PAGE_GET_CLASS (self)->on_super_pressed (self, event); -#line 5957 "Page.c" +#line 6079 "Page.c" } static gboolean page_real_on_super_released (Page* self, GdkEventKey* event) { gboolean result = FALSE; -#line 785 "/home/jens/Source/shotwell/src/Page.vala" +#line 797 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 785 "/home/jens/Source/shotwell/src/Page.vala" +#line 797 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 5967 "Page.c" +#line 6089 "Page.c" } gboolean page_on_super_released (Page* self, GdkEventKey* event) { -#line 784 "/home/jens/Source/shotwell/src/Page.vala" +#line 796 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 784 "/home/jens/Source/shotwell/src/Page.vala" +#line 796 "/home/jens/Source/shotwell/src/Page.vala" return PAGE_GET_CLASS (self)->on_super_released (self, event); -#line 5976 "Page.c" +#line 6098 "Page.c" } static gboolean page_real_on_app_key_pressed (Page* self, GdkEventKey* event) { gboolean result = FALSE; -#line 788 "/home/jens/Source/shotwell/src/Page.vala" +#line 800 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 789 "/home/jens/Source/shotwell/src/Page.vala" +#line 801 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 789 "/home/jens/Source/shotwell/src/Page.vala" +#line 801 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 5988 "Page.c" +#line 6110 "Page.c" } gboolean page_on_app_key_pressed (Page* self, GdkEventKey* event) { -#line 788 "/home/jens/Source/shotwell/src/Page.vala" +#line 800 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 788 "/home/jens/Source/shotwell/src/Page.vala" +#line 800 "/home/jens/Source/shotwell/src/Page.vala" return PAGE_GET_CLASS (self)->on_app_key_pressed (self, event); -#line 5997 "Page.c" +#line 6119 "Page.c" } static gboolean page_real_on_app_key_released (Page* self, GdkEventKey* event) { gboolean result = FALSE; -#line 792 "/home/jens/Source/shotwell/src/Page.vala" +#line 804 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 793 "/home/jens/Source/shotwell/src/Page.vala" +#line 805 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 793 "/home/jens/Source/shotwell/src/Page.vala" +#line 805 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 6009 "Page.c" +#line 6131 "Page.c" } gboolean page_on_app_key_released (Page* self, GdkEventKey* event) { -#line 792 "/home/jens/Source/shotwell/src/Page.vala" +#line 804 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 792 "/home/jens/Source/shotwell/src/Page.vala" +#line 804 "/home/jens/Source/shotwell/src/Page.vala" return PAGE_GET_CLASS (self)->on_app_key_released (self, event); -#line 6018 "Page.c" +#line 6140 "Page.c" } @@ -6033,248 +6155,248 @@ gboolean page_notify_app_key_pressed (Page* self, GdkEventKey* event) { const gchar* _tmp6_ = NULL; const gchar* _tmp7_ = NULL; GQuark _tmp9_ = 0U; -#line 802 "/home/jens/Source/shotwell/src/Page.vala" +#line 814 "/home/jens/Source/shotwell/src/Page.vala" static GQuark _tmp8_label0 = 0; -#line 802 "/home/jens/Source/shotwell/src/Page.vala" +#line 814 "/home/jens/Source/shotwell/src/Page.vala" static GQuark _tmp8_label1 = 0; -#line 802 "/home/jens/Source/shotwell/src/Page.vala" +#line 814 "/home/jens/Source/shotwell/src/Page.vala" static GQuark _tmp8_label2 = 0; -#line 802 "/home/jens/Source/shotwell/src/Page.vala" +#line 814 "/home/jens/Source/shotwell/src/Page.vala" static GQuark _tmp8_label3 = 0; -#line 802 "/home/jens/Source/shotwell/src/Page.vala" +#line 814 "/home/jens/Source/shotwell/src/Page.vala" static GQuark _tmp8_label4 = 0; -#line 802 "/home/jens/Source/shotwell/src/Page.vala" +#line 814 "/home/jens/Source/shotwell/src/Page.vala" static GQuark _tmp8_label5 = 0; -#line 802 "/home/jens/Source/shotwell/src/Page.vala" +#line 814 "/home/jens/Source/shotwell/src/Page.vala" static GQuark _tmp8_label6 = 0; -#line 802 "/home/jens/Source/shotwell/src/Page.vala" +#line 814 "/home/jens/Source/shotwell/src/Page.vala" static GQuark _tmp8_label7 = 0; -#line 802 "/home/jens/Source/shotwell/src/Page.vala" +#line 814 "/home/jens/Source/shotwell/src/Page.vala" static GQuark _tmp8_label8 = 0; -#line 802 "/home/jens/Source/shotwell/src/Page.vala" +#line 814 "/home/jens/Source/shotwell/src/Page.vala" static GQuark _tmp8_label9 = 0; -#line 6057 "Page.c" +#line 6179 "Page.c" GdkEventKey* _tmp30_ = NULL; gboolean _tmp31_ = FALSE; -#line 796 "/home/jens/Source/shotwell/src/Page.vala" +#line 808 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 796 "/home/jens/Source/shotwell/src/Page.vala" +#line 808 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 799 "/home/jens/Source/shotwell/src/Page.vala" +#line 811 "/home/jens/Source/shotwell/src/Page.vala" page_get_modifiers (self, &_tmp0_, &_tmp1_, &_tmp2_, &_tmp3_); -#line 799 "/home/jens/Source/shotwell/src/Page.vala" +#line 811 "/home/jens/Source/shotwell/src/Page.vala" ctrl_currently_pressed = _tmp0_; -#line 799 "/home/jens/Source/shotwell/src/Page.vala" +#line 811 "/home/jens/Source/shotwell/src/Page.vala" alt_currently_pressed = _tmp1_; -#line 799 "/home/jens/Source/shotwell/src/Page.vala" +#line 811 "/home/jens/Source/shotwell/src/Page.vala" shift_currently_pressed = _tmp2_; -#line 799 "/home/jens/Source/shotwell/src/Page.vala" +#line 811 "/home/jens/Source/shotwell/src/Page.vala" super_currently_pressed = _tmp3_; -#line 802 "/home/jens/Source/shotwell/src/Page.vala" +#line 814 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = event; -#line 802 "/home/jens/Source/shotwell/src/Page.vala" +#line 814 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = _tmp4_->keyval; -#line 802 "/home/jens/Source/shotwell/src/Page.vala" +#line 814 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = gdk_keyval_name (_tmp5_); -#line 802 "/home/jens/Source/shotwell/src/Page.vala" +#line 814 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = _tmp6_; -#line 802 "/home/jens/Source/shotwell/src/Page.vala" +#line 814 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = (NULL == _tmp7_) ? 0 : g_quark_from_string (_tmp7_); -#line 802 "/home/jens/Source/shotwell/src/Page.vala" +#line 814 "/home/jens/Source/shotwell/src/Page.vala" if ((_tmp9_ == ((0 != _tmp8_label0) ? _tmp8_label0 : (_tmp8_label0 = g_quark_from_static_string ("Control_L")))) || (_tmp9_ == ((0 != _tmp8_label1) ? _tmp8_label1 : (_tmp8_label1 = g_quark_from_static_string ("Control_R"))))) { -#line 802 "/home/jens/Source/shotwell/src/Page.vala" +#line 814 "/home/jens/Source/shotwell/src/Page.vala" switch (0) { -#line 6088 "Page.c" +#line 6210 "Page.c" default: { gboolean _tmp10_ = FALSE; gboolean _tmp11_ = FALSE; GdkEventKey* _tmp13_ = NULL; gboolean _tmp14_ = FALSE; -#line 805 "/home/jens/Source/shotwell/src/Page.vala" +#line 817 "/home/jens/Source/shotwell/src/Page.vala" _tmp11_ = ctrl_currently_pressed; -#line 805 "/home/jens/Source/shotwell/src/Page.vala" +#line 817 "/home/jens/Source/shotwell/src/Page.vala" if (!_tmp11_) { -#line 805 "/home/jens/Source/shotwell/src/Page.vala" +#line 817 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = TRUE; -#line 6101 "Page.c" +#line 6223 "Page.c" } else { gboolean _tmp12_ = FALSE; -#line 805 "/home/jens/Source/shotwell/src/Page.vala" +#line 817 "/home/jens/Source/shotwell/src/Page.vala" _tmp12_ = self->priv->ctrl_pressed; -#line 805 "/home/jens/Source/shotwell/src/Page.vala" +#line 817 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = _tmp12_; -#line 6108 "Page.c" +#line 6230 "Page.c" } -#line 805 "/home/jens/Source/shotwell/src/Page.vala" +#line 817 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp10_) { -#line 806 "/home/jens/Source/shotwell/src/Page.vala" +#line 818 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 806 "/home/jens/Source/shotwell/src/Page.vala" +#line 818 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 6116 "Page.c" +#line 6238 "Page.c" } -#line 808 "/home/jens/Source/shotwell/src/Page.vala" +#line 820 "/home/jens/Source/shotwell/src/Page.vala" self->priv->ctrl_pressed = TRUE; -#line 810 "/home/jens/Source/shotwell/src/Page.vala" +#line 822 "/home/jens/Source/shotwell/src/Page.vala" _tmp13_ = event; -#line 810 "/home/jens/Source/shotwell/src/Page.vala" +#line 822 "/home/jens/Source/shotwell/src/Page.vala" _tmp14_ = page_on_ctrl_pressed (self, _tmp13_); -#line 810 "/home/jens/Source/shotwell/src/Page.vala" +#line 822 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp14_; -#line 810 "/home/jens/Source/shotwell/src/Page.vala" +#line 822 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 6128 "Page.c" +#line 6250 "Page.c" } } } else if ((((_tmp9_ == ((0 != _tmp8_label2) ? _tmp8_label2 : (_tmp8_label2 = g_quark_from_static_string ("Meta_L")))) || (_tmp9_ == ((0 != _tmp8_label3) ? _tmp8_label3 : (_tmp8_label3 = g_quark_from_static_string ("Meta_R"))))) || (_tmp9_ == ((0 != _tmp8_label4) ? _tmp8_label4 : (_tmp8_label4 = g_quark_from_static_string ("Alt_L"))))) || (_tmp9_ == ((0 != _tmp8_label5) ? _tmp8_label5 : (_tmp8_label5 = g_quark_from_static_string ("Alt_R"))))) { -#line 802 "/home/jens/Source/shotwell/src/Page.vala" +#line 814 "/home/jens/Source/shotwell/src/Page.vala" switch (0) { -#line 6134 "Page.c" +#line 6256 "Page.c" default: { gboolean _tmp15_ = FALSE; gboolean _tmp16_ = FALSE; GdkEventKey* _tmp18_ = NULL; gboolean _tmp19_ = FALSE; -#line 816 "/home/jens/Source/shotwell/src/Page.vala" +#line 828 "/home/jens/Source/shotwell/src/Page.vala" _tmp16_ = alt_currently_pressed; -#line 816 "/home/jens/Source/shotwell/src/Page.vala" +#line 828 "/home/jens/Source/shotwell/src/Page.vala" if (!_tmp16_) { -#line 816 "/home/jens/Source/shotwell/src/Page.vala" +#line 828 "/home/jens/Source/shotwell/src/Page.vala" _tmp15_ = TRUE; -#line 6147 "Page.c" +#line 6269 "Page.c" } else { gboolean _tmp17_ = FALSE; -#line 816 "/home/jens/Source/shotwell/src/Page.vala" +#line 828 "/home/jens/Source/shotwell/src/Page.vala" _tmp17_ = self->priv->alt_pressed; -#line 816 "/home/jens/Source/shotwell/src/Page.vala" +#line 828 "/home/jens/Source/shotwell/src/Page.vala" _tmp15_ = _tmp17_; -#line 6154 "Page.c" +#line 6276 "Page.c" } -#line 816 "/home/jens/Source/shotwell/src/Page.vala" +#line 828 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp15_) { -#line 817 "/home/jens/Source/shotwell/src/Page.vala" +#line 829 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 817 "/home/jens/Source/shotwell/src/Page.vala" +#line 829 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 6162 "Page.c" +#line 6284 "Page.c" } -#line 819 "/home/jens/Source/shotwell/src/Page.vala" +#line 831 "/home/jens/Source/shotwell/src/Page.vala" self->priv->alt_pressed = TRUE; -#line 821 "/home/jens/Source/shotwell/src/Page.vala" +#line 833 "/home/jens/Source/shotwell/src/Page.vala" _tmp18_ = event; -#line 821 "/home/jens/Source/shotwell/src/Page.vala" +#line 833 "/home/jens/Source/shotwell/src/Page.vala" _tmp19_ = page_on_alt_pressed (self, _tmp18_); -#line 821 "/home/jens/Source/shotwell/src/Page.vala" +#line 833 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp19_; -#line 821 "/home/jens/Source/shotwell/src/Page.vala" +#line 833 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 6174 "Page.c" +#line 6296 "Page.c" } } } else if ((_tmp9_ == ((0 != _tmp8_label6) ? _tmp8_label6 : (_tmp8_label6 = g_quark_from_static_string ("Shift_L")))) || (_tmp9_ == ((0 != _tmp8_label7) ? _tmp8_label7 : (_tmp8_label7 = g_quark_from_static_string ("Shift_R"))))) { -#line 802 "/home/jens/Source/shotwell/src/Page.vala" +#line 814 "/home/jens/Source/shotwell/src/Page.vala" switch (0) { -#line 6180 "Page.c" +#line 6302 "Page.c" default: { gboolean _tmp20_ = FALSE; gboolean _tmp21_ = FALSE; GdkEventKey* _tmp23_ = NULL; gboolean _tmp24_ = FALSE; -#line 825 "/home/jens/Source/shotwell/src/Page.vala" +#line 837 "/home/jens/Source/shotwell/src/Page.vala" _tmp21_ = shift_currently_pressed; -#line 825 "/home/jens/Source/shotwell/src/Page.vala" +#line 837 "/home/jens/Source/shotwell/src/Page.vala" if (!_tmp21_) { -#line 825 "/home/jens/Source/shotwell/src/Page.vala" +#line 837 "/home/jens/Source/shotwell/src/Page.vala" _tmp20_ = TRUE; -#line 6193 "Page.c" +#line 6315 "Page.c" } else { gboolean _tmp22_ = FALSE; -#line 825 "/home/jens/Source/shotwell/src/Page.vala" +#line 837 "/home/jens/Source/shotwell/src/Page.vala" _tmp22_ = self->priv->shift_pressed; -#line 825 "/home/jens/Source/shotwell/src/Page.vala" +#line 837 "/home/jens/Source/shotwell/src/Page.vala" _tmp20_ = _tmp22_; -#line 6200 "Page.c" +#line 6322 "Page.c" } -#line 825 "/home/jens/Source/shotwell/src/Page.vala" +#line 837 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp20_) { -#line 826 "/home/jens/Source/shotwell/src/Page.vala" +#line 838 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 826 "/home/jens/Source/shotwell/src/Page.vala" +#line 838 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 6208 "Page.c" +#line 6330 "Page.c" } -#line 828 "/home/jens/Source/shotwell/src/Page.vala" +#line 840 "/home/jens/Source/shotwell/src/Page.vala" self->priv->shift_pressed = TRUE; -#line 830 "/home/jens/Source/shotwell/src/Page.vala" +#line 842 "/home/jens/Source/shotwell/src/Page.vala" _tmp23_ = event; -#line 830 "/home/jens/Source/shotwell/src/Page.vala" +#line 842 "/home/jens/Source/shotwell/src/Page.vala" _tmp24_ = page_on_shift_pressed (self, _tmp23_); -#line 830 "/home/jens/Source/shotwell/src/Page.vala" +#line 842 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp24_; -#line 830 "/home/jens/Source/shotwell/src/Page.vala" +#line 842 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 6220 "Page.c" +#line 6342 "Page.c" } } } else if ((_tmp9_ == ((0 != _tmp8_label8) ? _tmp8_label8 : (_tmp8_label8 = g_quark_from_static_string ("Super_L")))) || (_tmp9_ == ((0 != _tmp8_label9) ? _tmp8_label9 : (_tmp8_label9 = g_quark_from_static_string ("Super_R"))))) { -#line 802 "/home/jens/Source/shotwell/src/Page.vala" +#line 814 "/home/jens/Source/shotwell/src/Page.vala" switch (0) { -#line 6226 "Page.c" +#line 6348 "Page.c" default: { gboolean _tmp25_ = FALSE; gboolean _tmp26_ = FALSE; GdkEventKey* _tmp28_ = NULL; gboolean _tmp29_ = FALSE; -#line 834 "/home/jens/Source/shotwell/src/Page.vala" +#line 846 "/home/jens/Source/shotwell/src/Page.vala" _tmp26_ = super_currently_pressed; -#line 834 "/home/jens/Source/shotwell/src/Page.vala" +#line 846 "/home/jens/Source/shotwell/src/Page.vala" if (!_tmp26_) { -#line 834 "/home/jens/Source/shotwell/src/Page.vala" +#line 846 "/home/jens/Source/shotwell/src/Page.vala" _tmp25_ = TRUE; -#line 6239 "Page.c" +#line 6361 "Page.c" } else { gboolean _tmp27_ = FALSE; -#line 834 "/home/jens/Source/shotwell/src/Page.vala" +#line 846 "/home/jens/Source/shotwell/src/Page.vala" _tmp27_ = self->priv->super_pressed; -#line 834 "/home/jens/Source/shotwell/src/Page.vala" +#line 846 "/home/jens/Source/shotwell/src/Page.vala" _tmp25_ = _tmp27_; -#line 6246 "Page.c" +#line 6368 "Page.c" } -#line 834 "/home/jens/Source/shotwell/src/Page.vala" +#line 846 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp25_) { -#line 835 "/home/jens/Source/shotwell/src/Page.vala" +#line 847 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 835 "/home/jens/Source/shotwell/src/Page.vala" +#line 847 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 6254 "Page.c" +#line 6376 "Page.c" } -#line 837 "/home/jens/Source/shotwell/src/Page.vala" +#line 849 "/home/jens/Source/shotwell/src/Page.vala" self->priv->super_pressed = TRUE; -#line 839 "/home/jens/Source/shotwell/src/Page.vala" +#line 851 "/home/jens/Source/shotwell/src/Page.vala" _tmp28_ = event; -#line 839 "/home/jens/Source/shotwell/src/Page.vala" +#line 851 "/home/jens/Source/shotwell/src/Page.vala" _tmp29_ = page_on_super_pressed (self, _tmp28_); -#line 839 "/home/jens/Source/shotwell/src/Page.vala" +#line 851 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp29_; -#line 839 "/home/jens/Source/shotwell/src/Page.vala" +#line 851 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 6266 "Page.c" +#line 6388 "Page.c" } } } -#line 842 "/home/jens/Source/shotwell/src/Page.vala" +#line 854 "/home/jens/Source/shotwell/src/Page.vala" _tmp30_ = event; -#line 842 "/home/jens/Source/shotwell/src/Page.vala" +#line 854 "/home/jens/Source/shotwell/src/Page.vala" _tmp31_ = page_on_app_key_pressed (self, _tmp30_); -#line 842 "/home/jens/Source/shotwell/src/Page.vala" +#line 854 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp31_; -#line 842 "/home/jens/Source/shotwell/src/Page.vala" +#line 854 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 6278 "Page.c" +#line 6400 "Page.c" } @@ -6293,406 +6415,406 @@ gboolean page_notify_app_key_released (Page* self, GdkEventKey* event) { const gchar* _tmp6_ = NULL; const gchar* _tmp7_ = NULL; GQuark _tmp9_ = 0U; -#line 851 "/home/jens/Source/shotwell/src/Page.vala" +#line 863 "/home/jens/Source/shotwell/src/Page.vala" static GQuark _tmp8_label0 = 0; -#line 851 "/home/jens/Source/shotwell/src/Page.vala" +#line 863 "/home/jens/Source/shotwell/src/Page.vala" static GQuark _tmp8_label1 = 0; -#line 851 "/home/jens/Source/shotwell/src/Page.vala" +#line 863 "/home/jens/Source/shotwell/src/Page.vala" static GQuark _tmp8_label2 = 0; -#line 851 "/home/jens/Source/shotwell/src/Page.vala" +#line 863 "/home/jens/Source/shotwell/src/Page.vala" static GQuark _tmp8_label3 = 0; -#line 851 "/home/jens/Source/shotwell/src/Page.vala" +#line 863 "/home/jens/Source/shotwell/src/Page.vala" static GQuark _tmp8_label4 = 0; -#line 851 "/home/jens/Source/shotwell/src/Page.vala" +#line 863 "/home/jens/Source/shotwell/src/Page.vala" static GQuark _tmp8_label5 = 0; -#line 851 "/home/jens/Source/shotwell/src/Page.vala" +#line 863 "/home/jens/Source/shotwell/src/Page.vala" static GQuark _tmp8_label6 = 0; -#line 851 "/home/jens/Source/shotwell/src/Page.vala" +#line 863 "/home/jens/Source/shotwell/src/Page.vala" static GQuark _tmp8_label7 = 0; -#line 851 "/home/jens/Source/shotwell/src/Page.vala" +#line 863 "/home/jens/Source/shotwell/src/Page.vala" static GQuark _tmp8_label8 = 0; -#line 851 "/home/jens/Source/shotwell/src/Page.vala" +#line 863 "/home/jens/Source/shotwell/src/Page.vala" static GQuark _tmp8_label9 = 0; -#line 6317 "Page.c" +#line 6439 "Page.c" GdkEventKey* _tmp30_ = NULL; gboolean _tmp31_ = FALSE; -#line 845 "/home/jens/Source/shotwell/src/Page.vala" +#line 857 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 845 "/home/jens/Source/shotwell/src/Page.vala" +#line 857 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 848 "/home/jens/Source/shotwell/src/Page.vala" +#line 860 "/home/jens/Source/shotwell/src/Page.vala" page_get_modifiers (self, &_tmp0_, &_tmp1_, &_tmp2_, &_tmp3_); -#line 848 "/home/jens/Source/shotwell/src/Page.vala" +#line 860 "/home/jens/Source/shotwell/src/Page.vala" ctrl_currently_pressed = _tmp0_; -#line 848 "/home/jens/Source/shotwell/src/Page.vala" +#line 860 "/home/jens/Source/shotwell/src/Page.vala" alt_currently_pressed = _tmp1_; -#line 848 "/home/jens/Source/shotwell/src/Page.vala" +#line 860 "/home/jens/Source/shotwell/src/Page.vala" shift_currently_pressed = _tmp2_; -#line 848 "/home/jens/Source/shotwell/src/Page.vala" +#line 860 "/home/jens/Source/shotwell/src/Page.vala" super_currently_pressed = _tmp3_; -#line 851 "/home/jens/Source/shotwell/src/Page.vala" +#line 863 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = event; -#line 851 "/home/jens/Source/shotwell/src/Page.vala" +#line 863 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = _tmp4_->keyval; -#line 851 "/home/jens/Source/shotwell/src/Page.vala" +#line 863 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = gdk_keyval_name (_tmp5_); -#line 851 "/home/jens/Source/shotwell/src/Page.vala" +#line 863 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = _tmp6_; -#line 851 "/home/jens/Source/shotwell/src/Page.vala" +#line 863 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = (NULL == _tmp7_) ? 0 : g_quark_from_string (_tmp7_); -#line 851 "/home/jens/Source/shotwell/src/Page.vala" +#line 863 "/home/jens/Source/shotwell/src/Page.vala" if ((_tmp9_ == ((0 != _tmp8_label0) ? _tmp8_label0 : (_tmp8_label0 = g_quark_from_static_string ("Control_L")))) || (_tmp9_ == ((0 != _tmp8_label1) ? _tmp8_label1 : (_tmp8_label1 = g_quark_from_static_string ("Control_R"))))) { -#line 851 "/home/jens/Source/shotwell/src/Page.vala" +#line 863 "/home/jens/Source/shotwell/src/Page.vala" switch (0) { -#line 6348 "Page.c" +#line 6470 "Page.c" default: { gboolean _tmp10_ = FALSE; gboolean _tmp11_ = FALSE; GdkEventKey* _tmp13_ = NULL; gboolean _tmp14_ = FALSE; -#line 854 "/home/jens/Source/shotwell/src/Page.vala" +#line 866 "/home/jens/Source/shotwell/src/Page.vala" _tmp11_ = ctrl_currently_pressed; -#line 854 "/home/jens/Source/shotwell/src/Page.vala" +#line 866 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp11_) { -#line 854 "/home/jens/Source/shotwell/src/Page.vala" +#line 866 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = TRUE; -#line 6361 "Page.c" +#line 6483 "Page.c" } else { gboolean _tmp12_ = FALSE; -#line 854 "/home/jens/Source/shotwell/src/Page.vala" +#line 866 "/home/jens/Source/shotwell/src/Page.vala" _tmp12_ = self->priv->ctrl_pressed; -#line 854 "/home/jens/Source/shotwell/src/Page.vala" +#line 866 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = !_tmp12_; -#line 6368 "Page.c" +#line 6490 "Page.c" } -#line 854 "/home/jens/Source/shotwell/src/Page.vala" +#line 866 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp10_) { -#line 855 "/home/jens/Source/shotwell/src/Page.vala" +#line 867 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 855 "/home/jens/Source/shotwell/src/Page.vala" +#line 867 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 6376 "Page.c" +#line 6498 "Page.c" } -#line 857 "/home/jens/Source/shotwell/src/Page.vala" +#line 869 "/home/jens/Source/shotwell/src/Page.vala" self->priv->ctrl_pressed = FALSE; -#line 859 "/home/jens/Source/shotwell/src/Page.vala" +#line 871 "/home/jens/Source/shotwell/src/Page.vala" _tmp13_ = event; -#line 859 "/home/jens/Source/shotwell/src/Page.vala" +#line 871 "/home/jens/Source/shotwell/src/Page.vala" _tmp14_ = page_on_ctrl_released (self, _tmp13_); -#line 859 "/home/jens/Source/shotwell/src/Page.vala" +#line 871 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp14_; -#line 859 "/home/jens/Source/shotwell/src/Page.vala" +#line 871 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 6388 "Page.c" +#line 6510 "Page.c" } } } else if ((((_tmp9_ == ((0 != _tmp8_label2) ? _tmp8_label2 : (_tmp8_label2 = g_quark_from_static_string ("Meta_L")))) || (_tmp9_ == ((0 != _tmp8_label3) ? _tmp8_label3 : (_tmp8_label3 = g_quark_from_static_string ("Meta_R"))))) || (_tmp9_ == ((0 != _tmp8_label4) ? _tmp8_label4 : (_tmp8_label4 = g_quark_from_static_string ("Alt_L"))))) || (_tmp9_ == ((0 != _tmp8_label5) ? _tmp8_label5 : (_tmp8_label5 = g_quark_from_static_string ("Alt_R"))))) { -#line 851 "/home/jens/Source/shotwell/src/Page.vala" +#line 863 "/home/jens/Source/shotwell/src/Page.vala" switch (0) { -#line 6394 "Page.c" +#line 6516 "Page.c" default: { gboolean _tmp15_ = FALSE; gboolean _tmp16_ = FALSE; GdkEventKey* _tmp18_ = NULL; gboolean _tmp19_ = FALSE; -#line 865 "/home/jens/Source/shotwell/src/Page.vala" +#line 877 "/home/jens/Source/shotwell/src/Page.vala" _tmp16_ = alt_currently_pressed; -#line 865 "/home/jens/Source/shotwell/src/Page.vala" +#line 877 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp16_) { -#line 865 "/home/jens/Source/shotwell/src/Page.vala" +#line 877 "/home/jens/Source/shotwell/src/Page.vala" _tmp15_ = TRUE; -#line 6407 "Page.c" +#line 6529 "Page.c" } else { gboolean _tmp17_ = FALSE; -#line 865 "/home/jens/Source/shotwell/src/Page.vala" +#line 877 "/home/jens/Source/shotwell/src/Page.vala" _tmp17_ = self->priv->alt_pressed; -#line 865 "/home/jens/Source/shotwell/src/Page.vala" +#line 877 "/home/jens/Source/shotwell/src/Page.vala" _tmp15_ = !_tmp17_; -#line 6414 "Page.c" +#line 6536 "Page.c" } -#line 865 "/home/jens/Source/shotwell/src/Page.vala" +#line 877 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp15_) { -#line 866 "/home/jens/Source/shotwell/src/Page.vala" +#line 878 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 866 "/home/jens/Source/shotwell/src/Page.vala" +#line 878 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 6422 "Page.c" +#line 6544 "Page.c" } -#line 868 "/home/jens/Source/shotwell/src/Page.vala" +#line 880 "/home/jens/Source/shotwell/src/Page.vala" self->priv->alt_pressed = FALSE; -#line 870 "/home/jens/Source/shotwell/src/Page.vala" +#line 882 "/home/jens/Source/shotwell/src/Page.vala" _tmp18_ = event; -#line 870 "/home/jens/Source/shotwell/src/Page.vala" +#line 882 "/home/jens/Source/shotwell/src/Page.vala" _tmp19_ = page_on_alt_released (self, _tmp18_); -#line 870 "/home/jens/Source/shotwell/src/Page.vala" +#line 882 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp19_; -#line 870 "/home/jens/Source/shotwell/src/Page.vala" +#line 882 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 6434 "Page.c" +#line 6556 "Page.c" } } } else if ((_tmp9_ == ((0 != _tmp8_label6) ? _tmp8_label6 : (_tmp8_label6 = g_quark_from_static_string ("Shift_L")))) || (_tmp9_ == ((0 != _tmp8_label7) ? _tmp8_label7 : (_tmp8_label7 = g_quark_from_static_string ("Shift_R"))))) { -#line 851 "/home/jens/Source/shotwell/src/Page.vala" +#line 863 "/home/jens/Source/shotwell/src/Page.vala" switch (0) { -#line 6440 "Page.c" +#line 6562 "Page.c" default: { gboolean _tmp20_ = FALSE; gboolean _tmp21_ = FALSE; GdkEventKey* _tmp23_ = NULL; gboolean _tmp24_ = FALSE; -#line 874 "/home/jens/Source/shotwell/src/Page.vala" +#line 886 "/home/jens/Source/shotwell/src/Page.vala" _tmp21_ = shift_currently_pressed; -#line 874 "/home/jens/Source/shotwell/src/Page.vala" +#line 886 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp21_) { -#line 874 "/home/jens/Source/shotwell/src/Page.vala" +#line 886 "/home/jens/Source/shotwell/src/Page.vala" _tmp20_ = TRUE; -#line 6453 "Page.c" +#line 6575 "Page.c" } else { gboolean _tmp22_ = FALSE; -#line 874 "/home/jens/Source/shotwell/src/Page.vala" +#line 886 "/home/jens/Source/shotwell/src/Page.vala" _tmp22_ = self->priv->shift_pressed; -#line 874 "/home/jens/Source/shotwell/src/Page.vala" +#line 886 "/home/jens/Source/shotwell/src/Page.vala" _tmp20_ = !_tmp22_; -#line 6460 "Page.c" +#line 6582 "Page.c" } -#line 874 "/home/jens/Source/shotwell/src/Page.vala" +#line 886 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp20_) { -#line 875 "/home/jens/Source/shotwell/src/Page.vala" +#line 887 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 875 "/home/jens/Source/shotwell/src/Page.vala" +#line 887 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 6468 "Page.c" +#line 6590 "Page.c" } -#line 877 "/home/jens/Source/shotwell/src/Page.vala" +#line 889 "/home/jens/Source/shotwell/src/Page.vala" self->priv->shift_pressed = FALSE; -#line 879 "/home/jens/Source/shotwell/src/Page.vala" +#line 891 "/home/jens/Source/shotwell/src/Page.vala" _tmp23_ = event; -#line 879 "/home/jens/Source/shotwell/src/Page.vala" +#line 891 "/home/jens/Source/shotwell/src/Page.vala" _tmp24_ = page_on_shift_released (self, _tmp23_); -#line 879 "/home/jens/Source/shotwell/src/Page.vala" +#line 891 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp24_; -#line 879 "/home/jens/Source/shotwell/src/Page.vala" +#line 891 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 6480 "Page.c" +#line 6602 "Page.c" } } } else if ((_tmp9_ == ((0 != _tmp8_label8) ? _tmp8_label8 : (_tmp8_label8 = g_quark_from_static_string ("Super_L")))) || (_tmp9_ == ((0 != _tmp8_label9) ? _tmp8_label9 : (_tmp8_label9 = g_quark_from_static_string ("Super_R"))))) { -#line 851 "/home/jens/Source/shotwell/src/Page.vala" +#line 863 "/home/jens/Source/shotwell/src/Page.vala" switch (0) { -#line 6486 "Page.c" +#line 6608 "Page.c" default: { gboolean _tmp25_ = FALSE; gboolean _tmp26_ = FALSE; GdkEventKey* _tmp28_ = NULL; gboolean _tmp29_ = FALSE; -#line 883 "/home/jens/Source/shotwell/src/Page.vala" +#line 895 "/home/jens/Source/shotwell/src/Page.vala" _tmp26_ = super_currently_pressed; -#line 883 "/home/jens/Source/shotwell/src/Page.vala" +#line 895 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp26_) { -#line 883 "/home/jens/Source/shotwell/src/Page.vala" +#line 895 "/home/jens/Source/shotwell/src/Page.vala" _tmp25_ = TRUE; -#line 6499 "Page.c" +#line 6621 "Page.c" } else { gboolean _tmp27_ = FALSE; -#line 883 "/home/jens/Source/shotwell/src/Page.vala" +#line 895 "/home/jens/Source/shotwell/src/Page.vala" _tmp27_ = self->priv->super_pressed; -#line 883 "/home/jens/Source/shotwell/src/Page.vala" +#line 895 "/home/jens/Source/shotwell/src/Page.vala" _tmp25_ = !_tmp27_; -#line 6506 "Page.c" +#line 6628 "Page.c" } -#line 883 "/home/jens/Source/shotwell/src/Page.vala" +#line 895 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp25_) { -#line 884 "/home/jens/Source/shotwell/src/Page.vala" +#line 896 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 884 "/home/jens/Source/shotwell/src/Page.vala" +#line 896 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 6514 "Page.c" +#line 6636 "Page.c" } -#line 886 "/home/jens/Source/shotwell/src/Page.vala" +#line 898 "/home/jens/Source/shotwell/src/Page.vala" self->priv->super_pressed = FALSE; -#line 888 "/home/jens/Source/shotwell/src/Page.vala" +#line 900 "/home/jens/Source/shotwell/src/Page.vala" _tmp28_ = event; -#line 888 "/home/jens/Source/shotwell/src/Page.vala" +#line 900 "/home/jens/Source/shotwell/src/Page.vala" _tmp29_ = page_on_super_released (self, _tmp28_); -#line 888 "/home/jens/Source/shotwell/src/Page.vala" +#line 900 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp29_; -#line 888 "/home/jens/Source/shotwell/src/Page.vala" +#line 900 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 6526 "Page.c" +#line 6648 "Page.c" } } } -#line 891 "/home/jens/Source/shotwell/src/Page.vala" +#line 903 "/home/jens/Source/shotwell/src/Page.vala" _tmp30_ = event; -#line 891 "/home/jens/Source/shotwell/src/Page.vala" +#line 903 "/home/jens/Source/shotwell/src/Page.vala" _tmp31_ = page_on_app_key_released (self, _tmp30_); -#line 891 "/home/jens/Source/shotwell/src/Page.vala" +#line 903 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp31_; -#line 891 "/home/jens/Source/shotwell/src/Page.vala" +#line 903 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 6538 "Page.c" +#line 6660 "Page.c" } gboolean page_notify_app_focus_in (Page* self, GdkEventFocus* event) { gboolean result = FALSE; -#line 894 "/home/jens/Source/shotwell/src/Page.vala" +#line 906 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 894 "/home/jens/Source/shotwell/src/Page.vala" +#line 906 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 895 "/home/jens/Source/shotwell/src/Page.vala" +#line 907 "/home/jens/Source/shotwell/src/Page.vala" page_update_modifiers (self); -#line 897 "/home/jens/Source/shotwell/src/Page.vala" +#line 909 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 897 "/home/jens/Source/shotwell/src/Page.vala" +#line 909 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 6554 "Page.c" +#line 6676 "Page.c" } gboolean page_notify_app_focus_out (Page* self, GdkEventFocus* event) { gboolean result = FALSE; -#line 900 "/home/jens/Source/shotwell/src/Page.vala" +#line 912 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 900 "/home/jens/Source/shotwell/src/Page.vala" +#line 912 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 901 "/home/jens/Source/shotwell/src/Page.vala" +#line 913 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 901 "/home/jens/Source/shotwell/src/Page.vala" +#line 913 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 6568 "Page.c" +#line 6690 "Page.c" } static void page_real_on_move (Page* self, GdkRectangle* rect) { -#line 904 "/home/jens/Source/shotwell/src/Page.vala" +#line 916 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (rect != NULL); -#line 6575 "Page.c" +#line 6697 "Page.c" } void page_on_move (Page* self, GdkRectangle* rect) { -#line 904 "/home/jens/Source/shotwell/src/Page.vala" +#line 916 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 904 "/home/jens/Source/shotwell/src/Page.vala" +#line 916 "/home/jens/Source/shotwell/src/Page.vala" PAGE_GET_CLASS (self)->on_move (self, rect); -#line 6584 "Page.c" +#line 6706 "Page.c" } static void page_real_on_move_start (Page* self, GdkRectangle* rect) { -#line 907 "/home/jens/Source/shotwell/src/Page.vala" +#line 919 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (rect != NULL); -#line 6591 "Page.c" +#line 6713 "Page.c" } void page_on_move_start (Page* self, GdkRectangle* rect) { -#line 907 "/home/jens/Source/shotwell/src/Page.vala" +#line 919 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 907 "/home/jens/Source/shotwell/src/Page.vala" +#line 919 "/home/jens/Source/shotwell/src/Page.vala" PAGE_GET_CLASS (self)->on_move_start (self, rect); -#line 6600 "Page.c" +#line 6722 "Page.c" } static void page_real_on_move_finished (Page* self, GdkRectangle* rect) { -#line 910 "/home/jens/Source/shotwell/src/Page.vala" +#line 922 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (rect != NULL); -#line 6607 "Page.c" +#line 6729 "Page.c" } void page_on_move_finished (Page* self, GdkRectangle* rect) { -#line 910 "/home/jens/Source/shotwell/src/Page.vala" +#line 922 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 910 "/home/jens/Source/shotwell/src/Page.vala" +#line 922 "/home/jens/Source/shotwell/src/Page.vala" PAGE_GET_CLASS (self)->on_move_finished (self, rect); -#line 6616 "Page.c" +#line 6738 "Page.c" } static void page_real_on_resize (Page* self, GdkRectangle* rect) { -#line 913 "/home/jens/Source/shotwell/src/Page.vala" +#line 925 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (rect != NULL); -#line 6623 "Page.c" +#line 6745 "Page.c" } void page_on_resize (Page* self, GdkRectangle* rect) { -#line 913 "/home/jens/Source/shotwell/src/Page.vala" +#line 925 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 913 "/home/jens/Source/shotwell/src/Page.vala" +#line 925 "/home/jens/Source/shotwell/src/Page.vala" PAGE_GET_CLASS (self)->on_resize (self, rect); -#line 6632 "Page.c" +#line 6754 "Page.c" } static void page_real_on_resize_start (Page* self, GdkRectangle* rect) { -#line 916 "/home/jens/Source/shotwell/src/Page.vala" +#line 928 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (rect != NULL); -#line 6639 "Page.c" +#line 6761 "Page.c" } void page_on_resize_start (Page* self, GdkRectangle* rect) { -#line 916 "/home/jens/Source/shotwell/src/Page.vala" +#line 928 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 916 "/home/jens/Source/shotwell/src/Page.vala" +#line 928 "/home/jens/Source/shotwell/src/Page.vala" PAGE_GET_CLASS (self)->on_resize_start (self, rect); -#line 6648 "Page.c" +#line 6770 "Page.c" } static void page_real_on_resize_finished (Page* self, GdkRectangle* rect) { -#line 919 "/home/jens/Source/shotwell/src/Page.vala" +#line 931 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (rect != NULL); -#line 6655 "Page.c" +#line 6777 "Page.c" } void page_on_resize_finished (Page* self, GdkRectangle* rect) { -#line 919 "/home/jens/Source/shotwell/src/Page.vala" +#line 931 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 919 "/home/jens/Source/shotwell/src/Page.vala" +#line 931 "/home/jens/Source/shotwell/src/Page.vala" PAGE_GET_CLASS (self)->on_resize_finished (self, rect); -#line 6664 "Page.c" +#line 6786 "Page.c" } static gboolean page_real_on_configure (Page* self, GdkEventConfigure* event, GdkRectangle* rect) { gboolean result = FALSE; -#line 922 "/home/jens/Source/shotwell/src/Page.vala" +#line 934 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 922 "/home/jens/Source/shotwell/src/Page.vala" +#line 934 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (rect != NULL, FALSE); -#line 923 "/home/jens/Source/shotwell/src/Page.vala" +#line 935 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 923 "/home/jens/Source/shotwell/src/Page.vala" +#line 935 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 6678 "Page.c" +#line 6800 "Page.c" } gboolean page_on_configure (Page* self, GdkEventConfigure* event, GdkRectangle* rect) { -#line 922 "/home/jens/Source/shotwell/src/Page.vala" +#line 934 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 922 "/home/jens/Source/shotwell/src/Page.vala" +#line 934 "/home/jens/Source/shotwell/src/Page.vala" return PAGE_GET_CLASS (self)->on_configure (self, event, rect); -#line 6687 "Page.c" +#line 6809 "Page.c" } static gboolean _page_check_configure_halted_gsource_func (gpointer self) { gboolean result; result = page_check_configure_halted ((Page*) self); -#line 947 "/home/jens/Source/shotwell/src/Page.vala" +#line 959 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 6696 "Page.c" +#line 6818 "Page.c" } @@ -6723,41 +6845,41 @@ gboolean page_notify_configure_event (Page* self, GdkEventConfigure* event) { GdkEventConfigure* _tmp51_ = NULL; GdkRectangle _tmp52_ = {0}; gboolean _tmp53_ = FALSE; -#line 926 "/home/jens/Source/shotwell/src/Page.vala" +#line 938 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 926 "/home/jens/Source/shotwell/src/Page.vala" +#line 938 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 927 "/home/jens/Source/shotwell/src/Page.vala" +#line 939 "/home/jens/Source/shotwell/src/Page.vala" memset (&rect, 0, sizeof (GdkRectangle)); -#line 928 "/home/jens/Source/shotwell/src/Page.vala" +#line 940 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = event; -#line 928 "/home/jens/Source/shotwell/src/Page.vala" +#line 940 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = _tmp0_->x; -#line 928 "/home/jens/Source/shotwell/src/Page.vala" +#line 940 "/home/jens/Source/shotwell/src/Page.vala" rect.x = _tmp1_; -#line 929 "/home/jens/Source/shotwell/src/Page.vala" +#line 941 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = event; -#line 929 "/home/jens/Source/shotwell/src/Page.vala" +#line 941 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = _tmp2_->y; -#line 929 "/home/jens/Source/shotwell/src/Page.vala" +#line 941 "/home/jens/Source/shotwell/src/Page.vala" rect.y = _tmp3_; -#line 930 "/home/jens/Source/shotwell/src/Page.vala" +#line 942 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = event; -#line 930 "/home/jens/Source/shotwell/src/Page.vala" +#line 942 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = _tmp4_->width; -#line 930 "/home/jens/Source/shotwell/src/Page.vala" +#line 942 "/home/jens/Source/shotwell/src/Page.vala" rect.width = _tmp5_; -#line 931 "/home/jens/Source/shotwell/src/Page.vala" +#line 943 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = event; -#line 931 "/home/jens/Source/shotwell/src/Page.vala" +#line 943 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = _tmp6_->height; -#line 931 "/home/jens/Source/shotwell/src/Page.vala" +#line 943 "/home/jens/Source/shotwell/src/Page.vala" rect.height = _tmp7_; -#line 934 "/home/jens/Source/shotwell/src/Page.vala" +#line 946 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = self->priv->last_configure_ms; -#line 934 "/home/jens/Source/shotwell/src/Page.vala" +#line 946 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp8_ == ((gulong) 0)) { -#line 6761 "Page.c" +#line 6883 "Page.c" gboolean _tmp9_ = FALSE; GdkRectangle _tmp10_ = {0}; gint _tmp11_ = 0; @@ -6768,193 +6890,193 @@ gboolean page_notify_configure_event (Page* self, GdkEventConfigure* event) { gint _tmp21_ = 0; GdkRectangle _tmp22_ = {0}; gint _tmp23_ = 0; -#line 935 "/home/jens/Source/shotwell/src/Page.vala" +#line 947 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = self->priv->last_position; -#line 935 "/home/jens/Source/shotwell/src/Page.vala" +#line 947 "/home/jens/Source/shotwell/src/Page.vala" _tmp11_ = _tmp10_.x; -#line 935 "/home/jens/Source/shotwell/src/Page.vala" +#line 947 "/home/jens/Source/shotwell/src/Page.vala" _tmp12_ = rect; -#line 935 "/home/jens/Source/shotwell/src/Page.vala" +#line 947 "/home/jens/Source/shotwell/src/Page.vala" _tmp13_ = _tmp12_.x; -#line 935 "/home/jens/Source/shotwell/src/Page.vala" +#line 947 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp11_ != _tmp13_) { -#line 935 "/home/jens/Source/shotwell/src/Page.vala" +#line 947 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = TRUE; -#line 6784 "Page.c" +#line 6906 "Page.c" } else { GdkRectangle _tmp14_ = {0}; gint _tmp15_ = 0; GdkRectangle _tmp16_ = {0}; gint _tmp17_ = 0; -#line 935 "/home/jens/Source/shotwell/src/Page.vala" +#line 947 "/home/jens/Source/shotwell/src/Page.vala" _tmp14_ = self->priv->last_position; -#line 935 "/home/jens/Source/shotwell/src/Page.vala" +#line 947 "/home/jens/Source/shotwell/src/Page.vala" _tmp15_ = _tmp14_.y; -#line 935 "/home/jens/Source/shotwell/src/Page.vala" +#line 947 "/home/jens/Source/shotwell/src/Page.vala" _tmp16_ = rect; -#line 935 "/home/jens/Source/shotwell/src/Page.vala" +#line 947 "/home/jens/Source/shotwell/src/Page.vala" _tmp17_ = _tmp16_.y; -#line 935 "/home/jens/Source/shotwell/src/Page.vala" +#line 947 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = _tmp15_ != _tmp17_; -#line 6800 "Page.c" +#line 6922 "Page.c" } -#line 935 "/home/jens/Source/shotwell/src/Page.vala" +#line 947 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp9_) { -#line 6804 "Page.c" +#line 6926 "Page.c" GdkRectangle _tmp18_ = {0}; -#line 936 "/home/jens/Source/shotwell/src/Page.vala" +#line 948 "/home/jens/Source/shotwell/src/Page.vala" _tmp18_ = rect; -#line 936 "/home/jens/Source/shotwell/src/Page.vala" +#line 948 "/home/jens/Source/shotwell/src/Page.vala" page_on_move_start (self, &_tmp18_); -#line 937 "/home/jens/Source/shotwell/src/Page.vala" +#line 949 "/home/jens/Source/shotwell/src/Page.vala" self->priv->report_move_finished = TRUE; -#line 6812 "Page.c" +#line 6934 "Page.c" } -#line 940 "/home/jens/Source/shotwell/src/Page.vala" +#line 952 "/home/jens/Source/shotwell/src/Page.vala" _tmp20_ = self->priv->last_position; -#line 940 "/home/jens/Source/shotwell/src/Page.vala" +#line 952 "/home/jens/Source/shotwell/src/Page.vala" _tmp21_ = _tmp20_.width; -#line 940 "/home/jens/Source/shotwell/src/Page.vala" +#line 952 "/home/jens/Source/shotwell/src/Page.vala" _tmp22_ = rect; -#line 940 "/home/jens/Source/shotwell/src/Page.vala" +#line 952 "/home/jens/Source/shotwell/src/Page.vala" _tmp23_ = _tmp22_.width; -#line 940 "/home/jens/Source/shotwell/src/Page.vala" +#line 952 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp21_ != _tmp23_) { -#line 940 "/home/jens/Source/shotwell/src/Page.vala" +#line 952 "/home/jens/Source/shotwell/src/Page.vala" _tmp19_ = TRUE; -#line 6826 "Page.c" +#line 6948 "Page.c" } else { GdkRectangle _tmp24_ = {0}; gint _tmp25_ = 0; GdkRectangle _tmp26_ = {0}; gint _tmp27_ = 0; -#line 940 "/home/jens/Source/shotwell/src/Page.vala" +#line 952 "/home/jens/Source/shotwell/src/Page.vala" _tmp24_ = self->priv->last_position; -#line 940 "/home/jens/Source/shotwell/src/Page.vala" +#line 952 "/home/jens/Source/shotwell/src/Page.vala" _tmp25_ = _tmp24_.height; -#line 940 "/home/jens/Source/shotwell/src/Page.vala" +#line 952 "/home/jens/Source/shotwell/src/Page.vala" _tmp26_ = rect; -#line 940 "/home/jens/Source/shotwell/src/Page.vala" +#line 952 "/home/jens/Source/shotwell/src/Page.vala" _tmp27_ = _tmp26_.height; -#line 940 "/home/jens/Source/shotwell/src/Page.vala" +#line 952 "/home/jens/Source/shotwell/src/Page.vala" _tmp19_ = _tmp25_ != _tmp27_; -#line 6842 "Page.c" +#line 6964 "Page.c" } -#line 940 "/home/jens/Source/shotwell/src/Page.vala" +#line 952 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp19_) { -#line 6846 "Page.c" +#line 6968 "Page.c" GdkRectangle _tmp28_ = {0}; -#line 941 "/home/jens/Source/shotwell/src/Page.vala" +#line 953 "/home/jens/Source/shotwell/src/Page.vala" _tmp28_ = rect; -#line 941 "/home/jens/Source/shotwell/src/Page.vala" +#line 953 "/home/jens/Source/shotwell/src/Page.vala" page_on_resize_start (self, &_tmp28_); -#line 942 "/home/jens/Source/shotwell/src/Page.vala" +#line 954 "/home/jens/Source/shotwell/src/Page.vala" self->priv->report_resize_finished = TRUE; -#line 6854 "Page.c" +#line 6976 "Page.c" } -#line 947 "/home/jens/Source/shotwell/src/Page.vala" +#line 959 "/home/jens/Source/shotwell/src/Page.vala" g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) (PAGE_CONSIDER_CONFIGURE_HALTED_MSEC / 8), _page_check_configure_halted_gsource_func, g_object_ref (self), g_object_unref); -#line 6858 "Page.c" +#line 6980 "Page.c" } -#line 950 "/home/jens/Source/shotwell/src/Page.vala" +#line 962 "/home/jens/Source/shotwell/src/Page.vala" _tmp30_ = self->priv->last_position; -#line 950 "/home/jens/Source/shotwell/src/Page.vala" +#line 962 "/home/jens/Source/shotwell/src/Page.vala" _tmp31_ = _tmp30_.x; -#line 950 "/home/jens/Source/shotwell/src/Page.vala" +#line 962 "/home/jens/Source/shotwell/src/Page.vala" _tmp32_ = rect; -#line 950 "/home/jens/Source/shotwell/src/Page.vala" +#line 962 "/home/jens/Source/shotwell/src/Page.vala" _tmp33_ = _tmp32_.x; -#line 950 "/home/jens/Source/shotwell/src/Page.vala" +#line 962 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp31_ != _tmp33_) { -#line 950 "/home/jens/Source/shotwell/src/Page.vala" +#line 962 "/home/jens/Source/shotwell/src/Page.vala" _tmp29_ = TRUE; -#line 6872 "Page.c" +#line 6994 "Page.c" } else { GdkRectangle _tmp34_ = {0}; gint _tmp35_ = 0; GdkRectangle _tmp36_ = {0}; gint _tmp37_ = 0; -#line 950 "/home/jens/Source/shotwell/src/Page.vala" +#line 962 "/home/jens/Source/shotwell/src/Page.vala" _tmp34_ = self->priv->last_position; -#line 950 "/home/jens/Source/shotwell/src/Page.vala" +#line 962 "/home/jens/Source/shotwell/src/Page.vala" _tmp35_ = _tmp34_.y; -#line 950 "/home/jens/Source/shotwell/src/Page.vala" +#line 962 "/home/jens/Source/shotwell/src/Page.vala" _tmp36_ = rect; -#line 950 "/home/jens/Source/shotwell/src/Page.vala" +#line 962 "/home/jens/Source/shotwell/src/Page.vala" _tmp37_ = _tmp36_.y; -#line 950 "/home/jens/Source/shotwell/src/Page.vala" +#line 962 "/home/jens/Source/shotwell/src/Page.vala" _tmp29_ = _tmp35_ != _tmp37_; -#line 6888 "Page.c" +#line 7010 "Page.c" } -#line 950 "/home/jens/Source/shotwell/src/Page.vala" +#line 962 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp29_) { -#line 6892 "Page.c" +#line 7014 "Page.c" GdkRectangle _tmp38_ = {0}; -#line 951 "/home/jens/Source/shotwell/src/Page.vala" +#line 963 "/home/jens/Source/shotwell/src/Page.vala" _tmp38_ = rect; -#line 951 "/home/jens/Source/shotwell/src/Page.vala" +#line 963 "/home/jens/Source/shotwell/src/Page.vala" page_on_move (self, &_tmp38_); -#line 6898 "Page.c" +#line 7020 "Page.c" } -#line 953 "/home/jens/Source/shotwell/src/Page.vala" +#line 965 "/home/jens/Source/shotwell/src/Page.vala" _tmp40_ = self->priv->last_position; -#line 953 "/home/jens/Source/shotwell/src/Page.vala" +#line 965 "/home/jens/Source/shotwell/src/Page.vala" _tmp41_ = _tmp40_.width; -#line 953 "/home/jens/Source/shotwell/src/Page.vala" +#line 965 "/home/jens/Source/shotwell/src/Page.vala" _tmp42_ = rect; -#line 953 "/home/jens/Source/shotwell/src/Page.vala" +#line 965 "/home/jens/Source/shotwell/src/Page.vala" _tmp43_ = _tmp42_.width; -#line 953 "/home/jens/Source/shotwell/src/Page.vala" +#line 965 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp41_ != _tmp43_) { -#line 953 "/home/jens/Source/shotwell/src/Page.vala" +#line 965 "/home/jens/Source/shotwell/src/Page.vala" _tmp39_ = TRUE; -#line 6912 "Page.c" +#line 7034 "Page.c" } else { GdkRectangle _tmp44_ = {0}; gint _tmp45_ = 0; GdkRectangle _tmp46_ = {0}; gint _tmp47_ = 0; -#line 953 "/home/jens/Source/shotwell/src/Page.vala" +#line 965 "/home/jens/Source/shotwell/src/Page.vala" _tmp44_ = self->priv->last_position; -#line 953 "/home/jens/Source/shotwell/src/Page.vala" +#line 965 "/home/jens/Source/shotwell/src/Page.vala" _tmp45_ = _tmp44_.height; -#line 953 "/home/jens/Source/shotwell/src/Page.vala" +#line 965 "/home/jens/Source/shotwell/src/Page.vala" _tmp46_ = rect; -#line 953 "/home/jens/Source/shotwell/src/Page.vala" +#line 965 "/home/jens/Source/shotwell/src/Page.vala" _tmp47_ = _tmp46_.height; -#line 953 "/home/jens/Source/shotwell/src/Page.vala" +#line 965 "/home/jens/Source/shotwell/src/Page.vala" _tmp39_ = _tmp45_ != _tmp47_; -#line 6928 "Page.c" +#line 7050 "Page.c" } -#line 953 "/home/jens/Source/shotwell/src/Page.vala" +#line 965 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp39_) { -#line 6932 "Page.c" +#line 7054 "Page.c" GdkRectangle _tmp48_ = {0}; -#line 954 "/home/jens/Source/shotwell/src/Page.vala" +#line 966 "/home/jens/Source/shotwell/src/Page.vala" _tmp48_ = rect; -#line 954 "/home/jens/Source/shotwell/src/Page.vala" +#line 966 "/home/jens/Source/shotwell/src/Page.vala" page_on_resize (self, &_tmp48_); -#line 6938 "Page.c" +#line 7060 "Page.c" } -#line 956 "/home/jens/Source/shotwell/src/Page.vala" +#line 968 "/home/jens/Source/shotwell/src/Page.vala" _tmp49_ = rect; -#line 956 "/home/jens/Source/shotwell/src/Page.vala" +#line 968 "/home/jens/Source/shotwell/src/Page.vala" self->priv->last_position = _tmp49_; -#line 957 "/home/jens/Source/shotwell/src/Page.vala" +#line 969 "/home/jens/Source/shotwell/src/Page.vala" _tmp50_ = now_ms (); -#line 957 "/home/jens/Source/shotwell/src/Page.vala" +#line 969 "/home/jens/Source/shotwell/src/Page.vala" self->priv->last_configure_ms = _tmp50_; -#line 959 "/home/jens/Source/shotwell/src/Page.vala" +#line 971 "/home/jens/Source/shotwell/src/Page.vala" _tmp51_ = event; -#line 959 "/home/jens/Source/shotwell/src/Page.vala" +#line 971 "/home/jens/Source/shotwell/src/Page.vala" _tmp52_ = rect; -#line 959 "/home/jens/Source/shotwell/src/Page.vala" +#line 971 "/home/jens/Source/shotwell/src/Page.vala" _tmp53_ = page_on_configure (self, _tmp51_, &_tmp52_); -#line 959 "/home/jens/Source/shotwell/src/Page.vala" +#line 971 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp53_; -#line 959 "/home/jens/Source/shotwell/src/Page.vala" +#line 971 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 6958 "Page.c" +#line 7080 "Page.c" } @@ -6967,117 +7089,117 @@ static gboolean page_check_configure_halted (Page* self) { GtkAllocation _tmp3_ = {0}; gboolean _tmp4_ = FALSE; gboolean _tmp7_ = FALSE; -#line 962 "/home/jens/Source/shotwell/src/Page.vala" +#line 974 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 963 "/home/jens/Source/shotwell/src/Page.vala" +#line 975 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->is_destroyed; -#line 963 "/home/jens/Source/shotwell/src/Page.vala" +#line 975 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp0_) { -#line 964 "/home/jens/Source/shotwell/src/Page.vala" +#line 976 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 964 "/home/jens/Source/shotwell/src/Page.vala" +#line 976 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 6981 "Page.c" +#line 7103 "Page.c" } -#line 966 "/home/jens/Source/shotwell/src/Page.vala" +#line 978 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = now_ms (); -#line 966 "/home/jens/Source/shotwell/src/Page.vala" +#line 978 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = self->priv->last_configure_ms; -#line 966 "/home/jens/Source/shotwell/src/Page.vala" +#line 978 "/home/jens/Source/shotwell/src/Page.vala" if ((_tmp1_ - _tmp2_) < ((gulong) PAGE_CONSIDER_CONFIGURE_HALTED_MSEC)) { -#line 967 "/home/jens/Source/shotwell/src/Page.vala" +#line 979 "/home/jens/Source/shotwell/src/Page.vala" result = TRUE; -#line 967 "/home/jens/Source/shotwell/src/Page.vala" +#line 979 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 6993 "Page.c" +#line 7115 "Page.c" } -#line 970 "/home/jens/Source/shotwell/src/Page.vala" +#line 982 "/home/jens/Source/shotwell/src/Page.vala" gtk_widget_get_allocation (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), &_tmp3_); -#line 970 "/home/jens/Source/shotwell/src/Page.vala" +#line 982 "/home/jens/Source/shotwell/src/Page.vala" allocation = _tmp3_; -#line 972 "/home/jens/Source/shotwell/src/Page.vala" +#line 984 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = self->priv->report_move_finished; -#line 972 "/home/jens/Source/shotwell/src/Page.vala" +#line 984 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp4_) { -#line 7003 "Page.c" +#line 7125 "Page.c" GtkAllocation _tmp5_ = {0}; GdkRectangle _tmp6_ = {0}; -#line 973 "/home/jens/Source/shotwell/src/Page.vala" +#line 985 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = allocation; -#line 973 "/home/jens/Source/shotwell/src/Page.vala" +#line 985 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = (GdkRectangle) _tmp5_; -#line 973 "/home/jens/Source/shotwell/src/Page.vala" +#line 985 "/home/jens/Source/shotwell/src/Page.vala" page_on_move_finished (self, &_tmp6_); -#line 7012 "Page.c" +#line 7134 "Page.c" } -#line 975 "/home/jens/Source/shotwell/src/Page.vala" +#line 987 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = self->priv->report_resize_finished; -#line 975 "/home/jens/Source/shotwell/src/Page.vala" +#line 987 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp7_) { -#line 7018 "Page.c" +#line 7140 "Page.c" GtkAllocation _tmp8_ = {0}; GdkRectangle _tmp9_ = {0}; -#line 976 "/home/jens/Source/shotwell/src/Page.vala" +#line 988 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = allocation; -#line 976 "/home/jens/Source/shotwell/src/Page.vala" +#line 988 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = (GdkRectangle) _tmp8_; -#line 976 "/home/jens/Source/shotwell/src/Page.vala" +#line 988 "/home/jens/Source/shotwell/src/Page.vala" page_on_resize_finished (self, &_tmp9_); -#line 7027 "Page.c" +#line 7149 "Page.c" } -#line 978 "/home/jens/Source/shotwell/src/Page.vala" +#line 990 "/home/jens/Source/shotwell/src/Page.vala" self->priv->last_configure_ms = (gulong) 0; -#line 979 "/home/jens/Source/shotwell/src/Page.vala" +#line 991 "/home/jens/Source/shotwell/src/Page.vala" self->priv->report_move_finished = FALSE; -#line 980 "/home/jens/Source/shotwell/src/Page.vala" +#line 992 "/home/jens/Source/shotwell/src/Page.vala" self->priv->report_resize_finished = FALSE; -#line 982 "/home/jens/Source/shotwell/src/Page.vala" +#line 994 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 982 "/home/jens/Source/shotwell/src/Page.vala" +#line 994 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 7039 "Page.c" +#line 7161 "Page.c" } static gboolean page_real_on_motion (Page* self, GdkEventMotion* event, gint x, gint y, GdkModifierType mask) { gboolean result = FALSE; -#line 985 "/home/jens/Source/shotwell/src/Page.vala" +#line 997 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 986 "/home/jens/Source/shotwell/src/Page.vala" +#line 998 "/home/jens/Source/shotwell/src/Page.vala" page_check_cursor_hiding (self); -#line 988 "/home/jens/Source/shotwell/src/Page.vala" +#line 1000 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 988 "/home/jens/Source/shotwell/src/Page.vala" +#line 1000 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 7053 "Page.c" +#line 7175 "Page.c" } gboolean page_on_motion (Page* self, GdkEventMotion* event, gint x, gint y, GdkModifierType mask) { -#line 985 "/home/jens/Source/shotwell/src/Page.vala" +#line 997 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 985 "/home/jens/Source/shotwell/src/Page.vala" +#line 997 "/home/jens/Source/shotwell/src/Page.vala" return PAGE_GET_CLASS (self)->on_motion (self, event, x, y, mask); -#line 7062 "Page.c" +#line 7184 "Page.c" } static gboolean page_real_on_leave_notify_event (Page* self) { gboolean result = FALSE; -#line 992 "/home/jens/Source/shotwell/src/Page.vala" +#line 1004 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 992 "/home/jens/Source/shotwell/src/Page.vala" +#line 1004 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 7072 "Page.c" +#line 7194 "Page.c" } gboolean page_on_leave_notify_event (Page* self) { -#line 991 "/home/jens/Source/shotwell/src/Page.vala" +#line 1003 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 991 "/home/jens/Source/shotwell/src/Page.vala" +#line 1003 "/home/jens/Source/shotwell/src/Page.vala" return PAGE_GET_CLASS (self)->on_leave_notify_event (self); -#line 7081 "Page.c" +#line 7203 "Page.c" } @@ -7093,29 +7215,29 @@ static gboolean page_on_motion_internal (Page* self, GdkEventMotion* event) { gint _tmp13_ = 0; GdkModifierType _tmp14_ = 0; gboolean _tmp15_ = FALSE; -#line 995 "/home/jens/Source/shotwell/src/Page.vala" +#line 1007 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 995 "/home/jens/Source/shotwell/src/Page.vala" +#line 1007 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 998 "/home/jens/Source/shotwell/src/Page.vala" +#line 1010 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = event; -#line 998 "/home/jens/Source/shotwell/src/Page.vala" +#line 1010 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = _tmp0_->is_hint; -#line 998 "/home/jens/Source/shotwell/src/Page.vala" +#line 1010 "/home/jens/Source/shotwell/src/Page.vala" if (((gint) _tmp1_) == 1) { -#line 7107 "Page.c" +#line 7229 "Page.c" gint _tmp2_ = 0; gint _tmp3_ = 0; GdkModifierType _tmp4_ = 0; -#line 999 "/home/jens/Source/shotwell/src/Page.vala" +#line 1011 "/home/jens/Source/shotwell/src/Page.vala" page_get_event_source_pointer (self, &_tmp2_, &_tmp3_, &_tmp4_); -#line 999 "/home/jens/Source/shotwell/src/Page.vala" +#line 1011 "/home/jens/Source/shotwell/src/Page.vala" x = _tmp2_; -#line 999 "/home/jens/Source/shotwell/src/Page.vala" +#line 1011 "/home/jens/Source/shotwell/src/Page.vala" y = _tmp3_; -#line 999 "/home/jens/Source/shotwell/src/Page.vala" +#line 1011 "/home/jens/Source/shotwell/src/Page.vala" mask = _tmp4_; -#line 7119 "Page.c" +#line 7241 "Page.c" } else { GdkEventMotion* _tmp5_ = NULL; gdouble _tmp6_ = 0.0; @@ -7123,41 +7245,41 @@ static gboolean page_on_motion_internal (Page* self, GdkEventMotion* event) { gdouble _tmp8_ = 0.0; GdkEventMotion* _tmp9_ = NULL; GdkModifierType _tmp10_ = 0; -#line 1001 "/home/jens/Source/shotwell/src/Page.vala" +#line 1013 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = event; -#line 1001 "/home/jens/Source/shotwell/src/Page.vala" +#line 1013 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = _tmp5_->x; -#line 1001 "/home/jens/Source/shotwell/src/Page.vala" +#line 1013 "/home/jens/Source/shotwell/src/Page.vala" x = (gint) _tmp6_; -#line 1002 "/home/jens/Source/shotwell/src/Page.vala" +#line 1014 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = event; -#line 1002 "/home/jens/Source/shotwell/src/Page.vala" +#line 1014 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = _tmp7_->y; -#line 1002 "/home/jens/Source/shotwell/src/Page.vala" +#line 1014 "/home/jens/Source/shotwell/src/Page.vala" y = (gint) _tmp8_; -#line 1003 "/home/jens/Source/shotwell/src/Page.vala" +#line 1015 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = event; -#line 1003 "/home/jens/Source/shotwell/src/Page.vala" +#line 1015 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = _tmp9_->state; -#line 1003 "/home/jens/Source/shotwell/src/Page.vala" +#line 1015 "/home/jens/Source/shotwell/src/Page.vala" mask = _tmp10_; -#line 7145 "Page.c" +#line 7267 "Page.c" } -#line 1006 "/home/jens/Source/shotwell/src/Page.vala" +#line 1018 "/home/jens/Source/shotwell/src/Page.vala" _tmp11_ = event; -#line 1006 "/home/jens/Source/shotwell/src/Page.vala" +#line 1018 "/home/jens/Source/shotwell/src/Page.vala" _tmp12_ = x; -#line 1006 "/home/jens/Source/shotwell/src/Page.vala" +#line 1018 "/home/jens/Source/shotwell/src/Page.vala" _tmp13_ = y; -#line 1006 "/home/jens/Source/shotwell/src/Page.vala" +#line 1018 "/home/jens/Source/shotwell/src/Page.vala" _tmp14_ = mask; -#line 1006 "/home/jens/Source/shotwell/src/Page.vala" +#line 1018 "/home/jens/Source/shotwell/src/Page.vala" _tmp15_ = page_on_motion (self, _tmp11_, _tmp12_, _tmp13_, _tmp14_); -#line 1006 "/home/jens/Source/shotwell/src/Page.vala" +#line 1018 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp15_; -#line 1006 "/home/jens/Source/shotwell/src/Page.vala" +#line 1018 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 7161 "Page.c" +#line 7283 "Page.c" } @@ -7165,87 +7287,87 @@ static gboolean page_on_mousewheel_internal (Page* self, GdkEventScroll* event) gboolean result = FALSE; GdkEventScroll* _tmp0_ = NULL; GdkScrollDirection _tmp1_ = 0; -#line 1009 "/home/jens/Source/shotwell/src/Page.vala" +#line 1021 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 1009 "/home/jens/Source/shotwell/src/Page.vala" +#line 1021 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 1010 "/home/jens/Source/shotwell/src/Page.vala" +#line 1022 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = event; -#line 1010 "/home/jens/Source/shotwell/src/Page.vala" +#line 1022 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = _tmp0_->direction; -#line 1010 "/home/jens/Source/shotwell/src/Page.vala" +#line 1022 "/home/jens/Source/shotwell/src/Page.vala" switch (_tmp1_) { -#line 1010 "/home/jens/Source/shotwell/src/Page.vala" +#line 1022 "/home/jens/Source/shotwell/src/Page.vala" case GDK_SCROLL_UP: -#line 7181 "Page.c" +#line 7303 "Page.c" { GdkEventScroll* _tmp2_ = NULL; gboolean _tmp3_ = FALSE; -#line 1012 "/home/jens/Source/shotwell/src/Page.vala" +#line 1024 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = event; -#line 1012 "/home/jens/Source/shotwell/src/Page.vala" +#line 1024 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = page_on_mousewheel_up (self, _tmp2_); -#line 1012 "/home/jens/Source/shotwell/src/Page.vala" +#line 1024 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp3_; -#line 1012 "/home/jens/Source/shotwell/src/Page.vala" +#line 1024 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 7193 "Page.c" +#line 7315 "Page.c" } -#line 1010 "/home/jens/Source/shotwell/src/Page.vala" +#line 1022 "/home/jens/Source/shotwell/src/Page.vala" case GDK_SCROLL_DOWN: -#line 7197 "Page.c" +#line 7319 "Page.c" { GdkEventScroll* _tmp4_ = NULL; gboolean _tmp5_ = FALSE; -#line 1015 "/home/jens/Source/shotwell/src/Page.vala" +#line 1027 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = event; -#line 1015 "/home/jens/Source/shotwell/src/Page.vala" +#line 1027 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = page_on_mousewheel_down (self, _tmp4_); -#line 1015 "/home/jens/Source/shotwell/src/Page.vala" +#line 1027 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp5_; -#line 1015 "/home/jens/Source/shotwell/src/Page.vala" +#line 1027 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 7209 "Page.c" +#line 7331 "Page.c" } -#line 1010 "/home/jens/Source/shotwell/src/Page.vala" +#line 1022 "/home/jens/Source/shotwell/src/Page.vala" case GDK_SCROLL_LEFT: -#line 7213 "Page.c" +#line 7335 "Page.c" { GdkEventScroll* _tmp6_ = NULL; gboolean _tmp7_ = FALSE; -#line 1018 "/home/jens/Source/shotwell/src/Page.vala" +#line 1030 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = event; -#line 1018 "/home/jens/Source/shotwell/src/Page.vala" +#line 1030 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = page_on_mousewheel_left (self, _tmp6_); -#line 1018 "/home/jens/Source/shotwell/src/Page.vala" +#line 1030 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp7_; -#line 1018 "/home/jens/Source/shotwell/src/Page.vala" +#line 1030 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 7225 "Page.c" +#line 7347 "Page.c" } -#line 1010 "/home/jens/Source/shotwell/src/Page.vala" +#line 1022 "/home/jens/Source/shotwell/src/Page.vala" case GDK_SCROLL_RIGHT: -#line 7229 "Page.c" +#line 7351 "Page.c" { GdkEventScroll* _tmp8_ = NULL; gboolean _tmp9_ = FALSE; -#line 1021 "/home/jens/Source/shotwell/src/Page.vala" +#line 1033 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = event; -#line 1021 "/home/jens/Source/shotwell/src/Page.vala" +#line 1033 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = page_on_mousewheel_right (self, _tmp8_); -#line 1021 "/home/jens/Source/shotwell/src/Page.vala" +#line 1033 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp9_; -#line 1021 "/home/jens/Source/shotwell/src/Page.vala" +#line 1033 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 7241 "Page.c" +#line 7363 "Page.c" } default: { -#line 1024 "/home/jens/Source/shotwell/src/Page.vala" +#line 1036 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 1024 "/home/jens/Source/shotwell/src/Page.vala" +#line 1036 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 7249 "Page.c" +#line 7371 "Page.c" } } } @@ -7253,144 +7375,144 @@ static gboolean page_on_mousewheel_internal (Page* self, GdkEventScroll* event) static gboolean page_real_on_mousewheel_up (Page* self, GdkEventScroll* event) { gboolean result = FALSE; -#line 1028 "/home/jens/Source/shotwell/src/Page.vala" +#line 1040 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 1029 "/home/jens/Source/shotwell/src/Page.vala" +#line 1041 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 1029 "/home/jens/Source/shotwell/src/Page.vala" +#line 1041 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 7263 "Page.c" +#line 7385 "Page.c" } gboolean page_on_mousewheel_up (Page* self, GdkEventScroll* event) { -#line 1028 "/home/jens/Source/shotwell/src/Page.vala" +#line 1040 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 1028 "/home/jens/Source/shotwell/src/Page.vala" +#line 1040 "/home/jens/Source/shotwell/src/Page.vala" return PAGE_GET_CLASS (self)->on_mousewheel_up (self, event); -#line 7272 "Page.c" +#line 7394 "Page.c" } static gboolean page_real_on_mousewheel_down (Page* self, GdkEventScroll* event) { gboolean result = FALSE; -#line 1032 "/home/jens/Source/shotwell/src/Page.vala" +#line 1044 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 1033 "/home/jens/Source/shotwell/src/Page.vala" +#line 1045 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 1033 "/home/jens/Source/shotwell/src/Page.vala" +#line 1045 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 7284 "Page.c" +#line 7406 "Page.c" } gboolean page_on_mousewheel_down (Page* self, GdkEventScroll* event) { -#line 1032 "/home/jens/Source/shotwell/src/Page.vala" +#line 1044 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 1032 "/home/jens/Source/shotwell/src/Page.vala" +#line 1044 "/home/jens/Source/shotwell/src/Page.vala" return PAGE_GET_CLASS (self)->on_mousewheel_down (self, event); -#line 7293 "Page.c" +#line 7415 "Page.c" } static gboolean page_real_on_mousewheel_left (Page* self, GdkEventScroll* event) { gboolean result = FALSE; -#line 1036 "/home/jens/Source/shotwell/src/Page.vala" +#line 1048 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 1037 "/home/jens/Source/shotwell/src/Page.vala" +#line 1049 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 1037 "/home/jens/Source/shotwell/src/Page.vala" +#line 1049 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 7305 "Page.c" +#line 7427 "Page.c" } gboolean page_on_mousewheel_left (Page* self, GdkEventScroll* event) { -#line 1036 "/home/jens/Source/shotwell/src/Page.vala" +#line 1048 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 1036 "/home/jens/Source/shotwell/src/Page.vala" +#line 1048 "/home/jens/Source/shotwell/src/Page.vala" return PAGE_GET_CLASS (self)->on_mousewheel_left (self, event); -#line 7314 "Page.c" +#line 7436 "Page.c" } static gboolean page_real_on_mousewheel_right (Page* self, GdkEventScroll* event) { gboolean result = FALSE; -#line 1040 "/home/jens/Source/shotwell/src/Page.vala" +#line 1052 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 1041 "/home/jens/Source/shotwell/src/Page.vala" +#line 1053 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 1041 "/home/jens/Source/shotwell/src/Page.vala" +#line 1053 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 7326 "Page.c" +#line 7448 "Page.c" } gboolean page_on_mousewheel_right (Page* self, GdkEventScroll* event) { -#line 1040 "/home/jens/Source/shotwell/src/Page.vala" +#line 1052 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 1040 "/home/jens/Source/shotwell/src/Page.vala" +#line 1052 "/home/jens/Source/shotwell/src/Page.vala" return PAGE_GET_CLASS (self)->on_mousewheel_right (self, event); -#line 7335 "Page.c" +#line 7457 "Page.c" } static gboolean page_real_on_context_keypress (Page* self) { gboolean result = FALSE; -#line 1045 "/home/jens/Source/shotwell/src/Page.vala" +#line 1057 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 1045 "/home/jens/Source/shotwell/src/Page.vala" +#line 1057 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 7345 "Page.c" +#line 7467 "Page.c" } gboolean page_on_context_keypress (Page* self) { -#line 1044 "/home/jens/Source/shotwell/src/Page.vala" +#line 1056 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 1044 "/home/jens/Source/shotwell/src/Page.vala" +#line 1056 "/home/jens/Source/shotwell/src/Page.vala" return PAGE_GET_CLASS (self)->on_context_keypress (self); -#line 7354 "Page.c" +#line 7476 "Page.c" } static gboolean page_real_on_context_buttonpress (Page* self, GdkEventButton* event) { gboolean result = FALSE; -#line 1048 "/home/jens/Source/shotwell/src/Page.vala" +#line 1060 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 1049 "/home/jens/Source/shotwell/src/Page.vala" +#line 1061 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 1049 "/home/jens/Source/shotwell/src/Page.vala" +#line 1061 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 7366 "Page.c" +#line 7488 "Page.c" } gboolean page_on_context_buttonpress (Page* self, GdkEventButton* event) { -#line 1048 "/home/jens/Source/shotwell/src/Page.vala" +#line 1060 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 1048 "/home/jens/Source/shotwell/src/Page.vala" +#line 1060 "/home/jens/Source/shotwell/src/Page.vala" return PAGE_GET_CLASS (self)->on_context_buttonpress (self, event); -#line 7375 "Page.c" +#line 7497 "Page.c" } static gboolean page_real_on_context_invoked (Page* self) { gboolean result = FALSE; -#line 1053 "/home/jens/Source/shotwell/src/Page.vala" +#line 1065 "/home/jens/Source/shotwell/src/Page.vala" result = TRUE; -#line 1053 "/home/jens/Source/shotwell/src/Page.vala" +#line 1065 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 7385 "Page.c" +#line 7507 "Page.c" } gboolean page_on_context_invoked (Page* self) { -#line 1052 "/home/jens/Source/shotwell/src/Page.vala" +#line 1064 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 1052 "/home/jens/Source/shotwell/src/Page.vala" +#line 1064 "/home/jens/Source/shotwell/src/Page.vala" return PAGE_GET_CLASS (self)->on_context_invoked (self); -#line 7394 "Page.c" +#line 7516 "Page.c" } @@ -7399,72 +7521,72 @@ gboolean page_popup_context_menu (Page* self, GtkMenu* context_menu, GdkEventBut gboolean _tmp0_ = FALSE; GtkMenu* _tmp1_ = NULL; GdkEventButton* _tmp3_ = NULL; -#line 1056 "/home/jens/Source/shotwell/src/Page.vala" +#line 1068 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 1056 "/home/jens/Source/shotwell/src/Page.vala" +#line 1068 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail ((context_menu == NULL) || GTK_IS_MENU (context_menu), FALSE); -#line 1059 "/home/jens/Source/shotwell/src/Page.vala" +#line 1071 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = context_menu; -#line 1059 "/home/jens/Source/shotwell/src/Page.vala" +#line 1071 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp1_ == NULL) { -#line 1059 "/home/jens/Source/shotwell/src/Page.vala" +#line 1071 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = TRUE; -#line 7413 "Page.c" +#line 7535 "Page.c" } else { gboolean _tmp2_ = FALSE; -#line 1059 "/home/jens/Source/shotwell/src/Page.vala" +#line 1071 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = page_on_context_invoked (self); -#line 1059 "/home/jens/Source/shotwell/src/Page.vala" +#line 1071 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = !_tmp2_; -#line 7420 "Page.c" +#line 7542 "Page.c" } -#line 1059 "/home/jens/Source/shotwell/src/Page.vala" +#line 1071 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp0_) { -#line 1060 "/home/jens/Source/shotwell/src/Page.vala" +#line 1072 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 1060 "/home/jens/Source/shotwell/src/Page.vala" +#line 1072 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 7428 "Page.c" +#line 7550 "Page.c" } -#line 1062 "/home/jens/Source/shotwell/src/Page.vala" +#line 1074 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = event; -#line 1062 "/home/jens/Source/shotwell/src/Page.vala" +#line 1074 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp3_ == NULL) { -#line 7434 "Page.c" +#line 7556 "Page.c" GtkMenu* _tmp4_ = NULL; guint32 _tmp5_ = 0U; -#line 1063 "/home/jens/Source/shotwell/src/Page.vala" +#line 1075 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = context_menu; -#line 1063 "/home/jens/Source/shotwell/src/Page.vala" +#line 1075 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = gtk_get_current_event_time (); -#line 1063 "/home/jens/Source/shotwell/src/Page.vala" +#line 1075 "/home/jens/Source/shotwell/src/Page.vala" gtk_menu_popup (_tmp4_, NULL, NULL, NULL, NULL, (guint) 0, _tmp5_); -#line 7443 "Page.c" +#line 7565 "Page.c" } else { GtkMenu* _tmp6_ = NULL; GdkEventButton* _tmp7_ = NULL; guint _tmp8_ = 0U; GdkEventButton* _tmp9_ = NULL; guint32 _tmp10_ = 0U; -#line 1065 "/home/jens/Source/shotwell/src/Page.vala" +#line 1077 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = context_menu; -#line 1065 "/home/jens/Source/shotwell/src/Page.vala" +#line 1077 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = event; -#line 1065 "/home/jens/Source/shotwell/src/Page.vala" +#line 1077 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = _tmp7_->button; -#line 1065 "/home/jens/Source/shotwell/src/Page.vala" +#line 1077 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = event; -#line 1065 "/home/jens/Source/shotwell/src/Page.vala" +#line 1077 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = _tmp9_->time; -#line 1065 "/home/jens/Source/shotwell/src/Page.vala" +#line 1077 "/home/jens/Source/shotwell/src/Page.vala" gtk_menu_popup (_tmp6_, NULL, NULL, NULL, NULL, _tmp8_, _tmp10_); -#line 7462 "Page.c" +#line 7584 "Page.c" } -#line 1067 "/home/jens/Source/shotwell/src/Page.vala" +#line 1079 "/home/jens/Source/shotwell/src/Page.vala" result = TRUE; -#line 1067 "/home/jens/Source/shotwell/src/Page.vala" +#line 1079 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 7468 "Page.c" +#line 7590 "Page.c" } @@ -7479,166 +7601,166 @@ void page_on_event_source_realize (Page* self) { GdkWindow* _tmp10_ = NULL; GdkWindow* _tmp11_ = NULL; GdkWindow* _tmp20_ = NULL; -#line 1070 "/home/jens/Source/shotwell/src/Page.vala" +#line 1082 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 1071 "/home/jens/Source/shotwell/src/Page.vala" +#line 1083 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->event_source; -#line 1071 "/home/jens/Source/shotwell/src/Page.vala" +#line 1083 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = gtk_widget_get_window (_tmp0_); -#line 1071 "/home/jens/Source/shotwell/src/Page.vala" +#line 1083 "/home/jens/Source/shotwell/src/Page.vala" _vala_assert (_tmp1_ != NULL, "event_source.get_window() != null"); -#line 1073 "/home/jens/Source/shotwell/src/Page.vala" +#line 1085 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = self->priv->event_source; -#line 1073 "/home/jens/Source/shotwell/src/Page.vala" +#line 1085 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = gtk_widget_get_window (_tmp2_); -#line 1073 "/home/jens/Source/shotwell/src/Page.vala" +#line 1085 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = gdk_window_get_cursor (_tmp3_); -#line 1073 "/home/jens/Source/shotwell/src/Page.vala" +#line 1085 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp4_ != NULL) { -#line 7499 "Page.c" +#line 7621 "Page.c" GtkWidget* _tmp5_ = NULL; GdkWindow* _tmp6_ = NULL; GdkCursor* _tmp7_ = NULL; GdkCursorType _tmp8_ = 0; -#line 1074 "/home/jens/Source/shotwell/src/Page.vala" +#line 1086 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = self->priv->event_source; -#line 1074 "/home/jens/Source/shotwell/src/Page.vala" +#line 1086 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = gtk_widget_get_window (_tmp5_); -#line 1074 "/home/jens/Source/shotwell/src/Page.vala" +#line 1086 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = gdk_window_get_cursor (_tmp6_); -#line 1074 "/home/jens/Source/shotwell/src/Page.vala" +#line 1086 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = gdk_cursor_get_cursor_type (_tmp7_); -#line 1074 "/home/jens/Source/shotwell/src/Page.vala" +#line 1086 "/home/jens/Source/shotwell/src/Page.vala" self->priv->last_cursor = _tmp8_; -#line 1075 "/home/jens/Source/shotwell/src/Page.vala" +#line 1087 "/home/jens/Source/shotwell/src/Page.vala" return; -#line 7516 "Page.c" +#line 7638 "Page.c" } -#line 1079 "/home/jens/Source/shotwell/src/Page.vala" +#line 1091 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = self->priv->event_source; -#line 1079 "/home/jens/Source/shotwell/src/Page.vala" +#line 1091 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = gtk_widget_get_window (_tmp9_); -#line 1079 "/home/jens/Source/shotwell/src/Page.vala" +#line 1091 "/home/jens/Source/shotwell/src/Page.vala" _tmp11_ = _g_object_ref0 (_tmp10_); -#line 1079 "/home/jens/Source/shotwell/src/Page.vala" +#line 1091 "/home/jens/Source/shotwell/src/Page.vala" parent_window = _tmp11_; -#line 7526 "Page.c" +#line 7648 "Page.c" { gboolean _tmp12_ = FALSE; -#line 1080 "/home/jens/Source/shotwell/src/Page.vala" +#line 1092 "/home/jens/Source/shotwell/src/Page.vala" _tmp12_ = TRUE; -#line 1080 "/home/jens/Source/shotwell/src/Page.vala" +#line 1092 "/home/jens/Source/shotwell/src/Page.vala" while (TRUE) { -#line 7533 "Page.c" +#line 7655 "Page.c" GdkWindow* _tmp17_ = NULL; GdkWindow* _tmp18_ = NULL; GdkWindow* _tmp19_ = NULL; -#line 1080 "/home/jens/Source/shotwell/src/Page.vala" +#line 1092 "/home/jens/Source/shotwell/src/Page.vala" if (!_tmp12_) { -#line 7539 "Page.c" +#line 7661 "Page.c" gboolean _tmp13_ = FALSE; GdkWindow* _tmp14_ = NULL; -#line 1082 "/home/jens/Source/shotwell/src/Page.vala" +#line 1094 "/home/jens/Source/shotwell/src/Page.vala" _tmp14_ = parent_window; -#line 1082 "/home/jens/Source/shotwell/src/Page.vala" +#line 1094 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp14_ != NULL) { -#line 7546 "Page.c" +#line 7668 "Page.c" GdkWindow* _tmp15_ = NULL; GdkCursor* _tmp16_ = NULL; -#line 1082 "/home/jens/Source/shotwell/src/Page.vala" +#line 1094 "/home/jens/Source/shotwell/src/Page.vala" _tmp15_ = parent_window; -#line 1082 "/home/jens/Source/shotwell/src/Page.vala" +#line 1094 "/home/jens/Source/shotwell/src/Page.vala" _tmp16_ = gdk_window_get_cursor (_tmp15_); -#line 1082 "/home/jens/Source/shotwell/src/Page.vala" +#line 1094 "/home/jens/Source/shotwell/src/Page.vala" _tmp13_ = _tmp16_ == NULL; -#line 7555 "Page.c" +#line 7677 "Page.c" } else { -#line 1082 "/home/jens/Source/shotwell/src/Page.vala" +#line 1094 "/home/jens/Source/shotwell/src/Page.vala" _tmp13_ = FALSE; -#line 7559 "Page.c" +#line 7681 "Page.c" } -#line 1082 "/home/jens/Source/shotwell/src/Page.vala" +#line 1094 "/home/jens/Source/shotwell/src/Page.vala" if (!_tmp13_) { -#line 1082 "/home/jens/Source/shotwell/src/Page.vala" +#line 1094 "/home/jens/Source/shotwell/src/Page.vala" break; -#line 7565 "Page.c" +#line 7687 "Page.c" } } -#line 1080 "/home/jens/Source/shotwell/src/Page.vala" +#line 1092 "/home/jens/Source/shotwell/src/Page.vala" _tmp12_ = FALSE; -#line 1081 "/home/jens/Source/shotwell/src/Page.vala" +#line 1093 "/home/jens/Source/shotwell/src/Page.vala" _tmp17_ = parent_window; -#line 1081 "/home/jens/Source/shotwell/src/Page.vala" +#line 1093 "/home/jens/Source/shotwell/src/Page.vala" _tmp18_ = gdk_window_get_parent (_tmp17_); -#line 1081 "/home/jens/Source/shotwell/src/Page.vala" +#line 1093 "/home/jens/Source/shotwell/src/Page.vala" _tmp19_ = _g_object_ref0 (_tmp18_); -#line 1081 "/home/jens/Source/shotwell/src/Page.vala" +#line 1093 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (parent_window); -#line 1081 "/home/jens/Source/shotwell/src/Page.vala" +#line 1093 "/home/jens/Source/shotwell/src/Page.vala" parent_window = _tmp19_; -#line 7580 "Page.c" +#line 7702 "Page.c" } } -#line 1084 "/home/jens/Source/shotwell/src/Page.vala" +#line 1096 "/home/jens/Source/shotwell/src/Page.vala" _tmp20_ = parent_window; -#line 1084 "/home/jens/Source/shotwell/src/Page.vala" +#line 1096 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp20_ != NULL) { -#line 7587 "Page.c" +#line 7709 "Page.c" GdkWindow* _tmp21_ = NULL; GdkCursor* _tmp22_ = NULL; GdkCursorType _tmp23_ = 0; -#line 1085 "/home/jens/Source/shotwell/src/Page.vala" +#line 1097 "/home/jens/Source/shotwell/src/Page.vala" _tmp21_ = parent_window; -#line 1085 "/home/jens/Source/shotwell/src/Page.vala" +#line 1097 "/home/jens/Source/shotwell/src/Page.vala" _tmp22_ = gdk_window_get_cursor (_tmp21_); -#line 1085 "/home/jens/Source/shotwell/src/Page.vala" +#line 1097 "/home/jens/Source/shotwell/src/Page.vala" _tmp23_ = gdk_cursor_get_cursor_type (_tmp22_); -#line 1085 "/home/jens/Source/shotwell/src/Page.vala" +#line 1097 "/home/jens/Source/shotwell/src/Page.vala" self->priv->last_cursor = _tmp23_; -#line 7599 "Page.c" +#line 7721 "Page.c" } -#line 1070 "/home/jens/Source/shotwell/src/Page.vala" +#line 1082 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (parent_window); -#line 7603 "Page.c" +#line 7725 "Page.c" } void page_set_cursor_hide_time (Page* self, gint hide_time) { gint _tmp0_ = 0; -#line 1088 "/home/jens/Source/shotwell/src/Page.vala" +#line 1100 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 1089 "/home/jens/Source/shotwell/src/Page.vala" +#line 1101 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = hide_time; -#line 1089 "/home/jens/Source/shotwell/src/Page.vala" +#line 1101 "/home/jens/Source/shotwell/src/Page.vala" self->priv->cursor_hide_msec = _tmp0_; -#line 7615 "Page.c" +#line 7737 "Page.c" } void page_start_cursor_hiding (Page* self) { -#line 1092 "/home/jens/Source/shotwell/src/Page.vala" +#line 1104 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 1093 "/home/jens/Source/shotwell/src/Page.vala" +#line 1105 "/home/jens/Source/shotwell/src/Page.vala" page_check_cursor_hiding (self); -#line 7624 "Page.c" +#line 7746 "Page.c" } void page_stop_cursor_hiding (Page* self) { guint _tmp0_ = 0U; -#line 1096 "/home/jens/Source/shotwell/src/Page.vala" +#line 1108 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 1097 "/home/jens/Source/shotwell/src/Page.vala" +#line 1109 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->last_timeout_id; -#line 1097 "/home/jens/Source/shotwell/src/Page.vala" +#line 1109 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp0_ != ((guint) 0)) { -#line 7636 "Page.c" +#line 7758 "Page.c" guint _tmp1_ = 0U; -#line 1098 "/home/jens/Source/shotwell/src/Page.vala" +#line 1110 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = self->priv->last_timeout_id; -#line 1098 "/home/jens/Source/shotwell/src/Page.vala" +#line 1110 "/home/jens/Source/shotwell/src/Page.vala" g_source_remove (_tmp1_); -#line 7642 "Page.c" +#line 7764 "Page.c" } } @@ -7646,41 +7768,41 @@ void page_stop_cursor_hiding (Page* self) { void page_suspend_cursor_hiding (Page* self) { gint _tmp0_ = 0; guint _tmp1_ = 0U; -#line 1101 "/home/jens/Source/shotwell/src/Page.vala" +#line 1113 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 1102 "/home/jens/Source/shotwell/src/Page.vala" +#line 1114 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->cursor_hide_msec; -#line 1102 "/home/jens/Source/shotwell/src/Page.vala" +#line 1114 "/home/jens/Source/shotwell/src/Page.vala" self->priv->cursor_hide_time_cached = _tmp0_; -#line 1104 "/home/jens/Source/shotwell/src/Page.vala" +#line 1116 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = self->priv->last_timeout_id; -#line 1104 "/home/jens/Source/shotwell/src/Page.vala" +#line 1116 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp1_ != ((guint) 0)) { -#line 7660 "Page.c" +#line 7782 "Page.c" guint _tmp2_ = 0U; -#line 1105 "/home/jens/Source/shotwell/src/Page.vala" +#line 1117 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = self->priv->last_timeout_id; -#line 1105 "/home/jens/Source/shotwell/src/Page.vala" +#line 1117 "/home/jens/Source/shotwell/src/Page.vala" g_source_remove (_tmp2_); -#line 7666 "Page.c" +#line 7788 "Page.c" } -#line 1107 "/home/jens/Source/shotwell/src/Page.vala" +#line 1119 "/home/jens/Source/shotwell/src/Page.vala" self->priv->cursor_hide_msec = 0; -#line 7670 "Page.c" +#line 7792 "Page.c" } void page_restore_cursor_hiding (Page* self) { gint _tmp0_ = 0; -#line 1110 "/home/jens/Source/shotwell/src/Page.vala" +#line 1122 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 1111 "/home/jens/Source/shotwell/src/Page.vala" +#line 1123 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->cursor_hide_time_cached; -#line 1111 "/home/jens/Source/shotwell/src/Page.vala" +#line 1123 "/home/jens/Source/shotwell/src/Page.vala" self->priv->cursor_hide_msec = _tmp0_; -#line 1112 "/home/jens/Source/shotwell/src/Page.vala" +#line 1124 "/home/jens/Source/shotwell/src/Page.vala" page_check_cursor_hiding (self); -#line 7684 "Page.c" +#line 7806 "Page.c" } @@ -7688,29 +7810,29 @@ static void page_real_set_page_cursor (Page* self, GdkCursorType cursor_type) { GdkCursorType _tmp0_ = 0; gboolean _tmp1_ = FALSE; gboolean _tmp2_ = FALSE; -#line 1117 "/home/jens/Source/shotwell/src/Page.vala" +#line 1129 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = cursor_type; -#line 1117 "/home/jens/Source/shotwell/src/Page.vala" +#line 1129 "/home/jens/Source/shotwell/src/Page.vala" self->priv->last_cursor = _tmp0_; -#line 1119 "/home/jens/Source/shotwell/src/Page.vala" +#line 1131 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = self->priv->cursor_hidden; -#line 1119 "/home/jens/Source/shotwell/src/Page.vala" +#line 1131 "/home/jens/Source/shotwell/src/Page.vala" if (!_tmp2_) { -#line 7700 "Page.c" +#line 7822 "Page.c" GtkWidget* _tmp3_ = NULL; -#line 1119 "/home/jens/Source/shotwell/src/Page.vala" +#line 1131 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = self->priv->event_source; -#line 1119 "/home/jens/Source/shotwell/src/Page.vala" +#line 1131 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = _tmp3_ != NULL; -#line 7706 "Page.c" +#line 7828 "Page.c" } else { -#line 1119 "/home/jens/Source/shotwell/src/Page.vala" +#line 1131 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = FALSE; -#line 7710 "Page.c" +#line 7832 "Page.c" } -#line 1119 "/home/jens/Source/shotwell/src/Page.vala" +#line 1131 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp1_) { -#line 7714 "Page.c" +#line 7836 "Page.c" GdkDisplay* display = NULL; GtkWidget* _tmp4_ = NULL; GdkWindow* _tmp5_ = NULL; @@ -7722,103 +7844,103 @@ static void page_real_set_page_cursor (Page* self, GdkCursorType cursor_type) { GdkCursorType _tmp11_ = 0; GdkCursor* _tmp12_ = NULL; GdkCursor* _tmp13_ = NULL; -#line 1120 "/home/jens/Source/shotwell/src/Page.vala" +#line 1132 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = self->priv->event_source; -#line 1120 "/home/jens/Source/shotwell/src/Page.vala" +#line 1132 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = gtk_widget_get_window (_tmp4_); -#line 1120 "/home/jens/Source/shotwell/src/Page.vala" +#line 1132 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = gdk_window_get_display (_tmp5_); -#line 1120 "/home/jens/Source/shotwell/src/Page.vala" +#line 1132 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = _g_object_ref0 (_tmp6_); -#line 1120 "/home/jens/Source/shotwell/src/Page.vala" +#line 1132 "/home/jens/Source/shotwell/src/Page.vala" display = _tmp7_; -#line 1121 "/home/jens/Source/shotwell/src/Page.vala" +#line 1133 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = self->priv->event_source; -#line 1121 "/home/jens/Source/shotwell/src/Page.vala" +#line 1133 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = gtk_widget_get_window (_tmp8_); -#line 1121 "/home/jens/Source/shotwell/src/Page.vala" +#line 1133 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = display; -#line 1121 "/home/jens/Source/shotwell/src/Page.vala" +#line 1133 "/home/jens/Source/shotwell/src/Page.vala" _tmp11_ = cursor_type; -#line 1121 "/home/jens/Source/shotwell/src/Page.vala" +#line 1133 "/home/jens/Source/shotwell/src/Page.vala" _tmp12_ = gdk_cursor_new_for_display (_tmp10_, _tmp11_); -#line 1121 "/home/jens/Source/shotwell/src/Page.vala" +#line 1133 "/home/jens/Source/shotwell/src/Page.vala" _tmp13_ = _tmp12_; -#line 1121 "/home/jens/Source/shotwell/src/Page.vala" +#line 1133 "/home/jens/Source/shotwell/src/Page.vala" gdk_window_set_cursor (_tmp9_, _tmp13_); -#line 1121 "/home/jens/Source/shotwell/src/Page.vala" +#line 1133 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (_tmp13_); -#line 1119 "/home/jens/Source/shotwell/src/Page.vala" +#line 1131 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (display); -#line 7754 "Page.c" +#line 7876 "Page.c" } } void page_set_page_cursor (Page* self, GdkCursorType cursor_type) { -#line 1116 "/home/jens/Source/shotwell/src/Page.vala" +#line 1128 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 1116 "/home/jens/Source/shotwell/src/Page.vala" +#line 1128 "/home/jens/Source/shotwell/src/Page.vala" PAGE_GET_CLASS (self)->set_page_cursor (self, cursor_type); -#line 7764 "Page.c" +#line 7886 "Page.c" } static gboolean _page_on_hide_cursor_gsource_func (gpointer self) { gboolean result; result = page_on_hide_cursor ((Page*) self); -#line 1134 "/home/jens/Source/shotwell/src/Page.vala" +#line 1146 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 7773 "Page.c" +#line 7895 "Page.c" } static void page_check_cursor_hiding (Page* self) { gboolean _tmp0_ = FALSE; gint _tmp2_ = 0; -#line 1125 "/home/jens/Source/shotwell/src/Page.vala" +#line 1137 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 1126 "/home/jens/Source/shotwell/src/Page.vala" +#line 1138 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->cursor_hidden; -#line 1126 "/home/jens/Source/shotwell/src/Page.vala" +#line 1138 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp0_) { -#line 7786 "Page.c" +#line 7908 "Page.c" GdkCursorType _tmp1_ = 0; -#line 1127 "/home/jens/Source/shotwell/src/Page.vala" +#line 1139 "/home/jens/Source/shotwell/src/Page.vala" self->priv->cursor_hidden = FALSE; -#line 1128 "/home/jens/Source/shotwell/src/Page.vala" +#line 1140 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = self->priv->last_cursor; -#line 1128 "/home/jens/Source/shotwell/src/Page.vala" +#line 1140 "/home/jens/Source/shotwell/src/Page.vala" page_set_page_cursor (self, _tmp1_); -#line 7794 "Page.c" +#line 7916 "Page.c" } -#line 1131 "/home/jens/Source/shotwell/src/Page.vala" +#line 1143 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = self->priv->cursor_hide_msec; -#line 1131 "/home/jens/Source/shotwell/src/Page.vala" +#line 1143 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp2_ != 0) { -#line 7800 "Page.c" +#line 7922 "Page.c" guint _tmp3_ = 0U; gint _tmp5_ = 0; guint _tmp6_ = 0U; -#line 1132 "/home/jens/Source/shotwell/src/Page.vala" +#line 1144 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = self->priv->last_timeout_id; -#line 1132 "/home/jens/Source/shotwell/src/Page.vala" +#line 1144 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp3_ != ((guint) 0)) { -#line 7808 "Page.c" +#line 7930 "Page.c" guint _tmp4_ = 0U; -#line 1133 "/home/jens/Source/shotwell/src/Page.vala" +#line 1145 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = self->priv->last_timeout_id; -#line 1133 "/home/jens/Source/shotwell/src/Page.vala" +#line 1145 "/home/jens/Source/shotwell/src/Page.vala" g_source_remove (_tmp4_); -#line 7814 "Page.c" +#line 7936 "Page.c" } -#line 1134 "/home/jens/Source/shotwell/src/Page.vala" +#line 1146 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = self->priv->cursor_hide_msec; -#line 1134 "/home/jens/Source/shotwell/src/Page.vala" +#line 1146 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) _tmp5_, _page_on_hide_cursor_gsource_func, g_object_ref (self), g_object_unref); -#line 1134 "/home/jens/Source/shotwell/src/Page.vala" +#line 1146 "/home/jens/Source/shotwell/src/Page.vala" self->priv->last_timeout_id = _tmp6_; -#line 7822 "Page.c" +#line 7944 "Page.c" } } @@ -7826,15 +7948,15 @@ static void page_check_cursor_hiding (Page* self) { static gboolean page_on_hide_cursor (Page* self) { gboolean result = FALSE; GtkWidget* _tmp0_ = NULL; -#line 1138 "/home/jens/Source/shotwell/src/Page.vala" +#line 1150 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 1139 "/home/jens/Source/shotwell/src/Page.vala" +#line 1151 "/home/jens/Source/shotwell/src/Page.vala" self->priv->cursor_hidden = TRUE; -#line 1141 "/home/jens/Source/shotwell/src/Page.vala" +#line 1153 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->event_source; -#line 1141 "/home/jens/Source/shotwell/src/Page.vala" +#line 1153 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp0_ != NULL) { -#line 7838 "Page.c" +#line 7960 "Page.c" GdkDisplay* display = NULL; GtkWidget* _tmp1_ = NULL; GdkWindow* _tmp2_ = NULL; @@ -7845,41 +7967,41 @@ static gboolean page_on_hide_cursor (Page* self) { GdkDisplay* _tmp7_ = NULL; GdkCursor* _tmp8_ = NULL; GdkCursor* _tmp9_ = NULL; -#line 1142 "/home/jens/Source/shotwell/src/Page.vala" +#line 1154 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = self->priv->event_source; -#line 1142 "/home/jens/Source/shotwell/src/Page.vala" +#line 1154 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = gtk_widget_get_window (_tmp1_); -#line 1142 "/home/jens/Source/shotwell/src/Page.vala" +#line 1154 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = gdk_window_get_display (_tmp2_); -#line 1142 "/home/jens/Source/shotwell/src/Page.vala" +#line 1154 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = _g_object_ref0 (_tmp3_); -#line 1142 "/home/jens/Source/shotwell/src/Page.vala" +#line 1154 "/home/jens/Source/shotwell/src/Page.vala" display = _tmp4_; -#line 1143 "/home/jens/Source/shotwell/src/Page.vala" +#line 1155 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = self->priv->event_source; -#line 1143 "/home/jens/Source/shotwell/src/Page.vala" +#line 1155 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = gtk_widget_get_window (_tmp5_); -#line 1143 "/home/jens/Source/shotwell/src/Page.vala" +#line 1155 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = display; -#line 1143 "/home/jens/Source/shotwell/src/Page.vala" +#line 1155 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = gdk_cursor_new_for_display (_tmp7_, GDK_BLANK_CURSOR); -#line 1143 "/home/jens/Source/shotwell/src/Page.vala" +#line 1155 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = _tmp8_; -#line 1143 "/home/jens/Source/shotwell/src/Page.vala" +#line 1155 "/home/jens/Source/shotwell/src/Page.vala" gdk_window_set_cursor (_tmp6_, _tmp9_); -#line 1143 "/home/jens/Source/shotwell/src/Page.vala" +#line 1155 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (_tmp9_); -#line 1141 "/home/jens/Source/shotwell/src/Page.vala" +#line 1153 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (display); -#line 7875 "Page.c" +#line 7997 "Page.c" } -#line 1147 "/home/jens/Source/shotwell/src/Page.vala" +#line 1159 "/home/jens/Source/shotwell/src/Page.vala" self->priv->last_timeout_id = (guint) 0; -#line 1149 "/home/jens/Source/shotwell/src/Page.vala" +#line 1161 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 1149 "/home/jens/Source/shotwell/src/Page.vala" +#line 1161 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 7883 "Page.c" +#line 8005 "Page.c" } @@ -7888,25 +8010,25 @@ void page_update_menu_item_label (Page* self, const gchar* id, const gchar* new_ AppWindow* _tmp1_ = NULL; const gchar* _tmp2_ = NULL; const gchar* _tmp3_ = NULL; -#line 1152 "/home/jens/Source/shotwell/src/Page.vala" +#line 1164 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (self)); -#line 1152 "/home/jens/Source/shotwell/src/Page.vala" +#line 1164 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (id != NULL); -#line 1152 "/home/jens/Source/shotwell/src/Page.vala" +#line 1164 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (new_label != NULL); -#line 1154 "/home/jens/Source/shotwell/src/Page.vala" +#line 1166 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = app_window_get_instance (); -#line 1154 "/home/jens/Source/shotwell/src/Page.vala" +#line 1166 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = _tmp0_; -#line 1154 "/home/jens/Source/shotwell/src/Page.vala" +#line 1166 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = id; -#line 1154 "/home/jens/Source/shotwell/src/Page.vala" +#line 1166 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = new_label; -#line 1154 "/home/jens/Source/shotwell/src/Page.vala" +#line 1166 "/home/jens/Source/shotwell/src/Page.vala" app_window_update_menu_item_label (_tmp1_, _tmp2_, _tmp3_); -#line 1154 "/home/jens/Source/shotwell/src/Page.vala" +#line 1166 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (_tmp1_); -#line 7910 "Page.c" +#line 8032 "Page.c" } @@ -7916,33 +8038,33 @@ GMenuModel* page_find_extension_point (Page* self, GMenuModel* model, const gcha GMenuModel* _tmp0_ = NULL; gint _tmp1_ = 0; GMenuModel* section = NULL; -#line 1157 "/home/jens/Source/shotwell/src/Page.vala" +#line 1169 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (self), NULL); -#line 1157 "/home/jens/Source/shotwell/src/Page.vala" +#line 1169 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (G_IS_MENU_MODEL (model), NULL); -#line 1157 "/home/jens/Source/shotwell/src/Page.vala" +#line 1169 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (extension_point != NULL, NULL); -#line 1159 "/home/jens/Source/shotwell/src/Page.vala" +#line 1171 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = model; -#line 1159 "/home/jens/Source/shotwell/src/Page.vala" +#line 1171 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = g_menu_model_get_n_items (_tmp0_); -#line 1159 "/home/jens/Source/shotwell/src/Page.vala" +#line 1171 "/home/jens/Source/shotwell/src/Page.vala" items = _tmp1_; -#line 1160 "/home/jens/Source/shotwell/src/Page.vala" +#line 1172 "/home/jens/Source/shotwell/src/Page.vala" section = NULL; -#line 7934 "Page.c" +#line 8056 "Page.c" { gint i = 0; -#line 1162 "/home/jens/Source/shotwell/src/Page.vala" +#line 1174 "/home/jens/Source/shotwell/src/Page.vala" i = 0; -#line 7939 "Page.c" +#line 8061 "Page.c" { gboolean _tmp2_ = FALSE; -#line 1162 "/home/jens/Source/shotwell/src/Page.vala" +#line 1174 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = TRUE; -#line 1162 "/home/jens/Source/shotwell/src/Page.vala" +#line 1174 "/home/jens/Source/shotwell/src/Page.vala" while (TRUE) { -#line 7946 "Page.c" +#line 8068 "Page.c" gboolean _tmp4_ = FALSE; gint _tmp5_ = 0; gint _tmp6_ = 0; @@ -7951,71 +8073,71 @@ GMenuModel* page_find_extension_point (Page* self, GMenuModel* model, const gcha gint _tmp9_ = 0; const gchar* _tmp10_ = NULL; const gchar* _tmp11_ = NULL; -#line 1162 "/home/jens/Source/shotwell/src/Page.vala" +#line 1174 "/home/jens/Source/shotwell/src/Page.vala" if (!_tmp2_) { -#line 7957 "Page.c" +#line 8079 "Page.c" gint _tmp3_ = 0; -#line 1162 "/home/jens/Source/shotwell/src/Page.vala" +#line 1174 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = i; -#line 1162 "/home/jens/Source/shotwell/src/Page.vala" +#line 1174 "/home/jens/Source/shotwell/src/Page.vala" i = _tmp3_ + 1; -#line 7963 "Page.c" +#line 8085 "Page.c" } -#line 1162 "/home/jens/Source/shotwell/src/Page.vala" +#line 1174 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = FALSE; -#line 1162 "/home/jens/Source/shotwell/src/Page.vala" +#line 1174 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = i; -#line 1162 "/home/jens/Source/shotwell/src/Page.vala" +#line 1174 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = items; -#line 1162 "/home/jens/Source/shotwell/src/Page.vala" +#line 1174 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp5_ < _tmp6_) { -#line 7973 "Page.c" +#line 8095 "Page.c" GMenuModel* _tmp7_ = NULL; -#line 1162 "/home/jens/Source/shotwell/src/Page.vala" +#line 1174 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = section; -#line 1162 "/home/jens/Source/shotwell/src/Page.vala" +#line 1174 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = _tmp7_ == NULL; -#line 7979 "Page.c" +#line 8101 "Page.c" } else { -#line 1162 "/home/jens/Source/shotwell/src/Page.vala" +#line 1174 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = FALSE; -#line 7983 "Page.c" +#line 8105 "Page.c" } -#line 1162 "/home/jens/Source/shotwell/src/Page.vala" +#line 1174 "/home/jens/Source/shotwell/src/Page.vala" if (!_tmp4_) { -#line 1162 "/home/jens/Source/shotwell/src/Page.vala" +#line 1174 "/home/jens/Source/shotwell/src/Page.vala" break; -#line 7989 "Page.c" +#line 8111 "Page.c" } -#line 1163 "/home/jens/Source/shotwell/src/Page.vala" +#line 1175 "/home/jens/Source/shotwell/src/Page.vala" name = NULL; -#line 1164 "/home/jens/Source/shotwell/src/Page.vala" +#line 1176 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = model; -#line 1164 "/home/jens/Source/shotwell/src/Page.vala" +#line 1176 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = i; -#line 1164 "/home/jens/Source/shotwell/src/Page.vala" +#line 1176 "/home/jens/Source/shotwell/src/Page.vala" g_menu_model_get_item_attribute (_tmp8_, _tmp9_, "id", "s", &name, NULL); -#line 1165 "/home/jens/Source/shotwell/src/Page.vala" +#line 1177 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = name; -#line 1165 "/home/jens/Source/shotwell/src/Page.vala" +#line 1177 "/home/jens/Source/shotwell/src/Page.vala" _tmp11_ = extension_point; -#line 1165 "/home/jens/Source/shotwell/src/Page.vala" +#line 1177 "/home/jens/Source/shotwell/src/Page.vala" if (g_strcmp0 (_tmp10_, _tmp11_) == 0) { -#line 8005 "Page.c" +#line 8127 "Page.c" GMenuModel* _tmp12_ = NULL; gint _tmp13_ = 0; GMenuModel* _tmp14_ = NULL; -#line 1166 "/home/jens/Source/shotwell/src/Page.vala" +#line 1178 "/home/jens/Source/shotwell/src/Page.vala" _tmp12_ = model; -#line 1166 "/home/jens/Source/shotwell/src/Page.vala" +#line 1178 "/home/jens/Source/shotwell/src/Page.vala" _tmp13_ = i; -#line 1166 "/home/jens/Source/shotwell/src/Page.vala" +#line 1178 "/home/jens/Source/shotwell/src/Page.vala" _tmp14_ = g_menu_model_get_item_link (_tmp12_, _tmp13_, G_MENU_LINK_SECTION); -#line 1166 "/home/jens/Source/shotwell/src/Page.vala" +#line 1178 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (section); -#line 1166 "/home/jens/Source/shotwell/src/Page.vala" +#line 1178 "/home/jens/Source/shotwell/src/Page.vala" section = _tmp14_; -#line 8019 "Page.c" +#line 8141 "Page.c" } else { GMenuModel* subsection = NULL; GMenuModel* _tmp15_ = NULL; @@ -8025,45 +8147,45 @@ GMenuModel* page_find_extension_point (Page* self, GMenuModel* model, const gcha gint sub_items = 0; GMenuModel* _tmp19_ = NULL; gint _tmp20_ = 0; -#line 1168 "/home/jens/Source/shotwell/src/Page.vala" +#line 1180 "/home/jens/Source/shotwell/src/Page.vala" _tmp15_ = model; -#line 1168 "/home/jens/Source/shotwell/src/Page.vala" +#line 1180 "/home/jens/Source/shotwell/src/Page.vala" _tmp16_ = i; -#line 1168 "/home/jens/Source/shotwell/src/Page.vala" +#line 1180 "/home/jens/Source/shotwell/src/Page.vala" _tmp17_ = g_menu_model_get_item_link (_tmp15_, _tmp16_, G_MENU_LINK_SECTION); -#line 1168 "/home/jens/Source/shotwell/src/Page.vala" +#line 1180 "/home/jens/Source/shotwell/src/Page.vala" subsection = _tmp17_; -#line 1170 "/home/jens/Source/shotwell/src/Page.vala" +#line 1182 "/home/jens/Source/shotwell/src/Page.vala" _tmp18_ = subsection; -#line 1170 "/home/jens/Source/shotwell/src/Page.vala" +#line 1182 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp18_ == NULL) { -#line 1171 "/home/jens/Source/shotwell/src/Page.vala" +#line 1183 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (subsection); -#line 1171 "/home/jens/Source/shotwell/src/Page.vala" +#line 1183 "/home/jens/Source/shotwell/src/Page.vala" _g_free0 (name); -#line 1171 "/home/jens/Source/shotwell/src/Page.vala" +#line 1183 "/home/jens/Source/shotwell/src/Page.vala" continue; -#line 8047 "Page.c" +#line 8169 "Page.c" } -#line 1174 "/home/jens/Source/shotwell/src/Page.vala" +#line 1186 "/home/jens/Source/shotwell/src/Page.vala" _tmp19_ = subsection; -#line 1174 "/home/jens/Source/shotwell/src/Page.vala" +#line 1186 "/home/jens/Source/shotwell/src/Page.vala" _tmp20_ = g_menu_model_get_n_items (_tmp19_); -#line 1174 "/home/jens/Source/shotwell/src/Page.vala" +#line 1186 "/home/jens/Source/shotwell/src/Page.vala" sub_items = _tmp20_; -#line 8055 "Page.c" +#line 8177 "Page.c" { gint j = 0; -#line 1175 "/home/jens/Source/shotwell/src/Page.vala" +#line 1187 "/home/jens/Source/shotwell/src/Page.vala" j = 0; -#line 8060 "Page.c" +#line 8182 "Page.c" { gboolean _tmp21_ = FALSE; -#line 1175 "/home/jens/Source/shotwell/src/Page.vala" +#line 1187 "/home/jens/Source/shotwell/src/Page.vala" _tmp21_ = TRUE; -#line 1175 "/home/jens/Source/shotwell/src/Page.vala" +#line 1187 "/home/jens/Source/shotwell/src/Page.vala" while (TRUE) { -#line 8067 "Page.c" +#line 8189 "Page.c" gboolean _tmp23_ = FALSE; gint _tmp24_ = 0; gint _tmp25_ = 0; @@ -8072,91 +8194,91 @@ GMenuModel* page_find_extension_point (Page* self, GMenuModel* model, const gcha gint _tmp28_ = 0; GMenuModel* _tmp29_ = NULL; GMenuModel* _tmp30_ = NULL; -#line 1175 "/home/jens/Source/shotwell/src/Page.vala" +#line 1187 "/home/jens/Source/shotwell/src/Page.vala" if (!_tmp21_) { -#line 8078 "Page.c" +#line 8200 "Page.c" gint _tmp22_ = 0; -#line 1175 "/home/jens/Source/shotwell/src/Page.vala" +#line 1187 "/home/jens/Source/shotwell/src/Page.vala" _tmp22_ = j; -#line 1175 "/home/jens/Source/shotwell/src/Page.vala" +#line 1187 "/home/jens/Source/shotwell/src/Page.vala" j = _tmp22_ + 1; -#line 8084 "Page.c" +#line 8206 "Page.c" } -#line 1175 "/home/jens/Source/shotwell/src/Page.vala" +#line 1187 "/home/jens/Source/shotwell/src/Page.vala" _tmp21_ = FALSE; -#line 1175 "/home/jens/Source/shotwell/src/Page.vala" +#line 1187 "/home/jens/Source/shotwell/src/Page.vala" _tmp24_ = j; -#line 1175 "/home/jens/Source/shotwell/src/Page.vala" +#line 1187 "/home/jens/Source/shotwell/src/Page.vala" _tmp25_ = sub_items; -#line 1175 "/home/jens/Source/shotwell/src/Page.vala" +#line 1187 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp24_ < _tmp25_) { -#line 8094 "Page.c" +#line 8216 "Page.c" GMenuModel* _tmp26_ = NULL; -#line 1175 "/home/jens/Source/shotwell/src/Page.vala" +#line 1187 "/home/jens/Source/shotwell/src/Page.vala" _tmp26_ = section; -#line 1175 "/home/jens/Source/shotwell/src/Page.vala" +#line 1187 "/home/jens/Source/shotwell/src/Page.vala" _tmp23_ = _tmp26_ == NULL; -#line 8100 "Page.c" +#line 8222 "Page.c" } else { -#line 1175 "/home/jens/Source/shotwell/src/Page.vala" +#line 1187 "/home/jens/Source/shotwell/src/Page.vala" _tmp23_ = FALSE; -#line 8104 "Page.c" +#line 8226 "Page.c" } -#line 1175 "/home/jens/Source/shotwell/src/Page.vala" +#line 1187 "/home/jens/Source/shotwell/src/Page.vala" if (!_tmp23_) { -#line 1175 "/home/jens/Source/shotwell/src/Page.vala" +#line 1187 "/home/jens/Source/shotwell/src/Page.vala" break; -#line 8110 "Page.c" +#line 8232 "Page.c" } -#line 1176 "/home/jens/Source/shotwell/src/Page.vala" +#line 1188 "/home/jens/Source/shotwell/src/Page.vala" _tmp27_ = subsection; -#line 1176 "/home/jens/Source/shotwell/src/Page.vala" +#line 1188 "/home/jens/Source/shotwell/src/Page.vala" _tmp28_ = j; -#line 1176 "/home/jens/Source/shotwell/src/Page.vala" +#line 1188 "/home/jens/Source/shotwell/src/Page.vala" _tmp29_ = g_menu_model_get_item_link (_tmp27_, _tmp28_, G_MENU_LINK_SUBMENU); -#line 1176 "/home/jens/Source/shotwell/src/Page.vala" +#line 1188 "/home/jens/Source/shotwell/src/Page.vala" submenu = _tmp29_; -#line 1178 "/home/jens/Source/shotwell/src/Page.vala" +#line 1190 "/home/jens/Source/shotwell/src/Page.vala" _tmp30_ = submenu; -#line 1178 "/home/jens/Source/shotwell/src/Page.vala" +#line 1190 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp30_ != NULL) { -#line 8124 "Page.c" +#line 8246 "Page.c" GMenuModel* _tmp31_ = NULL; const gchar* _tmp32_ = NULL; GMenuModel* _tmp33_ = NULL; -#line 1179 "/home/jens/Source/shotwell/src/Page.vala" +#line 1191 "/home/jens/Source/shotwell/src/Page.vala" _tmp31_ = submenu; -#line 1179 "/home/jens/Source/shotwell/src/Page.vala" +#line 1191 "/home/jens/Source/shotwell/src/Page.vala" _tmp32_ = extension_point; -#line 1179 "/home/jens/Source/shotwell/src/Page.vala" +#line 1191 "/home/jens/Source/shotwell/src/Page.vala" _tmp33_ = page_find_extension_point (self, _tmp31_, _tmp32_); -#line 1179 "/home/jens/Source/shotwell/src/Page.vala" +#line 1191 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (section); -#line 1179 "/home/jens/Source/shotwell/src/Page.vala" +#line 1191 "/home/jens/Source/shotwell/src/Page.vala" section = _tmp33_; -#line 8138 "Page.c" +#line 8260 "Page.c" } -#line 1175 "/home/jens/Source/shotwell/src/Page.vala" +#line 1187 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (submenu); -#line 8142 "Page.c" +#line 8264 "Page.c" } } } -#line 1165 "/home/jens/Source/shotwell/src/Page.vala" +#line 1177 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (subsection); -#line 8148 "Page.c" +#line 8270 "Page.c" } -#line 1162 "/home/jens/Source/shotwell/src/Page.vala" +#line 1174 "/home/jens/Source/shotwell/src/Page.vala" _g_free0 (name); -#line 8152 "Page.c" +#line 8274 "Page.c" } } } -#line 1186 "/home/jens/Source/shotwell/src/Page.vala" +#line 1198 "/home/jens/Source/shotwell/src/Page.vala" result = section; -#line 1186 "/home/jens/Source/shotwell/src/Page.vala" +#line 1198 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 8160 "Page.c" +#line 8282 "Page.c" } @@ -8190,6 +8312,8 @@ static void page_class_init (PageClass * klass) { #line 58 "/home/jens/Source/shotwell/src/Page.vala" ((PageClass *) klass)->add_actions = page_real_add_actions; #line 58 "/home/jens/Source/shotwell/src/Page.vala" + ((PageClass *) klass)->remove_actions = page_real_remove_actions; +#line 58 "/home/jens/Source/shotwell/src/Page.vala" ((PageClass *) klass)->init_collect_ui_filenames = page_real_init_collect_ui_filenames; #line 58 "/home/jens/Source/shotwell/src/Page.vala" ((PageClass *) klass)->init_collect_injection_groups = page_real_init_collect_injection_groups; @@ -8267,7 +8391,7 @@ static void page_class_init (PageClass * klass) { ((PageClass *) klass)->set_page_cursor = page_real_set_page_cursor; #line 58 "/home/jens/Source/shotwell/src/Page.vala" G_OBJECT_CLASS (klass)->finalize = page_finalize; -#line 8271 "Page.c" +#line 8395 "Page.c" } @@ -8323,9 +8447,9 @@ static void page_instance_init (Page * self) { self->priv->are_actions_attached = FALSE; #line 87 "/home/jens/Source/shotwell/src/Page.vala" self->priv->update_actions_scheduler = NULL; -#line 207 "/home/jens/Source/shotwell/src/Page.vala" +#line 205 "/home/jens/Source/shotwell/src/Page.vala" self->priv->menubar_injected = FALSE; -#line 8329 "Page.c" +#line 8453 "Page.c" } @@ -8351,7 +8475,7 @@ static void page_finalize (GObject* obj) { _one_shot_scheduler_unref0 (self->priv->update_actions_scheduler); #line 58 "/home/jens/Source/shotwell/src/Page.vala" G_OBJECT_CLASS (page_parent_class)->finalize (obj); -#line 8355 "Page.c" +#line 8479 "Page.c" } @@ -8380,30 +8504,30 @@ GType checkerboard_page_activator_get_type (void) { static void _checkerboard_page_on_items_hidden_view_collection_items_hidden (ViewCollection* _sender, GeeCollection* hidden, gpointer self) { -#line 1248 "/home/jens/Source/shotwell/src/Page.vala" +#line 1260 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_page_on_items_hidden ((CheckerboardPage*) self, hidden); -#line 8386 "Page.c" +#line 8510 "Page.c" } static void _checkerboard_page_on_contents_altered_data_collection_contents_altered (DataCollection* _sender, GeeIterable* added, GeeIterable* removed, gpointer self) { -#line 1249 "/home/jens/Source/shotwell/src/Page.vala" +#line 1261 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_page_on_contents_altered ((CheckerboardPage*) self, added, removed); -#line 8393 "Page.c" +#line 8517 "Page.c" } static void _checkerboard_page_on_items_state_changed_view_collection_items_state_changed (ViewCollection* _sender, GeeIterable* changed, gpointer self) { -#line 1250 "/home/jens/Source/shotwell/src/Page.vala" +#line 1262 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_page_on_items_state_changed ((CheckerboardPage*) self, changed); -#line 8400 "Page.c" +#line 8524 "Page.c" } static void _checkerboard_page_on_items_visibility_changed_view_collection_items_visibility_changed (ViewCollection* _sender, GeeCollection* changed, gpointer self) { -#line 1251 "/home/jens/Source/shotwell/src/Page.vala" +#line 1263 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_page_on_items_visibility_changed ((CheckerboardPage*) self, changed); -#line 8407 "Page.c" +#line 8531 "Page.c" } @@ -8432,141 +8556,141 @@ CheckerboardPage* checkerboard_page_construct (GType object_type, const gchar* p ViewCollection* _tmp20_ = NULL; ViewCollection* _tmp21_ = NULL; ViewCollection* _tmp22_ = NULL; -#line 1225 "/home/jens/Source/shotwell/src/Page.vala" +#line 1237 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (page_name != NULL, NULL); -#line 1226 "/home/jens/Source/shotwell/src/Page.vala" +#line 1238 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = page_name; -#line 1226 "/home/jens/Source/shotwell/src/Page.vala" +#line 1238 "/home/jens/Source/shotwell/src/Page.vala" self = (CheckerboardPage*) page_construct (object_type, _tmp0_); -#line 1228 "/home/jens/Source/shotwell/src/Page.vala" +#line 1240 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1228 "/home/jens/Source/shotwell/src/Page.vala" +#line 1240 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = _tmp1_; -#line 1228 "/home/jens/Source/shotwell/src/Page.vala" +#line 1240 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = checkerboard_layout_new (_tmp2_); -#line 1228 "/home/jens/Source/shotwell/src/Page.vala" +#line 1240 "/home/jens/Source/shotwell/src/Page.vala" g_object_ref_sink (_tmp3_); -#line 1228 "/home/jens/Source/shotwell/src/Page.vala" +#line 1240 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->priv->layout); -#line 1228 "/home/jens/Source/shotwell/src/Page.vala" +#line 1240 "/home/jens/Source/shotwell/src/Page.vala" self->priv->layout = _tmp3_; -#line 1228 "/home/jens/Source/shotwell/src/Page.vala" +#line 1240 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp2_); -#line 1229 "/home/jens/Source/shotwell/src/Page.vala" +#line 1241 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = self->priv->layout; -#line 1229 "/home/jens/Source/shotwell/src/Page.vala" +#line 1241 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = page_name; -#line 1229 "/home/jens/Source/shotwell/src/Page.vala" +#line 1241 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_layout_set_name (_tmp4_, _tmp5_); -#line 1231 "/home/jens/Source/shotwell/src/Page.vala" +#line 1243 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = self->priv->layout; -#line 1231 "/home/jens/Source/shotwell/src/Page.vala" +#line 1243 "/home/jens/Source/shotwell/src/Page.vala" page_set_event_source (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget)); -#line 1233 "/home/jens/Source/shotwell/src/Page.vala" +#line 1245 "/home/jens/Source/shotwell/src/Page.vala" gtk_container_set_border_width (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_container_get_type (), GtkContainer), (guint) 0); -#line 1234 "/home/jens/Source/shotwell/src/Page.vala" +#line 1246 "/home/jens/Source/shotwell/src/Page.vala" gtk_scrolled_window_set_shadow_type (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_scrolled_window_get_type (), GtkScrolledWindow), GTK_SHADOW_NONE); -#line 1236 "/home/jens/Source/shotwell/src/Page.vala" +#line 1248 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = self->priv->viewport; -#line 1236 "/home/jens/Source/shotwell/src/Page.vala" +#line 1248 "/home/jens/Source/shotwell/src/Page.vala" gtk_container_set_border_width (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_container_get_type (), GtkContainer), (guint) 0); -#line 1237 "/home/jens/Source/shotwell/src/Page.vala" +#line 1249 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = self->priv->viewport; -#line 1237 "/home/jens/Source/shotwell/src/Page.vala" +#line 1249 "/home/jens/Source/shotwell/src/Page.vala" gtk_viewport_set_shadow_type (_tmp8_, GTK_SHADOW_NONE); -#line 1239 "/home/jens/Source/shotwell/src/Page.vala" +#line 1251 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = self->priv->viewport; -#line 1239 "/home/jens/Source/shotwell/src/Page.vala" +#line 1251 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = self->priv->layout; -#line 1239 "/home/jens/Source/shotwell/src/Page.vala" +#line 1251 "/home/jens/Source/shotwell/src/Page.vala" gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget)); -#line 1243 "/home/jens/Source/shotwell/src/Page.vala" +#line 1255 "/home/jens/Source/shotwell/src/Page.vala" _tmp11_ = self->priv->layout; -#line 1243 "/home/jens/Source/shotwell/src/Page.vala" +#line 1255 "/home/jens/Source/shotwell/src/Page.vala" _tmp12_ = gtk_scrolled_window_get_hadjustment (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_scrolled_window_get_type (), GtkScrolledWindow)); -#line 1243 "/home/jens/Source/shotwell/src/Page.vala" +#line 1255 "/home/jens/Source/shotwell/src/Page.vala" _tmp13_ = gtk_scrolled_window_get_vadjustment (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_scrolled_window_get_type (), GtkScrolledWindow)); -#line 1243 "/home/jens/Source/shotwell/src/Page.vala" +#line 1255 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_layout_set_adjustments (_tmp11_, _tmp12_, _tmp13_); -#line 1245 "/home/jens/Source/shotwell/src/Page.vala" +#line 1257 "/home/jens/Source/shotwell/src/Page.vala" _tmp14_ = self->priv->viewport; -#line 1245 "/home/jens/Source/shotwell/src/Page.vala" +#line 1257 "/home/jens/Source/shotwell/src/Page.vala" gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_widget_get_type (), GtkWidget)); -#line 1248 "/home/jens/Source/shotwell/src/Page.vala" +#line 1260 "/home/jens/Source/shotwell/src/Page.vala" _tmp15_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1248 "/home/jens/Source/shotwell/src/Page.vala" +#line 1260 "/home/jens/Source/shotwell/src/Page.vala" _tmp16_ = _tmp15_; -#line 1248 "/home/jens/Source/shotwell/src/Page.vala" +#line 1260 "/home/jens/Source/shotwell/src/Page.vala" g_signal_connect_object (_tmp16_, "items-hidden", (GCallback) _checkerboard_page_on_items_hidden_view_collection_items_hidden, self, 0); -#line 1248 "/home/jens/Source/shotwell/src/Page.vala" +#line 1260 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp16_); -#line 1249 "/home/jens/Source/shotwell/src/Page.vala" +#line 1261 "/home/jens/Source/shotwell/src/Page.vala" _tmp17_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1249 "/home/jens/Source/shotwell/src/Page.vala" +#line 1261 "/home/jens/Source/shotwell/src/Page.vala" _tmp18_ = _tmp17_; -#line 1249 "/home/jens/Source/shotwell/src/Page.vala" +#line 1261 "/home/jens/Source/shotwell/src/Page.vala" g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_DATA_COLLECTION, DataCollection), "contents-altered", (GCallback) _checkerboard_page_on_contents_altered_data_collection_contents_altered, self, 0); -#line 1249 "/home/jens/Source/shotwell/src/Page.vala" +#line 1261 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp18_); -#line 1250 "/home/jens/Source/shotwell/src/Page.vala" +#line 1262 "/home/jens/Source/shotwell/src/Page.vala" _tmp19_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1250 "/home/jens/Source/shotwell/src/Page.vala" +#line 1262 "/home/jens/Source/shotwell/src/Page.vala" _tmp20_ = _tmp19_; -#line 1250 "/home/jens/Source/shotwell/src/Page.vala" +#line 1262 "/home/jens/Source/shotwell/src/Page.vala" g_signal_connect_object (_tmp20_, "items-state-changed", (GCallback) _checkerboard_page_on_items_state_changed_view_collection_items_state_changed, self, 0); -#line 1250 "/home/jens/Source/shotwell/src/Page.vala" +#line 1262 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp20_); -#line 1251 "/home/jens/Source/shotwell/src/Page.vala" +#line 1263 "/home/jens/Source/shotwell/src/Page.vala" _tmp21_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1251 "/home/jens/Source/shotwell/src/Page.vala" +#line 1263 "/home/jens/Source/shotwell/src/Page.vala" _tmp22_ = _tmp21_; -#line 1251 "/home/jens/Source/shotwell/src/Page.vala" +#line 1263 "/home/jens/Source/shotwell/src/Page.vala" g_signal_connect_object (_tmp22_, "items-visibility-changed", (GCallback) _checkerboard_page_on_items_visibility_changed_view_collection_items_visibility_changed, self, 0); -#line 1251 "/home/jens/Source/shotwell/src/Page.vala" +#line 1263 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp22_); -#line 1254 "/home/jens/Source/shotwell/src/Page.vala" +#line 1266 "/home/jens/Source/shotwell/src/Page.vala" gtk_scrolled_window_set_policy (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_scrolled_window_get_type (), GtkScrolledWindow), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); -#line 1225 "/home/jens/Source/shotwell/src/Page.vala" +#line 1237 "/home/jens/Source/shotwell/src/Page.vala" return self; -#line 8532 "Page.c" +#line 8656 "Page.c" } void checkerboard_page_init_item_context_menu (CheckerboardPage* self, const gchar* path) { const gchar* _tmp0_ = NULL; gchar* _tmp1_ = NULL; -#line 1257 "/home/jens/Source/shotwell/src/Page.vala" +#line 1269 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_CHECKERBOARD_PAGE (self)); -#line 1257 "/home/jens/Source/shotwell/src/Page.vala" +#line 1269 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (path != NULL); -#line 1258 "/home/jens/Source/shotwell/src/Page.vala" +#line 1270 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = path; -#line 1258 "/home/jens/Source/shotwell/src/Page.vala" +#line 1270 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = g_strdup (_tmp0_); -#line 1258 "/home/jens/Source/shotwell/src/Page.vala" +#line 1270 "/home/jens/Source/shotwell/src/Page.vala" _g_free0 (self->priv->item_context_menu_path); -#line 1258 "/home/jens/Source/shotwell/src/Page.vala" +#line 1270 "/home/jens/Source/shotwell/src/Page.vala" self->priv->item_context_menu_path = _tmp1_; -#line 8551 "Page.c" +#line 8675 "Page.c" } void checkerboard_page_init_page_context_menu (CheckerboardPage* self, const gchar* path) { const gchar* _tmp0_ = NULL; gchar* _tmp1_ = NULL; -#line 1261 "/home/jens/Source/shotwell/src/Page.vala" +#line 1273 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_CHECKERBOARD_PAGE (self)); -#line 1261 "/home/jens/Source/shotwell/src/Page.vala" +#line 1273 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (path != NULL); -#line 1262 "/home/jens/Source/shotwell/src/Page.vala" +#line 1274 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = path; -#line 1262 "/home/jens/Source/shotwell/src/Page.vala" +#line 1274 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = g_strdup (_tmp0_); -#line 1262 "/home/jens/Source/shotwell/src/Page.vala" +#line 1274 "/home/jens/Source/shotwell/src/Page.vala" _g_free0 (self->priv->page_context_menu_path); -#line 1262 "/home/jens/Source/shotwell/src/Page.vala" +#line 1274 "/home/jens/Source/shotwell/src/Page.vala" self->priv->page_context_menu_path = _tmp1_; -#line 8570 "Page.c" +#line 8694 "Page.c" } @@ -8577,44 +8701,44 @@ GtkMenu* checkerboard_page_get_context_menu (CheckerboardPage* self) { ViewCollection* _tmp2_ = NULL; gint _tmp3_ = 0; gboolean _tmp4_ = FALSE; -#line 1265 "/home/jens/Source/shotwell/src/Page.vala" +#line 1277 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_CHECKERBOARD_PAGE (self), NULL); -#line 1267 "/home/jens/Source/shotwell/src/Page.vala" +#line 1279 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1267 "/home/jens/Source/shotwell/src/Page.vala" +#line 1279 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = _tmp1_; -#line 1267 "/home/jens/Source/shotwell/src/Page.vala" +#line 1279 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = view_collection_get_selected_count (_tmp2_); -#line 1267 "/home/jens/Source/shotwell/src/Page.vala" +#line 1279 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = _tmp3_ != 0; -#line 1267 "/home/jens/Source/shotwell/src/Page.vala" +#line 1279 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp2_); -#line 1267 "/home/jens/Source/shotwell/src/Page.vala" +#line 1279 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp4_) { -#line 8595 "Page.c" +#line 8719 "Page.c" GtkMenu* _tmp5_ = NULL; -#line 1267 "/home/jens/Source/shotwell/src/Page.vala" +#line 1279 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = checkerboard_page_get_item_context_menu (self); -#line 1267 "/home/jens/Source/shotwell/src/Page.vala" +#line 1279 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (_tmp0_); -#line 1267 "/home/jens/Source/shotwell/src/Page.vala" +#line 1279 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = _tmp5_; -#line 8603 "Page.c" +#line 8727 "Page.c" } else { GtkMenu* _tmp6_ = NULL; -#line 1268 "/home/jens/Source/shotwell/src/Page.vala" +#line 1280 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = page_get_page_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1268 "/home/jens/Source/shotwell/src/Page.vala" +#line 1280 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (_tmp0_); -#line 1268 "/home/jens/Source/shotwell/src/Page.vala" +#line 1280 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = _tmp6_; -#line 8612 "Page.c" +#line 8736 "Page.c" } -#line 1267 "/home/jens/Source/shotwell/src/Page.vala" +#line 1279 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp0_; -#line 1267 "/home/jens/Source/shotwell/src/Page.vala" +#line 1279 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 8618 "Page.c" +#line 8742 "Page.c" } @@ -8623,11 +8747,11 @@ static GtkMenu* checkerboard_page_real_get_item_context_menu (CheckerboardPage* GtkMenu* _tmp0_ = NULL; GtkMenu* _tmp8_ = NULL; GtkMenu* _tmp9_ = NULL; -#line 1273 "/home/jens/Source/shotwell/src/Page.vala" +#line 1285 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->item_context_menu; -#line 1273 "/home/jens/Source/shotwell/src/Page.vala" +#line 1285 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp0_ == NULL) { -#line 8631 "Page.c" +#line 8755 "Page.c" GMenuModel* model = NULL; GtkBuilder* _tmp1_ = NULL; const gchar* _tmp2_ = NULL; @@ -8636,52 +8760,52 @@ static GtkMenu* checkerboard_page_real_get_item_context_menu (CheckerboardPage* GMenuModel* _tmp5_ = NULL; GtkMenu* _tmp6_ = NULL; GtkMenu* _tmp7_ = NULL; -#line 1274 "/home/jens/Source/shotwell/src/Page.vala" +#line 1286 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->builder; -#line 1274 "/home/jens/Source/shotwell/src/Page.vala" +#line 1286 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = self->priv->item_context_menu_path; -#line 1274 "/home/jens/Source/shotwell/src/Page.vala" +#line 1286 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = gtk_builder_get_object (_tmp1_, _tmp2_); -#line 1274 "/home/jens/Source/shotwell/src/Page.vala" +#line 1286 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, g_menu_model_get_type ()) ? ((GMenuModel*) _tmp3_) : NULL); -#line 1274 "/home/jens/Source/shotwell/src/Page.vala" +#line 1286 "/home/jens/Source/shotwell/src/Page.vala" model = _tmp4_; -#line 1276 "/home/jens/Source/shotwell/src/Page.vala" +#line 1288 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = model; -#line 1276 "/home/jens/Source/shotwell/src/Page.vala" +#line 1288 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = (GtkMenu*) gtk_menu_new_from_model (_tmp5_); -#line 1276 "/home/jens/Source/shotwell/src/Page.vala" +#line 1288 "/home/jens/Source/shotwell/src/Page.vala" g_object_ref_sink (_tmp6_); -#line 1276 "/home/jens/Source/shotwell/src/Page.vala" +#line 1288 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->priv->item_context_menu); -#line 1276 "/home/jens/Source/shotwell/src/Page.vala" +#line 1288 "/home/jens/Source/shotwell/src/Page.vala" self->priv->item_context_menu = _tmp6_; -#line 1277 "/home/jens/Source/shotwell/src/Page.vala" +#line 1289 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = self->priv->item_context_menu; -#line 1277 "/home/jens/Source/shotwell/src/Page.vala" +#line 1289 "/home/jens/Source/shotwell/src/Page.vala" gtk_menu_attach_to_widget (_tmp7_, G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), NULL); -#line 1273 "/home/jens/Source/shotwell/src/Page.vala" +#line 1285 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (model); -#line 8666 "Page.c" +#line 8790 "Page.c" } -#line 1280 "/home/jens/Source/shotwell/src/Page.vala" +#line 1292 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = self->priv->item_context_menu; -#line 1280 "/home/jens/Source/shotwell/src/Page.vala" +#line 1292 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = _g_object_ref0 (_tmp8_); -#line 1280 "/home/jens/Source/shotwell/src/Page.vala" +#line 1292 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp9_; -#line 1280 "/home/jens/Source/shotwell/src/Page.vala" +#line 1292 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 8676 "Page.c" +#line 8800 "Page.c" } GtkMenu* checkerboard_page_get_item_context_menu (CheckerboardPage* self) { -#line 1272 "/home/jens/Source/shotwell/src/Page.vala" +#line 1284 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_CHECKERBOARD_PAGE (self), NULL); -#line 1272 "/home/jens/Source/shotwell/src/Page.vala" +#line 1284 "/home/jens/Source/shotwell/src/Page.vala" return CHECKERBOARD_PAGE_GET_CLASS (self)->get_item_context_menu (self); -#line 8685 "Page.c" +#line 8809 "Page.c" } @@ -8691,13 +8815,13 @@ static GtkMenu* checkerboard_page_real_get_page_context_menu (Page* base) { GtkMenu* _tmp0_ = NULL; GtkMenu* _tmp8_ = NULL; GtkMenu* _tmp9_ = NULL; -#line 1284 "/home/jens/Source/shotwell/src/Page.vala" +#line 1296 "/home/jens/Source/shotwell/src/Page.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_PAGE, CheckerboardPage); -#line 1285 "/home/jens/Source/shotwell/src/Page.vala" +#line 1297 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->page_context_menu; -#line 1285 "/home/jens/Source/shotwell/src/Page.vala" +#line 1297 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp0_ == NULL) { -#line 8701 "Page.c" +#line 8825 "Page.c" GMenuModel* model = NULL; GtkBuilder* _tmp1_ = NULL; const gchar* _tmp2_ = NULL; @@ -8706,43 +8830,43 @@ static GtkMenu* checkerboard_page_real_get_page_context_menu (Page* base) { GMenuModel* _tmp5_ = NULL; GtkMenu* _tmp6_ = NULL; GtkMenu* _tmp7_ = NULL; -#line 1286 "/home/jens/Source/shotwell/src/Page.vala" +#line 1298 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->builder; -#line 1286 "/home/jens/Source/shotwell/src/Page.vala" +#line 1298 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = self->priv->page_context_menu_path; -#line 1286 "/home/jens/Source/shotwell/src/Page.vala" +#line 1298 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = gtk_builder_get_object (_tmp1_, _tmp2_); -#line 1286 "/home/jens/Source/shotwell/src/Page.vala" +#line 1298 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, g_menu_model_get_type ()) ? ((GMenuModel*) _tmp3_) : NULL); -#line 1286 "/home/jens/Source/shotwell/src/Page.vala" +#line 1298 "/home/jens/Source/shotwell/src/Page.vala" model = _tmp4_; -#line 1288 "/home/jens/Source/shotwell/src/Page.vala" +#line 1300 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = model; -#line 1288 "/home/jens/Source/shotwell/src/Page.vala" +#line 1300 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = (GtkMenu*) gtk_menu_new_from_model (_tmp5_); -#line 1288 "/home/jens/Source/shotwell/src/Page.vala" +#line 1300 "/home/jens/Source/shotwell/src/Page.vala" g_object_ref_sink (_tmp6_); -#line 1288 "/home/jens/Source/shotwell/src/Page.vala" +#line 1300 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->priv->page_context_menu); -#line 1288 "/home/jens/Source/shotwell/src/Page.vala" +#line 1300 "/home/jens/Source/shotwell/src/Page.vala" self->priv->page_context_menu = _tmp6_; -#line 1289 "/home/jens/Source/shotwell/src/Page.vala" +#line 1301 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = self->priv->page_context_menu; -#line 1289 "/home/jens/Source/shotwell/src/Page.vala" +#line 1301 "/home/jens/Source/shotwell/src/Page.vala" gtk_menu_attach_to_widget (_tmp7_, G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), NULL); -#line 1285 "/home/jens/Source/shotwell/src/Page.vala" +#line 1297 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (model); -#line 8736 "Page.c" +#line 8860 "Page.c" } -#line 1292 "/home/jens/Source/shotwell/src/Page.vala" +#line 1304 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = self->priv->page_context_menu; -#line 1292 "/home/jens/Source/shotwell/src/Page.vala" +#line 1304 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = _g_object_ref0 (_tmp8_); -#line 1292 "/home/jens/Source/shotwell/src/Page.vala" +#line 1304 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp9_; -#line 1292 "/home/jens/Source/shotwell/src/Page.vala" +#line 1304 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 8746 "Page.c" +#line 8870 "Page.c" } @@ -8753,23 +8877,23 @@ static gboolean checkerboard_page_real_on_context_keypress (Page* base) { GtkMenu* _tmp1_ = NULL; gboolean _tmp2_ = FALSE; gboolean _tmp3_ = FALSE; -#line 1295 "/home/jens/Source/shotwell/src/Page.vala" +#line 1307 "/home/jens/Source/shotwell/src/Page.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_PAGE, CheckerboardPage); -#line 1296 "/home/jens/Source/shotwell/src/Page.vala" +#line 1308 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = checkerboard_page_get_context_menu (self); -#line 1296 "/home/jens/Source/shotwell/src/Page.vala" +#line 1308 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = _tmp0_; -#line 1296 "/home/jens/Source/shotwell/src/Page.vala" +#line 1308 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = page_popup_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), _tmp1_, NULL); -#line 1296 "/home/jens/Source/shotwell/src/Page.vala" +#line 1308 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = _tmp2_; -#line 1296 "/home/jens/Source/shotwell/src/Page.vala" +#line 1308 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (_tmp1_); -#line 1296 "/home/jens/Source/shotwell/src/Page.vala" +#line 1308 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp3_; -#line 1296 "/home/jens/Source/shotwell/src/Page.vala" +#line 1308 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 8773 "Page.c" +#line 8897 "Page.c" } @@ -8777,24 +8901,24 @@ static gchar* checkerboard_page_real_get_view_empty_message (CheckerboardPage* s gchar* result = NULL; const gchar* _tmp0_ = NULL; gchar* _tmp1_ = NULL; -#line 1300 "/home/jens/Source/shotwell/src/Page.vala" +#line 1312 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = _ ("No photos/videos"); -#line 1300 "/home/jens/Source/shotwell/src/Page.vala" +#line 1312 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = g_strdup (_tmp0_); -#line 1300 "/home/jens/Source/shotwell/src/Page.vala" +#line 1312 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp1_; -#line 1300 "/home/jens/Source/shotwell/src/Page.vala" +#line 1312 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 8789 "Page.c" +#line 8913 "Page.c" } gchar* checkerboard_page_get_view_empty_message (CheckerboardPage* self) { -#line 1299 "/home/jens/Source/shotwell/src/Page.vala" +#line 1311 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_CHECKERBOARD_PAGE (self), NULL); -#line 1299 "/home/jens/Source/shotwell/src/Page.vala" +#line 1311 "/home/jens/Source/shotwell/src/Page.vala" return CHECKERBOARD_PAGE_GET_CLASS (self)->get_view_empty_message (self); -#line 8798 "Page.c" +#line 8922 "Page.c" } @@ -8802,42 +8926,42 @@ static gchar* checkerboard_page_real_get_filter_no_match_message (CheckerboardPa gchar* result = NULL; const gchar* _tmp0_ = NULL; gchar* _tmp1_ = NULL; -#line 1304 "/home/jens/Source/shotwell/src/Page.vala" +#line 1316 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = _ ("No photos/videos found which match the current filter"); -#line 1304 "/home/jens/Source/shotwell/src/Page.vala" +#line 1316 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = g_strdup (_tmp0_); -#line 1304 "/home/jens/Source/shotwell/src/Page.vala" +#line 1316 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp1_; -#line 1304 "/home/jens/Source/shotwell/src/Page.vala" +#line 1316 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 8814 "Page.c" +#line 8938 "Page.c" } gchar* checkerboard_page_get_filter_no_match_message (CheckerboardPage* self) { -#line 1303 "/home/jens/Source/shotwell/src/Page.vala" +#line 1315 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_CHECKERBOARD_PAGE (self), NULL); -#line 1303 "/home/jens/Source/shotwell/src/Page.vala" +#line 1315 "/home/jens/Source/shotwell/src/Page.vala" return CHECKERBOARD_PAGE_GET_CLASS (self)->get_filter_no_match_message (self); -#line 8823 "Page.c" +#line 8947 "Page.c" } static void checkerboard_page_real_on_item_activated (CheckerboardPage* self, CheckerboardItem* item, CheckerboardPageActivator activator, CheckerboardPageKeyboardModifiers* modifiers) { -#line 1307 "/home/jens/Source/shotwell/src/Page.vala" +#line 1319 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_CHECKERBOARD_ITEM (item)); -#line 1307 "/home/jens/Source/shotwell/src/Page.vala" +#line 1319 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (modifiers != NULL); -#line 8832 "Page.c" +#line 8956 "Page.c" } void checkerboard_page_on_item_activated (CheckerboardPage* self, CheckerboardItem* item, CheckerboardPageActivator activator, CheckerboardPageKeyboardModifiers* modifiers) { -#line 1307 "/home/jens/Source/shotwell/src/Page.vala" +#line 1319 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_CHECKERBOARD_PAGE (self)); -#line 1307 "/home/jens/Source/shotwell/src/Page.vala" +#line 1319 "/home/jens/Source/shotwell/src/Page.vala" CHECKERBOARD_PAGE_GET_CLASS (self)->on_item_activated (self, item, activator, modifiers); -#line 8841 "Page.c" +#line 8965 "Page.c" } @@ -8845,61 +8969,61 @@ CheckerboardLayout* checkerboard_page_get_checkerboard_layout (CheckerboardPage* CheckerboardLayout* result = NULL; CheckerboardLayout* _tmp0_ = NULL; CheckerboardLayout* _tmp1_ = NULL; -#line 1311 "/home/jens/Source/shotwell/src/Page.vala" +#line 1323 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_CHECKERBOARD_PAGE (self), NULL); -#line 1312 "/home/jens/Source/shotwell/src/Page.vala" +#line 1324 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->layout; -#line 1312 "/home/jens/Source/shotwell/src/Page.vala" +#line 1324 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = _g_object_ref0 (_tmp0_); -#line 1312 "/home/jens/Source/shotwell/src/Page.vala" +#line 1324 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp1_; -#line 1312 "/home/jens/Source/shotwell/src/Page.vala" +#line 1324 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 8859 "Page.c" +#line 8983 "Page.c" } static SearchViewFilter* checkerboard_page_real_get_search_view_filter (CheckerboardPage* self) { -#line 1316 "/home/jens/Source/shotwell/src/Page.vala" +#line 1328 "/home/jens/Source/shotwell/src/Page.vala" g_critical ("Type `%s' does not implement abstract method `checkerboard_page_get_search_view_filter'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 1316 "/home/jens/Source/shotwell/src/Page.vala" +#line 1328 "/home/jens/Source/shotwell/src/Page.vala" return NULL; -#line 8868 "Page.c" +#line 8992 "Page.c" } SearchViewFilter* checkerboard_page_get_search_view_filter (CheckerboardPage* self) { -#line 1316 "/home/jens/Source/shotwell/src/Page.vala" +#line 1328 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_CHECKERBOARD_PAGE (self), NULL); -#line 1316 "/home/jens/Source/shotwell/src/Page.vala" +#line 1328 "/home/jens/Source/shotwell/src/Page.vala" return CHECKERBOARD_PAGE_GET_CLASS (self)->get_search_view_filter (self); -#line 8877 "Page.c" +#line 9001 "Page.c" } static CoreViewTracker* checkerboard_page_real_get_view_tracker (CheckerboardPage* self) { CoreViewTracker* result = NULL; -#line 1319 "/home/jens/Source/shotwell/src/Page.vala" +#line 1331 "/home/jens/Source/shotwell/src/Page.vala" result = NULL; -#line 1319 "/home/jens/Source/shotwell/src/Page.vala" +#line 1331 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 8887 "Page.c" +#line 9011 "Page.c" } CoreViewTracker* checkerboard_page_get_view_tracker (CheckerboardPage* self) { -#line 1318 "/home/jens/Source/shotwell/src/Page.vala" +#line 1330 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_CHECKERBOARD_PAGE (self), NULL); -#line 1318 "/home/jens/Source/shotwell/src/Page.vala" +#line 1330 "/home/jens/Source/shotwell/src/Page.vala" return CHECKERBOARD_PAGE_GET_CLASS (self)->get_view_tracker (self); -#line 8896 "Page.c" +#line 9020 "Page.c" } static void _checkerboard_page_on_view_filter_refresh_view_filter_refresh (ViewFilter* _sender, gpointer self) { -#line 1324 "/home/jens/Source/shotwell/src/Page.vala" +#line 1336 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_page_on_view_filter_refresh ((CheckerboardPage*) self); -#line 8903 "Page.c" +#line 9027 "Page.c" } @@ -8911,33 +9035,33 @@ static void checkerboard_page_real_switching_from (Page* base) { guint _tmp3_ = 0U; ViewCollection* _tmp4_ = NULL; ViewCollection* _tmp5_ = NULL; -#line 1322 "/home/jens/Source/shotwell/src/Page.vala" +#line 1334 "/home/jens/Source/shotwell/src/Page.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_PAGE, CheckerboardPage); -#line 1323 "/home/jens/Source/shotwell/src/Page.vala" +#line 1335 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->layout; -#line 1323 "/home/jens/Source/shotwell/src/Page.vala" +#line 1335 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_layout_set_in_view (_tmp0_, FALSE); -#line 1324 "/home/jens/Source/shotwell/src/Page.vala" +#line 1336 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = checkerboard_page_get_search_view_filter (self); -#line 1324 "/home/jens/Source/shotwell/src/Page.vala" +#line 1336 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = _tmp1_; -#line 1324 "/home/jens/Source/shotwell/src/Page.vala" +#line 1336 "/home/jens/Source/shotwell/src/Page.vala" g_signal_parse_name ("refresh", TYPE_VIEW_FILTER, &_tmp3_, NULL, FALSE); -#line 1324 "/home/jens/Source/shotwell/src/Page.vala" +#line 1336 "/home/jens/Source/shotwell/src/Page.vala" g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_VIEW_FILTER, ViewFilter), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _checkerboard_page_on_view_filter_refresh_view_filter_refresh, self); -#line 1324 "/home/jens/Source/shotwell/src/Page.vala" +#line 1336 "/home/jens/Source/shotwell/src/Page.vala" _view_filter_unref0 (_tmp2_); -#line 1327 "/home/jens/Source/shotwell/src/Page.vala" +#line 1339 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1327 "/home/jens/Source/shotwell/src/Page.vala" +#line 1339 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = _tmp4_; -#line 1327 "/home/jens/Source/shotwell/src/Page.vala" +#line 1339 "/home/jens/Source/shotwell/src/Page.vala" view_collection_unselect_all (_tmp5_); -#line 1327 "/home/jens/Source/shotwell/src/Page.vala" +#line 1339 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp5_); -#line 1329 "/home/jens/Source/shotwell/src/Page.vala" +#line 1341 "/home/jens/Source/shotwell/src/Page.vala" PAGE_CLASS (checkerboard_page_parent_class)->switching_from (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 8941 "Page.c" +#line 9065 "Page.c" } @@ -8950,35 +9074,35 @@ static void checkerboard_page_real_switched_to (Page* base) { ViewCollection* _tmp4_ = NULL; gint _tmp5_ = 0; gboolean _tmp6_ = FALSE; -#line 1332 "/home/jens/Source/shotwell/src/Page.vala" +#line 1344 "/home/jens/Source/shotwell/src/Page.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_PAGE, CheckerboardPage); -#line 1333 "/home/jens/Source/shotwell/src/Page.vala" +#line 1345 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->layout; -#line 1333 "/home/jens/Source/shotwell/src/Page.vala" +#line 1345 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_layout_set_in_view (_tmp0_, TRUE); -#line 1334 "/home/jens/Source/shotwell/src/Page.vala" +#line 1346 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = checkerboard_page_get_search_view_filter (self); -#line 1334 "/home/jens/Source/shotwell/src/Page.vala" +#line 1346 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = _tmp1_; -#line 1334 "/home/jens/Source/shotwell/src/Page.vala" +#line 1346 "/home/jens/Source/shotwell/src/Page.vala" g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_VIEW_FILTER, ViewFilter), "refresh", (GCallback) _checkerboard_page_on_view_filter_refresh_view_filter_refresh, self, 0); -#line 1334 "/home/jens/Source/shotwell/src/Page.vala" +#line 1346 "/home/jens/Source/shotwell/src/Page.vala" _view_filter_unref0 (_tmp2_); -#line 1335 "/home/jens/Source/shotwell/src/Page.vala" +#line 1347 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_page_on_view_filter_refresh (self); -#line 1337 "/home/jens/Source/shotwell/src/Page.vala" +#line 1349 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1337 "/home/jens/Source/shotwell/src/Page.vala" +#line 1349 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = _tmp3_; -#line 1337 "/home/jens/Source/shotwell/src/Page.vala" +#line 1349 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = view_collection_get_selected_count (_tmp4_); -#line 1337 "/home/jens/Source/shotwell/src/Page.vala" +#line 1349 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = _tmp5_ > 0; -#line 1337 "/home/jens/Source/shotwell/src/Page.vala" +#line 1349 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp4_); -#line 1337 "/home/jens/Source/shotwell/src/Page.vala" +#line 1349 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp6_) { -#line 8982 "Page.c" +#line 9106 "Page.c" CheckerboardItem* item = NULL; ViewCollection* _tmp7_ = NULL; ViewCollection* _tmp8_ = NULL; @@ -8993,37 +9117,37 @@ static void checkerboard_page_real_switched_to (Page* base) { GdkRectangle _tmp16_ = {0}; gint _tmp17_ = 0; AdjustmentRelation _tmp18_ = 0; -#line 1338 "/home/jens/Source/shotwell/src/Page.vala" +#line 1350 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1338 "/home/jens/Source/shotwell/src/Page.vala" +#line 1350 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = _tmp7_; -#line 1338 "/home/jens/Source/shotwell/src/Page.vala" +#line 1350 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = view_collection_get_selected_at (_tmp8_, 0); -#line 1338 "/home/jens/Source/shotwell/src/Page.vala" +#line 1350 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_CHECKERBOARD_ITEM, CheckerboardItem); -#line 1338 "/home/jens/Source/shotwell/src/Page.vala" +#line 1350 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp8_); -#line 1338 "/home/jens/Source/shotwell/src/Page.vala" +#line 1350 "/home/jens/Source/shotwell/src/Page.vala" item = _tmp10_; -#line 1341 "/home/jens/Source/shotwell/src/Page.vala" +#line 1353 "/home/jens/Source/shotwell/src/Page.vala" _tmp11_ = gtk_scrolled_window_get_vadjustment (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_scrolled_window_get_type (), GtkScrolledWindow)); -#line 1341 "/home/jens/Source/shotwell/src/Page.vala" +#line 1353 "/home/jens/Source/shotwell/src/Page.vala" _tmp12_ = _g_object_ref0 (_tmp11_); -#line 1341 "/home/jens/Source/shotwell/src/Page.vala" +#line 1353 "/home/jens/Source/shotwell/src/Page.vala" vadj = _tmp12_; -#line 1342 "/home/jens/Source/shotwell/src/Page.vala" +#line 1354 "/home/jens/Source/shotwell/src/Page.vala" _tmp14_ = vadj; -#line 1342 "/home/jens/Source/shotwell/src/Page.vala" +#line 1354 "/home/jens/Source/shotwell/src/Page.vala" _tmp15_ = item; -#line 1342 "/home/jens/Source/shotwell/src/Page.vala" +#line 1354 "/home/jens/Source/shotwell/src/Page.vala" _tmp16_ = _tmp15_->allocation; -#line 1342 "/home/jens/Source/shotwell/src/Page.vala" +#line 1354 "/home/jens/Source/shotwell/src/Page.vala" _tmp17_ = _tmp16_.y; -#line 1342 "/home/jens/Source/shotwell/src/Page.vala" +#line 1354 "/home/jens/Source/shotwell/src/Page.vala" _tmp18_ = get_adjustment_relation (_tmp14_, _tmp17_); -#line 1342 "/home/jens/Source/shotwell/src/Page.vala" +#line 1354 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp18_ == ADJUSTMENT_RELATION_IN_RANGE) { -#line 9027 "Page.c" +#line 9151 "Page.c" GtkAdjustment* _tmp19_ = NULL; CheckerboardItem* _tmp20_ = NULL; GdkRectangle _tmp21_ = {0}; @@ -9032,33 +9156,33 @@ static void checkerboard_page_real_switched_to (Page* base) { GdkRectangle _tmp24_ = {0}; gint _tmp25_ = 0; AdjustmentRelation _tmp26_ = 0; -#line 1343 "/home/jens/Source/shotwell/src/Page.vala" +#line 1355 "/home/jens/Source/shotwell/src/Page.vala" _tmp19_ = vadj; -#line 1343 "/home/jens/Source/shotwell/src/Page.vala" +#line 1355 "/home/jens/Source/shotwell/src/Page.vala" _tmp20_ = item; -#line 1343 "/home/jens/Source/shotwell/src/Page.vala" +#line 1355 "/home/jens/Source/shotwell/src/Page.vala" _tmp21_ = _tmp20_->allocation; -#line 1343 "/home/jens/Source/shotwell/src/Page.vala" +#line 1355 "/home/jens/Source/shotwell/src/Page.vala" _tmp22_ = _tmp21_.y; -#line 1343 "/home/jens/Source/shotwell/src/Page.vala" +#line 1355 "/home/jens/Source/shotwell/src/Page.vala" _tmp23_ = item; -#line 1343 "/home/jens/Source/shotwell/src/Page.vala" +#line 1355 "/home/jens/Source/shotwell/src/Page.vala" _tmp24_ = _tmp23_->allocation; -#line 1343 "/home/jens/Source/shotwell/src/Page.vala" +#line 1355 "/home/jens/Source/shotwell/src/Page.vala" _tmp25_ = _tmp24_.height; -#line 1343 "/home/jens/Source/shotwell/src/Page.vala" +#line 1355 "/home/jens/Source/shotwell/src/Page.vala" _tmp26_ = get_adjustment_relation (_tmp19_, _tmp22_ + _tmp25_); -#line 1343 "/home/jens/Source/shotwell/src/Page.vala" +#line 1355 "/home/jens/Source/shotwell/src/Page.vala" _tmp13_ = _tmp26_ == ADJUSTMENT_RELATION_IN_RANGE; -#line 9054 "Page.c" +#line 9178 "Page.c" } else { -#line 1342 "/home/jens/Source/shotwell/src/Page.vala" +#line 1354 "/home/jens/Source/shotwell/src/Page.vala" _tmp13_ = FALSE; -#line 9058 "Page.c" +#line 9182 "Page.c" } -#line 1342 "/home/jens/Source/shotwell/src/Page.vala" +#line 1354 "/home/jens/Source/shotwell/src/Page.vala" if (!_tmp13_) { -#line 9062 "Page.c" +#line 9186 "Page.c" gint top = 0; CheckerboardItem* _tmp27_ = NULL; GdkRectangle _tmp28_ = {0}; @@ -9067,38 +9191,38 @@ static void checkerboard_page_real_switched_to (Page* base) { gdouble _tmp31_ = 0.0; GtkAdjustment* _tmp45_ = NULL; gint _tmp46_ = 0; -#line 1346 "/home/jens/Source/shotwell/src/Page.vala" +#line 1358 "/home/jens/Source/shotwell/src/Page.vala" top = 0; -#line 1347 "/home/jens/Source/shotwell/src/Page.vala" +#line 1359 "/home/jens/Source/shotwell/src/Page.vala" _tmp27_ = item; -#line 1347 "/home/jens/Source/shotwell/src/Page.vala" +#line 1359 "/home/jens/Source/shotwell/src/Page.vala" _tmp28_ = _tmp27_->allocation; -#line 1347 "/home/jens/Source/shotwell/src/Page.vala" +#line 1359 "/home/jens/Source/shotwell/src/Page.vala" _tmp29_ = _tmp28_.y; -#line 1347 "/home/jens/Source/shotwell/src/Page.vala" +#line 1359 "/home/jens/Source/shotwell/src/Page.vala" _tmp30_ = vadj; -#line 1347 "/home/jens/Source/shotwell/src/Page.vala" +#line 1359 "/home/jens/Source/shotwell/src/Page.vala" _tmp31_ = gtk_adjustment_get_value (_tmp30_); -#line 1347 "/home/jens/Source/shotwell/src/Page.vala" +#line 1359 "/home/jens/Source/shotwell/src/Page.vala" if (((gdouble) _tmp29_) < _tmp31_) { -#line 9085 "Page.c" +#line 9209 "Page.c" CheckerboardItem* _tmp32_ = NULL; GdkRectangle _tmp33_ = {0}; gint _tmp34_ = 0; gint _tmp35_ = 0; -#line 1348 "/home/jens/Source/shotwell/src/Page.vala" +#line 1360 "/home/jens/Source/shotwell/src/Page.vala" _tmp32_ = item; -#line 1348 "/home/jens/Source/shotwell/src/Page.vala" +#line 1360 "/home/jens/Source/shotwell/src/Page.vala" _tmp33_ = _tmp32_->allocation; -#line 1348 "/home/jens/Source/shotwell/src/Page.vala" +#line 1360 "/home/jens/Source/shotwell/src/Page.vala" _tmp34_ = _tmp33_.y; -#line 1348 "/home/jens/Source/shotwell/src/Page.vala" +#line 1360 "/home/jens/Source/shotwell/src/Page.vala" top = _tmp34_; -#line 1349 "/home/jens/Source/shotwell/src/Page.vala" +#line 1361 "/home/jens/Source/shotwell/src/Page.vala" _tmp35_ = top; -#line 1349 "/home/jens/Source/shotwell/src/Page.vala" +#line 1361 "/home/jens/Source/shotwell/src/Page.vala" top = _tmp35_ - (CHECKERBOARD_LAYOUT_ROW_GUTTER_PADDING / 2); -#line 9102 "Page.c" +#line 9226 "Page.c" } else { CheckerboardItem* _tmp36_ = NULL; GdkRectangle _tmp37_ = {0}; @@ -9109,91 +9233,91 @@ static void checkerboard_page_real_switched_to (Page* base) { GtkAdjustment* _tmp42_ = NULL; gdouble _tmp43_ = 0.0; gint _tmp44_ = 0; -#line 1351 "/home/jens/Source/shotwell/src/Page.vala" +#line 1363 "/home/jens/Source/shotwell/src/Page.vala" _tmp36_ = item; -#line 1351 "/home/jens/Source/shotwell/src/Page.vala" +#line 1363 "/home/jens/Source/shotwell/src/Page.vala" _tmp37_ = _tmp36_->allocation; -#line 1351 "/home/jens/Source/shotwell/src/Page.vala" +#line 1363 "/home/jens/Source/shotwell/src/Page.vala" _tmp38_ = _tmp37_.y; -#line 1351 "/home/jens/Source/shotwell/src/Page.vala" +#line 1363 "/home/jens/Source/shotwell/src/Page.vala" _tmp39_ = item; -#line 1351 "/home/jens/Source/shotwell/src/Page.vala" +#line 1363 "/home/jens/Source/shotwell/src/Page.vala" _tmp40_ = _tmp39_->allocation; -#line 1351 "/home/jens/Source/shotwell/src/Page.vala" +#line 1363 "/home/jens/Source/shotwell/src/Page.vala" _tmp41_ = _tmp40_.height; -#line 1351 "/home/jens/Source/shotwell/src/Page.vala" +#line 1363 "/home/jens/Source/shotwell/src/Page.vala" _tmp42_ = vadj; -#line 1351 "/home/jens/Source/shotwell/src/Page.vala" +#line 1363 "/home/jens/Source/shotwell/src/Page.vala" _tmp43_ = gtk_adjustment_get_page_size (_tmp42_); -#line 1351 "/home/jens/Source/shotwell/src/Page.vala" +#line 1363 "/home/jens/Source/shotwell/src/Page.vala" top = (_tmp38_ + _tmp41_) - ((gint) _tmp43_); -#line 1352 "/home/jens/Source/shotwell/src/Page.vala" +#line 1364 "/home/jens/Source/shotwell/src/Page.vala" _tmp44_ = top; -#line 1352 "/home/jens/Source/shotwell/src/Page.vala" +#line 1364 "/home/jens/Source/shotwell/src/Page.vala" top = _tmp44_ + (CHECKERBOARD_LAYOUT_ROW_GUTTER_PADDING / 2); -#line 9135 "Page.c" +#line 9259 "Page.c" } -#line 1355 "/home/jens/Source/shotwell/src/Page.vala" +#line 1367 "/home/jens/Source/shotwell/src/Page.vala" _tmp45_ = vadj; -#line 1355 "/home/jens/Source/shotwell/src/Page.vala" +#line 1367 "/home/jens/Source/shotwell/src/Page.vala" _tmp46_ = top; -#line 1355 "/home/jens/Source/shotwell/src/Page.vala" +#line 1367 "/home/jens/Source/shotwell/src/Page.vala" gtk_adjustment_set_value (_tmp45_, (gdouble) _tmp46_); -#line 9143 "Page.c" +#line 9267 "Page.c" } -#line 1337 "/home/jens/Source/shotwell/src/Page.vala" +#line 1349 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (vadj); -#line 1337 "/home/jens/Source/shotwell/src/Page.vala" +#line 1349 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (item); -#line 9149 "Page.c" +#line 9273 "Page.c" } -#line 1360 "/home/jens/Source/shotwell/src/Page.vala" +#line 1372 "/home/jens/Source/shotwell/src/Page.vala" PAGE_CLASS (checkerboard_page_parent_class)->switched_to (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 9153 "Page.c" +#line 9277 "Page.c" } static void checkerboard_page_on_view_filter_refresh (CheckerboardPage* self) { -#line 1363 "/home/jens/Source/shotwell/src/Page.vala" +#line 1375 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_CHECKERBOARD_PAGE (self)); -#line 1364 "/home/jens/Source/shotwell/src/Page.vala" +#line 1376 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_page_update_view_filter_message (self); -#line 9162 "Page.c" +#line 9286 "Page.c" } static void checkerboard_page_on_contents_altered (CheckerboardPage* self, GeeIterable* added, GeeIterable* removed) { -#line 1367 "/home/jens/Source/shotwell/src/Page.vala" +#line 1379 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_CHECKERBOARD_PAGE (self)); -#line 1367 "/home/jens/Source/shotwell/src/Page.vala" +#line 1379 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail ((added == NULL) || GEE_IS_ITERABLE (added)); -#line 1367 "/home/jens/Source/shotwell/src/Page.vala" +#line 1379 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail ((removed == NULL) || GEE_IS_ITERABLE (removed)); -#line 1369 "/home/jens/Source/shotwell/src/Page.vala" +#line 1381 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_page_update_view_filter_message (self); -#line 9175 "Page.c" +#line 9299 "Page.c" } static void checkerboard_page_on_items_state_changed (CheckerboardPage* self, GeeIterable* changed) { -#line 1372 "/home/jens/Source/shotwell/src/Page.vala" +#line 1384 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_CHECKERBOARD_PAGE (self)); -#line 1372 "/home/jens/Source/shotwell/src/Page.vala" +#line 1384 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (GEE_IS_ITERABLE (changed)); -#line 1373 "/home/jens/Source/shotwell/src/Page.vala" +#line 1385 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_page_update_view_filter_message (self); -#line 9186 "Page.c" +#line 9310 "Page.c" } static void checkerboard_page_on_items_visibility_changed (CheckerboardPage* self, GeeCollection* changed) { -#line 1376 "/home/jens/Source/shotwell/src/Page.vala" +#line 1388 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_CHECKERBOARD_PAGE (self)); -#line 1376 "/home/jens/Source/shotwell/src/Page.vala" +#line 1388 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (GEE_IS_COLLECTION (changed)); -#line 1377 "/home/jens/Source/shotwell/src/Page.vala" +#line 1389 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_page_update_view_filter_message (self); -#line 9197 "Page.c" +#line 9321 "Page.c" } @@ -9203,87 +9327,87 @@ static void checkerboard_page_update_view_filter_message (CheckerboardPage* self ViewCollection* _tmp2_ = NULL; gboolean _tmp3_ = FALSE; gboolean _tmp4_ = FALSE; -#line 1380 "/home/jens/Source/shotwell/src/Page.vala" +#line 1392 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_CHECKERBOARD_PAGE (self)); -#line 1381 "/home/jens/Source/shotwell/src/Page.vala" +#line 1393 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1381 "/home/jens/Source/shotwell/src/Page.vala" +#line 1393 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = _tmp1_; -#line 1381 "/home/jens/Source/shotwell/src/Page.vala" +#line 1393 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = view_collection_are_items_filtered_out (_tmp2_); -#line 1381 "/home/jens/Source/shotwell/src/Page.vala" +#line 1393 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = _tmp3_; -#line 1381 "/home/jens/Source/shotwell/src/Page.vala" +#line 1393 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp2_); -#line 1381 "/home/jens/Source/shotwell/src/Page.vala" +#line 1393 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp4_) { -#line 9221 "Page.c" +#line 9345 "Page.c" ViewCollection* _tmp5_ = NULL; ViewCollection* _tmp6_ = NULL; gint _tmp7_ = 0; -#line 1381 "/home/jens/Source/shotwell/src/Page.vala" +#line 1393 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1381 "/home/jens/Source/shotwell/src/Page.vala" +#line 1393 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = _tmp5_; -#line 1381 "/home/jens/Source/shotwell/src/Page.vala" +#line 1393 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1381 "/home/jens/Source/shotwell/src/Page.vala" +#line 1393 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = _tmp7_ == 0; -#line 1381 "/home/jens/Source/shotwell/src/Page.vala" +#line 1393 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp6_); -#line 9235 "Page.c" +#line 9359 "Page.c" } else { -#line 1381 "/home/jens/Source/shotwell/src/Page.vala" +#line 1393 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = FALSE; -#line 9239 "Page.c" +#line 9363 "Page.c" } -#line 1381 "/home/jens/Source/shotwell/src/Page.vala" +#line 1393 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp0_) { -#line 9243 "Page.c" +#line 9367 "Page.c" gchar* _tmp8_ = NULL; gchar* _tmp9_ = NULL; -#line 1382 "/home/jens/Source/shotwell/src/Page.vala" +#line 1394 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = checkerboard_page_get_filter_no_match_message (self); -#line 1382 "/home/jens/Source/shotwell/src/Page.vala" +#line 1394 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = _tmp8_; -#line 1382 "/home/jens/Source/shotwell/src/Page.vala" +#line 1394 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_page_set_page_message (self, _tmp9_); -#line 1382 "/home/jens/Source/shotwell/src/Page.vala" +#line 1394 "/home/jens/Source/shotwell/src/Page.vala" _g_free0 (_tmp9_); -#line 9254 "Page.c" +#line 9378 "Page.c" } else { ViewCollection* _tmp10_ = NULL; ViewCollection* _tmp11_ = NULL; gint _tmp12_ = 0; gboolean _tmp13_ = FALSE; -#line 1383 "/home/jens/Source/shotwell/src/Page.vala" +#line 1395 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1383 "/home/jens/Source/shotwell/src/Page.vala" +#line 1395 "/home/jens/Source/shotwell/src/Page.vala" _tmp11_ = _tmp10_; -#line 1383 "/home/jens/Source/shotwell/src/Page.vala" +#line 1395 "/home/jens/Source/shotwell/src/Page.vala" _tmp12_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1383 "/home/jens/Source/shotwell/src/Page.vala" +#line 1395 "/home/jens/Source/shotwell/src/Page.vala" _tmp13_ = _tmp12_ == 0; -#line 1383 "/home/jens/Source/shotwell/src/Page.vala" +#line 1395 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp11_); -#line 1383 "/home/jens/Source/shotwell/src/Page.vala" +#line 1395 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp13_) { -#line 9272 "Page.c" +#line 9396 "Page.c" gchar* _tmp14_ = NULL; gchar* _tmp15_ = NULL; -#line 1384 "/home/jens/Source/shotwell/src/Page.vala" +#line 1396 "/home/jens/Source/shotwell/src/Page.vala" _tmp14_ = checkerboard_page_get_view_empty_message (self); -#line 1384 "/home/jens/Source/shotwell/src/Page.vala" +#line 1396 "/home/jens/Source/shotwell/src/Page.vala" _tmp15_ = _tmp14_; -#line 1384 "/home/jens/Source/shotwell/src/Page.vala" +#line 1396 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_page_set_page_message (self, _tmp15_); -#line 1384 "/home/jens/Source/shotwell/src/Page.vala" +#line 1396 "/home/jens/Source/shotwell/src/Page.vala" _g_free0 (_tmp15_); -#line 9283 "Page.c" +#line 9407 "Page.c" } else { -#line 1386 "/home/jens/Source/shotwell/src/Page.vala" +#line 1398 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_page_unset_page_message (self); -#line 9287 "Page.c" +#line 9411 "Page.c" } } } @@ -9293,27 +9417,27 @@ void checkerboard_page_set_page_message (CheckerboardPage* self, const gchar* me CheckerboardLayout* _tmp0_ = NULL; const gchar* _tmp1_ = NULL; gboolean _tmp2_ = FALSE; -#line 1390 "/home/jens/Source/shotwell/src/Page.vala" +#line 1402 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_CHECKERBOARD_PAGE (self)); -#line 1390 "/home/jens/Source/shotwell/src/Page.vala" +#line 1402 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (message != NULL); -#line 1391 "/home/jens/Source/shotwell/src/Page.vala" +#line 1403 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->layout; -#line 1391 "/home/jens/Source/shotwell/src/Page.vala" +#line 1403 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = message; -#line 1391 "/home/jens/Source/shotwell/src/Page.vala" +#line 1403 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_layout_set_message (_tmp0_, _tmp1_); -#line 1392 "/home/jens/Source/shotwell/src/Page.vala" +#line 1404 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = page_is_in_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1392 "/home/jens/Source/shotwell/src/Page.vala" +#line 1404 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp2_) { -#line 9311 "Page.c" +#line 9435 "Page.c" CheckerboardLayout* _tmp3_ = NULL; -#line 1393 "/home/jens/Source/shotwell/src/Page.vala" +#line 1405 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = self->priv->layout; -#line 1393 "/home/jens/Source/shotwell/src/Page.vala" +#line 1405 "/home/jens/Source/shotwell/src/Page.vala" gtk_widget_queue_draw (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget)); -#line 9317 "Page.c" +#line 9441 "Page.c" } } @@ -9321,23 +9445,23 @@ void checkerboard_page_set_page_message (CheckerboardPage* self, const gchar* me void checkerboard_page_unset_page_message (CheckerboardPage* self) { CheckerboardLayout* _tmp0_ = NULL; gboolean _tmp1_ = FALSE; -#line 1396 "/home/jens/Source/shotwell/src/Page.vala" +#line 1408 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_CHECKERBOARD_PAGE (self)); -#line 1397 "/home/jens/Source/shotwell/src/Page.vala" +#line 1409 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->layout; -#line 1397 "/home/jens/Source/shotwell/src/Page.vala" +#line 1409 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_layout_unset_message (_tmp0_); -#line 1398 "/home/jens/Source/shotwell/src/Page.vala" +#line 1410 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = page_is_in_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1398 "/home/jens/Source/shotwell/src/Page.vala" +#line 1410 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp1_) { -#line 9335 "Page.c" +#line 9459 "Page.c" CheckerboardLayout* _tmp2_ = NULL; -#line 1399 "/home/jens/Source/shotwell/src/Page.vala" +#line 1411 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = self->priv->layout; -#line 1399 "/home/jens/Source/shotwell/src/Page.vala" +#line 1411 "/home/jens/Source/shotwell/src/Page.vala" gtk_widget_queue_draw (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget)); -#line 9341 "Page.c" +#line 9465 "Page.c" } } @@ -9347,21 +9471,21 @@ static void checkerboard_page_real_set_page_name (Page* base, const gchar* name) const gchar* _tmp0_ = NULL; CheckerboardLayout* _tmp1_ = NULL; const gchar* _tmp2_ = NULL; -#line 1402 "/home/jens/Source/shotwell/src/Page.vala" +#line 1414 "/home/jens/Source/shotwell/src/Page.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_PAGE, CheckerboardPage); -#line 1402 "/home/jens/Source/shotwell/src/Page.vala" +#line 1414 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (name != NULL); -#line 1403 "/home/jens/Source/shotwell/src/Page.vala" +#line 1415 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = name; -#line 1403 "/home/jens/Source/shotwell/src/Page.vala" +#line 1415 "/home/jens/Source/shotwell/src/Page.vala" PAGE_CLASS (checkerboard_page_parent_class)->set_page_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), _tmp0_); -#line 1405 "/home/jens/Source/shotwell/src/Page.vala" +#line 1417 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = self->priv->layout; -#line 1405 "/home/jens/Source/shotwell/src/Page.vala" +#line 1417 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = name; -#line 1405 "/home/jens/Source/shotwell/src/Page.vala" +#line 1417 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_layout_set_name (_tmp1_, _tmp2_); -#line 9365 "Page.c" +#line 9489 "Page.c" } @@ -9371,43 +9495,43 @@ CheckerboardItem* checkerboard_page_get_item_at_pixel (CheckerboardPage* self, g gdouble _tmp1_ = 0.0; gdouble _tmp2_ = 0.0; CheckerboardItem* _tmp3_ = NULL; -#line 1408 "/home/jens/Source/shotwell/src/Page.vala" +#line 1420 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_CHECKERBOARD_PAGE (self), NULL); -#line 1409 "/home/jens/Source/shotwell/src/Page.vala" +#line 1421 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->layout; -#line 1409 "/home/jens/Source/shotwell/src/Page.vala" +#line 1421 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = x; -#line 1409 "/home/jens/Source/shotwell/src/Page.vala" +#line 1421 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = y; -#line 1409 "/home/jens/Source/shotwell/src/Page.vala" +#line 1421 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = checkerboard_layout_get_item_at_pixel (_tmp0_, _tmp1_, _tmp2_); -#line 1409 "/home/jens/Source/shotwell/src/Page.vala" +#line 1421 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp3_; -#line 1409 "/home/jens/Source/shotwell/src/Page.vala" +#line 1421 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 9389 "Page.c" +#line 9513 "Page.c" } static void checkerboard_page_on_items_hidden (CheckerboardPage* self, GeeIterable* hidden) { -#line 1412 "/home/jens/Source/shotwell/src/Page.vala" +#line 1424 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_CHECKERBOARD_PAGE (self)); -#line 1412 "/home/jens/Source/shotwell/src/Page.vala" +#line 1424 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (GEE_IS_ITERABLE (hidden)); -#line 9398 "Page.c" +#line 9522 "Page.c" { GeeIterator* _view_it = NULL; GeeIterable* _tmp0_ = NULL; GeeIterator* _tmp1_ = NULL; -#line 1413 "/home/jens/Source/shotwell/src/Page.vala" +#line 1425 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = hidden; -#line 1413 "/home/jens/Source/shotwell/src/Page.vala" +#line 1425 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = gee_iterable_iterator (_tmp0_); -#line 1413 "/home/jens/Source/shotwell/src/Page.vala" +#line 1425 "/home/jens/Source/shotwell/src/Page.vala" _view_it = _tmp1_; -#line 1413 "/home/jens/Source/shotwell/src/Page.vala" +#line 1425 "/home/jens/Source/shotwell/src/Page.vala" while (TRUE) { -#line 9411 "Page.c" +#line 9535 "Page.c" GeeIterator* _tmp2_ = NULL; gboolean _tmp3_ = FALSE; DataView* view = NULL; @@ -9422,73 +9546,73 @@ static void checkerboard_page_on_items_hidden (CheckerboardPage* self, GeeIterab CheckerboardItem* _tmp11_ = NULL; CheckerboardItem* _tmp12_ = NULL; CheckerboardItem* _tmp13_ = NULL; -#line 1413 "/home/jens/Source/shotwell/src/Page.vala" +#line 1425 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = _view_it; -#line 1413 "/home/jens/Source/shotwell/src/Page.vala" +#line 1425 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = gee_iterator_next (_tmp2_); -#line 1413 "/home/jens/Source/shotwell/src/Page.vala" +#line 1425 "/home/jens/Source/shotwell/src/Page.vala" if (!_tmp3_) { -#line 1413 "/home/jens/Source/shotwell/src/Page.vala" +#line 1425 "/home/jens/Source/shotwell/src/Page.vala" break; -#line 9434 "Page.c" +#line 9558 "Page.c" } -#line 1413 "/home/jens/Source/shotwell/src/Page.vala" +#line 1425 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = _view_it; -#line 1413 "/home/jens/Source/shotwell/src/Page.vala" +#line 1425 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = gee_iterator_get (_tmp4_); -#line 1413 "/home/jens/Source/shotwell/src/Page.vala" +#line 1425 "/home/jens/Source/shotwell/src/Page.vala" view = (DataView*) _tmp5_; -#line 1414 "/home/jens/Source/shotwell/src/Page.vala" +#line 1426 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = view; -#line 1414 "/home/jens/Source/shotwell/src/Page.vala" +#line 1426 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_CHECKERBOARD_ITEM, CheckerboardItem)); -#line 1414 "/home/jens/Source/shotwell/src/Page.vala" +#line 1426 "/home/jens/Source/shotwell/src/Page.vala" item = _tmp7_; -#line 1416 "/home/jens/Source/shotwell/src/Page.vala" +#line 1428 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = self->anchor; -#line 1416 "/home/jens/Source/shotwell/src/Page.vala" +#line 1428 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = item; -#line 1416 "/home/jens/Source/shotwell/src/Page.vala" +#line 1428 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp8_ == _tmp9_) { -#line 1417 "/home/jens/Source/shotwell/src/Page.vala" +#line 1429 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->anchor); -#line 1417 "/home/jens/Source/shotwell/src/Page.vala" +#line 1429 "/home/jens/Source/shotwell/src/Page.vala" self->anchor = NULL; -#line 9458 "Page.c" +#line 9582 "Page.c" } -#line 1419 "/home/jens/Source/shotwell/src/Page.vala" +#line 1431 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = self->cursor; -#line 1419 "/home/jens/Source/shotwell/src/Page.vala" +#line 1431 "/home/jens/Source/shotwell/src/Page.vala" _tmp11_ = item; -#line 1419 "/home/jens/Source/shotwell/src/Page.vala" +#line 1431 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp10_ == _tmp11_) { -#line 1420 "/home/jens/Source/shotwell/src/Page.vala" +#line 1432 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->cursor); -#line 1420 "/home/jens/Source/shotwell/src/Page.vala" +#line 1432 "/home/jens/Source/shotwell/src/Page.vala" self->cursor = NULL; -#line 9470 "Page.c" +#line 9594 "Page.c" } -#line 1422 "/home/jens/Source/shotwell/src/Page.vala" +#line 1434 "/home/jens/Source/shotwell/src/Page.vala" _tmp12_ = self->priv->highlighted; -#line 1422 "/home/jens/Source/shotwell/src/Page.vala" +#line 1434 "/home/jens/Source/shotwell/src/Page.vala" _tmp13_ = item; -#line 1422 "/home/jens/Source/shotwell/src/Page.vala" +#line 1434 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp12_ == _tmp13_) { -#line 1423 "/home/jens/Source/shotwell/src/Page.vala" +#line 1435 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->priv->highlighted); -#line 1423 "/home/jens/Source/shotwell/src/Page.vala" +#line 1435 "/home/jens/Source/shotwell/src/Page.vala" self->priv->highlighted = NULL; -#line 9482 "Page.c" +#line 9606 "Page.c" } -#line 1413 "/home/jens/Source/shotwell/src/Page.vala" +#line 1425 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (item); -#line 1413 "/home/jens/Source/shotwell/src/Page.vala" +#line 1425 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (view); -#line 9488 "Page.c" +#line 9612 "Page.c" } -#line 1413 "/home/jens/Source/shotwell/src/Page.vala" +#line 1425 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (_view_it); -#line 9492 "Page.c" +#line 9616 "Page.c" } } @@ -9505,138 +9629,138 @@ static gboolean checkerboard_page_real_key_press_event (GtkWidget* base, GdkEven const gchar* _tmp4_ = NULL; const gchar* _tmp5_ = NULL; GQuark _tmp7_ = 0U; -#line 1433 "/home/jens/Source/shotwell/src/Page.vala" +#line 1445 "/home/jens/Source/shotwell/src/Page.vala" static GQuark _tmp6_label0 = 0; -#line 1433 "/home/jens/Source/shotwell/src/Page.vala" +#line 1445 "/home/jens/Source/shotwell/src/Page.vala" static GQuark _tmp6_label1 = 0; -#line 1433 "/home/jens/Source/shotwell/src/Page.vala" +#line 1445 "/home/jens/Source/shotwell/src/Page.vala" static GQuark _tmp6_label2 = 0; -#line 1433 "/home/jens/Source/shotwell/src/Page.vala" +#line 1445 "/home/jens/Source/shotwell/src/Page.vala" static GQuark _tmp6_label3 = 0; -#line 1433 "/home/jens/Source/shotwell/src/Page.vala" +#line 1445 "/home/jens/Source/shotwell/src/Page.vala" static GQuark _tmp6_label4 = 0; -#line 1433 "/home/jens/Source/shotwell/src/Page.vala" +#line 1445 "/home/jens/Source/shotwell/src/Page.vala" static GQuark _tmp6_label5 = 0; -#line 1433 "/home/jens/Source/shotwell/src/Page.vala" +#line 1445 "/home/jens/Source/shotwell/src/Page.vala" static GQuark _tmp6_label6 = 0; -#line 1433 "/home/jens/Source/shotwell/src/Page.vala" +#line 1445 "/home/jens/Source/shotwell/src/Page.vala" static GQuark _tmp6_label7 = 0; -#line 1433 "/home/jens/Source/shotwell/src/Page.vala" +#line 1445 "/home/jens/Source/shotwell/src/Page.vala" static GQuark _tmp6_label8 = 0; -#line 1433 "/home/jens/Source/shotwell/src/Page.vala" +#line 1445 "/home/jens/Source/shotwell/src/Page.vala" static GQuark _tmp6_label9 = 0; -#line 1433 "/home/jens/Source/shotwell/src/Page.vala" +#line 1445 "/home/jens/Source/shotwell/src/Page.vala" static GQuark _tmp6_label10 = 0; -#line 1433 "/home/jens/Source/shotwell/src/Page.vala" +#line 1445 "/home/jens/Source/shotwell/src/Page.vala" static GQuark _tmp6_label11 = 0; -#line 1433 "/home/jens/Source/shotwell/src/Page.vala" +#line 1445 "/home/jens/Source/shotwell/src/Page.vala" static GQuark _tmp6_label12 = 0; -#line 1433 "/home/jens/Source/shotwell/src/Page.vala" +#line 1445 "/home/jens/Source/shotwell/src/Page.vala" static GQuark _tmp6_label13 = 0; -#line 1433 "/home/jens/Source/shotwell/src/Page.vala" +#line 1445 "/home/jens/Source/shotwell/src/Page.vala" static GQuark _tmp6_label14 = 0; -#line 9539 "Page.c" +#line 9663 "Page.c" gboolean _tmp45_ = FALSE; gboolean _tmp46_ = FALSE; -#line 1427 "/home/jens/Source/shotwell/src/Page.vala" +#line 1439 "/home/jens/Source/shotwell/src/Page.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_PAGE, CheckerboardPage); -#line 1427 "/home/jens/Source/shotwell/src/Page.vala" +#line 1439 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 1428 "/home/jens/Source/shotwell/src/Page.vala" +#line 1440 "/home/jens/Source/shotwell/src/Page.vala" handled = TRUE; -#line 1431 "/home/jens/Source/shotwell/src/Page.vala" +#line 1443 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = event; -#line 1431 "/home/jens/Source/shotwell/src/Page.vala" +#line 1443 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = _tmp0_->state; -#line 1431 "/home/jens/Source/shotwell/src/Page.vala" +#line 1443 "/home/jens/Source/shotwell/src/Page.vala" state = (guint) (_tmp1_ & GDK_SHIFT_MASK); -#line 1433 "/home/jens/Source/shotwell/src/Page.vala" +#line 1445 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = event; -#line 1433 "/home/jens/Source/shotwell/src/Page.vala" +#line 1445 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = _tmp2_->keyval; -#line 1433 "/home/jens/Source/shotwell/src/Page.vala" +#line 1445 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = gdk_keyval_name (_tmp3_); -#line 1433 "/home/jens/Source/shotwell/src/Page.vala" +#line 1445 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = _tmp4_; -#line 1433 "/home/jens/Source/shotwell/src/Page.vala" +#line 1445 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = (NULL == _tmp5_) ? 0 : g_quark_from_string (_tmp5_); -#line 1433 "/home/jens/Source/shotwell/src/Page.vala" +#line 1445 "/home/jens/Source/shotwell/src/Page.vala" if ((_tmp7_ == ((0 != _tmp6_label0) ? _tmp6_label0 : (_tmp6_label0 = g_quark_from_static_string ("Up")))) || (_tmp7_ == ((0 != _tmp6_label1) ? _tmp6_label1 : (_tmp6_label1 = g_quark_from_static_string ("KP_Up"))))) { -#line 1433 "/home/jens/Source/shotwell/src/Page.vala" +#line 1445 "/home/jens/Source/shotwell/src/Page.vala" switch (0) { -#line 9568 "Page.c" +#line 9692 "Page.c" default: { guint _tmp8_ = 0U; -#line 1436 "/home/jens/Source/shotwell/src/Page.vala" +#line 1448 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_page_move_cursor (self, COMPASS_POINT_NORTH); -#line 1437 "/home/jens/Source/shotwell/src/Page.vala" +#line 1449 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = state; -#line 1437 "/home/jens/Source/shotwell/src/Page.vala" +#line 1449 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_page_select_anchor_to_cursor (self, _tmp8_); -#line 1438 "/home/jens/Source/shotwell/src/Page.vala" +#line 1450 "/home/jens/Source/shotwell/src/Page.vala" break; -#line 9580 "Page.c" +#line 9704 "Page.c" } } } else if ((_tmp7_ == ((0 != _tmp6_label2) ? _tmp6_label2 : (_tmp6_label2 = g_quark_from_static_string ("Down")))) || (_tmp7_ == ((0 != _tmp6_label3) ? _tmp6_label3 : (_tmp6_label3 = g_quark_from_static_string ("KP_Down"))))) { -#line 1433 "/home/jens/Source/shotwell/src/Page.vala" +#line 1445 "/home/jens/Source/shotwell/src/Page.vala" switch (0) { -#line 9586 "Page.c" +#line 9710 "Page.c" default: { guint _tmp9_ = 0U; -#line 1442 "/home/jens/Source/shotwell/src/Page.vala" +#line 1454 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_page_move_cursor (self, COMPASS_POINT_SOUTH); -#line 1443 "/home/jens/Source/shotwell/src/Page.vala" +#line 1455 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = state; -#line 1443 "/home/jens/Source/shotwell/src/Page.vala" +#line 1455 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_page_select_anchor_to_cursor (self, _tmp9_); -#line 1444 "/home/jens/Source/shotwell/src/Page.vala" +#line 1456 "/home/jens/Source/shotwell/src/Page.vala" break; -#line 9598 "Page.c" +#line 9722 "Page.c" } } } else if ((_tmp7_ == ((0 != _tmp6_label4) ? _tmp6_label4 : (_tmp6_label4 = g_quark_from_static_string ("Left")))) || (_tmp7_ == ((0 != _tmp6_label5) ? _tmp6_label5 : (_tmp6_label5 = g_quark_from_static_string ("KP_Left"))))) { -#line 1433 "/home/jens/Source/shotwell/src/Page.vala" +#line 1445 "/home/jens/Source/shotwell/src/Page.vala" switch (0) { -#line 9604 "Page.c" +#line 9728 "Page.c" default: { guint _tmp10_ = 0U; -#line 1448 "/home/jens/Source/shotwell/src/Page.vala" +#line 1460 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_page_move_cursor (self, COMPASS_POINT_WEST); -#line 1449 "/home/jens/Source/shotwell/src/Page.vala" +#line 1461 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = state; -#line 1449 "/home/jens/Source/shotwell/src/Page.vala" +#line 1461 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_page_select_anchor_to_cursor (self, _tmp10_); -#line 1450 "/home/jens/Source/shotwell/src/Page.vala" +#line 1462 "/home/jens/Source/shotwell/src/Page.vala" break; -#line 9616 "Page.c" +#line 9740 "Page.c" } } } else if ((_tmp7_ == ((0 != _tmp6_label6) ? _tmp6_label6 : (_tmp6_label6 = g_quark_from_static_string ("Right")))) || (_tmp7_ == ((0 != _tmp6_label7) ? _tmp6_label7 : (_tmp6_label7 = g_quark_from_static_string ("KP_Right"))))) { -#line 1433 "/home/jens/Source/shotwell/src/Page.vala" +#line 1445 "/home/jens/Source/shotwell/src/Page.vala" switch (0) { -#line 9622 "Page.c" +#line 9746 "Page.c" default: { guint _tmp11_ = 0U; -#line 1454 "/home/jens/Source/shotwell/src/Page.vala" +#line 1466 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_page_move_cursor (self, COMPASS_POINT_EAST); -#line 1455 "/home/jens/Source/shotwell/src/Page.vala" +#line 1467 "/home/jens/Source/shotwell/src/Page.vala" _tmp11_ = state; -#line 1455 "/home/jens/Source/shotwell/src/Page.vala" +#line 1467 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_page_select_anchor_to_cursor (self, _tmp11_); -#line 1456 "/home/jens/Source/shotwell/src/Page.vala" +#line 1468 "/home/jens/Source/shotwell/src/Page.vala" break; -#line 9634 "Page.c" +#line 9758 "Page.c" } } } else if ((_tmp7_ == ((0 != _tmp6_label8) ? _tmp6_label8 : (_tmp6_label8 = g_quark_from_static_string ("Home")))) || (_tmp7_ == ((0 != _tmp6_label9) ? _tmp6_label9 : (_tmp6_label9 = g_quark_from_static_string ("KP_Home"))))) { -#line 1433 "/home/jens/Source/shotwell/src/Page.vala" +#line 1445 "/home/jens/Source/shotwell/src/Page.vala" switch (0) { -#line 9640 "Page.c" +#line 9764 "Page.c" default: { CheckerboardItem* first = NULL; @@ -9646,45 +9770,45 @@ static gboolean checkerboard_page_real_key_press_event (GtkWidget* base, GdkEven CheckerboardItem* _tmp15_ = NULL; CheckerboardItem* _tmp16_ = NULL; guint _tmp18_ = 0U; -#line 1460 "/home/jens/Source/shotwell/src/Page.vala" +#line 1472 "/home/jens/Source/shotwell/src/Page.vala" _tmp12_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1460 "/home/jens/Source/shotwell/src/Page.vala" +#line 1472 "/home/jens/Source/shotwell/src/Page.vala" _tmp13_ = _tmp12_; -#line 1460 "/home/jens/Source/shotwell/src/Page.vala" +#line 1472 "/home/jens/Source/shotwell/src/Page.vala" _tmp14_ = view_collection_get_first (_tmp13_); -#line 1460 "/home/jens/Source/shotwell/src/Page.vala" +#line 1472 "/home/jens/Source/shotwell/src/Page.vala" _tmp15_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_CHECKERBOARD_ITEM, CheckerboardItem); -#line 1460 "/home/jens/Source/shotwell/src/Page.vala" +#line 1472 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp13_); -#line 1460 "/home/jens/Source/shotwell/src/Page.vala" +#line 1472 "/home/jens/Source/shotwell/src/Page.vala" first = _tmp15_; -#line 1461 "/home/jens/Source/shotwell/src/Page.vala" +#line 1473 "/home/jens/Source/shotwell/src/Page.vala" _tmp16_ = first; -#line 1461 "/home/jens/Source/shotwell/src/Page.vala" +#line 1473 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp16_ != NULL) { -#line 9666 "Page.c" +#line 9790 "Page.c" CheckerboardItem* _tmp17_ = NULL; -#line 1462 "/home/jens/Source/shotwell/src/Page.vala" +#line 1474 "/home/jens/Source/shotwell/src/Page.vala" _tmp17_ = first; -#line 1462 "/home/jens/Source/shotwell/src/Page.vala" +#line 1474 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_page_cursor_to_item (self, _tmp17_); -#line 9672 "Page.c" +#line 9796 "Page.c" } -#line 1463 "/home/jens/Source/shotwell/src/Page.vala" +#line 1475 "/home/jens/Source/shotwell/src/Page.vala" _tmp18_ = state; -#line 1463 "/home/jens/Source/shotwell/src/Page.vala" +#line 1475 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_page_select_anchor_to_cursor (self, _tmp18_); -#line 1464 "/home/jens/Source/shotwell/src/Page.vala" +#line 1476 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (first); -#line 1464 "/home/jens/Source/shotwell/src/Page.vala" +#line 1476 "/home/jens/Source/shotwell/src/Page.vala" break; -#line 9682 "Page.c" +#line 9806 "Page.c" } } } else if ((_tmp7_ == ((0 != _tmp6_label10) ? _tmp6_label10 : (_tmp6_label10 = g_quark_from_static_string ("End")))) || (_tmp7_ == ((0 != _tmp6_label11) ? _tmp6_label11 : (_tmp6_label11 = g_quark_from_static_string ("KP_End"))))) { -#line 1433 "/home/jens/Source/shotwell/src/Page.vala" +#line 1445 "/home/jens/Source/shotwell/src/Page.vala" switch (0) { -#line 9688 "Page.c" +#line 9812 "Page.c" default: { CheckerboardItem* last = NULL; @@ -9694,100 +9818,100 @@ static gboolean checkerboard_page_real_key_press_event (GtkWidget* base, GdkEven CheckerboardItem* _tmp22_ = NULL; CheckerboardItem* _tmp23_ = NULL; guint _tmp25_ = 0U; -#line 1468 "/home/jens/Source/shotwell/src/Page.vala" +#line 1480 "/home/jens/Source/shotwell/src/Page.vala" _tmp19_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1468 "/home/jens/Source/shotwell/src/Page.vala" +#line 1480 "/home/jens/Source/shotwell/src/Page.vala" _tmp20_ = _tmp19_; -#line 1468 "/home/jens/Source/shotwell/src/Page.vala" +#line 1480 "/home/jens/Source/shotwell/src/Page.vala" _tmp21_ = view_collection_get_last (_tmp20_); -#line 1468 "/home/jens/Source/shotwell/src/Page.vala" +#line 1480 "/home/jens/Source/shotwell/src/Page.vala" _tmp22_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_CHECKERBOARD_ITEM, CheckerboardItem); -#line 1468 "/home/jens/Source/shotwell/src/Page.vala" +#line 1480 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp20_); -#line 1468 "/home/jens/Source/shotwell/src/Page.vala" +#line 1480 "/home/jens/Source/shotwell/src/Page.vala" last = _tmp22_; -#line 1469 "/home/jens/Source/shotwell/src/Page.vala" +#line 1481 "/home/jens/Source/shotwell/src/Page.vala" _tmp23_ = last; -#line 1469 "/home/jens/Source/shotwell/src/Page.vala" +#line 1481 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp23_ != NULL) { -#line 9714 "Page.c" +#line 9838 "Page.c" CheckerboardItem* _tmp24_ = NULL; -#line 1470 "/home/jens/Source/shotwell/src/Page.vala" +#line 1482 "/home/jens/Source/shotwell/src/Page.vala" _tmp24_ = last; -#line 1470 "/home/jens/Source/shotwell/src/Page.vala" +#line 1482 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_page_cursor_to_item (self, _tmp24_); -#line 9720 "Page.c" +#line 9844 "Page.c" } -#line 1471 "/home/jens/Source/shotwell/src/Page.vala" +#line 1483 "/home/jens/Source/shotwell/src/Page.vala" _tmp25_ = state; -#line 1471 "/home/jens/Source/shotwell/src/Page.vala" +#line 1483 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_page_select_anchor_to_cursor (self, _tmp25_); -#line 1472 "/home/jens/Source/shotwell/src/Page.vala" +#line 1484 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (last); -#line 1472 "/home/jens/Source/shotwell/src/Page.vala" +#line 1484 "/home/jens/Source/shotwell/src/Page.vala" break; -#line 9730 "Page.c" +#line 9854 "Page.c" } } } else if ((_tmp7_ == ((0 != _tmp6_label12) ? _tmp6_label12 : (_tmp6_label12 = g_quark_from_static_string ("Return")))) || (_tmp7_ == ((0 != _tmp6_label13) ? _tmp6_label13 : (_tmp6_label13 = g_quark_from_static_string ("KP_Enter"))))) { -#line 1433 "/home/jens/Source/shotwell/src/Page.vala" +#line 1445 "/home/jens/Source/shotwell/src/Page.vala" switch (0) { -#line 9736 "Page.c" +#line 9860 "Page.c" default: { ViewCollection* _tmp26_ = NULL; ViewCollection* _tmp27_ = NULL; gint _tmp28_ = 0; gboolean _tmp29_ = FALSE; -#line 1476 "/home/jens/Source/shotwell/src/Page.vala" +#line 1488 "/home/jens/Source/shotwell/src/Page.vala" _tmp26_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1476 "/home/jens/Source/shotwell/src/Page.vala" +#line 1488 "/home/jens/Source/shotwell/src/Page.vala" _tmp27_ = _tmp26_; -#line 1476 "/home/jens/Source/shotwell/src/Page.vala" +#line 1488 "/home/jens/Source/shotwell/src/Page.vala" _tmp28_ = view_collection_get_selected_count (_tmp27_); -#line 1476 "/home/jens/Source/shotwell/src/Page.vala" +#line 1488 "/home/jens/Source/shotwell/src/Page.vala" _tmp29_ = _tmp28_ == 1; -#line 1476 "/home/jens/Source/shotwell/src/Page.vala" +#line 1488 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp27_); -#line 1476 "/home/jens/Source/shotwell/src/Page.vala" +#line 1488 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp29_) { -#line 9755 "Page.c" +#line 9879 "Page.c" ViewCollection* _tmp30_ = NULL; ViewCollection* _tmp31_ = NULL; DataView* _tmp32_ = NULL; CheckerboardItem* _tmp33_ = NULL; CheckerboardPageKeyboardModifiers _tmp34_ = {0}; -#line 1477 "/home/jens/Source/shotwell/src/Page.vala" +#line 1489 "/home/jens/Source/shotwell/src/Page.vala" _tmp30_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1477 "/home/jens/Source/shotwell/src/Page.vala" +#line 1489 "/home/jens/Source/shotwell/src/Page.vala" _tmp31_ = _tmp30_; -#line 1477 "/home/jens/Source/shotwell/src/Page.vala" +#line 1489 "/home/jens/Source/shotwell/src/Page.vala" _tmp32_ = view_collection_get_selected_at (_tmp31_, 0); -#line 1477 "/home/jens/Source/shotwell/src/Page.vala" +#line 1489 "/home/jens/Source/shotwell/src/Page.vala" _tmp33_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, TYPE_CHECKERBOARD_ITEM, CheckerboardItem); -#line 1477 "/home/jens/Source/shotwell/src/Page.vala" +#line 1489 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_page_keyboard_modifiers_init (&_tmp34_, G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1477 "/home/jens/Source/shotwell/src/Page.vala" +#line 1489 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_page_on_item_activated (self, _tmp33_, CHECKERBOARD_PAGE_ACTIVATOR_KEYBOARD, &_tmp34_); -#line 1477 "/home/jens/Source/shotwell/src/Page.vala" +#line 1489 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (_tmp33_); -#line 1477 "/home/jens/Source/shotwell/src/Page.vala" +#line 1489 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp31_); -#line 9777 "Page.c" +#line 9901 "Page.c" } else { -#line 1480 "/home/jens/Source/shotwell/src/Page.vala" +#line 1492 "/home/jens/Source/shotwell/src/Page.vala" handled = FALSE; -#line 9781 "Page.c" +#line 9905 "Page.c" } -#line 1481 "/home/jens/Source/shotwell/src/Page.vala" +#line 1493 "/home/jens/Source/shotwell/src/Page.vala" break; -#line 9785 "Page.c" +#line 9909 "Page.c" } } } else if (_tmp7_ == ((0 != _tmp6_label14) ? _tmp6_label14 : (_tmp6_label14 = g_quark_from_static_string ("space")))) { -#line 1433 "/home/jens/Source/shotwell/src/Page.vala" +#line 1445 "/home/jens/Source/shotwell/src/Page.vala" switch (0) { -#line 9791 "Page.c" +#line 9915 "Page.c" default: { Marker* marker = NULL; @@ -9801,89 +9925,89 @@ static gboolean checkerboard_page_real_key_press_event (GtkWidget* base, GdkEven ViewCollection* _tmp42_ = NULL; ViewCollection* _tmp43_ = NULL; Marker* _tmp44_ = NULL; -#line 1484 "/home/jens/Source/shotwell/src/Page.vala" +#line 1496 "/home/jens/Source/shotwell/src/Page.vala" _tmp35_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1484 "/home/jens/Source/shotwell/src/Page.vala" +#line 1496 "/home/jens/Source/shotwell/src/Page.vala" _tmp36_ = _tmp35_; -#line 1484 "/home/jens/Source/shotwell/src/Page.vala" +#line 1496 "/home/jens/Source/shotwell/src/Page.vala" _tmp37_ = self->priv->layout; -#line 1484 "/home/jens/Source/shotwell/src/Page.vala" +#line 1496 "/home/jens/Source/shotwell/src/Page.vala" _tmp38_ = checkerboard_layout_get_cursor (_tmp37_); -#line 1484 "/home/jens/Source/shotwell/src/Page.vala" +#line 1496 "/home/jens/Source/shotwell/src/Page.vala" _tmp39_ = _tmp38_; -#line 1484 "/home/jens/Source/shotwell/src/Page.vala" +#line 1496 "/home/jens/Source/shotwell/src/Page.vala" _tmp40_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, TYPE_DATA_OBJECT, DataObject)); -#line 1484 "/home/jens/Source/shotwell/src/Page.vala" +#line 1496 "/home/jens/Source/shotwell/src/Page.vala" _tmp41_ = _tmp40_; -#line 1484 "/home/jens/Source/shotwell/src/Page.vala" +#line 1496 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (_tmp39_); -#line 1484 "/home/jens/Source/shotwell/src/Page.vala" +#line 1496 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp36_); -#line 1484 "/home/jens/Source/shotwell/src/Page.vala" +#line 1496 "/home/jens/Source/shotwell/src/Page.vala" marker = _tmp41_; -#line 1485 "/home/jens/Source/shotwell/src/Page.vala" +#line 1497 "/home/jens/Source/shotwell/src/Page.vala" _tmp42_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1485 "/home/jens/Source/shotwell/src/Page.vala" +#line 1497 "/home/jens/Source/shotwell/src/Page.vala" _tmp43_ = _tmp42_; -#line 1485 "/home/jens/Source/shotwell/src/Page.vala" +#line 1497 "/home/jens/Source/shotwell/src/Page.vala" _tmp44_ = marker; -#line 1485 "/home/jens/Source/shotwell/src/Page.vala" +#line 1497 "/home/jens/Source/shotwell/src/Page.vala" view_collection_toggle_marked (_tmp43_, _tmp44_); -#line 1485 "/home/jens/Source/shotwell/src/Page.vala" +#line 1497 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp43_); -#line 1486 "/home/jens/Source/shotwell/src/Page.vala" +#line 1498 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (marker); -#line 1486 "/home/jens/Source/shotwell/src/Page.vala" +#line 1498 "/home/jens/Source/shotwell/src/Page.vala" break; -#line 9839 "Page.c" +#line 9963 "Page.c" } } } else { -#line 1433 "/home/jens/Source/shotwell/src/Page.vala" +#line 1445 "/home/jens/Source/shotwell/src/Page.vala" switch (0) { -#line 9845 "Page.c" +#line 9969 "Page.c" default: { -#line 1489 "/home/jens/Source/shotwell/src/Page.vala" +#line 1501 "/home/jens/Source/shotwell/src/Page.vala" handled = FALSE; -#line 1490 "/home/jens/Source/shotwell/src/Page.vala" +#line 1502 "/home/jens/Source/shotwell/src/Page.vala" break; -#line 9852 "Page.c" +#line 9976 "Page.c" } } } -#line 1493 "/home/jens/Source/shotwell/src/Page.vala" +#line 1505 "/home/jens/Source/shotwell/src/Page.vala" _tmp45_ = handled; -#line 1493 "/home/jens/Source/shotwell/src/Page.vala" +#line 1505 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp45_) { -#line 1494 "/home/jens/Source/shotwell/src/Page.vala" +#line 1506 "/home/jens/Source/shotwell/src/Page.vala" result = TRUE; -#line 1494 "/home/jens/Source/shotwell/src/Page.vala" +#line 1506 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 9864 "Page.c" +#line 9988 "Page.c" } -#line 1496 "/home/jens/Source/shotwell/src/Page.vala" +#line 1508 "/home/jens/Source/shotwell/src/Page.vala" if (GTK_WIDGET_CLASS (checkerboard_page_parent_class)->key_press_event != NULL) { -#line 9868 "Page.c" +#line 9992 "Page.c" GdkEventKey* _tmp47_ = NULL; gboolean _tmp48_ = FALSE; -#line 1496 "/home/jens/Source/shotwell/src/Page.vala" +#line 1508 "/home/jens/Source/shotwell/src/Page.vala" _tmp47_ = event; -#line 1496 "/home/jens/Source/shotwell/src/Page.vala" +#line 1508 "/home/jens/Source/shotwell/src/Page.vala" _tmp48_ = GTK_WIDGET_CLASS (checkerboard_page_parent_class)->key_press_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), gtk_widget_get_type (), GtkWidget), _tmp47_); -#line 1496 "/home/jens/Source/shotwell/src/Page.vala" +#line 1508 "/home/jens/Source/shotwell/src/Page.vala" _tmp46_ = _tmp48_; -#line 9877 "Page.c" +#line 10001 "Page.c" } else { -#line 1496 "/home/jens/Source/shotwell/src/Page.vala" +#line 1508 "/home/jens/Source/shotwell/src/Page.vala" _tmp46_ = TRUE; -#line 9881 "Page.c" +#line 10005 "Page.c" } -#line 1496 "/home/jens/Source/shotwell/src/Page.vala" +#line 1508 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp46_; -#line 1496 "/home/jens/Source/shotwell/src/Page.vala" +#line 1508 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 9887 "Page.c" +#line 10011 "Page.c" } @@ -9907,62 +10031,62 @@ static gboolean checkerboard_page_real_on_left_click (Page* base, GdkEventButton ViewCollection* _tmp107_ = NULL; gint _tmp108_ = 0; gboolean _tmp109_ = FALSE; -#line 1499 "/home/jens/Source/shotwell/src/Page.vala" +#line 1511 "/home/jens/Source/shotwell/src/Page.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_PAGE, CheckerboardPage); -#line 1499 "/home/jens/Source/shotwell/src/Page.vala" +#line 1511 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 1501 "/home/jens/Source/shotwell/src/Page.vala" +#line 1513 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = event; -#line 1501 "/home/jens/Source/shotwell/src/Page.vala" +#line 1513 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = _tmp1_->type; -#line 1501 "/home/jens/Source/shotwell/src/Page.vala" +#line 1513 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp2_ != GDK_BUTTON_PRESS) { -#line 9921 "Page.c" +#line 10045 "Page.c" GdkEventButton* _tmp3_ = NULL; GdkEventType _tmp4_ = 0; -#line 1501 "/home/jens/Source/shotwell/src/Page.vala" +#line 1513 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = event; -#line 1501 "/home/jens/Source/shotwell/src/Page.vala" +#line 1513 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = _tmp3_->type; -#line 1501 "/home/jens/Source/shotwell/src/Page.vala" +#line 1513 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = _tmp4_ != GDK_2BUTTON_PRESS; -#line 9930 "Page.c" +#line 10054 "Page.c" } else { -#line 1501 "/home/jens/Source/shotwell/src/Page.vala" +#line 1513 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = FALSE; -#line 9934 "Page.c" +#line 10058 "Page.c" } -#line 1501 "/home/jens/Source/shotwell/src/Page.vala" +#line 1513 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp0_) { -#line 1502 "/home/jens/Source/shotwell/src/Page.vala" +#line 1514 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 1502 "/home/jens/Source/shotwell/src/Page.vala" +#line 1514 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 9942 "Page.c" +#line 10066 "Page.c" } -#line 1505 "/home/jens/Source/shotwell/src/Page.vala" +#line 1517 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = event; -#line 1505 "/home/jens/Source/shotwell/src/Page.vala" +#line 1517 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = _tmp5_->state; -#line 1505 "/home/jens/Source/shotwell/src/Page.vala" +#line 1517 "/home/jens/Source/shotwell/src/Page.vala" state = (guint) (_tmp6_ & (GDK_CONTROL_MASK | GDK_SHIFT_MASK)); -#line 1509 "/home/jens/Source/shotwell/src/Page.vala" +#line 1521 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = event; -#line 1509 "/home/jens/Source/shotwell/src/Page.vala" +#line 1521 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = _tmp7_->x; -#line 1509 "/home/jens/Source/shotwell/src/Page.vala" +#line 1521 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = event; -#line 1509 "/home/jens/Source/shotwell/src/Page.vala" +#line 1521 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = _tmp9_->y; -#line 1509 "/home/jens/Source/shotwell/src/Page.vala" +#line 1521 "/home/jens/Source/shotwell/src/Page.vala" _tmp11_ = checkerboard_page_get_item_at_pixel (self, _tmp8_, _tmp10_); -#line 1509 "/home/jens/Source/shotwell/src/Page.vala" +#line 1521 "/home/jens/Source/shotwell/src/Page.vala" item = _tmp11_; -#line 1510 "/home/jens/Source/shotwell/src/Page.vala" +#line 1522 "/home/jens/Source/shotwell/src/Page.vala" _tmp12_ = item; -#line 1510 "/home/jens/Source/shotwell/src/Page.vala" +#line 1522 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp12_ != NULL) { -#line 9966 "Page.c" +#line 10090 "Page.c" CheckerboardLayout* _tmp13_ = NULL; CheckerboardItem* _tmp14_ = NULL; GdkEventButton* _tmp15_ = NULL; @@ -9975,41 +10099,41 @@ static gboolean checkerboard_page_real_on_left_click (Page* base, GdkEventButton guint _tmp22_ = 0U; CheckerboardLayout* _tmp80_ = NULL; CheckerboardItem* _tmp81_ = NULL; -#line 1513 "/home/jens/Source/shotwell/src/Page.vala" +#line 1525 "/home/jens/Source/shotwell/src/Page.vala" _tmp13_ = self->priv->layout; -#line 1513 "/home/jens/Source/shotwell/src/Page.vala" +#line 1525 "/home/jens/Source/shotwell/src/Page.vala" _tmp14_ = item; -#line 1513 "/home/jens/Source/shotwell/src/Page.vala" +#line 1525 "/home/jens/Source/shotwell/src/Page.vala" _tmp15_ = event; -#line 1513 "/home/jens/Source/shotwell/src/Page.vala" +#line 1525 "/home/jens/Source/shotwell/src/Page.vala" _tmp16_ = _tmp15_->x; -#line 1513 "/home/jens/Source/shotwell/src/Page.vala" +#line 1525 "/home/jens/Source/shotwell/src/Page.vala" _tmp17_ = event; -#line 1513 "/home/jens/Source/shotwell/src/Page.vala" +#line 1525 "/home/jens/Source/shotwell/src/Page.vala" _tmp18_ = _tmp17_->y; -#line 1513 "/home/jens/Source/shotwell/src/Page.vala" +#line 1525 "/home/jens/Source/shotwell/src/Page.vala" _tmp19_ = event; -#line 1513 "/home/jens/Source/shotwell/src/Page.vala" +#line 1525 "/home/jens/Source/shotwell/src/Page.vala" _tmp20_ = _tmp19_->state; -#line 1513 "/home/jens/Source/shotwell/src/Page.vala" +#line 1525 "/home/jens/Source/shotwell/src/Page.vala" _tmp21_ = checkerboard_layout_handle_left_click (_tmp13_, _tmp14_, _tmp16_, _tmp18_, _tmp20_); -#line 1513 "/home/jens/Source/shotwell/src/Page.vala" +#line 1525 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp21_) { -#line 1514 "/home/jens/Source/shotwell/src/Page.vala" +#line 1526 "/home/jens/Source/shotwell/src/Page.vala" result = TRUE; -#line 1514 "/home/jens/Source/shotwell/src/Page.vala" +#line 1526 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (item); -#line 1514 "/home/jens/Source/shotwell/src/Page.vala" +#line 1526 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 10005 "Page.c" +#line 10129 "Page.c" } -#line 1516 "/home/jens/Source/shotwell/src/Page.vala" +#line 1528 "/home/jens/Source/shotwell/src/Page.vala" _tmp22_ = state; -#line 1516 "/home/jens/Source/shotwell/src/Page.vala" +#line 1528 "/home/jens/Source/shotwell/src/Page.vala" switch (_tmp22_) { -#line 1516 "/home/jens/Source/shotwell/src/Page.vala" +#line 1528 "/home/jens/Source/shotwell/src/Page.vala" case GDK_CONTROL_MASK: -#line 10013 "Page.c" +#line 10137 "Page.c" { Marker* marker = NULL; ViewCollection* _tmp23_ = NULL; @@ -10022,68 +10146,68 @@ static gboolean checkerboard_page_real_on_left_click (Page* base, GdkEventButton Marker* _tmp30_ = NULL; CheckerboardItem* _tmp31_ = NULL; gboolean _tmp32_ = FALSE; -#line 1520 "/home/jens/Source/shotwell/src/Page.vala" +#line 1532 "/home/jens/Source/shotwell/src/Page.vala" _tmp23_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1520 "/home/jens/Source/shotwell/src/Page.vala" +#line 1532 "/home/jens/Source/shotwell/src/Page.vala" _tmp24_ = _tmp23_; -#line 1520 "/home/jens/Source/shotwell/src/Page.vala" +#line 1532 "/home/jens/Source/shotwell/src/Page.vala" _tmp25_ = item; -#line 1520 "/home/jens/Source/shotwell/src/Page.vala" +#line 1532 "/home/jens/Source/shotwell/src/Page.vala" _tmp26_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_DATA_OBJECT, DataObject)); -#line 1520 "/home/jens/Source/shotwell/src/Page.vala" +#line 1532 "/home/jens/Source/shotwell/src/Page.vala" _tmp27_ = _tmp26_; -#line 1520 "/home/jens/Source/shotwell/src/Page.vala" +#line 1532 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp24_); -#line 1520 "/home/jens/Source/shotwell/src/Page.vala" +#line 1532 "/home/jens/Source/shotwell/src/Page.vala" marker = _tmp27_; -#line 1521 "/home/jens/Source/shotwell/src/Page.vala" +#line 1533 "/home/jens/Source/shotwell/src/Page.vala" _tmp28_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1521 "/home/jens/Source/shotwell/src/Page.vala" +#line 1533 "/home/jens/Source/shotwell/src/Page.vala" _tmp29_ = _tmp28_; -#line 1521 "/home/jens/Source/shotwell/src/Page.vala" +#line 1533 "/home/jens/Source/shotwell/src/Page.vala" _tmp30_ = marker; -#line 1521 "/home/jens/Source/shotwell/src/Page.vala" +#line 1533 "/home/jens/Source/shotwell/src/Page.vala" view_collection_toggle_marked (_tmp29_, _tmp30_); -#line 1521 "/home/jens/Source/shotwell/src/Page.vala" +#line 1533 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp29_); -#line 1523 "/home/jens/Source/shotwell/src/Page.vala" +#line 1535 "/home/jens/Source/shotwell/src/Page.vala" _tmp31_ = item; -#line 1523 "/home/jens/Source/shotwell/src/Page.vala" +#line 1535 "/home/jens/Source/shotwell/src/Page.vala" _tmp32_ = data_view_is_selected (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, TYPE_DATA_VIEW, DataView)); -#line 1523 "/home/jens/Source/shotwell/src/Page.vala" +#line 1535 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp32_) { -#line 10056 "Page.c" +#line 10180 "Page.c" CheckerboardItem* _tmp33_ = NULL; CheckerboardItem* _tmp34_ = NULL; CheckerboardItem* _tmp35_ = NULL; CheckerboardItem* _tmp36_ = NULL; -#line 1524 "/home/jens/Source/shotwell/src/Page.vala" +#line 1536 "/home/jens/Source/shotwell/src/Page.vala" _tmp33_ = item; -#line 1524 "/home/jens/Source/shotwell/src/Page.vala" +#line 1536 "/home/jens/Source/shotwell/src/Page.vala" _tmp34_ = _g_object_ref0 (_tmp33_); -#line 1524 "/home/jens/Source/shotwell/src/Page.vala" +#line 1536 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->anchor); -#line 1524 "/home/jens/Source/shotwell/src/Page.vala" +#line 1536 "/home/jens/Source/shotwell/src/Page.vala" self->anchor = _tmp34_; -#line 1525 "/home/jens/Source/shotwell/src/Page.vala" +#line 1537 "/home/jens/Source/shotwell/src/Page.vala" _tmp35_ = item; -#line 1525 "/home/jens/Source/shotwell/src/Page.vala" +#line 1537 "/home/jens/Source/shotwell/src/Page.vala" _tmp36_ = _g_object_ref0 (_tmp35_); -#line 1525 "/home/jens/Source/shotwell/src/Page.vala" +#line 1537 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->cursor); -#line 1525 "/home/jens/Source/shotwell/src/Page.vala" +#line 1537 "/home/jens/Source/shotwell/src/Page.vala" self->cursor = _tmp36_; -#line 10077 "Page.c" +#line 10201 "Page.c" } -#line 1527 "/home/jens/Source/shotwell/src/Page.vala" +#line 1539 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (marker); -#line 1527 "/home/jens/Source/shotwell/src/Page.vala" +#line 1539 "/home/jens/Source/shotwell/src/Page.vala" break; -#line 10083 "Page.c" +#line 10207 "Page.c" } -#line 1516 "/home/jens/Source/shotwell/src/Page.vala" +#line 1528 "/home/jens/Source/shotwell/src/Page.vala" case GDK_SHIFT_MASK: -#line 10087 "Page.c" +#line 10211 "Page.c" { ViewCollection* _tmp37_ = NULL; ViewCollection* _tmp38_ = NULL; @@ -10092,92 +10216,92 @@ static gboolean checkerboard_page_real_on_left_click (Page* base, GdkEventButton CheckerboardItem* _tmp43_ = NULL; CheckerboardItem* _tmp44_ = NULL; CheckerboardItem* _tmp45_ = NULL; -#line 1530 "/home/jens/Source/shotwell/src/Page.vala" +#line 1542 "/home/jens/Source/shotwell/src/Page.vala" _tmp37_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1530 "/home/jens/Source/shotwell/src/Page.vala" +#line 1542 "/home/jens/Source/shotwell/src/Page.vala" _tmp38_ = _tmp37_; -#line 1530 "/home/jens/Source/shotwell/src/Page.vala" +#line 1542 "/home/jens/Source/shotwell/src/Page.vala" view_collection_unselect_all (_tmp38_); -#line 1530 "/home/jens/Source/shotwell/src/Page.vala" +#line 1542 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp38_); -#line 1532 "/home/jens/Source/shotwell/src/Page.vala" +#line 1544 "/home/jens/Source/shotwell/src/Page.vala" _tmp39_ = self->anchor; -#line 1532 "/home/jens/Source/shotwell/src/Page.vala" +#line 1544 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp39_ == NULL) { -#line 10108 "Page.c" +#line 10232 "Page.c" CheckerboardItem* _tmp40_ = NULL; CheckerboardItem* _tmp41_ = NULL; -#line 1533 "/home/jens/Source/shotwell/src/Page.vala" +#line 1545 "/home/jens/Source/shotwell/src/Page.vala" _tmp40_ = item; -#line 1533 "/home/jens/Source/shotwell/src/Page.vala" +#line 1545 "/home/jens/Source/shotwell/src/Page.vala" _tmp41_ = _g_object_ref0 (_tmp40_); -#line 1533 "/home/jens/Source/shotwell/src/Page.vala" +#line 1545 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->anchor); -#line 1533 "/home/jens/Source/shotwell/src/Page.vala" +#line 1545 "/home/jens/Source/shotwell/src/Page.vala" self->anchor = _tmp41_; -#line 10119 "Page.c" +#line 10243 "Page.c" } -#line 1535 "/home/jens/Source/shotwell/src/Page.vala" +#line 1547 "/home/jens/Source/shotwell/src/Page.vala" _tmp42_ = self->anchor; -#line 1535 "/home/jens/Source/shotwell/src/Page.vala" +#line 1547 "/home/jens/Source/shotwell/src/Page.vala" _tmp43_ = item; -#line 1535 "/home/jens/Source/shotwell/src/Page.vala" +#line 1547 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_page_select_between_items (self, _tmp42_, _tmp43_); -#line 1537 "/home/jens/Source/shotwell/src/Page.vala" +#line 1549 "/home/jens/Source/shotwell/src/Page.vala" _tmp44_ = item; -#line 1537 "/home/jens/Source/shotwell/src/Page.vala" +#line 1549 "/home/jens/Source/shotwell/src/Page.vala" _tmp45_ = _g_object_ref0 (_tmp44_); -#line 1537 "/home/jens/Source/shotwell/src/Page.vala" +#line 1549 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->cursor); -#line 1537 "/home/jens/Source/shotwell/src/Page.vala" +#line 1549 "/home/jens/Source/shotwell/src/Page.vala" self->cursor = _tmp45_; -#line 1538 "/home/jens/Source/shotwell/src/Page.vala" +#line 1550 "/home/jens/Source/shotwell/src/Page.vala" break; -#line 10137 "Page.c" +#line 10261 "Page.c" } -#line 1516 "/home/jens/Source/shotwell/src/Page.vala" +#line 1528 "/home/jens/Source/shotwell/src/Page.vala" case GDK_CONTROL_MASK | GDK_SHIFT_MASK: -#line 10141 "Page.c" +#line 10265 "Page.c" { CheckerboardItem* _tmp46_ = NULL; CheckerboardItem* _tmp49_ = NULL; CheckerboardItem* _tmp50_ = NULL; CheckerboardItem* _tmp51_ = NULL; CheckerboardItem* _tmp52_ = NULL; -#line 1545 "/home/jens/Source/shotwell/src/Page.vala" +#line 1557 "/home/jens/Source/shotwell/src/Page.vala" _tmp46_ = self->anchor; -#line 1545 "/home/jens/Source/shotwell/src/Page.vala" +#line 1557 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp46_ == NULL) { -#line 10152 "Page.c" +#line 10276 "Page.c" CheckerboardItem* _tmp47_ = NULL; CheckerboardItem* _tmp48_ = NULL; -#line 1546 "/home/jens/Source/shotwell/src/Page.vala" +#line 1558 "/home/jens/Source/shotwell/src/Page.vala" _tmp47_ = item; -#line 1546 "/home/jens/Source/shotwell/src/Page.vala" +#line 1558 "/home/jens/Source/shotwell/src/Page.vala" _tmp48_ = _g_object_ref0 (_tmp47_); -#line 1546 "/home/jens/Source/shotwell/src/Page.vala" +#line 1558 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->anchor); -#line 1546 "/home/jens/Source/shotwell/src/Page.vala" +#line 1558 "/home/jens/Source/shotwell/src/Page.vala" self->anchor = _tmp48_; -#line 10163 "Page.c" +#line 10287 "Page.c" } -#line 1548 "/home/jens/Source/shotwell/src/Page.vala" +#line 1560 "/home/jens/Source/shotwell/src/Page.vala" _tmp49_ = self->anchor; -#line 1548 "/home/jens/Source/shotwell/src/Page.vala" +#line 1560 "/home/jens/Source/shotwell/src/Page.vala" _tmp50_ = item; -#line 1548 "/home/jens/Source/shotwell/src/Page.vala" +#line 1560 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_page_select_between_items (self, _tmp49_, _tmp50_); -#line 1550 "/home/jens/Source/shotwell/src/Page.vala" +#line 1562 "/home/jens/Source/shotwell/src/Page.vala" _tmp51_ = item; -#line 1550 "/home/jens/Source/shotwell/src/Page.vala" +#line 1562 "/home/jens/Source/shotwell/src/Page.vala" _tmp52_ = _g_object_ref0 (_tmp51_); -#line 1550 "/home/jens/Source/shotwell/src/Page.vala" +#line 1562 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->cursor); -#line 1550 "/home/jens/Source/shotwell/src/Page.vala" +#line 1562 "/home/jens/Source/shotwell/src/Page.vala" self->cursor = _tmp52_; -#line 1551 "/home/jens/Source/shotwell/src/Page.vala" +#line 1563 "/home/jens/Source/shotwell/src/Page.vala" break; -#line 10181 "Page.c" +#line 10305 "Page.c" } default: { @@ -10187,34 +10311,34 @@ static gboolean checkerboard_page_real_on_left_click (Page* base, GdkEventButton CheckerboardItem* _tmp77_ = NULL; CheckerboardItem* _tmp78_ = NULL; CheckerboardItem* _tmp79_ = NULL; -#line 1554 "/home/jens/Source/shotwell/src/Page.vala" +#line 1566 "/home/jens/Source/shotwell/src/Page.vala" _tmp53_ = event; -#line 1554 "/home/jens/Source/shotwell/src/Page.vala" +#line 1566 "/home/jens/Source/shotwell/src/Page.vala" _tmp54_ = _tmp53_->type; -#line 1554 "/home/jens/Source/shotwell/src/Page.vala" +#line 1566 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp54_ == GDK_2BUTTON_PRESS) { -#line 10197 "Page.c" +#line 10321 "Page.c" CheckerboardItem* _tmp55_ = NULL; CheckerboardItem* _tmp56_ = NULL; -#line 1555 "/home/jens/Source/shotwell/src/Page.vala" +#line 1567 "/home/jens/Source/shotwell/src/Page.vala" _tmp55_ = item; -#line 1555 "/home/jens/Source/shotwell/src/Page.vala" +#line 1567 "/home/jens/Source/shotwell/src/Page.vala" _tmp56_ = _g_object_ref0 (_tmp55_); -#line 1555 "/home/jens/Source/shotwell/src/Page.vala" +#line 1567 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->priv->activated_item); -#line 1555 "/home/jens/Source/shotwell/src/Page.vala" +#line 1567 "/home/jens/Source/shotwell/src/Page.vala" self->priv->activated_item = _tmp56_; -#line 10208 "Page.c" +#line 10332 "Page.c" } else { CheckerboardItem* _tmp57_ = NULL; gboolean _tmp58_ = FALSE; -#line 1561 "/home/jens/Source/shotwell/src/Page.vala" +#line 1573 "/home/jens/Source/shotwell/src/Page.vala" _tmp57_ = item; -#line 1561 "/home/jens/Source/shotwell/src/Page.vala" +#line 1573 "/home/jens/Source/shotwell/src/Page.vala" _tmp58_ = data_view_is_selected (G_TYPE_CHECK_INSTANCE_CAST (_tmp57_, TYPE_DATA_VIEW, DataView)); -#line 1561 "/home/jens/Source/shotwell/src/Page.vala" +#line 1573 "/home/jens/Source/shotwell/src/Page.vala" if (!_tmp58_) { -#line 10218 "Page.c" +#line 10342 "Page.c" Marker* all = NULL; ViewCollection* _tmp59_ = NULL; ViewCollection* _tmp60_ = NULL; @@ -10233,91 +10357,91 @@ static gboolean checkerboard_page_real_on_left_click (Page* base, GdkEventButton CheckerboardItem* _tmp73_ = NULL; Marker* _tmp74_ = NULL; Marker* _tmp75_ = NULL; -#line 1562 "/home/jens/Source/shotwell/src/Page.vala" +#line 1574 "/home/jens/Source/shotwell/src/Page.vala" _tmp59_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1562 "/home/jens/Source/shotwell/src/Page.vala" +#line 1574 "/home/jens/Source/shotwell/src/Page.vala" _tmp60_ = _tmp59_; -#line 1562 "/home/jens/Source/shotwell/src/Page.vala" +#line 1574 "/home/jens/Source/shotwell/src/Page.vala" _tmp61_ = data_collection_start_marking (G_TYPE_CHECK_INSTANCE_CAST (_tmp60_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1562 "/home/jens/Source/shotwell/src/Page.vala" +#line 1574 "/home/jens/Source/shotwell/src/Page.vala" _tmp62_ = _tmp61_; -#line 1562 "/home/jens/Source/shotwell/src/Page.vala" +#line 1574 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp60_); -#line 1562 "/home/jens/Source/shotwell/src/Page.vala" +#line 1574 "/home/jens/Source/shotwell/src/Page.vala" all = _tmp62_; -#line 1563 "/home/jens/Source/shotwell/src/Page.vala" +#line 1575 "/home/jens/Source/shotwell/src/Page.vala" _tmp63_ = all; -#line 1563 "/home/jens/Source/shotwell/src/Page.vala" +#line 1575 "/home/jens/Source/shotwell/src/Page.vala" _tmp64_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1563 "/home/jens/Source/shotwell/src/Page.vala" +#line 1575 "/home/jens/Source/shotwell/src/Page.vala" _tmp65_ = _tmp64_; -#line 1563 "/home/jens/Source/shotwell/src/Page.vala" +#line 1575 "/home/jens/Source/shotwell/src/Page.vala" _tmp66_ = view_collection_get_selected (_tmp65_); -#line 1563 "/home/jens/Source/shotwell/src/Page.vala" +#line 1575 "/home/jens/Source/shotwell/src/Page.vala" _tmp67_ = _tmp66_; -#line 1563 "/home/jens/Source/shotwell/src/Page.vala" +#line 1575 "/home/jens/Source/shotwell/src/Page.vala" marker_mark_many (_tmp63_, G_TYPE_CHECK_INSTANCE_CAST (_tmp67_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1563 "/home/jens/Source/shotwell/src/Page.vala" +#line 1575 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (_tmp67_); -#line 1563 "/home/jens/Source/shotwell/src/Page.vala" +#line 1575 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp65_); -#line 1565 "/home/jens/Source/shotwell/src/Page.vala" +#line 1577 "/home/jens/Source/shotwell/src/Page.vala" _tmp68_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1565 "/home/jens/Source/shotwell/src/Page.vala" +#line 1577 "/home/jens/Source/shotwell/src/Page.vala" _tmp69_ = _tmp68_; -#line 1565 "/home/jens/Source/shotwell/src/Page.vala" +#line 1577 "/home/jens/Source/shotwell/src/Page.vala" _tmp70_ = all; -#line 1565 "/home/jens/Source/shotwell/src/Page.vala" +#line 1577 "/home/jens/Source/shotwell/src/Page.vala" _tmp71_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1565 "/home/jens/Source/shotwell/src/Page.vala" +#line 1577 "/home/jens/Source/shotwell/src/Page.vala" _tmp72_ = _tmp71_; -#line 1565 "/home/jens/Source/shotwell/src/Page.vala" +#line 1577 "/home/jens/Source/shotwell/src/Page.vala" _tmp73_ = item; -#line 1565 "/home/jens/Source/shotwell/src/Page.vala" +#line 1577 "/home/jens/Source/shotwell/src/Page.vala" _tmp74_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp72_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp73_, TYPE_DATA_OBJECT, DataObject)); -#line 1565 "/home/jens/Source/shotwell/src/Page.vala" +#line 1577 "/home/jens/Source/shotwell/src/Page.vala" _tmp75_ = _tmp74_; -#line 1565 "/home/jens/Source/shotwell/src/Page.vala" +#line 1577 "/home/jens/Source/shotwell/src/Page.vala" view_collection_unselect_and_select_marked (_tmp69_, _tmp70_, _tmp75_); -#line 1565 "/home/jens/Source/shotwell/src/Page.vala" +#line 1577 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (_tmp75_); -#line 1565 "/home/jens/Source/shotwell/src/Page.vala" +#line 1577 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp72_); -#line 1565 "/home/jens/Source/shotwell/src/Page.vala" +#line 1577 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp69_); -#line 1561 "/home/jens/Source/shotwell/src/Page.vala" +#line 1573 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (all); -#line 10291 "Page.c" +#line 10415 "Page.c" } } -#line 1569 "/home/jens/Source/shotwell/src/Page.vala" +#line 1581 "/home/jens/Source/shotwell/src/Page.vala" _tmp76_ = item; -#line 1569 "/home/jens/Source/shotwell/src/Page.vala" +#line 1581 "/home/jens/Source/shotwell/src/Page.vala" _tmp77_ = _g_object_ref0 (_tmp76_); -#line 1569 "/home/jens/Source/shotwell/src/Page.vala" +#line 1581 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->anchor); -#line 1569 "/home/jens/Source/shotwell/src/Page.vala" +#line 1581 "/home/jens/Source/shotwell/src/Page.vala" self->anchor = _tmp77_; -#line 1570 "/home/jens/Source/shotwell/src/Page.vala" +#line 1582 "/home/jens/Source/shotwell/src/Page.vala" _tmp78_ = item; -#line 1570 "/home/jens/Source/shotwell/src/Page.vala" +#line 1582 "/home/jens/Source/shotwell/src/Page.vala" _tmp79_ = _g_object_ref0 (_tmp78_); -#line 1570 "/home/jens/Source/shotwell/src/Page.vala" +#line 1582 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->cursor); -#line 1570 "/home/jens/Source/shotwell/src/Page.vala" +#line 1582 "/home/jens/Source/shotwell/src/Page.vala" self->cursor = _tmp79_; -#line 1571 "/home/jens/Source/shotwell/src/Page.vala" +#line 1583 "/home/jens/Source/shotwell/src/Page.vala" break; -#line 10312 "Page.c" +#line 10436 "Page.c" } } -#line 1573 "/home/jens/Source/shotwell/src/Page.vala" +#line 1585 "/home/jens/Source/shotwell/src/Page.vala" _tmp80_ = self->priv->layout; -#line 1573 "/home/jens/Source/shotwell/src/Page.vala" +#line 1585 "/home/jens/Source/shotwell/src/Page.vala" _tmp81_ = item; -#line 1573 "/home/jens/Source/shotwell/src/Page.vala" +#line 1585 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_layout_set_cursor (_tmp80_, _tmp81_); -#line 10321 "Page.c" +#line 10445 "Page.c" } else { guint _tmp82_ = 0U; GeeArrayList* _tmp85_ = NULL; @@ -10326,30 +10450,30 @@ static gboolean checkerboard_page_real_on_left_click (Page* base, GdkEventButton gdouble _tmp103_ = 0.0; GdkEventButton* _tmp104_ = NULL; gdouble _tmp105_ = 0.0; -#line 1577 "/home/jens/Source/shotwell/src/Page.vala" +#line 1589 "/home/jens/Source/shotwell/src/Page.vala" _tmp82_ = state; -#line 1577 "/home/jens/Source/shotwell/src/Page.vala" +#line 1589 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp82_ != ((guint) GDK_CONTROL_MASK)) { -#line 10334 "Page.c" +#line 10458 "Page.c" ViewCollection* _tmp83_ = NULL; ViewCollection* _tmp84_ = NULL; -#line 1578 "/home/jens/Source/shotwell/src/Page.vala" +#line 1590 "/home/jens/Source/shotwell/src/Page.vala" _tmp83_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1578 "/home/jens/Source/shotwell/src/Page.vala" +#line 1590 "/home/jens/Source/shotwell/src/Page.vala" _tmp84_ = _tmp83_; -#line 1578 "/home/jens/Source/shotwell/src/Page.vala" +#line 1590 "/home/jens/Source/shotwell/src/Page.vala" view_collection_unselect_all (_tmp84_); -#line 1578 "/home/jens/Source/shotwell/src/Page.vala" +#line 1590 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp84_); -#line 10345 "Page.c" +#line 10469 "Page.c" } -#line 1581 "/home/jens/Source/shotwell/src/Page.vala" +#line 1593 "/home/jens/Source/shotwell/src/Page.vala" _tmp85_ = gee_array_list_new (TYPE_CHECKERBOARD_ITEM, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL); -#line 1581 "/home/jens/Source/shotwell/src/Page.vala" +#line 1593 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->priv->previously_selected); -#line 1581 "/home/jens/Source/shotwell/src/Page.vala" +#line 1593 "/home/jens/Source/shotwell/src/Page.vala" self->priv->previously_selected = _tmp85_; -#line 10353 "Page.c" +#line 10477 "Page.c" { GeeList* _view_list = NULL; ViewCollection* _tmp86_ = NULL; @@ -10361,31 +10485,31 @@ static gboolean checkerboard_page_real_on_left_click (Page* base, GdkEventButton gint _tmp91_ = 0; gint _tmp92_ = 0; gint _view_index = 0; -#line 1582 "/home/jens/Source/shotwell/src/Page.vala" +#line 1594 "/home/jens/Source/shotwell/src/Page.vala" _tmp86_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1582 "/home/jens/Source/shotwell/src/Page.vala" +#line 1594 "/home/jens/Source/shotwell/src/Page.vala" _tmp87_ = _tmp86_; -#line 1582 "/home/jens/Source/shotwell/src/Page.vala" +#line 1594 "/home/jens/Source/shotwell/src/Page.vala" _tmp88_ = view_collection_get_selected (_tmp87_); -#line 1582 "/home/jens/Source/shotwell/src/Page.vala" +#line 1594 "/home/jens/Source/shotwell/src/Page.vala" _tmp89_ = _tmp88_; -#line 1582 "/home/jens/Source/shotwell/src/Page.vala" +#line 1594 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp87_); -#line 1582 "/home/jens/Source/shotwell/src/Page.vala" +#line 1594 "/home/jens/Source/shotwell/src/Page.vala" _view_list = _tmp89_; -#line 1582 "/home/jens/Source/shotwell/src/Page.vala" +#line 1594 "/home/jens/Source/shotwell/src/Page.vala" _tmp90_ = _view_list; -#line 1582 "/home/jens/Source/shotwell/src/Page.vala" +#line 1594 "/home/jens/Source/shotwell/src/Page.vala" _tmp91_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp90_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1582 "/home/jens/Source/shotwell/src/Page.vala" +#line 1594 "/home/jens/Source/shotwell/src/Page.vala" _tmp92_ = _tmp91_; -#line 1582 "/home/jens/Source/shotwell/src/Page.vala" +#line 1594 "/home/jens/Source/shotwell/src/Page.vala" _view_size = _tmp92_; -#line 1582 "/home/jens/Source/shotwell/src/Page.vala" +#line 1594 "/home/jens/Source/shotwell/src/Page.vala" _view_index = -1; -#line 1582 "/home/jens/Source/shotwell/src/Page.vala" +#line 1594 "/home/jens/Source/shotwell/src/Page.vala" while (TRUE) { -#line 10389 "Page.c" +#line 10513 "Page.c" gint _tmp93_ = 0; gint _tmp94_ = 0; gint _tmp95_ = 0; @@ -10395,79 +10519,79 @@ static gboolean checkerboard_page_real_on_left_click (Page* base, GdkEventButton gpointer _tmp98_ = NULL; GeeArrayList* _tmp99_ = NULL; DataView* _tmp100_ = NULL; -#line 1582 "/home/jens/Source/shotwell/src/Page.vala" +#line 1594 "/home/jens/Source/shotwell/src/Page.vala" _tmp93_ = _view_index; -#line 1582 "/home/jens/Source/shotwell/src/Page.vala" +#line 1594 "/home/jens/Source/shotwell/src/Page.vala" _view_index = _tmp93_ + 1; -#line 1582 "/home/jens/Source/shotwell/src/Page.vala" +#line 1594 "/home/jens/Source/shotwell/src/Page.vala" _tmp94_ = _view_index; -#line 1582 "/home/jens/Source/shotwell/src/Page.vala" +#line 1594 "/home/jens/Source/shotwell/src/Page.vala" _tmp95_ = _view_size; -#line 1582 "/home/jens/Source/shotwell/src/Page.vala" +#line 1594 "/home/jens/Source/shotwell/src/Page.vala" if (!(_tmp94_ < _tmp95_)) { -#line 1582 "/home/jens/Source/shotwell/src/Page.vala" +#line 1594 "/home/jens/Source/shotwell/src/Page.vala" break; -#line 10411 "Page.c" +#line 10535 "Page.c" } -#line 1582 "/home/jens/Source/shotwell/src/Page.vala" +#line 1594 "/home/jens/Source/shotwell/src/Page.vala" _tmp96_ = _view_list; -#line 1582 "/home/jens/Source/shotwell/src/Page.vala" +#line 1594 "/home/jens/Source/shotwell/src/Page.vala" _tmp97_ = _view_index; -#line 1582 "/home/jens/Source/shotwell/src/Page.vala" +#line 1594 "/home/jens/Source/shotwell/src/Page.vala" _tmp98_ = gee_list_get (_tmp96_, _tmp97_); -#line 1582 "/home/jens/Source/shotwell/src/Page.vala" +#line 1594 "/home/jens/Source/shotwell/src/Page.vala" view = (DataView*) _tmp98_; -#line 1583 "/home/jens/Source/shotwell/src/Page.vala" +#line 1595 "/home/jens/Source/shotwell/src/Page.vala" _tmp99_ = self->priv->previously_selected; -#line 1583 "/home/jens/Source/shotwell/src/Page.vala" +#line 1595 "/home/jens/Source/shotwell/src/Page.vala" _tmp100_ = view; -#line 1583 "/home/jens/Source/shotwell/src/Page.vala" +#line 1595 "/home/jens/Source/shotwell/src/Page.vala" gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp99_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp100_, TYPE_CHECKERBOARD_ITEM, CheckerboardItem)); -#line 1582 "/home/jens/Source/shotwell/src/Page.vala" +#line 1594 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (view); -#line 10429 "Page.c" +#line 10553 "Page.c" } -#line 1582 "/home/jens/Source/shotwell/src/Page.vala" +#line 1594 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (_view_list); -#line 10433 "Page.c" +#line 10557 "Page.c" } -#line 1585 "/home/jens/Source/shotwell/src/Page.vala" +#line 1597 "/home/jens/Source/shotwell/src/Page.vala" _tmp101_ = self->priv->layout; -#line 1585 "/home/jens/Source/shotwell/src/Page.vala" +#line 1597 "/home/jens/Source/shotwell/src/Page.vala" _tmp102_ = event; -#line 1585 "/home/jens/Source/shotwell/src/Page.vala" +#line 1597 "/home/jens/Source/shotwell/src/Page.vala" _tmp103_ = _tmp102_->x; -#line 1585 "/home/jens/Source/shotwell/src/Page.vala" +#line 1597 "/home/jens/Source/shotwell/src/Page.vala" _tmp104_ = event; -#line 1585 "/home/jens/Source/shotwell/src/Page.vala" +#line 1597 "/home/jens/Source/shotwell/src/Page.vala" _tmp105_ = _tmp104_->y; -#line 1585 "/home/jens/Source/shotwell/src/Page.vala" +#line 1597 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_layout_set_drag_select_origin (_tmp101_, (gint) _tmp103_, (gint) _tmp105_); -#line 1587 "/home/jens/Source/shotwell/src/Page.vala" +#line 1599 "/home/jens/Source/shotwell/src/Page.vala" result = TRUE; -#line 1587 "/home/jens/Source/shotwell/src/Page.vala" +#line 1599 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (item); -#line 1587 "/home/jens/Source/shotwell/src/Page.vala" +#line 1599 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 10453 "Page.c" +#line 10577 "Page.c" } -#line 1593 "/home/jens/Source/shotwell/src/Page.vala" +#line 1605 "/home/jens/Source/shotwell/src/Page.vala" _tmp106_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1593 "/home/jens/Source/shotwell/src/Page.vala" +#line 1605 "/home/jens/Source/shotwell/src/Page.vala" _tmp107_ = _tmp106_; -#line 1593 "/home/jens/Source/shotwell/src/Page.vala" +#line 1605 "/home/jens/Source/shotwell/src/Page.vala" _tmp108_ = view_collection_get_selected_count (_tmp107_); -#line 1593 "/home/jens/Source/shotwell/src/Page.vala" +#line 1605 "/home/jens/Source/shotwell/src/Page.vala" _tmp109_ = _tmp108_ == 0; -#line 1593 "/home/jens/Source/shotwell/src/Page.vala" +#line 1605 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp107_); -#line 1593 "/home/jens/Source/shotwell/src/Page.vala" +#line 1605 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp109_; -#line 1593 "/home/jens/Source/shotwell/src/Page.vala" +#line 1605 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (item); -#line 1593 "/home/jens/Source/shotwell/src/Page.vala" +#line 1605 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 10471 "Page.c" +#line 10595 "Page.c" } @@ -10488,152 +10612,152 @@ static gboolean checkerboard_page_real_on_left_released (Page* base, GdkEventBut CheckerboardItem* _tmp15_ = NULL; CheckerboardItem* _tmp16_ = NULL; CheckerboardItem* _tmp17_ = NULL; -#line 1596 "/home/jens/Source/shotwell/src/Page.vala" +#line 1608 "/home/jens/Source/shotwell/src/Page.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_PAGE, CheckerboardPage); -#line 1596 "/home/jens/Source/shotwell/src/Page.vala" +#line 1608 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 1597 "/home/jens/Source/shotwell/src/Page.vala" +#line 1609 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->priv->previously_selected); -#line 1597 "/home/jens/Source/shotwell/src/Page.vala" +#line 1609 "/home/jens/Source/shotwell/src/Page.vala" self->priv->previously_selected = NULL; -#line 1600 "/home/jens/Source/shotwell/src/Page.vala" +#line 1612 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->layout; -#line 1600 "/home/jens/Source/shotwell/src/Page.vala" +#line 1612 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = checkerboard_layout_is_drag_select_active (_tmp0_); -#line 1600 "/home/jens/Source/shotwell/src/Page.vala" +#line 1612 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp1_) { -#line 10506 "Page.c" +#line 10630 "Page.c" CheckerboardLayout* _tmp2_ = NULL; CheckerboardItem* _tmp3_ = NULL; CheckerboardItem* _tmp4_ = NULL; -#line 1601 "/home/jens/Source/shotwell/src/Page.vala" +#line 1613 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = self->priv->layout; -#line 1601 "/home/jens/Source/shotwell/src/Page.vala" +#line 1613 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_layout_clear_drag_select (_tmp2_); -#line 1602 "/home/jens/Source/shotwell/src/Page.vala" +#line 1614 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = self->cursor; -#line 1602 "/home/jens/Source/shotwell/src/Page.vala" +#line 1614 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = _g_object_ref0 (_tmp3_); -#line 1602 "/home/jens/Source/shotwell/src/Page.vala" +#line 1614 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->anchor); -#line 1602 "/home/jens/Source/shotwell/src/Page.vala" +#line 1614 "/home/jens/Source/shotwell/src/Page.vala" self->anchor = _tmp4_; -#line 1604 "/home/jens/Source/shotwell/src/Page.vala" +#line 1616 "/home/jens/Source/shotwell/src/Page.vala" result = TRUE; -#line 1604 "/home/jens/Source/shotwell/src/Page.vala" +#line 1616 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 10526 "Page.c" +#line 10650 "Page.c" } -#line 1608 "/home/jens/Source/shotwell/src/Page.vala" +#line 1620 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = event; -#line 1608 "/home/jens/Source/shotwell/src/Page.vala" +#line 1620 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = _tmp5_->state; -#line 1608 "/home/jens/Source/shotwell/src/Page.vala" +#line 1620 "/home/jens/Source/shotwell/src/Page.vala" if ((_tmp6_ & (GDK_CONTROL_MASK | GDK_SHIFT_MASK)) != 0) { -#line 1609 "/home/jens/Source/shotwell/src/Page.vala" +#line 1621 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 1609 "/home/jens/Source/shotwell/src/Page.vala" +#line 1621 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 10538 "Page.c" +#line 10662 "Page.c" } -#line 1612 "/home/jens/Source/shotwell/src/Page.vala" +#line 1624 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = self->priv->activated_item; -#line 1612 "/home/jens/Source/shotwell/src/Page.vala" +#line 1624 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp7_ != NULL) { -#line 10544 "Page.c" +#line 10668 "Page.c" CheckerboardItem* _tmp8_ = NULL; CheckerboardPageKeyboardModifiers _tmp9_ = {0}; -#line 1613 "/home/jens/Source/shotwell/src/Page.vala" +#line 1625 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = self->priv->activated_item; -#line 1613 "/home/jens/Source/shotwell/src/Page.vala" +#line 1625 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_page_keyboard_modifiers_init (&_tmp9_, G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1613 "/home/jens/Source/shotwell/src/Page.vala" +#line 1625 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_page_on_item_activated (self, _tmp8_, CHECKERBOARD_PAGE_ACTIVATOR_MOUSE, &_tmp9_); -#line 1614 "/home/jens/Source/shotwell/src/Page.vala" +#line 1626 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->priv->activated_item); -#line 1614 "/home/jens/Source/shotwell/src/Page.vala" +#line 1626 "/home/jens/Source/shotwell/src/Page.vala" self->priv->activated_item = NULL; -#line 1616 "/home/jens/Source/shotwell/src/Page.vala" +#line 1628 "/home/jens/Source/shotwell/src/Page.vala" result = TRUE; -#line 1616 "/home/jens/Source/shotwell/src/Page.vala" +#line 1628 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 10561 "Page.c" +#line 10685 "Page.c" } -#line 1619 "/home/jens/Source/shotwell/src/Page.vala" +#line 1631 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = event; -#line 1619 "/home/jens/Source/shotwell/src/Page.vala" +#line 1631 "/home/jens/Source/shotwell/src/Page.vala" _tmp11_ = _tmp10_->x; -#line 1619 "/home/jens/Source/shotwell/src/Page.vala" +#line 1631 "/home/jens/Source/shotwell/src/Page.vala" _tmp12_ = event; -#line 1619 "/home/jens/Source/shotwell/src/Page.vala" +#line 1631 "/home/jens/Source/shotwell/src/Page.vala" _tmp13_ = _tmp12_->y; -#line 1619 "/home/jens/Source/shotwell/src/Page.vala" +#line 1631 "/home/jens/Source/shotwell/src/Page.vala" _tmp14_ = checkerboard_page_get_item_at_pixel (self, _tmp11_, _tmp13_); -#line 1619 "/home/jens/Source/shotwell/src/Page.vala" +#line 1631 "/home/jens/Source/shotwell/src/Page.vala" item = _tmp14_; -#line 1620 "/home/jens/Source/shotwell/src/Page.vala" +#line 1632 "/home/jens/Source/shotwell/src/Page.vala" _tmp15_ = item; -#line 1620 "/home/jens/Source/shotwell/src/Page.vala" +#line 1632 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp15_ == NULL) { -#line 1622 "/home/jens/Source/shotwell/src/Page.vala" +#line 1634 "/home/jens/Source/shotwell/src/Page.vala" result = TRUE; -#line 1622 "/home/jens/Source/shotwell/src/Page.vala" +#line 1634 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (item); -#line 1622 "/home/jens/Source/shotwell/src/Page.vala" +#line 1634 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 10585 "Page.c" +#line 10709 "Page.c" } -#line 1625 "/home/jens/Source/shotwell/src/Page.vala" +#line 1637 "/home/jens/Source/shotwell/src/Page.vala" _tmp16_ = self->cursor; -#line 1625 "/home/jens/Source/shotwell/src/Page.vala" +#line 1637 "/home/jens/Source/shotwell/src/Page.vala" _tmp17_ = item; -#line 1625 "/home/jens/Source/shotwell/src/Page.vala" +#line 1637 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp16_ != _tmp17_) { -#line 10593 "Page.c" +#line 10717 "Page.c" ViewCollection* _tmp18_ = NULL; ViewCollection* _tmp19_ = NULL; -#line 1628 "/home/jens/Source/shotwell/src/Page.vala" +#line 1640 "/home/jens/Source/shotwell/src/Page.vala" _tmp18_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1628 "/home/jens/Source/shotwell/src/Page.vala" +#line 1640 "/home/jens/Source/shotwell/src/Page.vala" _tmp19_ = _tmp18_; -#line 1628 "/home/jens/Source/shotwell/src/Page.vala" +#line 1640 "/home/jens/Source/shotwell/src/Page.vala" view_collection_unselect_all (_tmp19_); -#line 1628 "/home/jens/Source/shotwell/src/Page.vala" +#line 1640 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp19_); -#line 10604 "Page.c" +#line 10728 "Page.c" } else { CheckerboardItem* _tmp20_ = NULL; gboolean _tmp21_ = FALSE; -#line 1634 "/home/jens/Source/shotwell/src/Page.vala" +#line 1646 "/home/jens/Source/shotwell/src/Page.vala" _tmp20_ = item; -#line 1634 "/home/jens/Source/shotwell/src/Page.vala" +#line 1646 "/home/jens/Source/shotwell/src/Page.vala" _tmp21_ = data_view_is_selected (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_DATA_VIEW, DataView)); -#line 1634 "/home/jens/Source/shotwell/src/Page.vala" +#line 1646 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp21_) { -#line 10614 "Page.c" +#line 10738 "Page.c" ViewCollection* _tmp22_ = NULL; ViewCollection* _tmp23_ = NULL; CheckerboardItem* _tmp24_ = NULL; -#line 1635 "/home/jens/Source/shotwell/src/Page.vala" +#line 1647 "/home/jens/Source/shotwell/src/Page.vala" _tmp22_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1635 "/home/jens/Source/shotwell/src/Page.vala" +#line 1647 "/home/jens/Source/shotwell/src/Page.vala" _tmp23_ = _tmp22_; -#line 1635 "/home/jens/Source/shotwell/src/Page.vala" +#line 1647 "/home/jens/Source/shotwell/src/Page.vala" _tmp24_ = item; -#line 1635 "/home/jens/Source/shotwell/src/Page.vala" +#line 1647 "/home/jens/Source/shotwell/src/Page.vala" view_collection_unselect_all_but (_tmp23_, G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_DATA_VIEW, DataView)); -#line 1635 "/home/jens/Source/shotwell/src/Page.vala" +#line 1647 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp23_); -#line 10628 "Page.c" +#line 10752 "Page.c" } } -#line 1638 "/home/jens/Source/shotwell/src/Page.vala" +#line 1650 "/home/jens/Source/shotwell/src/Page.vala" result = TRUE; -#line 1638 "/home/jens/Source/shotwell/src/Page.vala" +#line 1650 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (item); -#line 1638 "/home/jens/Source/shotwell/src/Page.vala" +#line 1650 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 10637 "Page.c" +#line 10761 "Page.c" } @@ -10654,50 +10778,50 @@ static gboolean checkerboard_page_real_on_right_click (Page* base, GdkEventButto GtkMenu* _tmp40_ = NULL; GdkEventButton* _tmp41_ = NULL; gboolean _tmp42_ = FALSE; -#line 1641 "/home/jens/Source/shotwell/src/Page.vala" +#line 1653 "/home/jens/Source/shotwell/src/Page.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_PAGE, CheckerboardPage); -#line 1641 "/home/jens/Source/shotwell/src/Page.vala" +#line 1653 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 1643 "/home/jens/Source/shotwell/src/Page.vala" +#line 1655 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = event; -#line 1643 "/home/jens/Source/shotwell/src/Page.vala" +#line 1655 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = _tmp0_->type; -#line 1643 "/home/jens/Source/shotwell/src/Page.vala" +#line 1655 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp1_ != GDK_BUTTON_PRESS) { -#line 1644 "/home/jens/Source/shotwell/src/Page.vala" +#line 1656 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 1644 "/home/jens/Source/shotwell/src/Page.vala" +#line 1656 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 10672 "Page.c" +#line 10796 "Page.c" } -#line 1647 "/home/jens/Source/shotwell/src/Page.vala" +#line 1659 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = event; -#line 1647 "/home/jens/Source/shotwell/src/Page.vala" +#line 1659 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = _tmp2_->x; -#line 1647 "/home/jens/Source/shotwell/src/Page.vala" +#line 1659 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = event; -#line 1647 "/home/jens/Source/shotwell/src/Page.vala" +#line 1659 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = _tmp4_->y; -#line 1647 "/home/jens/Source/shotwell/src/Page.vala" +#line 1659 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = checkerboard_page_get_item_at_pixel (self, _tmp3_, _tmp5_); -#line 1647 "/home/jens/Source/shotwell/src/Page.vala" +#line 1659 "/home/jens/Source/shotwell/src/Page.vala" item = _tmp6_; -#line 1648 "/home/jens/Source/shotwell/src/Page.vala" +#line 1660 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = item; -#line 1648 "/home/jens/Source/shotwell/src/Page.vala" +#line 1660 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp7_ != NULL) { -#line 10690 "Page.c" +#line 10814 "Page.c" GdkEventButton* _tmp8_ = NULL; GdkModifierType _tmp9_ = 0; -#line 1650 "/home/jens/Source/shotwell/src/Page.vala" +#line 1662 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = event; -#line 1650 "/home/jens/Source/shotwell/src/Page.vala" +#line 1662 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = _tmp8_->state; -#line 1650 "/home/jens/Source/shotwell/src/Page.vala" +#line 1662 "/home/jens/Source/shotwell/src/Page.vala" switch (_tmp9_ & (GDK_CONTROL_MASK | GDK_SHIFT_MASK)) { -#line 1650 "/home/jens/Source/shotwell/src/Page.vala" +#line 1662 "/home/jens/Source/shotwell/src/Page.vala" case GDK_CONTROL_MASK: -#line 10701 "Page.c" +#line 10825 "Page.c" { Marker* marker = NULL; ViewCollection* _tmp10_ = NULL; @@ -10708,63 +10832,63 @@ static gboolean checkerboard_page_real_on_right_click (Page* base, GdkEventButto ViewCollection* _tmp15_ = NULL; ViewCollection* _tmp16_ = NULL; Marker* _tmp17_ = NULL; -#line 1653 "/home/jens/Source/shotwell/src/Page.vala" +#line 1665 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1653 "/home/jens/Source/shotwell/src/Page.vala" +#line 1665 "/home/jens/Source/shotwell/src/Page.vala" _tmp11_ = _tmp10_; -#line 1653 "/home/jens/Source/shotwell/src/Page.vala" +#line 1665 "/home/jens/Source/shotwell/src/Page.vala" _tmp12_ = item; -#line 1653 "/home/jens/Source/shotwell/src/Page.vala" +#line 1665 "/home/jens/Source/shotwell/src/Page.vala" _tmp13_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_DATA_OBJECT, DataObject)); -#line 1653 "/home/jens/Source/shotwell/src/Page.vala" +#line 1665 "/home/jens/Source/shotwell/src/Page.vala" _tmp14_ = _tmp13_; -#line 1653 "/home/jens/Source/shotwell/src/Page.vala" +#line 1665 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp11_); -#line 1653 "/home/jens/Source/shotwell/src/Page.vala" +#line 1665 "/home/jens/Source/shotwell/src/Page.vala" marker = _tmp14_; -#line 1654 "/home/jens/Source/shotwell/src/Page.vala" +#line 1666 "/home/jens/Source/shotwell/src/Page.vala" _tmp15_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1654 "/home/jens/Source/shotwell/src/Page.vala" +#line 1666 "/home/jens/Source/shotwell/src/Page.vala" _tmp16_ = _tmp15_; -#line 1654 "/home/jens/Source/shotwell/src/Page.vala" +#line 1666 "/home/jens/Source/shotwell/src/Page.vala" _tmp17_ = marker; -#line 1654 "/home/jens/Source/shotwell/src/Page.vala" +#line 1666 "/home/jens/Source/shotwell/src/Page.vala" view_collection_toggle_marked (_tmp16_, _tmp17_); -#line 1654 "/home/jens/Source/shotwell/src/Page.vala" +#line 1666 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp16_); -#line 1655 "/home/jens/Source/shotwell/src/Page.vala" +#line 1667 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (marker); -#line 1655 "/home/jens/Source/shotwell/src/Page.vala" +#line 1667 "/home/jens/Source/shotwell/src/Page.vala" break; -#line 10740 "Page.c" +#line 10864 "Page.c" } -#line 1650 "/home/jens/Source/shotwell/src/Page.vala" +#line 1662 "/home/jens/Source/shotwell/src/Page.vala" case GDK_SHIFT_MASK: -#line 10744 "Page.c" +#line 10868 "Page.c" { -#line 1659 "/home/jens/Source/shotwell/src/Page.vala" +#line 1671 "/home/jens/Source/shotwell/src/Page.vala" break; -#line 10748 "Page.c" +#line 10872 "Page.c" } -#line 1650 "/home/jens/Source/shotwell/src/Page.vala" +#line 1662 "/home/jens/Source/shotwell/src/Page.vala" case GDK_CONTROL_MASK | GDK_SHIFT_MASK: -#line 10752 "Page.c" +#line 10876 "Page.c" { -#line 1663 "/home/jens/Source/shotwell/src/Page.vala" +#line 1675 "/home/jens/Source/shotwell/src/Page.vala" break; -#line 10756 "Page.c" +#line 10880 "Page.c" } default: { CheckerboardItem* _tmp18_ = NULL; gboolean _tmp19_ = FALSE; -#line 1668 "/home/jens/Source/shotwell/src/Page.vala" +#line 1680 "/home/jens/Source/shotwell/src/Page.vala" _tmp18_ = item; -#line 1668 "/home/jens/Source/shotwell/src/Page.vala" +#line 1680 "/home/jens/Source/shotwell/src/Page.vala" _tmp19_ = data_view_is_selected (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_DATA_VIEW, DataView)); -#line 1668 "/home/jens/Source/shotwell/src/Page.vala" +#line 1680 "/home/jens/Source/shotwell/src/Page.vala" if (!_tmp19_) { -#line 10768 "Page.c" +#line 10892 "Page.c" Marker* all = NULL; ViewCollection* _tmp20_ = NULL; ViewCollection* _tmp21_ = NULL; @@ -10783,99 +10907,99 @@ static gboolean checkerboard_page_real_on_right_click (Page* base, GdkEventButto CheckerboardItem* _tmp34_ = NULL; Marker* _tmp35_ = NULL; Marker* _tmp36_ = NULL; -#line 1669 "/home/jens/Source/shotwell/src/Page.vala" +#line 1681 "/home/jens/Source/shotwell/src/Page.vala" _tmp20_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1669 "/home/jens/Source/shotwell/src/Page.vala" +#line 1681 "/home/jens/Source/shotwell/src/Page.vala" _tmp21_ = _tmp20_; -#line 1669 "/home/jens/Source/shotwell/src/Page.vala" +#line 1681 "/home/jens/Source/shotwell/src/Page.vala" _tmp22_ = data_collection_start_marking (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1669 "/home/jens/Source/shotwell/src/Page.vala" +#line 1681 "/home/jens/Source/shotwell/src/Page.vala" _tmp23_ = _tmp22_; -#line 1669 "/home/jens/Source/shotwell/src/Page.vala" +#line 1681 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp21_); -#line 1669 "/home/jens/Source/shotwell/src/Page.vala" +#line 1681 "/home/jens/Source/shotwell/src/Page.vala" all = _tmp23_; -#line 1670 "/home/jens/Source/shotwell/src/Page.vala" +#line 1682 "/home/jens/Source/shotwell/src/Page.vala" _tmp24_ = all; -#line 1670 "/home/jens/Source/shotwell/src/Page.vala" +#line 1682 "/home/jens/Source/shotwell/src/Page.vala" _tmp25_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1670 "/home/jens/Source/shotwell/src/Page.vala" +#line 1682 "/home/jens/Source/shotwell/src/Page.vala" _tmp26_ = _tmp25_; -#line 1670 "/home/jens/Source/shotwell/src/Page.vala" +#line 1682 "/home/jens/Source/shotwell/src/Page.vala" _tmp27_ = view_collection_get_selected (_tmp26_); -#line 1670 "/home/jens/Source/shotwell/src/Page.vala" +#line 1682 "/home/jens/Source/shotwell/src/Page.vala" _tmp28_ = _tmp27_; -#line 1670 "/home/jens/Source/shotwell/src/Page.vala" +#line 1682 "/home/jens/Source/shotwell/src/Page.vala" marker_mark_many (_tmp24_, G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1670 "/home/jens/Source/shotwell/src/Page.vala" +#line 1682 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (_tmp28_); -#line 1670 "/home/jens/Source/shotwell/src/Page.vala" +#line 1682 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp26_); -#line 1672 "/home/jens/Source/shotwell/src/Page.vala" +#line 1684 "/home/jens/Source/shotwell/src/Page.vala" _tmp29_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1672 "/home/jens/Source/shotwell/src/Page.vala" +#line 1684 "/home/jens/Source/shotwell/src/Page.vala" _tmp30_ = _tmp29_; -#line 1672 "/home/jens/Source/shotwell/src/Page.vala" +#line 1684 "/home/jens/Source/shotwell/src/Page.vala" _tmp31_ = all; -#line 1672 "/home/jens/Source/shotwell/src/Page.vala" +#line 1684 "/home/jens/Source/shotwell/src/Page.vala" _tmp32_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1672 "/home/jens/Source/shotwell/src/Page.vala" +#line 1684 "/home/jens/Source/shotwell/src/Page.vala" _tmp33_ = _tmp32_; -#line 1672 "/home/jens/Source/shotwell/src/Page.vala" +#line 1684 "/home/jens/Source/shotwell/src/Page.vala" _tmp34_ = item; -#line 1672 "/home/jens/Source/shotwell/src/Page.vala" +#line 1684 "/home/jens/Source/shotwell/src/Page.vala" _tmp35_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, TYPE_DATA_OBJECT, DataObject)); -#line 1672 "/home/jens/Source/shotwell/src/Page.vala" +#line 1684 "/home/jens/Source/shotwell/src/Page.vala" _tmp36_ = _tmp35_; -#line 1672 "/home/jens/Source/shotwell/src/Page.vala" +#line 1684 "/home/jens/Source/shotwell/src/Page.vala" view_collection_unselect_and_select_marked (_tmp30_, _tmp31_, _tmp36_); -#line 1672 "/home/jens/Source/shotwell/src/Page.vala" +#line 1684 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (_tmp36_); -#line 1672 "/home/jens/Source/shotwell/src/Page.vala" +#line 1684 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp33_); -#line 1672 "/home/jens/Source/shotwell/src/Page.vala" +#line 1684 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp30_); -#line 1668 "/home/jens/Source/shotwell/src/Page.vala" +#line 1680 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (all); -#line 10841 "Page.c" +#line 10965 "Page.c" } -#line 1674 "/home/jens/Source/shotwell/src/Page.vala" +#line 1686 "/home/jens/Source/shotwell/src/Page.vala" break; -#line 10845 "Page.c" +#line 10969 "Page.c" } } } else { ViewCollection* _tmp37_ = NULL; ViewCollection* _tmp38_ = NULL; -#line 1678 "/home/jens/Source/shotwell/src/Page.vala" +#line 1690 "/home/jens/Source/shotwell/src/Page.vala" _tmp37_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1678 "/home/jens/Source/shotwell/src/Page.vala" +#line 1690 "/home/jens/Source/shotwell/src/Page.vala" _tmp38_ = _tmp37_; -#line 1678 "/home/jens/Source/shotwell/src/Page.vala" +#line 1690 "/home/jens/Source/shotwell/src/Page.vala" view_collection_unselect_all (_tmp38_); -#line 1678 "/home/jens/Source/shotwell/src/Page.vala" +#line 1690 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp38_); -#line 10859 "Page.c" +#line 10983 "Page.c" } -#line 1681 "/home/jens/Source/shotwell/src/Page.vala" +#line 1693 "/home/jens/Source/shotwell/src/Page.vala" _tmp39_ = checkerboard_page_get_context_menu (self); -#line 1681 "/home/jens/Source/shotwell/src/Page.vala" +#line 1693 "/home/jens/Source/shotwell/src/Page.vala" context_menu = _tmp39_; -#line 1682 "/home/jens/Source/shotwell/src/Page.vala" +#line 1694 "/home/jens/Source/shotwell/src/Page.vala" _tmp40_ = context_menu; -#line 1682 "/home/jens/Source/shotwell/src/Page.vala" +#line 1694 "/home/jens/Source/shotwell/src/Page.vala" _tmp41_ = event; -#line 1682 "/home/jens/Source/shotwell/src/Page.vala" +#line 1694 "/home/jens/Source/shotwell/src/Page.vala" _tmp42_ = page_popup_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), _tmp40_, _tmp41_); -#line 1682 "/home/jens/Source/shotwell/src/Page.vala" +#line 1694 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp42_; -#line 1682 "/home/jens/Source/shotwell/src/Page.vala" +#line 1694 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (context_menu); -#line 1682 "/home/jens/Source/shotwell/src/Page.vala" +#line 1694 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (item); -#line 1682 "/home/jens/Source/shotwell/src/Page.vala" +#line 1694 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 10879 "Page.c" +#line 11003 "Page.c" } @@ -10889,105 +11013,105 @@ static gboolean checkerboard_page_real_on_mouse_over (CheckerboardPage* self, Ch CheckerboardItem* _tmp11_ = NULL; CheckerboardItem* _tmp12_ = NULL; CheckerboardItem* _tmp13_ = NULL; -#line 1685 "/home/jens/Source/shotwell/src/Page.vala" +#line 1697 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail ((item == NULL) || IS_CHECKERBOARD_ITEM (item), FALSE); -#line 1686 "/home/jens/Source/shotwell/src/Page.vala" +#line 1698 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = item; -#line 1686 "/home/jens/Source/shotwell/src/Page.vala" +#line 1698 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp0_ != NULL) { -#line 10899 "Page.c" +#line 11023 "Page.c" CheckerboardLayout* _tmp1_ = NULL; CheckerboardItem* _tmp2_ = NULL; gint _tmp3_ = 0; gint _tmp4_ = 0; GdkModifierType _tmp5_ = 0; -#line 1687 "/home/jens/Source/shotwell/src/Page.vala" +#line 1699 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = self->priv->layout; -#line 1687 "/home/jens/Source/shotwell/src/Page.vala" +#line 1699 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = item; -#line 1687 "/home/jens/Source/shotwell/src/Page.vala" +#line 1699 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = x; -#line 1687 "/home/jens/Source/shotwell/src/Page.vala" +#line 1699 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = y; -#line 1687 "/home/jens/Source/shotwell/src/Page.vala" +#line 1699 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = mask; -#line 1687 "/home/jens/Source/shotwell/src/Page.vala" +#line 1699 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_layout_handle_mouse_motion (_tmp1_, _tmp2_, _tmp3_, _tmp4_, _tmp5_); -#line 10917 "Page.c" +#line 11041 "Page.c" } -#line 1691 "/home/jens/Source/shotwell/src/Page.vala" +#line 1703 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = item; -#line 1691 "/home/jens/Source/shotwell/src/Page.vala" +#line 1703 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = self->priv->highlighted; -#line 1691 "/home/jens/Source/shotwell/src/Page.vala" +#line 1703 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp6_ == _tmp7_) { -#line 1692 "/home/jens/Source/shotwell/src/Page.vala" +#line 1704 "/home/jens/Source/shotwell/src/Page.vala" result = TRUE; -#line 1692 "/home/jens/Source/shotwell/src/Page.vala" +#line 1704 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 10929 "Page.c" +#line 11053 "Page.c" } -#line 1695 "/home/jens/Source/shotwell/src/Page.vala" +#line 1707 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = self->priv->highlighted; -#line 1695 "/home/jens/Source/shotwell/src/Page.vala" +#line 1707 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp8_ != NULL) { -#line 10935 "Page.c" +#line 11059 "Page.c" CheckerboardItem* _tmp9_ = NULL; -#line 1696 "/home/jens/Source/shotwell/src/Page.vala" +#line 1708 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = self->priv->highlighted; -#line 1696 "/home/jens/Source/shotwell/src/Page.vala" +#line 1708 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_item_unbrighten (_tmp9_); -#line 1697 "/home/jens/Source/shotwell/src/Page.vala" +#line 1709 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->priv->highlighted); -#line 1697 "/home/jens/Source/shotwell/src/Page.vala" +#line 1709 "/home/jens/Source/shotwell/src/Page.vala" self->priv->highlighted = NULL; -#line 10945 "Page.c" +#line 11069 "Page.c" } -#line 1701 "/home/jens/Source/shotwell/src/Page.vala" +#line 1713 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = item; -#line 1701 "/home/jens/Source/shotwell/src/Page.vala" +#line 1713 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp10_ == NULL) { -#line 1702 "/home/jens/Source/shotwell/src/Page.vala" +#line 1714 "/home/jens/Source/shotwell/src/Page.vala" result = TRUE; -#line 1702 "/home/jens/Source/shotwell/src/Page.vala" +#line 1714 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 10955 "Page.c" +#line 11079 "Page.c" } -#line 1705 "/home/jens/Source/shotwell/src/Page.vala" +#line 1717 "/home/jens/Source/shotwell/src/Page.vala" _tmp11_ = item; -#line 1705 "/home/jens/Source/shotwell/src/Page.vala" +#line 1717 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_item_brighten (_tmp11_); -#line 1706 "/home/jens/Source/shotwell/src/Page.vala" +#line 1718 "/home/jens/Source/shotwell/src/Page.vala" _tmp12_ = item; -#line 1706 "/home/jens/Source/shotwell/src/Page.vala" +#line 1718 "/home/jens/Source/shotwell/src/Page.vala" _tmp13_ = _g_object_ref0 (_tmp12_); -#line 1706 "/home/jens/Source/shotwell/src/Page.vala" +#line 1718 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->priv->highlighted); -#line 1706 "/home/jens/Source/shotwell/src/Page.vala" +#line 1718 "/home/jens/Source/shotwell/src/Page.vala" self->priv->highlighted = _tmp13_; -#line 1708 "/home/jens/Source/shotwell/src/Page.vala" +#line 1720 "/home/jens/Source/shotwell/src/Page.vala" result = TRUE; -#line 1708 "/home/jens/Source/shotwell/src/Page.vala" +#line 1720 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 10973 "Page.c" +#line 11097 "Page.c" } gboolean checkerboard_page_on_mouse_over (CheckerboardPage* self, CheckerboardItem* item, gint x, gint y, GdkModifierType mask) { -#line 1685 "/home/jens/Source/shotwell/src/Page.vala" +#line 1697 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_CHECKERBOARD_PAGE (self), FALSE); -#line 1685 "/home/jens/Source/shotwell/src/Page.vala" +#line 1697 "/home/jens/Source/shotwell/src/Page.vala" return CHECKERBOARD_PAGE_GET_CLASS (self)->on_mouse_over (self, item, x, y, mask); -#line 10982 "Page.c" +#line 11106 "Page.c" } static gboolean _checkerboard_page_selection_autoscroll_gsource_func (gpointer self) { gboolean result; result = checkerboard_page_selection_autoscroll ((CheckerboardPage*) self); -#line 1728 "/home/jens/Source/shotwell/src/Page.vala" +#line 1740 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 10991 "Page.c" +#line 11115 "Page.c" } @@ -11010,95 +11134,95 @@ static gboolean checkerboard_page_real_on_motion (Page* base, GdkEventMotion* ev gint _tmp13_ = 0; gboolean _tmp14_ = FALSE; gboolean _tmp15_ = FALSE; -#line 1711 "/home/jens/Source/shotwell/src/Page.vala" +#line 1723 "/home/jens/Source/shotwell/src/Page.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_PAGE, CheckerboardPage); -#line 1711 "/home/jens/Source/shotwell/src/Page.vala" +#line 1723 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 1713 "/home/jens/Source/shotwell/src/Page.vala" +#line 1725 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = x; -#line 1713 "/home/jens/Source/shotwell/src/Page.vala" +#line 1725 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = y; -#line 1713 "/home/jens/Source/shotwell/src/Page.vala" +#line 1725 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = checkerboard_page_get_item_at_pixel (self, (gdouble) _tmp0_, (gdouble) _tmp1_); -#line 1713 "/home/jens/Source/shotwell/src/Page.vala" +#line 1725 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = _tmp2_; -#line 1713 "/home/jens/Source/shotwell/src/Page.vala" +#line 1725 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = x; -#line 1713 "/home/jens/Source/shotwell/src/Page.vala" +#line 1725 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = y; -#line 1713 "/home/jens/Source/shotwell/src/Page.vala" +#line 1725 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = mask; -#line 1713 "/home/jens/Source/shotwell/src/Page.vala" +#line 1725 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = checkerboard_page_on_mouse_over (self, _tmp3_, _tmp4_, _tmp5_, _tmp6_); -#line 1713 "/home/jens/Source/shotwell/src/Page.vala" +#line 1725 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = !_tmp7_; -#line 1713 "/home/jens/Source/shotwell/src/Page.vala" +#line 1725 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (_tmp3_); -#line 1713 "/home/jens/Source/shotwell/src/Page.vala" +#line 1725 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp8_) { -#line 1714 "/home/jens/Source/shotwell/src/Page.vala" +#line 1726 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 1714 "/home/jens/Source/shotwell/src/Page.vala" +#line 1726 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 11044 "Page.c" +#line 11168 "Page.c" } -#line 1717 "/home/jens/Source/shotwell/src/Page.vala" +#line 1729 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = self->priv->layout; -#line 1717 "/home/jens/Source/shotwell/src/Page.vala" +#line 1729 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = checkerboard_layout_is_drag_select_active (_tmp9_); -#line 1717 "/home/jens/Source/shotwell/src/Page.vala" +#line 1729 "/home/jens/Source/shotwell/src/Page.vala" if (!_tmp10_) { -#line 1718 "/home/jens/Source/shotwell/src/Page.vala" +#line 1730 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 1718 "/home/jens/Source/shotwell/src/Page.vala" +#line 1730 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 11056 "Page.c" +#line 11180 "Page.c" } -#line 1721 "/home/jens/Source/shotwell/src/Page.vala" +#line 1733 "/home/jens/Source/shotwell/src/Page.vala" _tmp11_ = self->priv->layout; -#line 1721 "/home/jens/Source/shotwell/src/Page.vala" +#line 1733 "/home/jens/Source/shotwell/src/Page.vala" _tmp12_ = x; -#line 1721 "/home/jens/Source/shotwell/src/Page.vala" +#line 1733 "/home/jens/Source/shotwell/src/Page.vala" _tmp13_ = y; -#line 1721 "/home/jens/Source/shotwell/src/Page.vala" +#line 1733 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_layout_set_drag_select_endpoint (_tmp11_, _tmp12_, _tmp13_); -#line 1723 "/home/jens/Source/shotwell/src/Page.vala" +#line 1735 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_page_updated_selection_band (self); -#line 1726 "/home/jens/Source/shotwell/src/Page.vala" +#line 1738 "/home/jens/Source/shotwell/src/Page.vala" _tmp15_ = self->priv->autoscroll_scheduled; -#line 1726 "/home/jens/Source/shotwell/src/Page.vala" +#line 1738 "/home/jens/Source/shotwell/src/Page.vala" if (!_tmp15_) { -#line 11072 "Page.c" +#line 11196 "Page.c" GtkAdjustment* _tmp16_ = NULL; gint _tmp17_ = 0; AdjustmentRelation _tmp18_ = 0; -#line 1727 "/home/jens/Source/shotwell/src/Page.vala" +#line 1739 "/home/jens/Source/shotwell/src/Page.vala" _tmp16_ = gtk_scrolled_window_get_vadjustment (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_scrolled_window_get_type (), GtkScrolledWindow)); -#line 1727 "/home/jens/Source/shotwell/src/Page.vala" +#line 1739 "/home/jens/Source/shotwell/src/Page.vala" _tmp17_ = y; -#line 1727 "/home/jens/Source/shotwell/src/Page.vala" +#line 1739 "/home/jens/Source/shotwell/src/Page.vala" _tmp18_ = get_adjustment_relation (_tmp16_, _tmp17_); -#line 1727 "/home/jens/Source/shotwell/src/Page.vala" +#line 1739 "/home/jens/Source/shotwell/src/Page.vala" _tmp14_ = _tmp18_ != ADJUSTMENT_RELATION_IN_RANGE; -#line 11084 "Page.c" +#line 11208 "Page.c" } else { -#line 1726 "/home/jens/Source/shotwell/src/Page.vala" +#line 1738 "/home/jens/Source/shotwell/src/Page.vala" _tmp14_ = FALSE; -#line 11088 "Page.c" +#line 11212 "Page.c" } -#line 1726 "/home/jens/Source/shotwell/src/Page.vala" +#line 1738 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp14_) { -#line 1728 "/home/jens/Source/shotwell/src/Page.vala" +#line 1740 "/home/jens/Source/shotwell/src/Page.vala" g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) CHECKERBOARD_PAGE_AUTOSCROLL_TICKS_MSEC, _checkerboard_page_selection_autoscroll_gsource_func, g_object_ref (self), g_object_unref); -#line 1729 "/home/jens/Source/shotwell/src/Page.vala" +#line 1741 "/home/jens/Source/shotwell/src/Page.vala" self->priv->autoscroll_scheduled = TRUE; -#line 11096 "Page.c" +#line 11220 "Page.c" } -#line 1733 "/home/jens/Source/shotwell/src/Page.vala" +#line 1745 "/home/jens/Source/shotwell/src/Page.vala" result = TRUE; -#line 1733 "/home/jens/Source/shotwell/src/Page.vala" +#line 1745 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 11102 "Page.c" +#line 11226 "Page.c" } @@ -11135,91 +11259,91 @@ static void checkerboard_page_updated_selection_band (CheckerboardPage* self) { ViewCollection* _tmp47_ = NULL; ViewCollection* _tmp48_ = NULL; Marker* _tmp49_ = NULL; -#line 1736 "/home/jens/Source/shotwell/src/Page.vala" +#line 1748 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_CHECKERBOARD_PAGE (self)); -#line 1737 "/home/jens/Source/shotwell/src/Page.vala" +#line 1749 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->layout; -#line 1737 "/home/jens/Source/shotwell/src/Page.vala" +#line 1749 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = checkerboard_layout_is_drag_select_active (_tmp0_); -#line 1737 "/home/jens/Source/shotwell/src/Page.vala" +#line 1749 "/home/jens/Source/shotwell/src/Page.vala" _vala_assert (_tmp1_, "layout.is_drag_select_active()"); -#line 1740 "/home/jens/Source/shotwell/src/Page.vala" +#line 1752 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = self->priv->layout; -#line 1740 "/home/jens/Source/shotwell/src/Page.vala" +#line 1752 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = checkerboard_layout_items_in_selection_band (_tmp2_); -#line 1740 "/home/jens/Source/shotwell/src/Page.vala" +#line 1752 "/home/jens/Source/shotwell/src/Page.vala" intersection = _tmp3_; -#line 1741 "/home/jens/Source/shotwell/src/Page.vala" +#line 1753 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = intersection; -#line 1741 "/home/jens/Source/shotwell/src/Page.vala" +#line 1753 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp4_ == NULL) { -#line 1742 "/home/jens/Source/shotwell/src/Page.vala" +#line 1754 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (intersection); -#line 1742 "/home/jens/Source/shotwell/src/Page.vala" +#line 1754 "/home/jens/Source/shotwell/src/Page.vala" return; -#line 11161 "Page.c" +#line 11285 "Page.c" } -#line 1744 "/home/jens/Source/shotwell/src/Page.vala" +#line 1756 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1744 "/home/jens/Source/shotwell/src/Page.vala" +#line 1756 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = _tmp5_; -#line 1744 "/home/jens/Source/shotwell/src/Page.vala" +#line 1756 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = data_collection_start_marking (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1744 "/home/jens/Source/shotwell/src/Page.vala" +#line 1756 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = _tmp7_; -#line 1744 "/home/jens/Source/shotwell/src/Page.vala" +#line 1756 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp6_); -#line 1744 "/home/jens/Source/shotwell/src/Page.vala" +#line 1756 "/home/jens/Source/shotwell/src/Page.vala" to_unselect = _tmp8_; -#line 1745 "/home/jens/Source/shotwell/src/Page.vala" +#line 1757 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1745 "/home/jens/Source/shotwell/src/Page.vala" +#line 1757 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = _tmp9_; -#line 1745 "/home/jens/Source/shotwell/src/Page.vala" +#line 1757 "/home/jens/Source/shotwell/src/Page.vala" _tmp11_ = data_collection_start_marking (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1745 "/home/jens/Source/shotwell/src/Page.vala" +#line 1757 "/home/jens/Source/shotwell/src/Page.vala" _tmp12_ = _tmp11_; -#line 1745 "/home/jens/Source/shotwell/src/Page.vala" +#line 1757 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp10_); -#line 1745 "/home/jens/Source/shotwell/src/Page.vala" +#line 1757 "/home/jens/Source/shotwell/src/Page.vala" to_select = _tmp12_; -#line 1748 "/home/jens/Source/shotwell/src/Page.vala" +#line 1760 "/home/jens/Source/shotwell/src/Page.vala" _tmp13_ = to_unselect; -#line 1748 "/home/jens/Source/shotwell/src/Page.vala" +#line 1760 "/home/jens/Source/shotwell/src/Page.vala" _tmp14_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1748 "/home/jens/Source/shotwell/src/Page.vala" +#line 1760 "/home/jens/Source/shotwell/src/Page.vala" _tmp15_ = _tmp14_; -#line 1748 "/home/jens/Source/shotwell/src/Page.vala" +#line 1760 "/home/jens/Source/shotwell/src/Page.vala" _tmp16_ = view_collection_get_selected (_tmp15_); -#line 1748 "/home/jens/Source/shotwell/src/Page.vala" +#line 1760 "/home/jens/Source/shotwell/src/Page.vala" _tmp17_ = _tmp16_; -#line 1748 "/home/jens/Source/shotwell/src/Page.vala" +#line 1760 "/home/jens/Source/shotwell/src/Page.vala" marker_mark_many (_tmp13_, G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1748 "/home/jens/Source/shotwell/src/Page.vala" +#line 1760 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (_tmp17_); -#line 1748 "/home/jens/Source/shotwell/src/Page.vala" +#line 1760 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp15_); -#line 1751 "/home/jens/Source/shotwell/src/Page.vala" +#line 1763 "/home/jens/Source/shotwell/src/Page.vala" _tmp18_ = self->priv->previously_selected; -#line 1751 "/home/jens/Source/shotwell/src/Page.vala" +#line 1763 "/home/jens/Source/shotwell/src/Page.vala" _vala_assert (_tmp18_ != NULL, "previously_selected != null"); -#line 1752 "/home/jens/Source/shotwell/src/Page.vala" +#line 1764 "/home/jens/Source/shotwell/src/Page.vala" _tmp19_ = to_unselect; -#line 1752 "/home/jens/Source/shotwell/src/Page.vala" +#line 1764 "/home/jens/Source/shotwell/src/Page.vala" _tmp20_ = self->priv->previously_selected; -#line 1752 "/home/jens/Source/shotwell/src/Page.vala" +#line 1764 "/home/jens/Source/shotwell/src/Page.vala" marker_unmark_many (_tmp19_, G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1753 "/home/jens/Source/shotwell/src/Page.vala" +#line 1765 "/home/jens/Source/shotwell/src/Page.vala" _tmp21_ = to_select; -#line 1753 "/home/jens/Source/shotwell/src/Page.vala" +#line 1765 "/home/jens/Source/shotwell/src/Page.vala" _tmp22_ = self->priv->previously_selected; -#line 1753 "/home/jens/Source/shotwell/src/Page.vala" +#line 1765 "/home/jens/Source/shotwell/src/Page.vala" marker_mark_many (_tmp21_, G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1756 "/home/jens/Source/shotwell/src/Page.vala" +#line 1768 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->cursor); -#line 1756 "/home/jens/Source/shotwell/src/Page.vala" +#line 1768 "/home/jens/Source/shotwell/src/Page.vala" self->cursor = NULL; -#line 11223 "Page.c" +#line 11347 "Page.c" { GeeList* _item_list = NULL; GeeList* _tmp23_ = NULL; @@ -11229,25 +11353,25 @@ static void checkerboard_page_updated_selection_band (CheckerboardPage* self) { gint _tmp26_ = 0; gint _tmp27_ = 0; gint _item_index = 0; -#line 1758 "/home/jens/Source/shotwell/src/Page.vala" +#line 1770 "/home/jens/Source/shotwell/src/Page.vala" _tmp23_ = intersection; -#line 1758 "/home/jens/Source/shotwell/src/Page.vala" +#line 1770 "/home/jens/Source/shotwell/src/Page.vala" _tmp24_ = _g_object_ref0 (_tmp23_); -#line 1758 "/home/jens/Source/shotwell/src/Page.vala" +#line 1770 "/home/jens/Source/shotwell/src/Page.vala" _item_list = _tmp24_; -#line 1758 "/home/jens/Source/shotwell/src/Page.vala" +#line 1770 "/home/jens/Source/shotwell/src/Page.vala" _tmp25_ = _item_list; -#line 1758 "/home/jens/Source/shotwell/src/Page.vala" +#line 1770 "/home/jens/Source/shotwell/src/Page.vala" _tmp26_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1758 "/home/jens/Source/shotwell/src/Page.vala" +#line 1770 "/home/jens/Source/shotwell/src/Page.vala" _tmp27_ = _tmp26_; -#line 1758 "/home/jens/Source/shotwell/src/Page.vala" +#line 1770 "/home/jens/Source/shotwell/src/Page.vala" _item_size = _tmp27_; -#line 1758 "/home/jens/Source/shotwell/src/Page.vala" +#line 1770 "/home/jens/Source/shotwell/src/Page.vala" _item_index = -1; -#line 1758 "/home/jens/Source/shotwell/src/Page.vala" +#line 1770 "/home/jens/Source/shotwell/src/Page.vala" while (TRUE) { -#line 11251 "Page.c" +#line 11375 "Page.c" gint _tmp28_ = 0; gint _tmp29_ = 0; gint _tmp30_ = 0; @@ -11259,109 +11383,109 @@ static void checkerboard_page_updated_selection_band (CheckerboardPage* self) { CheckerboardItem* _tmp35_ = NULL; gboolean _tmp36_ = FALSE; CheckerboardItem* _tmp41_ = NULL; -#line 1758 "/home/jens/Source/shotwell/src/Page.vala" +#line 1770 "/home/jens/Source/shotwell/src/Page.vala" _tmp28_ = _item_index; -#line 1758 "/home/jens/Source/shotwell/src/Page.vala" +#line 1770 "/home/jens/Source/shotwell/src/Page.vala" _item_index = _tmp28_ + 1; -#line 1758 "/home/jens/Source/shotwell/src/Page.vala" +#line 1770 "/home/jens/Source/shotwell/src/Page.vala" _tmp29_ = _item_index; -#line 1758 "/home/jens/Source/shotwell/src/Page.vala" +#line 1770 "/home/jens/Source/shotwell/src/Page.vala" _tmp30_ = _item_size; -#line 1758 "/home/jens/Source/shotwell/src/Page.vala" +#line 1770 "/home/jens/Source/shotwell/src/Page.vala" if (!(_tmp29_ < _tmp30_)) { -#line 1758 "/home/jens/Source/shotwell/src/Page.vala" +#line 1770 "/home/jens/Source/shotwell/src/Page.vala" break; -#line 11275 "Page.c" +#line 11399 "Page.c" } -#line 1758 "/home/jens/Source/shotwell/src/Page.vala" +#line 1770 "/home/jens/Source/shotwell/src/Page.vala" _tmp31_ = _item_list; -#line 1758 "/home/jens/Source/shotwell/src/Page.vala" +#line 1770 "/home/jens/Source/shotwell/src/Page.vala" _tmp32_ = _item_index; -#line 1758 "/home/jens/Source/shotwell/src/Page.vala" +#line 1770 "/home/jens/Source/shotwell/src/Page.vala" _tmp33_ = gee_list_get (_tmp31_, _tmp32_); -#line 1758 "/home/jens/Source/shotwell/src/Page.vala" +#line 1770 "/home/jens/Source/shotwell/src/Page.vala" item = (CheckerboardItem*) _tmp33_; -#line 1759 "/home/jens/Source/shotwell/src/Page.vala" +#line 1771 "/home/jens/Source/shotwell/src/Page.vala" _tmp34_ = to_select; -#line 1759 "/home/jens/Source/shotwell/src/Page.vala" +#line 1771 "/home/jens/Source/shotwell/src/Page.vala" _tmp35_ = item; -#line 1759 "/home/jens/Source/shotwell/src/Page.vala" +#line 1771 "/home/jens/Source/shotwell/src/Page.vala" _tmp36_ = marker_toggle (_tmp34_, G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, TYPE_DATA_OBJECT, DataObject)); -#line 1759 "/home/jens/Source/shotwell/src/Page.vala" +#line 1771 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp36_) { -#line 11293 "Page.c" +#line 11417 "Page.c" Marker* _tmp37_ = NULL; CheckerboardItem* _tmp38_ = NULL; -#line 1760 "/home/jens/Source/shotwell/src/Page.vala" +#line 1772 "/home/jens/Source/shotwell/src/Page.vala" _tmp37_ = to_unselect; -#line 1760 "/home/jens/Source/shotwell/src/Page.vala" +#line 1772 "/home/jens/Source/shotwell/src/Page.vala" _tmp38_ = item; -#line 1760 "/home/jens/Source/shotwell/src/Page.vala" +#line 1772 "/home/jens/Source/shotwell/src/Page.vala" marker_unmark (_tmp37_, G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, TYPE_DATA_OBJECT, DataObject)); -#line 11302 "Page.c" +#line 11426 "Page.c" } else { Marker* _tmp39_ = NULL; CheckerboardItem* _tmp40_ = NULL; -#line 1762 "/home/jens/Source/shotwell/src/Page.vala" +#line 1774 "/home/jens/Source/shotwell/src/Page.vala" _tmp39_ = to_unselect; -#line 1762 "/home/jens/Source/shotwell/src/Page.vala" +#line 1774 "/home/jens/Source/shotwell/src/Page.vala" _tmp40_ = item; -#line 1762 "/home/jens/Source/shotwell/src/Page.vala" +#line 1774 "/home/jens/Source/shotwell/src/Page.vala" marker_mark (_tmp39_, G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, TYPE_DATA_OBJECT, DataObject)); -#line 11312 "Page.c" +#line 11436 "Page.c" } -#line 1764 "/home/jens/Source/shotwell/src/Page.vala" +#line 1776 "/home/jens/Source/shotwell/src/Page.vala" _tmp41_ = self->cursor; -#line 1764 "/home/jens/Source/shotwell/src/Page.vala" +#line 1776 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp41_ == NULL) { -#line 11318 "Page.c" +#line 11442 "Page.c" CheckerboardItem* _tmp42_ = NULL; CheckerboardItem* _tmp43_ = NULL; -#line 1765 "/home/jens/Source/shotwell/src/Page.vala" +#line 1777 "/home/jens/Source/shotwell/src/Page.vala" _tmp42_ = item; -#line 1765 "/home/jens/Source/shotwell/src/Page.vala" +#line 1777 "/home/jens/Source/shotwell/src/Page.vala" _tmp43_ = _g_object_ref0 (_tmp42_); -#line 1765 "/home/jens/Source/shotwell/src/Page.vala" +#line 1777 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->cursor); -#line 1765 "/home/jens/Source/shotwell/src/Page.vala" +#line 1777 "/home/jens/Source/shotwell/src/Page.vala" self->cursor = _tmp43_; -#line 11329 "Page.c" +#line 11453 "Page.c" } -#line 1758 "/home/jens/Source/shotwell/src/Page.vala" +#line 1770 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (item); -#line 11333 "Page.c" +#line 11457 "Page.c" } -#line 1758 "/home/jens/Source/shotwell/src/Page.vala" +#line 1770 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (_item_list); -#line 11337 "Page.c" +#line 11461 "Page.c" } -#line 1768 "/home/jens/Source/shotwell/src/Page.vala" +#line 1780 "/home/jens/Source/shotwell/src/Page.vala" _tmp44_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1768 "/home/jens/Source/shotwell/src/Page.vala" +#line 1780 "/home/jens/Source/shotwell/src/Page.vala" _tmp45_ = _tmp44_; -#line 1768 "/home/jens/Source/shotwell/src/Page.vala" +#line 1780 "/home/jens/Source/shotwell/src/Page.vala" _tmp46_ = to_select; -#line 1768 "/home/jens/Source/shotwell/src/Page.vala" +#line 1780 "/home/jens/Source/shotwell/src/Page.vala" view_collection_select_marked (_tmp45_, _tmp46_); -#line 1768 "/home/jens/Source/shotwell/src/Page.vala" +#line 1780 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp45_); -#line 1769 "/home/jens/Source/shotwell/src/Page.vala" +#line 1781 "/home/jens/Source/shotwell/src/Page.vala" _tmp47_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1769 "/home/jens/Source/shotwell/src/Page.vala" +#line 1781 "/home/jens/Source/shotwell/src/Page.vala" _tmp48_ = _tmp47_; -#line 1769 "/home/jens/Source/shotwell/src/Page.vala" +#line 1781 "/home/jens/Source/shotwell/src/Page.vala" _tmp49_ = to_unselect; -#line 1769 "/home/jens/Source/shotwell/src/Page.vala" +#line 1781 "/home/jens/Source/shotwell/src/Page.vala" view_collection_unselect_marked (_tmp48_, _tmp49_); -#line 1769 "/home/jens/Source/shotwell/src/Page.vala" +#line 1781 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp48_); -#line 1736 "/home/jens/Source/shotwell/src/Page.vala" +#line 1748 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (to_select); -#line 1736 "/home/jens/Source/shotwell/src/Page.vala" +#line 1748 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (to_unselect); -#line 1736 "/home/jens/Source/shotwell/src/Page.vala" +#line 1748 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (intersection); -#line 11365 "Page.c" +#line 11489 "Page.c" } @@ -11393,77 +11517,77 @@ static gboolean checkerboard_page_selection_autoscroll (CheckerboardPage* self) GtkAdjustment* _tmp28_ = NULL; gdouble _tmp29_ = 0.0; gint _tmp30_ = 0; -#line 1772 "/home/jens/Source/shotwell/src/Page.vala" +#line 1784 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_CHECKERBOARD_PAGE (self), FALSE); -#line 1773 "/home/jens/Source/shotwell/src/Page.vala" +#line 1785 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->layout; -#line 1773 "/home/jens/Source/shotwell/src/Page.vala" +#line 1785 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = checkerboard_layout_is_drag_select_active (_tmp0_); -#line 1773 "/home/jens/Source/shotwell/src/Page.vala" +#line 1785 "/home/jens/Source/shotwell/src/Page.vala" if (!_tmp1_) { -#line 1774 "/home/jens/Source/shotwell/src/Page.vala" +#line 1786 "/home/jens/Source/shotwell/src/Page.vala" self->priv->autoscroll_scheduled = FALSE; -#line 1776 "/home/jens/Source/shotwell/src/Page.vala" +#line 1788 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 1776 "/home/jens/Source/shotwell/src/Page.vala" +#line 1788 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 11411 "Page.c" +#line 11535 "Page.c" } -#line 1780 "/home/jens/Source/shotwell/src/Page.vala" +#line 1792 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = gtk_scrolled_window_get_vadjustment (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_scrolled_window_get_type (), GtkScrolledWindow)); -#line 1780 "/home/jens/Source/shotwell/src/Page.vala" +#line 1792 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = _g_object_ref0 (_tmp2_); -#line 1780 "/home/jens/Source/shotwell/src/Page.vala" +#line 1792 "/home/jens/Source/shotwell/src/Page.vala" vadj = _tmp3_; -#line 1784 "/home/jens/Source/shotwell/src/Page.vala" +#line 1796 "/home/jens/Source/shotwell/src/Page.vala" page_get_event_source_pointer (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), &_tmp4_, &_tmp5_, &_tmp6_); -#line 1784 "/home/jens/Source/shotwell/src/Page.vala" +#line 1796 "/home/jens/Source/shotwell/src/Page.vala" x = _tmp4_; -#line 1784 "/home/jens/Source/shotwell/src/Page.vala" +#line 1796 "/home/jens/Source/shotwell/src/Page.vala" y = _tmp5_; -#line 1784 "/home/jens/Source/shotwell/src/Page.vala" +#line 1796 "/home/jens/Source/shotwell/src/Page.vala" mask = _tmp6_; -#line 1786 "/home/jens/Source/shotwell/src/Page.vala" +#line 1798 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = vadj; -#line 1786 "/home/jens/Source/shotwell/src/Page.vala" +#line 1798 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = gtk_adjustment_get_value (_tmp7_); -#line 1786 "/home/jens/Source/shotwell/src/Page.vala" +#line 1798 "/home/jens/Source/shotwell/src/Page.vala" new_value = (gint) _tmp8_; -#line 1787 "/home/jens/Source/shotwell/src/Page.vala" +#line 1799 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = vadj; -#line 1787 "/home/jens/Source/shotwell/src/Page.vala" +#line 1799 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = y; -#line 1787 "/home/jens/Source/shotwell/src/Page.vala" +#line 1799 "/home/jens/Source/shotwell/src/Page.vala" _tmp11_ = get_adjustment_relation (_tmp9_, _tmp10_); -#line 1787 "/home/jens/Source/shotwell/src/Page.vala" +#line 1799 "/home/jens/Source/shotwell/src/Page.vala" switch (_tmp11_) { -#line 1787 "/home/jens/Source/shotwell/src/Page.vala" +#line 1799 "/home/jens/Source/shotwell/src/Page.vala" case ADJUSTMENT_RELATION_BELOW: -#line 11443 "Page.c" +#line 11567 "Page.c" { gint _tmp12_ = 0; CheckerboardLayout* _tmp13_ = NULL; gint _tmp14_ = 0; gint _tmp15_ = 0; -#line 1790 "/home/jens/Source/shotwell/src/Page.vala" +#line 1802 "/home/jens/Source/shotwell/src/Page.vala" _tmp12_ = new_value; -#line 1790 "/home/jens/Source/shotwell/src/Page.vala" +#line 1802 "/home/jens/Source/shotwell/src/Page.vala" new_value = _tmp12_ - CHECKERBOARD_PAGE_AUTOSCROLL_PIXELS; -#line 1791 "/home/jens/Source/shotwell/src/Page.vala" +#line 1803 "/home/jens/Source/shotwell/src/Page.vala" _tmp13_ = self->priv->layout; -#line 1791 "/home/jens/Source/shotwell/src/Page.vala" +#line 1803 "/home/jens/Source/shotwell/src/Page.vala" _tmp14_ = x; -#line 1791 "/home/jens/Source/shotwell/src/Page.vala" +#line 1803 "/home/jens/Source/shotwell/src/Page.vala" _tmp15_ = new_value; -#line 1791 "/home/jens/Source/shotwell/src/Page.vala" +#line 1803 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_layout_set_drag_select_endpoint (_tmp13_, _tmp14_, _tmp15_); -#line 1792 "/home/jens/Source/shotwell/src/Page.vala" +#line 1804 "/home/jens/Source/shotwell/src/Page.vala" break; -#line 11463 "Page.c" +#line 11587 "Page.c" } -#line 1787 "/home/jens/Source/shotwell/src/Page.vala" +#line 1799 "/home/jens/Source/shotwell/src/Page.vala" case ADJUSTMENT_RELATION_ABOVE: -#line 11467 "Page.c" +#line 11591 "Page.c" { gint _tmp16_ = 0; CheckerboardLayout* _tmp17_ = NULL; @@ -11471,78 +11595,78 @@ static gboolean checkerboard_page_selection_autoscroll (CheckerboardPage* self) gint _tmp19_ = 0; GtkAdjustment* _tmp20_ = NULL; gdouble _tmp21_ = 0.0; -#line 1796 "/home/jens/Source/shotwell/src/Page.vala" +#line 1808 "/home/jens/Source/shotwell/src/Page.vala" _tmp16_ = new_value; -#line 1796 "/home/jens/Source/shotwell/src/Page.vala" +#line 1808 "/home/jens/Source/shotwell/src/Page.vala" new_value = _tmp16_ + CHECKERBOARD_PAGE_AUTOSCROLL_PIXELS; -#line 1797 "/home/jens/Source/shotwell/src/Page.vala" +#line 1809 "/home/jens/Source/shotwell/src/Page.vala" _tmp17_ = self->priv->layout; -#line 1797 "/home/jens/Source/shotwell/src/Page.vala" +#line 1809 "/home/jens/Source/shotwell/src/Page.vala" _tmp18_ = x; -#line 1797 "/home/jens/Source/shotwell/src/Page.vala" +#line 1809 "/home/jens/Source/shotwell/src/Page.vala" _tmp19_ = new_value; -#line 1797 "/home/jens/Source/shotwell/src/Page.vala" +#line 1809 "/home/jens/Source/shotwell/src/Page.vala" _tmp20_ = vadj; -#line 1797 "/home/jens/Source/shotwell/src/Page.vala" +#line 1809 "/home/jens/Source/shotwell/src/Page.vala" _tmp21_ = gtk_adjustment_get_page_size (_tmp20_); -#line 1797 "/home/jens/Source/shotwell/src/Page.vala" +#line 1809 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_layout_set_drag_select_endpoint (_tmp17_, _tmp18_, _tmp19_ + ((gint) _tmp21_)); -#line 1798 "/home/jens/Source/shotwell/src/Page.vala" +#line 1810 "/home/jens/Source/shotwell/src/Page.vala" break; -#line 11493 "Page.c" +#line 11617 "Page.c" } -#line 1787 "/home/jens/Source/shotwell/src/Page.vala" +#line 1799 "/home/jens/Source/shotwell/src/Page.vala" case ADJUSTMENT_RELATION_IN_RANGE: -#line 11497 "Page.c" +#line 11621 "Page.c" { -#line 1801 "/home/jens/Source/shotwell/src/Page.vala" +#line 1813 "/home/jens/Source/shotwell/src/Page.vala" self->priv->autoscroll_scheduled = FALSE; -#line 1803 "/home/jens/Source/shotwell/src/Page.vala" +#line 1815 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 1803 "/home/jens/Source/shotwell/src/Page.vala" +#line 1815 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (vadj); -#line 1803 "/home/jens/Source/shotwell/src/Page.vala" +#line 1815 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 11507 "Page.c" +#line 11631 "Page.c" } default: { -#line 1806 "/home/jens/Source/shotwell/src/Page.vala" +#line 1818 "/home/jens/Source/shotwell/src/Page.vala" g_warn_if_reached (); -#line 1807 "/home/jens/Source/shotwell/src/Page.vala" +#line 1819 "/home/jens/Source/shotwell/src/Page.vala" break; -#line 11515 "Page.c" +#line 11639 "Page.c" } } -#line 1813 "/home/jens/Source/shotwell/src/Page.vala" +#line 1825 "/home/jens/Source/shotwell/src/Page.vala" _tmp22_ = vadj; -#line 1813 "/home/jens/Source/shotwell/src/Page.vala" +#line 1825 "/home/jens/Source/shotwell/src/Page.vala" _tmp23_ = new_value; -#line 1813 "/home/jens/Source/shotwell/src/Page.vala" +#line 1825 "/home/jens/Source/shotwell/src/Page.vala" _tmp24_ = vadj; -#line 1813 "/home/jens/Source/shotwell/src/Page.vala" +#line 1825 "/home/jens/Source/shotwell/src/Page.vala" _tmp25_ = gtk_adjustment_get_lower (_tmp24_); -#line 1813 "/home/jens/Source/shotwell/src/Page.vala" +#line 1825 "/home/jens/Source/shotwell/src/Page.vala" _tmp26_ = vadj; -#line 1813 "/home/jens/Source/shotwell/src/Page.vala" +#line 1825 "/home/jens/Source/shotwell/src/Page.vala" _tmp27_ = gtk_adjustment_get_upper (_tmp26_); -#line 1813 "/home/jens/Source/shotwell/src/Page.vala" +#line 1825 "/home/jens/Source/shotwell/src/Page.vala" _tmp28_ = vadj; -#line 1813 "/home/jens/Source/shotwell/src/Page.vala" +#line 1825 "/home/jens/Source/shotwell/src/Page.vala" _tmp29_ = gtk_adjustment_get_page_size (_tmp28_); -#line 1813 "/home/jens/Source/shotwell/src/Page.vala" +#line 1825 "/home/jens/Source/shotwell/src/Page.vala" _tmp30_ = CLAMP (_tmp23_, (gint) _tmp25_, ((gint) _tmp27_) - ((gint) _tmp29_)); -#line 1813 "/home/jens/Source/shotwell/src/Page.vala" +#line 1825 "/home/jens/Source/shotwell/src/Page.vala" gtk_adjustment_set_value (_tmp22_, (gdouble) _tmp30_); -#line 1816 "/home/jens/Source/shotwell/src/Page.vala" +#line 1828 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_page_updated_selection_band (self); -#line 1818 "/home/jens/Source/shotwell/src/Page.vala" +#line 1830 "/home/jens/Source/shotwell/src/Page.vala" result = TRUE; -#line 1818 "/home/jens/Source/shotwell/src/Page.vala" +#line 1830 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (vadj); -#line 1818 "/home/jens/Source/shotwell/src/Page.vala" +#line 1830 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 11546 "Page.c" +#line 11670 "Page.c" } @@ -11573,35 +11697,35 @@ void checkerboard_page_cursor_to_item (CheckerboardPage* self, CheckerboardItem* gdouble _tmp39_ = 0.0; GtkAdjustment* _tmp53_ = NULL; gint _tmp54_ = 0; -#line 1821 "/home/jens/Source/shotwell/src/Page.vala" +#line 1833 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_CHECKERBOARD_PAGE (self)); -#line 1821 "/home/jens/Source/shotwell/src/Page.vala" +#line 1833 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_CHECKERBOARD_ITEM (item)); -#line 1822 "/home/jens/Source/shotwell/src/Page.vala" +#line 1834 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1822 "/home/jens/Source/shotwell/src/Page.vala" +#line 1834 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = _tmp0_; -#line 1822 "/home/jens/Source/shotwell/src/Page.vala" +#line 1834 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = item; -#line 1822 "/home/jens/Source/shotwell/src/Page.vala" +#line 1834 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = data_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_OBJECT, DataObject)); -#line 1822 "/home/jens/Source/shotwell/src/Page.vala" +#line 1834 "/home/jens/Source/shotwell/src/Page.vala" _vala_assert (_tmp3_, "get_view().contains(item)"); -#line 1822 "/home/jens/Source/shotwell/src/Page.vala" +#line 1834 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp1_); -#line 1824 "/home/jens/Source/shotwell/src/Page.vala" +#line 1836 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = item; -#line 1824 "/home/jens/Source/shotwell/src/Page.vala" +#line 1836 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = _g_object_ref0 (_tmp4_); -#line 1824 "/home/jens/Source/shotwell/src/Page.vala" +#line 1836 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->cursor); -#line 1824 "/home/jens/Source/shotwell/src/Page.vala" +#line 1836 "/home/jens/Source/shotwell/src/Page.vala" self->cursor = _tmp5_; -#line 1826 "/home/jens/Source/shotwell/src/Page.vala" +#line 1838 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = page_get_ctrl_pressed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1826 "/home/jens/Source/shotwell/src/Page.vala" +#line 1838 "/home/jens/Source/shotwell/src/Page.vala" if (!_tmp6_) { -#line 11605 "Page.c" +#line 11729 "Page.c" ViewCollection* _tmp7_ = NULL; ViewCollection* _tmp8_ = NULL; Marker* marker = NULL; @@ -11613,67 +11737,67 @@ void checkerboard_page_cursor_to_item (CheckerboardPage* self, CheckerboardItem* ViewCollection* _tmp14_ = NULL; ViewCollection* _tmp15_ = NULL; Marker* _tmp16_ = NULL; -#line 1827 "/home/jens/Source/shotwell/src/Page.vala" +#line 1839 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1827 "/home/jens/Source/shotwell/src/Page.vala" +#line 1839 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = _tmp7_; -#line 1827 "/home/jens/Source/shotwell/src/Page.vala" +#line 1839 "/home/jens/Source/shotwell/src/Page.vala" view_collection_unselect_all (_tmp8_); -#line 1827 "/home/jens/Source/shotwell/src/Page.vala" +#line 1839 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp8_); -#line 1828 "/home/jens/Source/shotwell/src/Page.vala" +#line 1840 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1828 "/home/jens/Source/shotwell/src/Page.vala" +#line 1840 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = _tmp9_; -#line 1828 "/home/jens/Source/shotwell/src/Page.vala" +#line 1840 "/home/jens/Source/shotwell/src/Page.vala" _tmp11_ = item; -#line 1828 "/home/jens/Source/shotwell/src/Page.vala" +#line 1840 "/home/jens/Source/shotwell/src/Page.vala" _tmp12_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_DATA_OBJECT, DataObject)); -#line 1828 "/home/jens/Source/shotwell/src/Page.vala" +#line 1840 "/home/jens/Source/shotwell/src/Page.vala" _tmp13_ = _tmp12_; -#line 1828 "/home/jens/Source/shotwell/src/Page.vala" +#line 1840 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp10_); -#line 1828 "/home/jens/Source/shotwell/src/Page.vala" +#line 1840 "/home/jens/Source/shotwell/src/Page.vala" marker = _tmp13_; -#line 1829 "/home/jens/Source/shotwell/src/Page.vala" +#line 1841 "/home/jens/Source/shotwell/src/Page.vala" _tmp14_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1829 "/home/jens/Source/shotwell/src/Page.vala" +#line 1841 "/home/jens/Source/shotwell/src/Page.vala" _tmp15_ = _tmp14_; -#line 1829 "/home/jens/Source/shotwell/src/Page.vala" +#line 1841 "/home/jens/Source/shotwell/src/Page.vala" _tmp16_ = marker; -#line 1829 "/home/jens/Source/shotwell/src/Page.vala" +#line 1841 "/home/jens/Source/shotwell/src/Page.vala" view_collection_select_marked (_tmp15_, _tmp16_); -#line 1829 "/home/jens/Source/shotwell/src/Page.vala" +#line 1841 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp15_); -#line 1826 "/home/jens/Source/shotwell/src/Page.vala" +#line 1838 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (marker); -#line 11651 "Page.c" +#line 11775 "Page.c" } -#line 1831 "/home/jens/Source/shotwell/src/Page.vala" +#line 1843 "/home/jens/Source/shotwell/src/Page.vala" _tmp17_ = self->priv->layout; -#line 1831 "/home/jens/Source/shotwell/src/Page.vala" +#line 1843 "/home/jens/Source/shotwell/src/Page.vala" _tmp18_ = item; -#line 1831 "/home/jens/Source/shotwell/src/Page.vala" +#line 1843 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_layout_set_cursor (_tmp17_, _tmp18_); -#line 1834 "/home/jens/Source/shotwell/src/Page.vala" +#line 1846 "/home/jens/Source/shotwell/src/Page.vala" _tmp19_ = gtk_scrolled_window_get_vadjustment (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_scrolled_window_get_type (), GtkScrolledWindow)); -#line 1834 "/home/jens/Source/shotwell/src/Page.vala" +#line 1846 "/home/jens/Source/shotwell/src/Page.vala" _tmp20_ = _g_object_ref0 (_tmp19_); -#line 1834 "/home/jens/Source/shotwell/src/Page.vala" +#line 1846 "/home/jens/Source/shotwell/src/Page.vala" vadj = _tmp20_; -#line 1835 "/home/jens/Source/shotwell/src/Page.vala" +#line 1847 "/home/jens/Source/shotwell/src/Page.vala" _tmp22_ = vadj; -#line 1835 "/home/jens/Source/shotwell/src/Page.vala" +#line 1847 "/home/jens/Source/shotwell/src/Page.vala" _tmp23_ = item; -#line 1835 "/home/jens/Source/shotwell/src/Page.vala" +#line 1847 "/home/jens/Source/shotwell/src/Page.vala" _tmp24_ = _tmp23_->allocation; -#line 1835 "/home/jens/Source/shotwell/src/Page.vala" +#line 1847 "/home/jens/Source/shotwell/src/Page.vala" _tmp25_ = _tmp24_.y; -#line 1835 "/home/jens/Source/shotwell/src/Page.vala" +#line 1847 "/home/jens/Source/shotwell/src/Page.vala" _tmp26_ = get_adjustment_relation (_tmp22_, _tmp25_); -#line 1835 "/home/jens/Source/shotwell/src/Page.vala" +#line 1847 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp26_ == ADJUSTMENT_RELATION_IN_RANGE) { -#line 11677 "Page.c" +#line 11801 "Page.c" GtkAdjustment* _tmp27_ = NULL; CheckerboardItem* _tmp28_ = NULL; GdkRectangle _tmp29_ = {0}; @@ -11682,70 +11806,70 @@ void checkerboard_page_cursor_to_item (CheckerboardPage* self, CheckerboardItem* GdkRectangle _tmp32_ = {0}; gint _tmp33_ = 0; AdjustmentRelation _tmp34_ = 0; -#line 1836 "/home/jens/Source/shotwell/src/Page.vala" +#line 1848 "/home/jens/Source/shotwell/src/Page.vala" _tmp27_ = vadj; -#line 1836 "/home/jens/Source/shotwell/src/Page.vala" +#line 1848 "/home/jens/Source/shotwell/src/Page.vala" _tmp28_ = item; -#line 1836 "/home/jens/Source/shotwell/src/Page.vala" +#line 1848 "/home/jens/Source/shotwell/src/Page.vala" _tmp29_ = _tmp28_->allocation; -#line 1836 "/home/jens/Source/shotwell/src/Page.vala" +#line 1848 "/home/jens/Source/shotwell/src/Page.vala" _tmp30_ = _tmp29_.y; -#line 1836 "/home/jens/Source/shotwell/src/Page.vala" +#line 1848 "/home/jens/Source/shotwell/src/Page.vala" _tmp31_ = item; -#line 1836 "/home/jens/Source/shotwell/src/Page.vala" +#line 1848 "/home/jens/Source/shotwell/src/Page.vala" _tmp32_ = _tmp31_->allocation; -#line 1836 "/home/jens/Source/shotwell/src/Page.vala" +#line 1848 "/home/jens/Source/shotwell/src/Page.vala" _tmp33_ = _tmp32_.height; -#line 1836 "/home/jens/Source/shotwell/src/Page.vala" +#line 1848 "/home/jens/Source/shotwell/src/Page.vala" _tmp34_ = get_adjustment_relation (_tmp27_, _tmp30_ + _tmp33_); -#line 1836 "/home/jens/Source/shotwell/src/Page.vala" +#line 1848 "/home/jens/Source/shotwell/src/Page.vala" _tmp21_ = _tmp34_ == ADJUSTMENT_RELATION_IN_RANGE; -#line 11704 "Page.c" +#line 11828 "Page.c" } else { -#line 1835 "/home/jens/Source/shotwell/src/Page.vala" +#line 1847 "/home/jens/Source/shotwell/src/Page.vala" _tmp21_ = FALSE; -#line 11708 "Page.c" +#line 11832 "Page.c" } -#line 1835 "/home/jens/Source/shotwell/src/Page.vala" +#line 1847 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp21_) { -#line 1837 "/home/jens/Source/shotwell/src/Page.vala" +#line 1849 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (vadj); -#line 1837 "/home/jens/Source/shotwell/src/Page.vala" +#line 1849 "/home/jens/Source/shotwell/src/Page.vala" return; -#line 11716 "Page.c" +#line 11840 "Page.c" } -#line 1840 "/home/jens/Source/shotwell/src/Page.vala" +#line 1852 "/home/jens/Source/shotwell/src/Page.vala" top = 0; -#line 1841 "/home/jens/Source/shotwell/src/Page.vala" +#line 1853 "/home/jens/Source/shotwell/src/Page.vala" _tmp35_ = item; -#line 1841 "/home/jens/Source/shotwell/src/Page.vala" +#line 1853 "/home/jens/Source/shotwell/src/Page.vala" _tmp36_ = _tmp35_->allocation; -#line 1841 "/home/jens/Source/shotwell/src/Page.vala" +#line 1853 "/home/jens/Source/shotwell/src/Page.vala" _tmp37_ = _tmp36_.y; -#line 1841 "/home/jens/Source/shotwell/src/Page.vala" +#line 1853 "/home/jens/Source/shotwell/src/Page.vala" _tmp38_ = vadj; -#line 1841 "/home/jens/Source/shotwell/src/Page.vala" +#line 1853 "/home/jens/Source/shotwell/src/Page.vala" _tmp39_ = gtk_adjustment_get_value (_tmp38_); -#line 1841 "/home/jens/Source/shotwell/src/Page.vala" +#line 1853 "/home/jens/Source/shotwell/src/Page.vala" if (((gdouble) _tmp37_) < _tmp39_) { -#line 11732 "Page.c" +#line 11856 "Page.c" CheckerboardItem* _tmp40_ = NULL; GdkRectangle _tmp41_ = {0}; gint _tmp42_ = 0; gint _tmp43_ = 0; -#line 1842 "/home/jens/Source/shotwell/src/Page.vala" +#line 1854 "/home/jens/Source/shotwell/src/Page.vala" _tmp40_ = item; -#line 1842 "/home/jens/Source/shotwell/src/Page.vala" +#line 1854 "/home/jens/Source/shotwell/src/Page.vala" _tmp41_ = _tmp40_->allocation; -#line 1842 "/home/jens/Source/shotwell/src/Page.vala" +#line 1854 "/home/jens/Source/shotwell/src/Page.vala" _tmp42_ = _tmp41_.y; -#line 1842 "/home/jens/Source/shotwell/src/Page.vala" +#line 1854 "/home/jens/Source/shotwell/src/Page.vala" top = _tmp42_; -#line 1843 "/home/jens/Source/shotwell/src/Page.vala" +#line 1855 "/home/jens/Source/shotwell/src/Page.vala" _tmp43_ = top; -#line 1843 "/home/jens/Source/shotwell/src/Page.vala" +#line 1855 "/home/jens/Source/shotwell/src/Page.vala" top = _tmp43_ - (CHECKERBOARD_LAYOUT_ROW_GUTTER_PADDING / 2); -#line 11749 "Page.c" +#line 11873 "Page.c" } else { CheckerboardItem* _tmp44_ = NULL; GdkRectangle _tmp45_ = {0}; @@ -11756,39 +11880,39 @@ void checkerboard_page_cursor_to_item (CheckerboardPage* self, CheckerboardItem* GtkAdjustment* _tmp50_ = NULL; gdouble _tmp51_ = 0.0; gint _tmp52_ = 0; -#line 1845 "/home/jens/Source/shotwell/src/Page.vala" +#line 1857 "/home/jens/Source/shotwell/src/Page.vala" _tmp44_ = item; -#line 1845 "/home/jens/Source/shotwell/src/Page.vala" +#line 1857 "/home/jens/Source/shotwell/src/Page.vala" _tmp45_ = _tmp44_->allocation; -#line 1845 "/home/jens/Source/shotwell/src/Page.vala" +#line 1857 "/home/jens/Source/shotwell/src/Page.vala" _tmp46_ = _tmp45_.y; -#line 1845 "/home/jens/Source/shotwell/src/Page.vala" +#line 1857 "/home/jens/Source/shotwell/src/Page.vala" _tmp47_ = item; -#line 1845 "/home/jens/Source/shotwell/src/Page.vala" +#line 1857 "/home/jens/Source/shotwell/src/Page.vala" _tmp48_ = _tmp47_->allocation; -#line 1845 "/home/jens/Source/shotwell/src/Page.vala" +#line 1857 "/home/jens/Source/shotwell/src/Page.vala" _tmp49_ = _tmp48_.height; -#line 1845 "/home/jens/Source/shotwell/src/Page.vala" +#line 1857 "/home/jens/Source/shotwell/src/Page.vala" _tmp50_ = vadj; -#line 1845 "/home/jens/Source/shotwell/src/Page.vala" +#line 1857 "/home/jens/Source/shotwell/src/Page.vala" _tmp51_ = gtk_adjustment_get_page_size (_tmp50_); -#line 1845 "/home/jens/Source/shotwell/src/Page.vala" +#line 1857 "/home/jens/Source/shotwell/src/Page.vala" top = (_tmp46_ + _tmp49_) - ((gint) _tmp51_); -#line 1846 "/home/jens/Source/shotwell/src/Page.vala" +#line 1858 "/home/jens/Source/shotwell/src/Page.vala" _tmp52_ = top; -#line 1846 "/home/jens/Source/shotwell/src/Page.vala" +#line 1858 "/home/jens/Source/shotwell/src/Page.vala" top = _tmp52_ + (CHECKERBOARD_LAYOUT_ROW_GUTTER_PADDING / 2); -#line 11782 "Page.c" +#line 11906 "Page.c" } -#line 1849 "/home/jens/Source/shotwell/src/Page.vala" +#line 1861 "/home/jens/Source/shotwell/src/Page.vala" _tmp53_ = vadj; -#line 1849 "/home/jens/Source/shotwell/src/Page.vala" +#line 1861 "/home/jens/Source/shotwell/src/Page.vala" _tmp54_ = top; -#line 1849 "/home/jens/Source/shotwell/src/Page.vala" +#line 1861 "/home/jens/Source/shotwell/src/Page.vala" gtk_adjustment_set_value (_tmp53_, (gdouble) _tmp54_); -#line 1821 "/home/jens/Source/shotwell/src/Page.vala" +#line 1833 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (vadj); -#line 11792 "Page.c" +#line 11916 "Page.c" } @@ -11807,171 +11931,171 @@ void checkerboard_page_move_cursor (CheckerboardPage* self, CompassPoint point) CompassPoint _tmp27_ = 0; CheckerboardItem* _tmp28_ = NULL; CheckerboardItem* _tmp29_ = NULL; -#line 1852 "/home/jens/Source/shotwell/src/Page.vala" +#line 1864 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_CHECKERBOARD_PAGE (self)); -#line 1854 "/home/jens/Source/shotwell/src/Page.vala" +#line 1866 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1854 "/home/jens/Source/shotwell/src/Page.vala" +#line 1866 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = _tmp0_; -#line 1854 "/home/jens/Source/shotwell/src/Page.vala" +#line 1866 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1854 "/home/jens/Source/shotwell/src/Page.vala" +#line 1866 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = _tmp2_ == 0; -#line 1854 "/home/jens/Source/shotwell/src/Page.vala" +#line 1866 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp1_); -#line 1854 "/home/jens/Source/shotwell/src/Page.vala" +#line 1866 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp3_) { -#line 1855 "/home/jens/Source/shotwell/src/Page.vala" +#line 1867 "/home/jens/Source/shotwell/src/Page.vala" return; -#line 11827 "Page.c" +#line 11951 "Page.c" } -#line 1860 "/home/jens/Source/shotwell/src/Page.vala" +#line 1872 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = self->cursor; -#line 1860 "/home/jens/Source/shotwell/src/Page.vala" +#line 1872 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp6_ == NULL) { -#line 11833 "Page.c" +#line 11957 "Page.c" CheckerboardLayout* _tmp7_ = NULL; CheckerboardItem* _tmp8_ = NULL; CheckerboardItem* _tmp9_ = NULL; -#line 1860 "/home/jens/Source/shotwell/src/Page.vala" +#line 1872 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = self->priv->layout; -#line 1860 "/home/jens/Source/shotwell/src/Page.vala" +#line 1872 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = checkerboard_layout_get_cursor (_tmp7_); -#line 1860 "/home/jens/Source/shotwell/src/Page.vala" +#line 1872 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = _tmp8_; -#line 1860 "/home/jens/Source/shotwell/src/Page.vala" +#line 1872 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = _tmp9_ == NULL; -#line 1860 "/home/jens/Source/shotwell/src/Page.vala" +#line 1872 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (_tmp9_); -#line 11847 "Page.c" +#line 11971 "Page.c" } else { -#line 1860 "/home/jens/Source/shotwell/src/Page.vala" +#line 1872 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = FALSE; -#line 11851 "Page.c" +#line 11975 "Page.c" } -#line 1860 "/home/jens/Source/shotwell/src/Page.vala" +#line 1872 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp5_) { -#line 1860 "/home/jens/Source/shotwell/src/Page.vala" +#line 1872 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = TRUE; -#line 11857 "Page.c" +#line 11981 "Page.c" } else { gboolean _tmp10_ = FALSE; CheckerboardItem* _tmp11_ = NULL; -#line 1860 "/home/jens/Source/shotwell/src/Page.vala" +#line 1872 "/home/jens/Source/shotwell/src/Page.vala" _tmp11_ = self->cursor; -#line 1860 "/home/jens/Source/shotwell/src/Page.vala" +#line 1872 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp11_ != NULL) { -#line 11865 "Page.c" +#line 11989 "Page.c" ViewCollection* _tmp12_ = NULL; ViewCollection* _tmp13_ = NULL; CheckerboardItem* _tmp14_ = NULL; gboolean _tmp15_ = FALSE; -#line 1860 "/home/jens/Source/shotwell/src/Page.vala" +#line 1872 "/home/jens/Source/shotwell/src/Page.vala" _tmp12_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1860 "/home/jens/Source/shotwell/src/Page.vala" +#line 1872 "/home/jens/Source/shotwell/src/Page.vala" _tmp13_ = _tmp12_; -#line 1860 "/home/jens/Source/shotwell/src/Page.vala" +#line 1872 "/home/jens/Source/shotwell/src/Page.vala" _tmp14_ = self->cursor; -#line 1860 "/home/jens/Source/shotwell/src/Page.vala" +#line 1872 "/home/jens/Source/shotwell/src/Page.vala" _tmp15_ = data_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_DATA_OBJECT, DataObject)); -#line 1860 "/home/jens/Source/shotwell/src/Page.vala" +#line 1872 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = !_tmp15_; -#line 1860 "/home/jens/Source/shotwell/src/Page.vala" +#line 1872 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp13_); -#line 11882 "Page.c" +#line 12006 "Page.c" } else { -#line 1860 "/home/jens/Source/shotwell/src/Page.vala" +#line 1872 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = FALSE; -#line 11886 "Page.c" +#line 12010 "Page.c" } -#line 1860 "/home/jens/Source/shotwell/src/Page.vala" +#line 1872 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = _tmp10_; -#line 11890 "Page.c" +#line 12014 "Page.c" } -#line 1860 "/home/jens/Source/shotwell/src/Page.vala" +#line 1872 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp4_) { -#line 11894 "Page.c" +#line 12018 "Page.c" CheckerboardItem* item = NULL; CheckerboardLayout* _tmp16_ = NULL; CheckerboardItem* _tmp17_ = NULL; CheckerboardItem* _tmp18_ = NULL; CheckerboardItem* _tmp19_ = NULL; CheckerboardItem* _tmp20_ = NULL; -#line 1861 "/home/jens/Source/shotwell/src/Page.vala" +#line 1873 "/home/jens/Source/shotwell/src/Page.vala" _tmp16_ = self->priv->layout; -#line 1861 "/home/jens/Source/shotwell/src/Page.vala" +#line 1873 "/home/jens/Source/shotwell/src/Page.vala" _tmp17_ = checkerboard_layout_get_item_at_coordinate (_tmp16_, 0, 0); -#line 1861 "/home/jens/Source/shotwell/src/Page.vala" +#line 1873 "/home/jens/Source/shotwell/src/Page.vala" item = _tmp17_; -#line 1862 "/home/jens/Source/shotwell/src/Page.vala" +#line 1874 "/home/jens/Source/shotwell/src/Page.vala" _tmp18_ = item; -#line 1862 "/home/jens/Source/shotwell/src/Page.vala" +#line 1874 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_page_cursor_to_item (self, _tmp18_); -#line 1863 "/home/jens/Source/shotwell/src/Page.vala" +#line 1875 "/home/jens/Source/shotwell/src/Page.vala" _tmp19_ = item; -#line 1863 "/home/jens/Source/shotwell/src/Page.vala" +#line 1875 "/home/jens/Source/shotwell/src/Page.vala" _tmp20_ = _g_object_ref0 (_tmp19_); -#line 1863 "/home/jens/Source/shotwell/src/Page.vala" +#line 1875 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->anchor); -#line 1863 "/home/jens/Source/shotwell/src/Page.vala" +#line 1875 "/home/jens/Source/shotwell/src/Page.vala" self->anchor = _tmp20_; -#line 1865 "/home/jens/Source/shotwell/src/Page.vala" +#line 1877 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (item); -#line 1865 "/home/jens/Source/shotwell/src/Page.vala" +#line 1877 "/home/jens/Source/shotwell/src/Page.vala" return; -#line 11923 "Page.c" +#line 12047 "Page.c" } -#line 1868 "/home/jens/Source/shotwell/src/Page.vala" +#line 1880 "/home/jens/Source/shotwell/src/Page.vala" _tmp21_ = self->cursor; -#line 1868 "/home/jens/Source/shotwell/src/Page.vala" +#line 1880 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp21_ == NULL) { -#line 11929 "Page.c" +#line 12053 "Page.c" CheckerboardLayout* _tmp22_ = NULL; CheckerboardItem* _tmp23_ = NULL; CheckerboardItem* _tmp24_ = NULL; -#line 1869 "/home/jens/Source/shotwell/src/Page.vala" +#line 1881 "/home/jens/Source/shotwell/src/Page.vala" _tmp22_ = self->priv->layout; -#line 1869 "/home/jens/Source/shotwell/src/Page.vala" +#line 1881 "/home/jens/Source/shotwell/src/Page.vala" _tmp23_ = checkerboard_layout_get_cursor (_tmp22_); -#line 1869 "/home/jens/Source/shotwell/src/Page.vala" +#line 1881 "/home/jens/Source/shotwell/src/Page.vala" _tmp24_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp23_, TYPE_CHECKERBOARD_ITEM) ? ((CheckerboardItem*) _tmp23_) : NULL; -#line 1869 "/home/jens/Source/shotwell/src/Page.vala" +#line 1881 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp24_ == NULL) { -#line 1869 "/home/jens/Source/shotwell/src/Page.vala" +#line 1881 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (_tmp23_); -#line 11943 "Page.c" +#line 12067 "Page.c" } -#line 1869 "/home/jens/Source/shotwell/src/Page.vala" +#line 1881 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->cursor); -#line 1869 "/home/jens/Source/shotwell/src/Page.vala" +#line 1881 "/home/jens/Source/shotwell/src/Page.vala" self->cursor = _tmp24_; -#line 11949 "Page.c" +#line 12073 "Page.c" } -#line 1873 "/home/jens/Source/shotwell/src/Page.vala" +#line 1885 "/home/jens/Source/shotwell/src/Page.vala" _tmp25_ = self->priv->layout; -#line 1873 "/home/jens/Source/shotwell/src/Page.vala" +#line 1885 "/home/jens/Source/shotwell/src/Page.vala" _tmp26_ = self->cursor; -#line 1873 "/home/jens/Source/shotwell/src/Page.vala" +#line 1885 "/home/jens/Source/shotwell/src/Page.vala" _tmp27_ = point; -#line 1873 "/home/jens/Source/shotwell/src/Page.vala" +#line 1885 "/home/jens/Source/shotwell/src/Page.vala" _tmp28_ = checkerboard_layout_get_item_relative_to (_tmp25_, _tmp26_, _tmp27_); -#line 1873 "/home/jens/Source/shotwell/src/Page.vala" +#line 1885 "/home/jens/Source/shotwell/src/Page.vala" item = _tmp28_; -#line 1874 "/home/jens/Source/shotwell/src/Page.vala" +#line 1886 "/home/jens/Source/shotwell/src/Page.vala" _tmp29_ = item; -#line 1874 "/home/jens/Source/shotwell/src/Page.vala" +#line 1886 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp29_ != NULL) { -#line 11965 "Page.c" +#line 12089 "Page.c" CheckerboardItem* _tmp30_ = NULL; -#line 1875 "/home/jens/Source/shotwell/src/Page.vala" +#line 1887 "/home/jens/Source/shotwell/src/Page.vala" _tmp30_ = item; -#line 1875 "/home/jens/Source/shotwell/src/Page.vala" +#line 1887 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_page_cursor_to_item (self, _tmp30_); -#line 11971 "Page.c" +#line 12095 "Page.c" } -#line 1852 "/home/jens/Source/shotwell/src/Page.vala" +#line 1864 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (item); -#line 11975 "Page.c" +#line 12099 "Page.c" } @@ -11988,51 +12112,51 @@ void checkerboard_page_set_cursor (CheckerboardPage* self, CheckerboardItem* ite CheckerboardItem* _tmp8_ = NULL; CheckerboardItem* _tmp9_ = NULL; CheckerboardItem* _tmp10_ = NULL; -#line 1878 "/home/jens/Source/shotwell/src/Page.vala" +#line 1890 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_CHECKERBOARD_PAGE (self)); -#line 1878 "/home/jens/Source/shotwell/src/Page.vala" +#line 1890 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_CHECKERBOARD_ITEM (item)); -#line 1879 "/home/jens/Source/shotwell/src/Page.vala" +#line 1891 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1879 "/home/jens/Source/shotwell/src/Page.vala" +#line 1891 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = _tmp0_; -#line 1879 "/home/jens/Source/shotwell/src/Page.vala" +#line 1891 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = item; -#line 1879 "/home/jens/Source/shotwell/src/Page.vala" +#line 1891 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_OBJECT, DataObject)); -#line 1879 "/home/jens/Source/shotwell/src/Page.vala" +#line 1891 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = _tmp3_; -#line 1879 "/home/jens/Source/shotwell/src/Page.vala" +#line 1891 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp1_); -#line 1879 "/home/jens/Source/shotwell/src/Page.vala" +#line 1891 "/home/jens/Source/shotwell/src/Page.vala" marker = _tmp4_; -#line 1880 "/home/jens/Source/shotwell/src/Page.vala" +#line 1892 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1880 "/home/jens/Source/shotwell/src/Page.vala" +#line 1892 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = _tmp5_; -#line 1880 "/home/jens/Source/shotwell/src/Page.vala" +#line 1892 "/home/jens/Source/shotwell/src/Page.vala" view_collection_select_marked (_tmp6_, marker); -#line 1880 "/home/jens/Source/shotwell/src/Page.vala" +#line 1892 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp6_); -#line 1882 "/home/jens/Source/shotwell/src/Page.vala" +#line 1894 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = item; -#line 1882 "/home/jens/Source/shotwell/src/Page.vala" +#line 1894 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = _g_object_ref0 (_tmp7_); -#line 1882 "/home/jens/Source/shotwell/src/Page.vala" +#line 1894 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->cursor); -#line 1882 "/home/jens/Source/shotwell/src/Page.vala" +#line 1894 "/home/jens/Source/shotwell/src/Page.vala" self->cursor = _tmp8_; -#line 1883 "/home/jens/Source/shotwell/src/Page.vala" +#line 1895 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = item; -#line 1883 "/home/jens/Source/shotwell/src/Page.vala" +#line 1895 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = _g_object_ref0 (_tmp9_); -#line 1883 "/home/jens/Source/shotwell/src/Page.vala" +#line 1895 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->anchor); -#line 1883 "/home/jens/Source/shotwell/src/Page.vala" +#line 1895 "/home/jens/Source/shotwell/src/Page.vala" self->anchor = _tmp10_; -#line 1878 "/home/jens/Source/shotwell/src/Page.vala" +#line 1890 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (marker); -#line 12036 "Page.c" +#line 12160 "Page.c" } @@ -12047,29 +12171,29 @@ void checkerboard_page_select_between_items (CheckerboardPage* self, Checkerboar ViewCollection* _tmp28_ = NULL; ViewCollection* _tmp29_ = NULL; Marker* _tmp30_ = NULL; -#line 1886 "/home/jens/Source/shotwell/src/Page.vala" +#line 1898 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_CHECKERBOARD_PAGE (self)); -#line 1886 "/home/jens/Source/shotwell/src/Page.vala" +#line 1898 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_CHECKERBOARD_ITEM (item_start)); -#line 1886 "/home/jens/Source/shotwell/src/Page.vala" +#line 1898 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_CHECKERBOARD_ITEM (item_end)); -#line 1887 "/home/jens/Source/shotwell/src/Page.vala" +#line 1899 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1887 "/home/jens/Source/shotwell/src/Page.vala" +#line 1899 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = _tmp0_; -#line 1887 "/home/jens/Source/shotwell/src/Page.vala" +#line 1899 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = data_collection_start_marking (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1887 "/home/jens/Source/shotwell/src/Page.vala" +#line 1899 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = _tmp2_; -#line 1887 "/home/jens/Source/shotwell/src/Page.vala" +#line 1899 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp1_); -#line 1887 "/home/jens/Source/shotwell/src/Page.vala" +#line 1899 "/home/jens/Source/shotwell/src/Page.vala" marker = _tmp3_; -#line 1889 "/home/jens/Source/shotwell/src/Page.vala" +#line 1901 "/home/jens/Source/shotwell/src/Page.vala" passed_start = FALSE; -#line 1890 "/home/jens/Source/shotwell/src/Page.vala" +#line 1902 "/home/jens/Source/shotwell/src/Page.vala" passed_end = FALSE; -#line 12073 "Page.c" +#line 12197 "Page.c" { GeeIterator* _object_it = NULL; ViewCollection* _tmp4_ = NULL; @@ -12078,27 +12202,27 @@ void checkerboard_page_select_between_items (CheckerboardPage* self, Checkerboar GeeCollection* _tmp7_ = NULL; GeeIterator* _tmp8_ = NULL; GeeIterator* _tmp9_ = NULL; -#line 1892 "/home/jens/Source/shotwell/src/Page.vala" +#line 1904 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1892 "/home/jens/Source/shotwell/src/Page.vala" +#line 1904 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = _tmp4_; -#line 1892 "/home/jens/Source/shotwell/src/Page.vala" +#line 1904 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1892 "/home/jens/Source/shotwell/src/Page.vala" +#line 1904 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = _tmp6_; -#line 1892 "/home/jens/Source/shotwell/src/Page.vala" +#line 1904 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1892 "/home/jens/Source/shotwell/src/Page.vala" +#line 1904 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = _tmp8_; -#line 1892 "/home/jens/Source/shotwell/src/Page.vala" +#line 1904 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (_tmp7_); -#line 1892 "/home/jens/Source/shotwell/src/Page.vala" +#line 1904 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp5_); -#line 1892 "/home/jens/Source/shotwell/src/Page.vala" +#line 1904 "/home/jens/Source/shotwell/src/Page.vala" _object_it = _tmp9_; -#line 1892 "/home/jens/Source/shotwell/src/Page.vala" +#line 1904 "/home/jens/Source/shotwell/src/Page.vala" while (TRUE) { -#line 12102 "Page.c" +#line 12226 "Page.c" GeeIterator* _tmp10_ = NULL; gboolean _tmp11_ = FALSE; DataObject* object = NULL; @@ -12115,125 +12239,125 @@ void checkerboard_page_select_between_items (CheckerboardPage* self, Checkerboar gboolean _tmp21_ = FALSE; gboolean _tmp25_ = FALSE; gboolean _tmp26_ = FALSE; -#line 1892 "/home/jens/Source/shotwell/src/Page.vala" +#line 1904 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = _object_it; -#line 1892 "/home/jens/Source/shotwell/src/Page.vala" +#line 1904 "/home/jens/Source/shotwell/src/Page.vala" _tmp11_ = gee_iterator_next (_tmp10_); -#line 1892 "/home/jens/Source/shotwell/src/Page.vala" +#line 1904 "/home/jens/Source/shotwell/src/Page.vala" if (!_tmp11_) { -#line 1892 "/home/jens/Source/shotwell/src/Page.vala" +#line 1904 "/home/jens/Source/shotwell/src/Page.vala" break; -#line 12127 "Page.c" +#line 12251 "Page.c" } -#line 1892 "/home/jens/Source/shotwell/src/Page.vala" +#line 1904 "/home/jens/Source/shotwell/src/Page.vala" _tmp12_ = _object_it; -#line 1892 "/home/jens/Source/shotwell/src/Page.vala" +#line 1904 "/home/jens/Source/shotwell/src/Page.vala" _tmp13_ = gee_iterator_get (_tmp12_); -#line 1892 "/home/jens/Source/shotwell/src/Page.vala" +#line 1904 "/home/jens/Source/shotwell/src/Page.vala" object = (DataObject*) _tmp13_; -#line 1893 "/home/jens/Source/shotwell/src/Page.vala" +#line 1905 "/home/jens/Source/shotwell/src/Page.vala" _tmp14_ = object; -#line 1893 "/home/jens/Source/shotwell/src/Page.vala" +#line 1905 "/home/jens/Source/shotwell/src/Page.vala" _tmp15_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_CHECKERBOARD_ITEM, CheckerboardItem)); -#line 1893 "/home/jens/Source/shotwell/src/Page.vala" +#line 1905 "/home/jens/Source/shotwell/src/Page.vala" item = _tmp15_; -#line 1895 "/home/jens/Source/shotwell/src/Page.vala" +#line 1907 "/home/jens/Source/shotwell/src/Page.vala" _tmp16_ = item_start; -#line 1895 "/home/jens/Source/shotwell/src/Page.vala" +#line 1907 "/home/jens/Source/shotwell/src/Page.vala" _tmp17_ = item; -#line 1895 "/home/jens/Source/shotwell/src/Page.vala" +#line 1907 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp16_ == _tmp17_) { -#line 1896 "/home/jens/Source/shotwell/src/Page.vala" +#line 1908 "/home/jens/Source/shotwell/src/Page.vala" passed_start = TRUE; -#line 12149 "Page.c" +#line 12273 "Page.c" } -#line 1898 "/home/jens/Source/shotwell/src/Page.vala" +#line 1910 "/home/jens/Source/shotwell/src/Page.vala" _tmp18_ = item_end; -#line 1898 "/home/jens/Source/shotwell/src/Page.vala" +#line 1910 "/home/jens/Source/shotwell/src/Page.vala" _tmp19_ = item; -#line 1898 "/home/jens/Source/shotwell/src/Page.vala" +#line 1910 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp18_ == _tmp19_) { -#line 1899 "/home/jens/Source/shotwell/src/Page.vala" +#line 1911 "/home/jens/Source/shotwell/src/Page.vala" passed_end = TRUE; -#line 12159 "Page.c" +#line 12283 "Page.c" } -#line 1901 "/home/jens/Source/shotwell/src/Page.vala" +#line 1913 "/home/jens/Source/shotwell/src/Page.vala" _tmp21_ = passed_start; -#line 1901 "/home/jens/Source/shotwell/src/Page.vala" +#line 1913 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp21_) { -#line 1901 "/home/jens/Source/shotwell/src/Page.vala" +#line 1913 "/home/jens/Source/shotwell/src/Page.vala" _tmp20_ = TRUE; -#line 12167 "Page.c" +#line 12291 "Page.c" } else { gboolean _tmp22_ = FALSE; -#line 1901 "/home/jens/Source/shotwell/src/Page.vala" +#line 1913 "/home/jens/Source/shotwell/src/Page.vala" _tmp22_ = passed_end; -#line 1901 "/home/jens/Source/shotwell/src/Page.vala" +#line 1913 "/home/jens/Source/shotwell/src/Page.vala" _tmp20_ = _tmp22_; -#line 12174 "Page.c" +#line 12298 "Page.c" } -#line 1901 "/home/jens/Source/shotwell/src/Page.vala" +#line 1913 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp20_) { -#line 12178 "Page.c" +#line 12302 "Page.c" Marker* _tmp23_ = NULL; DataObject* _tmp24_ = NULL; -#line 1902 "/home/jens/Source/shotwell/src/Page.vala" +#line 1914 "/home/jens/Source/shotwell/src/Page.vala" _tmp23_ = marker; -#line 1902 "/home/jens/Source/shotwell/src/Page.vala" +#line 1914 "/home/jens/Source/shotwell/src/Page.vala" _tmp24_ = object; -#line 1902 "/home/jens/Source/shotwell/src/Page.vala" +#line 1914 "/home/jens/Source/shotwell/src/Page.vala" marker_mark (_tmp23_, G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_DATA_VIEW, DataView), TYPE_DATA_OBJECT, DataObject)); -#line 12187 "Page.c" +#line 12311 "Page.c" } -#line 1904 "/home/jens/Source/shotwell/src/Page.vala" +#line 1916 "/home/jens/Source/shotwell/src/Page.vala" _tmp26_ = passed_start; -#line 1904 "/home/jens/Source/shotwell/src/Page.vala" +#line 1916 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp26_) { -#line 12193 "Page.c" +#line 12317 "Page.c" gboolean _tmp27_ = FALSE; -#line 1904 "/home/jens/Source/shotwell/src/Page.vala" +#line 1916 "/home/jens/Source/shotwell/src/Page.vala" _tmp27_ = passed_end; -#line 1904 "/home/jens/Source/shotwell/src/Page.vala" +#line 1916 "/home/jens/Source/shotwell/src/Page.vala" _tmp25_ = _tmp27_; -#line 12199 "Page.c" +#line 12323 "Page.c" } else { -#line 1904 "/home/jens/Source/shotwell/src/Page.vala" +#line 1916 "/home/jens/Source/shotwell/src/Page.vala" _tmp25_ = FALSE; -#line 12203 "Page.c" +#line 12327 "Page.c" } -#line 1904 "/home/jens/Source/shotwell/src/Page.vala" +#line 1916 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp25_) { -#line 1905 "/home/jens/Source/shotwell/src/Page.vala" +#line 1917 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (item); -#line 1905 "/home/jens/Source/shotwell/src/Page.vala" +#line 1917 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (object); -#line 1905 "/home/jens/Source/shotwell/src/Page.vala" +#line 1917 "/home/jens/Source/shotwell/src/Page.vala" break; -#line 12213 "Page.c" +#line 12337 "Page.c" } -#line 1892 "/home/jens/Source/shotwell/src/Page.vala" +#line 1904 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (item); -#line 1892 "/home/jens/Source/shotwell/src/Page.vala" +#line 1904 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (object); -#line 12219 "Page.c" +#line 12343 "Page.c" } -#line 1892 "/home/jens/Source/shotwell/src/Page.vala" +#line 1904 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (_object_it); -#line 12223 "Page.c" +#line 12347 "Page.c" } -#line 1908 "/home/jens/Source/shotwell/src/Page.vala" +#line 1920 "/home/jens/Source/shotwell/src/Page.vala" _tmp28_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1908 "/home/jens/Source/shotwell/src/Page.vala" +#line 1920 "/home/jens/Source/shotwell/src/Page.vala" _tmp29_ = _tmp28_; -#line 1908 "/home/jens/Source/shotwell/src/Page.vala" +#line 1920 "/home/jens/Source/shotwell/src/Page.vala" _tmp30_ = marker; -#line 1908 "/home/jens/Source/shotwell/src/Page.vala" +#line 1920 "/home/jens/Source/shotwell/src/Page.vala" view_collection_select_marked (_tmp29_, _tmp30_); -#line 1908 "/home/jens/Source/shotwell/src/Page.vala" +#line 1920 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp29_); -#line 1886 "/home/jens/Source/shotwell/src/Page.vala" +#line 1898 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (marker); -#line 12237 "Page.c" +#line 12361 "Page.c" } @@ -12241,65 +12365,65 @@ void checkerboard_page_select_anchor_to_cursor (CheckerboardPage* self, guint st gboolean _tmp0_ = FALSE; CheckerboardItem* _tmp1_ = NULL; guint _tmp3_ = 0U; -#line 1911 "/home/jens/Source/shotwell/src/Page.vala" +#line 1923 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_CHECKERBOARD_PAGE (self)); -#line 1912 "/home/jens/Source/shotwell/src/Page.vala" +#line 1924 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = self->cursor; -#line 1912 "/home/jens/Source/shotwell/src/Page.vala" +#line 1924 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp1_ == NULL) { -#line 1912 "/home/jens/Source/shotwell/src/Page.vala" +#line 1924 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = TRUE; -#line 12253 "Page.c" +#line 12377 "Page.c" } else { CheckerboardItem* _tmp2_ = NULL; -#line 1912 "/home/jens/Source/shotwell/src/Page.vala" +#line 1924 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = self->anchor; -#line 1912 "/home/jens/Source/shotwell/src/Page.vala" +#line 1924 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = _tmp2_ == NULL; -#line 12260 "Page.c" +#line 12384 "Page.c" } -#line 1912 "/home/jens/Source/shotwell/src/Page.vala" +#line 1924 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp0_) { -#line 1913 "/home/jens/Source/shotwell/src/Page.vala" +#line 1925 "/home/jens/Source/shotwell/src/Page.vala" return; -#line 12266 "Page.c" +#line 12390 "Page.c" } -#line 1915 "/home/jens/Source/shotwell/src/Page.vala" +#line 1927 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = state; -#line 1915 "/home/jens/Source/shotwell/src/Page.vala" +#line 1927 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp3_ == ((guint) GDK_SHIFT_MASK)) { -#line 12272 "Page.c" +#line 12396 "Page.c" ViewCollection* _tmp4_ = NULL; ViewCollection* _tmp5_ = NULL; CheckerboardItem* _tmp6_ = NULL; CheckerboardItem* _tmp7_ = NULL; -#line 1916 "/home/jens/Source/shotwell/src/Page.vala" +#line 1928 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1916 "/home/jens/Source/shotwell/src/Page.vala" +#line 1928 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = _tmp4_; -#line 1916 "/home/jens/Source/shotwell/src/Page.vala" +#line 1928 "/home/jens/Source/shotwell/src/Page.vala" view_collection_unselect_all (_tmp5_); -#line 1916 "/home/jens/Source/shotwell/src/Page.vala" +#line 1928 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp5_); -#line 1917 "/home/jens/Source/shotwell/src/Page.vala" +#line 1929 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = self->anchor; -#line 1917 "/home/jens/Source/shotwell/src/Page.vala" +#line 1929 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = self->cursor; -#line 1917 "/home/jens/Source/shotwell/src/Page.vala" +#line 1929 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_page_select_between_items (self, _tmp6_, _tmp7_); -#line 12291 "Page.c" +#line 12415 "Page.c" } else { CheckerboardItem* _tmp8_ = NULL; CheckerboardItem* _tmp9_ = NULL; -#line 1919 "/home/jens/Source/shotwell/src/Page.vala" +#line 1931 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = self->cursor; -#line 1919 "/home/jens/Source/shotwell/src/Page.vala" +#line 1931 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = _g_object_ref0 (_tmp8_); -#line 1919 "/home/jens/Source/shotwell/src/Page.vala" +#line 1931 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->anchor); -#line 1919 "/home/jens/Source/shotwell/src/Page.vala" +#line 1931 "/home/jens/Source/shotwell/src/Page.vala" self->anchor = _tmp9_; -#line 12303 "Page.c" +#line 12427 "Page.c" } } @@ -12313,48 +12437,48 @@ static void checkerboard_page_real_set_display_titles (CheckerboardPage* self, g GValue _tmp5_ = {0}; ViewCollection* _tmp6_ = NULL; ViewCollection* _tmp7_ = NULL; -#line 1924 "/home/jens/Source/shotwell/src/Page.vala" +#line 1936 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1924 "/home/jens/Source/shotwell/src/Page.vala" +#line 1936 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = _tmp0_; -#line 1924 "/home/jens/Source/shotwell/src/Page.vala" +#line 1936 "/home/jens/Source/shotwell/src/Page.vala" data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1924 "/home/jens/Source/shotwell/src/Page.vala" +#line 1936 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp1_); -#line 1925 "/home/jens/Source/shotwell/src/Page.vala" +#line 1937 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1925 "/home/jens/Source/shotwell/src/Page.vala" +#line 1937 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = _tmp2_; -#line 1925 "/home/jens/Source/shotwell/src/Page.vala" +#line 1937 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = display; -#line 1925 "/home/jens/Source/shotwell/src/Page.vala" +#line 1937 "/home/jens/Source/shotwell/src/Page.vala" g_value_init (&_tmp5_, G_TYPE_BOOLEAN); -#line 1925 "/home/jens/Source/shotwell/src/Page.vala" +#line 1937 "/home/jens/Source/shotwell/src/Page.vala" g_value_set_boolean (&_tmp5_, _tmp4_); -#line 1925 "/home/jens/Source/shotwell/src/Page.vala" +#line 1937 "/home/jens/Source/shotwell/src/Page.vala" data_collection_set_property (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_COLLECTION, DataCollection), CHECKERBOARD_ITEM_PROP_SHOW_TITLES, &_tmp5_, NULL, NULL); -#line 1925 "/home/jens/Source/shotwell/src/Page.vala" +#line 1937 "/home/jens/Source/shotwell/src/Page.vala" G_IS_VALUE (&_tmp5_) ? (g_value_unset (&_tmp5_), NULL) : NULL; -#line 1925 "/home/jens/Source/shotwell/src/Page.vala" +#line 1937 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp3_); -#line 1926 "/home/jens/Source/shotwell/src/Page.vala" +#line 1938 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1926 "/home/jens/Source/shotwell/src/Page.vala" +#line 1938 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = _tmp6_; -#line 1926 "/home/jens/Source/shotwell/src/Page.vala" +#line 1938 "/home/jens/Source/shotwell/src/Page.vala" data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1926 "/home/jens/Source/shotwell/src/Page.vala" +#line 1938 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp7_); -#line 12349 "Page.c" +#line 12473 "Page.c" } void checkerboard_page_set_display_titles (CheckerboardPage* self, gboolean display) { -#line 1923 "/home/jens/Source/shotwell/src/Page.vala" +#line 1935 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_CHECKERBOARD_PAGE (self)); -#line 1923 "/home/jens/Source/shotwell/src/Page.vala" +#line 1935 "/home/jens/Source/shotwell/src/Page.vala" CHECKERBOARD_PAGE_GET_CLASS (self)->set_display_titles (self, display); -#line 12358 "Page.c" +#line 12482 "Page.c" } @@ -12367,48 +12491,48 @@ static void checkerboard_page_real_set_display_comments (CheckerboardPage* self, GValue _tmp5_ = {0}; ViewCollection* _tmp6_ = NULL; ViewCollection* _tmp7_ = NULL; -#line 1930 "/home/jens/Source/shotwell/src/Page.vala" +#line 1942 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1930 "/home/jens/Source/shotwell/src/Page.vala" +#line 1942 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = _tmp0_; -#line 1930 "/home/jens/Source/shotwell/src/Page.vala" +#line 1942 "/home/jens/Source/shotwell/src/Page.vala" data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1930 "/home/jens/Source/shotwell/src/Page.vala" +#line 1942 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp1_); -#line 1931 "/home/jens/Source/shotwell/src/Page.vala" +#line 1943 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1931 "/home/jens/Source/shotwell/src/Page.vala" +#line 1943 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = _tmp2_; -#line 1931 "/home/jens/Source/shotwell/src/Page.vala" +#line 1943 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = display; -#line 1931 "/home/jens/Source/shotwell/src/Page.vala" +#line 1943 "/home/jens/Source/shotwell/src/Page.vala" g_value_init (&_tmp5_, G_TYPE_BOOLEAN); -#line 1931 "/home/jens/Source/shotwell/src/Page.vala" +#line 1943 "/home/jens/Source/shotwell/src/Page.vala" g_value_set_boolean (&_tmp5_, _tmp4_); -#line 1931 "/home/jens/Source/shotwell/src/Page.vala" +#line 1943 "/home/jens/Source/shotwell/src/Page.vala" data_collection_set_property (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_COLLECTION, DataCollection), CHECKERBOARD_ITEM_PROP_SHOW_COMMENTS, &_tmp5_, NULL, NULL); -#line 1931 "/home/jens/Source/shotwell/src/Page.vala" +#line 1943 "/home/jens/Source/shotwell/src/Page.vala" G_IS_VALUE (&_tmp5_) ? (g_value_unset (&_tmp5_), NULL) : NULL; -#line 1931 "/home/jens/Source/shotwell/src/Page.vala" +#line 1943 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp3_); -#line 1932 "/home/jens/Source/shotwell/src/Page.vala" +#line 1944 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1932 "/home/jens/Source/shotwell/src/Page.vala" +#line 1944 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = _tmp6_; -#line 1932 "/home/jens/Source/shotwell/src/Page.vala" +#line 1944 "/home/jens/Source/shotwell/src/Page.vala" data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1932 "/home/jens/Source/shotwell/src/Page.vala" +#line 1944 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp7_); -#line 12403 "Page.c" +#line 12527 "Page.c" } void checkerboard_page_set_display_comments (CheckerboardPage* self, gboolean display) { -#line 1929 "/home/jens/Source/shotwell/src/Page.vala" +#line 1941 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_CHECKERBOARD_PAGE (self)); -#line 1929 "/home/jens/Source/shotwell/src/Page.vala" +#line 1941 "/home/jens/Source/shotwell/src/Page.vala" CHECKERBOARD_PAGE_GET_CLASS (self)->set_display_comments (self, display); -#line 12412 "Page.c" +#line 12536 "Page.c" } @@ -12421,54 +12545,54 @@ void checkerboard_page_keyboard_modifiers_init (CheckerboardPageKeyboardModifier gboolean _tmp5_ = FALSE; Page* _tmp6_ = NULL; gboolean _tmp7_ = FALSE; -#line 1212 "/home/jens/Source/shotwell/src/Page.vala" +#line 1224 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_PAGE (page)); -#line 1212 "/home/jens/Source/shotwell/src/Page.vala" +#line 1224 "/home/jens/Source/shotwell/src/Page.vala" memset (self, 0, sizeof (CheckerboardPageKeyboardModifiers)); -#line 1213 "/home/jens/Source/shotwell/src/Page.vala" +#line 1225 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = page; -#line 1213 "/home/jens/Source/shotwell/src/Page.vala" +#line 1225 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = page_get_ctrl_pressed (_tmp0_); -#line 1213 "/home/jens/Source/shotwell/src/Page.vala" +#line 1225 "/home/jens/Source/shotwell/src/Page.vala" (*self).ctrl_pressed = _tmp1_; -#line 1214 "/home/jens/Source/shotwell/src/Page.vala" +#line 1226 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = page; -#line 1214 "/home/jens/Source/shotwell/src/Page.vala" +#line 1226 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = page_get_alt_pressed (_tmp2_); -#line 1214 "/home/jens/Source/shotwell/src/Page.vala" +#line 1226 "/home/jens/Source/shotwell/src/Page.vala" (*self).alt_pressed = _tmp3_; -#line 1215 "/home/jens/Source/shotwell/src/Page.vala" +#line 1227 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = page; -#line 1215 "/home/jens/Source/shotwell/src/Page.vala" +#line 1227 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = page_get_shift_pressed (_tmp4_); -#line 1215 "/home/jens/Source/shotwell/src/Page.vala" +#line 1227 "/home/jens/Source/shotwell/src/Page.vala" (*self).shift_pressed = _tmp5_; -#line 1216 "/home/jens/Source/shotwell/src/Page.vala" +#line 1228 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = page; -#line 1216 "/home/jens/Source/shotwell/src/Page.vala" +#line 1228 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = page_get_super_pressed (_tmp6_); -#line 1216 "/home/jens/Source/shotwell/src/Page.vala" +#line 1228 "/home/jens/Source/shotwell/src/Page.vala" (*self).super_pressed = _tmp7_; -#line 12453 "Page.c" +#line 12577 "Page.c" } CheckerboardPageKeyboardModifiers* checkerboard_page_keyboard_modifiers_dup (const CheckerboardPageKeyboardModifiers* self) { CheckerboardPageKeyboardModifiers* dup; -#line 1211 "/home/jens/Source/shotwell/src/Page.vala" +#line 1223 "/home/jens/Source/shotwell/src/Page.vala" dup = g_new0 (CheckerboardPageKeyboardModifiers, 1); -#line 1211 "/home/jens/Source/shotwell/src/Page.vala" +#line 1223 "/home/jens/Source/shotwell/src/Page.vala" memcpy (dup, self, sizeof (CheckerboardPageKeyboardModifiers)); -#line 1211 "/home/jens/Source/shotwell/src/Page.vala" +#line 1223 "/home/jens/Source/shotwell/src/Page.vala" return dup; -#line 12465 "Page.c" +#line 12589 "Page.c" } void checkerboard_page_keyboard_modifiers_free (CheckerboardPageKeyboardModifiers* self) { -#line 1211 "/home/jens/Source/shotwell/src/Page.vala" +#line 1223 "/home/jens/Source/shotwell/src/Page.vala" g_free (self); -#line 12472 "Page.c" +#line 12596 "Page.c" } @@ -12484,113 +12608,113 @@ GType checkerboard_page_keyboard_modifiers_get_type (void) { static void checkerboard_page_class_init (CheckerboardPageClass * klass) { -#line 1191 "/home/jens/Source/shotwell/src/Page.vala" +#line 1203 "/home/jens/Source/shotwell/src/Page.vala" checkerboard_page_parent_class = g_type_class_peek_parent (klass); -#line 1191 "/home/jens/Source/shotwell/src/Page.vala" +#line 1203 "/home/jens/Source/shotwell/src/Page.vala" g_type_class_add_private (klass, sizeof (CheckerboardPagePrivate)); -#line 1191 "/home/jens/Source/shotwell/src/Page.vala" +#line 1203 "/home/jens/Source/shotwell/src/Page.vala" ((CheckerboardPageClass *) klass)->get_item_context_menu = checkerboard_page_real_get_item_context_menu; -#line 1191 "/home/jens/Source/shotwell/src/Page.vala" +#line 1203 "/home/jens/Source/shotwell/src/Page.vala" ((PageClass *) klass)->get_page_context_menu = checkerboard_page_real_get_page_context_menu; -#line 1191 "/home/jens/Source/shotwell/src/Page.vala" +#line 1203 "/home/jens/Source/shotwell/src/Page.vala" ((PageClass *) klass)->on_context_keypress = checkerboard_page_real_on_context_keypress; -#line 1191 "/home/jens/Source/shotwell/src/Page.vala" +#line 1203 "/home/jens/Source/shotwell/src/Page.vala" ((CheckerboardPageClass *) klass)->get_view_empty_message = checkerboard_page_real_get_view_empty_message; -#line 1191 "/home/jens/Source/shotwell/src/Page.vala" +#line 1203 "/home/jens/Source/shotwell/src/Page.vala" ((CheckerboardPageClass *) klass)->get_filter_no_match_message = checkerboard_page_real_get_filter_no_match_message; -#line 1191 "/home/jens/Source/shotwell/src/Page.vala" +#line 1203 "/home/jens/Source/shotwell/src/Page.vala" ((CheckerboardPageClass *) klass)->on_item_activated = checkerboard_page_real_on_item_activated; -#line 1191 "/home/jens/Source/shotwell/src/Page.vala" +#line 1203 "/home/jens/Source/shotwell/src/Page.vala" ((CheckerboardPageClass *) klass)->get_search_view_filter = checkerboard_page_real_get_search_view_filter; -#line 1191 "/home/jens/Source/shotwell/src/Page.vala" +#line 1203 "/home/jens/Source/shotwell/src/Page.vala" ((CheckerboardPageClass *) klass)->get_view_tracker = checkerboard_page_real_get_view_tracker; -#line 1191 "/home/jens/Source/shotwell/src/Page.vala" +#line 1203 "/home/jens/Source/shotwell/src/Page.vala" ((PageClass *) klass)->switching_from = checkerboard_page_real_switching_from; -#line 1191 "/home/jens/Source/shotwell/src/Page.vala" +#line 1203 "/home/jens/Source/shotwell/src/Page.vala" ((PageClass *) klass)->switched_to = checkerboard_page_real_switched_to; -#line 1191 "/home/jens/Source/shotwell/src/Page.vala" +#line 1203 "/home/jens/Source/shotwell/src/Page.vala" ((PageClass *) klass)->set_page_name = checkerboard_page_real_set_page_name; -#line 1191 "/home/jens/Source/shotwell/src/Page.vala" +#line 1203 "/home/jens/Source/shotwell/src/Page.vala" ((GtkWidgetClass *) klass)->key_press_event = checkerboard_page_real_key_press_event; -#line 1191 "/home/jens/Source/shotwell/src/Page.vala" +#line 1203 "/home/jens/Source/shotwell/src/Page.vala" ((PageClass *) klass)->on_left_click = checkerboard_page_real_on_left_click; -#line 1191 "/home/jens/Source/shotwell/src/Page.vala" +#line 1203 "/home/jens/Source/shotwell/src/Page.vala" ((PageClass *) klass)->on_left_released = checkerboard_page_real_on_left_released; -#line 1191 "/home/jens/Source/shotwell/src/Page.vala" +#line 1203 "/home/jens/Source/shotwell/src/Page.vala" ((PageClass *) klass)->on_right_click = checkerboard_page_real_on_right_click; -#line 1191 "/home/jens/Source/shotwell/src/Page.vala" +#line 1203 "/home/jens/Source/shotwell/src/Page.vala" ((CheckerboardPageClass *) klass)->on_mouse_over = checkerboard_page_real_on_mouse_over; -#line 1191 "/home/jens/Source/shotwell/src/Page.vala" +#line 1203 "/home/jens/Source/shotwell/src/Page.vala" ((PageClass *) klass)->on_motion = checkerboard_page_real_on_motion; -#line 1191 "/home/jens/Source/shotwell/src/Page.vala" +#line 1203 "/home/jens/Source/shotwell/src/Page.vala" ((CheckerboardPageClass *) klass)->set_display_titles = checkerboard_page_real_set_display_titles; -#line 1191 "/home/jens/Source/shotwell/src/Page.vala" +#line 1203 "/home/jens/Source/shotwell/src/Page.vala" ((CheckerboardPageClass *) klass)->set_display_comments = checkerboard_page_real_set_display_comments; -#line 1191 "/home/jens/Source/shotwell/src/Page.vala" +#line 1203 "/home/jens/Source/shotwell/src/Page.vala" G_OBJECT_CLASS (klass)->finalize = checkerboard_page_finalize; -#line 12532 "Page.c" +#line 12656 "Page.c" } static void checkerboard_page_instance_init (CheckerboardPage * self) { GtkViewport* _tmp0_ = NULL; -#line 1191 "/home/jens/Source/shotwell/src/Page.vala" +#line 1203 "/home/jens/Source/shotwell/src/Page.vala" self->priv = CHECKERBOARD_PAGE_GET_PRIVATE (self); -#line 1196 "/home/jens/Source/shotwell/src/Page.vala" +#line 1208 "/home/jens/Source/shotwell/src/Page.vala" self->priv->item_context_menu_path = NULL; -#line 1197 "/home/jens/Source/shotwell/src/Page.vala" +#line 1209 "/home/jens/Source/shotwell/src/Page.vala" self->priv->page_context_menu_path = NULL; -#line 1198 "/home/jens/Source/shotwell/src/Page.vala" +#line 1210 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = (GtkViewport*) gtk_viewport_new (NULL, NULL); -#line 1198 "/home/jens/Source/shotwell/src/Page.vala" +#line 1210 "/home/jens/Source/shotwell/src/Page.vala" g_object_ref_sink (_tmp0_); -#line 1198 "/home/jens/Source/shotwell/src/Page.vala" +#line 1210 "/home/jens/Source/shotwell/src/Page.vala" self->priv->viewport = _tmp0_; -#line 1199 "/home/jens/Source/shotwell/src/Page.vala" +#line 1211 "/home/jens/Source/shotwell/src/Page.vala" self->anchor = NULL; -#line 1200 "/home/jens/Source/shotwell/src/Page.vala" +#line 1212 "/home/jens/Source/shotwell/src/Page.vala" self->cursor = NULL; -#line 1201 "/home/jens/Source/shotwell/src/Page.vala" +#line 1213 "/home/jens/Source/shotwell/src/Page.vala" self->priv->highlighted = NULL; -#line 1202 "/home/jens/Source/shotwell/src/Page.vala" +#line 1214 "/home/jens/Source/shotwell/src/Page.vala" self->priv->autoscroll_scheduled = FALSE; -#line 1203 "/home/jens/Source/shotwell/src/Page.vala" +#line 1215 "/home/jens/Source/shotwell/src/Page.vala" self->priv->activated_item = NULL; -#line 1204 "/home/jens/Source/shotwell/src/Page.vala" +#line 1216 "/home/jens/Source/shotwell/src/Page.vala" self->priv->previously_selected = NULL; -#line 12562 "Page.c" +#line 12686 "Page.c" } static void checkerboard_page_finalize (GObject* obj) { CheckerboardPage * self; -#line 1191 "/home/jens/Source/shotwell/src/Page.vala" +#line 1203 "/home/jens/Source/shotwell/src/Page.vala" self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CHECKERBOARD_PAGE, CheckerboardPage); -#line 1195 "/home/jens/Source/shotwell/src/Page.vala" +#line 1207 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->priv->layout); -#line 1196 "/home/jens/Source/shotwell/src/Page.vala" +#line 1208 "/home/jens/Source/shotwell/src/Page.vala" _g_free0 (self->priv->item_context_menu_path); -#line 1197 "/home/jens/Source/shotwell/src/Page.vala" +#line 1209 "/home/jens/Source/shotwell/src/Page.vala" _g_free0 (self->priv->page_context_menu_path); -#line 1198 "/home/jens/Source/shotwell/src/Page.vala" +#line 1210 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->priv->viewport); -#line 1199 "/home/jens/Source/shotwell/src/Page.vala" +#line 1211 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->anchor); -#line 1200 "/home/jens/Source/shotwell/src/Page.vala" +#line 1212 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->cursor); -#line 1201 "/home/jens/Source/shotwell/src/Page.vala" +#line 1213 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->priv->highlighted); -#line 1203 "/home/jens/Source/shotwell/src/Page.vala" +#line 1215 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->priv->activated_item); -#line 1204 "/home/jens/Source/shotwell/src/Page.vala" +#line 1216 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->priv->previously_selected); -#line 1271 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->priv->item_context_menu); #line 1283 "/home/jens/Source/shotwell/src/Page.vala" + _g_object_unref0 (self->priv->item_context_menu); +#line 1295 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->priv->page_context_menu); -#line 1191 "/home/jens/Source/shotwell/src/Page.vala" +#line 1203 "/home/jens/Source/shotwell/src/Page.vala" G_OBJECT_CLASS (checkerboard_page_parent_class)->finalize (obj); -#line 12594 "Page.c" +#line 12718 "Page.c" } @@ -12619,18 +12743,18 @@ GType single_photo_page_update_reason_get_type (void) { static void _single_photo_page_on_viewport_resize_gtk_widget_size_allocate (GtkWidget* _sender, GtkAllocation* allocation, gpointer self) { -#line 1991 "/home/jens/Source/shotwell/src/Page.vala" +#line 2003 "/home/jens/Source/shotwell/src/Page.vala" single_photo_page_on_viewport_resize ((SinglePhotoPage*) self); -#line 12625 "Page.c" +#line 12749 "Page.c" } static gboolean _single_photo_page_on_canvas_exposed_gtk_widget_draw (GtkWidget* _sender, cairo_t* cr, gpointer self) { gboolean result; result = single_photo_page_on_canvas_exposed ((SinglePhotoPage*) self, cr); -#line 1992 "/home/jens/Source/shotwell/src/Page.vala" +#line 2004 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 12634 "Page.c" +#line 12758 "Page.c" } @@ -12650,71 +12774,71 @@ SinglePhotoPage* single_photo_page_construct (GType object_type, const gchar* pa GtkViewport* _tmp11_ = NULL; GtkDrawingArea* _tmp12_ = NULL; GtkDrawingArea* _tmp13_ = NULL; -#line 1968 "/home/jens/Source/shotwell/src/Page.vala" +#line 1980 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (page_name != NULL, NULL); -#line 1969 "/home/jens/Source/shotwell/src/Page.vala" +#line 1981 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = page_name; -#line 1969 "/home/jens/Source/shotwell/src/Page.vala" +#line 1981 "/home/jens/Source/shotwell/src/Page.vala" self = (SinglePhotoPage*) page_construct (object_type, _tmp0_); -#line 1971 "/home/jens/Source/shotwell/src/Page.vala" +#line 1983 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = scale_up_to_viewport; -#line 1971 "/home/jens/Source/shotwell/src/Page.vala" +#line 1983 "/home/jens/Source/shotwell/src/Page.vala" self->priv->scale_up_to_viewport = _tmp1_; -#line 1973 "/home/jens/Source/shotwell/src/Page.vala" +#line 1985 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = transition_effects_manager_get_instance (); -#line 1973 "/home/jens/Source/shotwell/src/Page.vala" +#line 1985 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = _tmp2_; -#line 1973 "/home/jens/Source/shotwell/src/Page.vala" +#line 1985 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = transition_effects_manager_create_null_transition_clock (_tmp3_); -#line 1973 "/home/jens/Source/shotwell/src/Page.vala" +#line 1985 "/home/jens/Source/shotwell/src/Page.vala" _transition_clock_unref0 (self->priv->transition_clock); -#line 1973 "/home/jens/Source/shotwell/src/Page.vala" +#line 1985 "/home/jens/Source/shotwell/src/Page.vala" self->priv->transition_clock = _tmp4_; -#line 1973 "/home/jens/Source/shotwell/src/Page.vala" +#line 1985 "/home/jens/Source/shotwell/src/Page.vala" _transition_effects_manager_unref0 (_tmp3_); -#line 1977 "/home/jens/Source/shotwell/src/Page.vala" +#line 1989 "/home/jens/Source/shotwell/src/Page.vala" gtk_scrolled_window_set_policy (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_scrolled_window_get_type (), GtkScrolledWindow), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); -#line 1979 "/home/jens/Source/shotwell/src/Page.vala" +#line 1991 "/home/jens/Source/shotwell/src/Page.vala" gtk_container_set_border_width (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_container_get_type (), GtkContainer), (guint) 0); -#line 1980 "/home/jens/Source/shotwell/src/Page.vala" +#line 1992 "/home/jens/Source/shotwell/src/Page.vala" gtk_scrolled_window_set_shadow_type (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_scrolled_window_get_type (), GtkScrolledWindow), GTK_SHADOW_NONE); -#line 1982 "/home/jens/Source/shotwell/src/Page.vala" +#line 1994 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = self->viewport; -#line 1982 "/home/jens/Source/shotwell/src/Page.vala" +#line 1994 "/home/jens/Source/shotwell/src/Page.vala" gtk_viewport_set_shadow_type (_tmp5_, GTK_SHADOW_NONE); -#line 1983 "/home/jens/Source/shotwell/src/Page.vala" +#line 1995 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = self->viewport; -#line 1983 "/home/jens/Source/shotwell/src/Page.vala" +#line 1995 "/home/jens/Source/shotwell/src/Page.vala" gtk_container_set_border_width (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_container_get_type (), GtkContainer), (guint) 0); -#line 1984 "/home/jens/Source/shotwell/src/Page.vala" +#line 1996 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = self->viewport; -#line 1984 "/home/jens/Source/shotwell/src/Page.vala" +#line 1996 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = self->canvas; -#line 1984 "/home/jens/Source/shotwell/src/Page.vala" +#line 1996 "/home/jens/Source/shotwell/src/Page.vala" gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget)); -#line 1986 "/home/jens/Source/shotwell/src/Page.vala" +#line 1998 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = self->viewport; -#line 1986 "/home/jens/Source/shotwell/src/Page.vala" +#line 1998 "/home/jens/Source/shotwell/src/Page.vala" gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget)); -#line 1988 "/home/jens/Source/shotwell/src/Page.vala" +#line 2000 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = self->canvas; -#line 1988 "/home/jens/Source/shotwell/src/Page.vala" +#line 2000 "/home/jens/Source/shotwell/src/Page.vala" gtk_widget_add_events (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget), (gint) ((GDK_EXPOSURE_MASK | GDK_STRUCTURE_MASK) | GDK_SUBSTRUCTURE_MASK)); -#line 1991 "/home/jens/Source/shotwell/src/Page.vala" +#line 2003 "/home/jens/Source/shotwell/src/Page.vala" _tmp11_ = self->viewport; -#line 1991 "/home/jens/Source/shotwell/src/Page.vala" +#line 2003 "/home/jens/Source/shotwell/src/Page.vala" g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_widget_get_type (), GtkWidget), "size-allocate", (GCallback) _single_photo_page_on_viewport_resize_gtk_widget_size_allocate, self, 0); -#line 1992 "/home/jens/Source/shotwell/src/Page.vala" +#line 2004 "/home/jens/Source/shotwell/src/Page.vala" _tmp12_ = self->canvas; -#line 1992 "/home/jens/Source/shotwell/src/Page.vala" +#line 2004 "/home/jens/Source/shotwell/src/Page.vala" g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_widget_get_type (), GtkWidget), "draw", (GCallback) _single_photo_page_on_canvas_exposed_gtk_widget_draw, self, 0); -#line 1994 "/home/jens/Source/shotwell/src/Page.vala" +#line 2006 "/home/jens/Source/shotwell/src/Page.vala" _tmp13_ = self->canvas; -#line 1994 "/home/jens/Source/shotwell/src/Page.vala" +#line 2006 "/home/jens/Source/shotwell/src/Page.vala" page_set_event_source (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_widget_get_type (), GtkWidget)); -#line 1968 "/home/jens/Source/shotwell/src/Page.vala" +#line 1980 "/home/jens/Source/shotwell/src/Page.vala" return self; -#line 12718 "Page.c" +#line 12842 "Page.c" } @@ -12722,38 +12846,38 @@ gboolean single_photo_page_is_transition_in_progress (SinglePhotoPage* self) { gboolean result = FALSE; TransitionClock* _tmp0_ = NULL; gboolean _tmp1_ = FALSE; -#line 1997 "/home/jens/Source/shotwell/src/Page.vala" +#line 2009 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_SINGLE_PHOTO_PAGE (self), FALSE); -#line 1998 "/home/jens/Source/shotwell/src/Page.vala" +#line 2010 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->transition_clock; -#line 1998 "/home/jens/Source/shotwell/src/Page.vala" +#line 2010 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = transition_clock_is_in_progress (_tmp0_); -#line 1998 "/home/jens/Source/shotwell/src/Page.vala" +#line 2010 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp1_; -#line 1998 "/home/jens/Source/shotwell/src/Page.vala" +#line 2010 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 12736 "Page.c" +#line 12860 "Page.c" } void single_photo_page_cancel_transition (SinglePhotoPage* self) { TransitionClock* _tmp0_ = NULL; gboolean _tmp1_ = FALSE; -#line 2001 "/home/jens/Source/shotwell/src/Page.vala" +#line 2013 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2002 "/home/jens/Source/shotwell/src/Page.vala" +#line 2014 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->transition_clock; -#line 2002 "/home/jens/Source/shotwell/src/Page.vala" +#line 2014 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = transition_clock_is_in_progress (_tmp0_); -#line 2002 "/home/jens/Source/shotwell/src/Page.vala" +#line 2014 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp1_) { -#line 12751 "Page.c" +#line 12875 "Page.c" TransitionClock* _tmp2_ = NULL; -#line 2003 "/home/jens/Source/shotwell/src/Page.vala" +#line 2015 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = self->priv->transition_clock; -#line 2003 "/home/jens/Source/shotwell/src/Page.vala" +#line 2015 "/home/jens/Source/shotwell/src/Page.vala" transition_clock_cancel (_tmp2_); -#line 12757 "Page.c" +#line 12881 "Page.c" } } @@ -12765,53 +12889,53 @@ void single_photo_page_set_transition (SinglePhotoPage* self, const gchar* effec TransitionClock* _tmp3_ = NULL; TransitionClock* _tmp4_ = NULL; gint _tmp8_ = 0; -#line 2006 "/home/jens/Source/shotwell/src/Page.vala" +#line 2018 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2006 "/home/jens/Source/shotwell/src/Page.vala" +#line 2018 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (effect_id != NULL); -#line 2007 "/home/jens/Source/shotwell/src/Page.vala" +#line 2019 "/home/jens/Source/shotwell/src/Page.vala" single_photo_page_cancel_transition (self); -#line 2009 "/home/jens/Source/shotwell/src/Page.vala" +#line 2021 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = transition_effects_manager_get_instance (); -#line 2009 "/home/jens/Source/shotwell/src/Page.vala" +#line 2021 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = _tmp0_; -#line 2009 "/home/jens/Source/shotwell/src/Page.vala" +#line 2021 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = effect_id; -#line 2009 "/home/jens/Source/shotwell/src/Page.vala" +#line 2021 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = transition_effects_manager_create_transition_clock (_tmp1_, _tmp2_); -#line 2009 "/home/jens/Source/shotwell/src/Page.vala" +#line 2021 "/home/jens/Source/shotwell/src/Page.vala" _transition_clock_unref0 (self->priv->transition_clock); -#line 2009 "/home/jens/Source/shotwell/src/Page.vala" +#line 2021 "/home/jens/Source/shotwell/src/Page.vala" self->priv->transition_clock = _tmp3_; -#line 2009 "/home/jens/Source/shotwell/src/Page.vala" +#line 2021 "/home/jens/Source/shotwell/src/Page.vala" _transition_effects_manager_unref0 (_tmp1_); -#line 2010 "/home/jens/Source/shotwell/src/Page.vala" +#line 2022 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = self->priv->transition_clock; -#line 2010 "/home/jens/Source/shotwell/src/Page.vala" +#line 2022 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp4_ == NULL) { -#line 12793 "Page.c" +#line 12917 "Page.c" TransitionEffectsManager* _tmp5_ = NULL; TransitionEffectsManager* _tmp6_ = NULL; TransitionClock* _tmp7_ = NULL; -#line 2011 "/home/jens/Source/shotwell/src/Page.vala" +#line 2023 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = transition_effects_manager_get_instance (); -#line 2011 "/home/jens/Source/shotwell/src/Page.vala" +#line 2023 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = _tmp5_; -#line 2011 "/home/jens/Source/shotwell/src/Page.vala" +#line 2023 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = transition_effects_manager_create_null_transition_clock (_tmp6_); -#line 2011 "/home/jens/Source/shotwell/src/Page.vala" +#line 2023 "/home/jens/Source/shotwell/src/Page.vala" _transition_clock_unref0 (self->priv->transition_clock); -#line 2011 "/home/jens/Source/shotwell/src/Page.vala" +#line 2023 "/home/jens/Source/shotwell/src/Page.vala" self->priv->transition_clock = _tmp7_; -#line 2011 "/home/jens/Source/shotwell/src/Page.vala" +#line 2023 "/home/jens/Source/shotwell/src/Page.vala" _transition_effects_manager_unref0 (_tmp6_); -#line 12809 "Page.c" +#line 12933 "Page.c" } -#line 2013 "/home/jens/Source/shotwell/src/Page.vala" +#line 2025 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = duration_msec; -#line 2013 "/home/jens/Source/shotwell/src/Page.vala" +#line 2025 "/home/jens/Source/shotwell/src/Page.vala" self->priv->transition_duration_msec = _tmp8_; -#line 12815 "Page.c" +#line 12939 "Page.c" } @@ -12843,86 +12967,86 @@ static void single_photo_page_render_zoomed_to_pixmap (SinglePhotoPage* self, Zo gint _tmp49_ = 0; gint _tmp50_ = 0; cairo_t* _tmp51_ = NULL; -#line 2017 "/home/jens/Source/shotwell/src/Page.vala" +#line 2029 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2017 "/home/jens/Source/shotwell/src/Page.vala" +#line 2029 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (zoom_state != NULL); -#line 2018 "/home/jens/Source/shotwell/src/Page.vala" +#line 2030 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = single_photo_page_is_zoom_supported (self); -#line 2018 "/home/jens/Source/shotwell/src/Page.vala" +#line 2030 "/home/jens/Source/shotwell/src/Page.vala" _vala_assert (_tmp0_, "is_zoom_supported()"); -#line 2020 "/home/jens/Source/shotwell/src/Page.vala" +#line 2032 "/home/jens/Source/shotwell/src/Page.vala" zoom_state_get_viewing_rectangle_wrt_content (zoom_state, &_tmp1_); -#line 2020 "/home/jens/Source/shotwell/src/Page.vala" +#line 2032 "/home/jens/Source/shotwell/src/Page.vala" view_rect = _tmp1_; -#line 2023 "/home/jens/Source/shotwell/src/Page.vala" +#line 2035 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = single_photo_page_get_zoom_buffer (self); -#line 2023 "/home/jens/Source/shotwell/src/Page.vala" +#line 2035 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = _tmp2_; -#line 2023 "/home/jens/Source/shotwell/src/Page.vala" +#line 2035 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = _tmp3_ != NULL; -#line 2023 "/home/jens/Source/shotwell/src/Page.vala" +#line 2035 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (_tmp3_); -#line 2023 "/home/jens/Source/shotwell/src/Page.vala" +#line 2035 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp4_) { -#line 12869 "Page.c" +#line 12993 "Page.c" GdkPixbuf* _tmp5_ = NULL; gboolean _tmp6_ = FALSE; GdkPixbuf* _tmp15_ = NULL; -#line 2024 "/home/jens/Source/shotwell/src/Page.vala" +#line 2036 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = self->priv->zoom_high_quality; -#line 2024 "/home/jens/Source/shotwell/src/Page.vala" +#line 2036 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp6_) { -#line 12877 "Page.c" +#line 13001 "Page.c" ZoomBuffer* _tmp7_ = NULL; ZoomBuffer* _tmp8_ = NULL; ZoomState _tmp9_ = {0}; GdkPixbuf* _tmp10_ = NULL; -#line 2024 "/home/jens/Source/shotwell/src/Page.vala" +#line 2036 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = single_photo_page_get_zoom_buffer (self); -#line 2024 "/home/jens/Source/shotwell/src/Page.vala" +#line 2036 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = _tmp7_; -#line 2024 "/home/jens/Source/shotwell/src/Page.vala" +#line 2036 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = *zoom_state; -#line 2024 "/home/jens/Source/shotwell/src/Page.vala" +#line 2036 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = zoom_buffer_get_zoomed_image (_tmp8_, &_tmp9_); -#line 2024 "/home/jens/Source/shotwell/src/Page.vala" +#line 2036 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (_tmp5_); -#line 2024 "/home/jens/Source/shotwell/src/Page.vala" +#line 2036 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = _tmp10_; -#line 2024 "/home/jens/Source/shotwell/src/Page.vala" +#line 2036 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (_tmp8_); -#line 12896 "Page.c" +#line 13020 "Page.c" } else { ZoomBuffer* _tmp11_ = NULL; ZoomBuffer* _tmp12_ = NULL; ZoomState _tmp13_ = {0}; GdkPixbuf* _tmp14_ = NULL; -#line 2025 "/home/jens/Source/shotwell/src/Page.vala" +#line 2037 "/home/jens/Source/shotwell/src/Page.vala" _tmp11_ = single_photo_page_get_zoom_buffer (self); -#line 2025 "/home/jens/Source/shotwell/src/Page.vala" +#line 2037 "/home/jens/Source/shotwell/src/Page.vala" _tmp12_ = _tmp11_; -#line 2025 "/home/jens/Source/shotwell/src/Page.vala" +#line 2037 "/home/jens/Source/shotwell/src/Page.vala" _tmp13_ = *zoom_state; -#line 2025 "/home/jens/Source/shotwell/src/Page.vala" +#line 2037 "/home/jens/Source/shotwell/src/Page.vala" _tmp14_ = zoom_buffer_get_zoom_preview_image (_tmp12_, &_tmp13_); -#line 2025 "/home/jens/Source/shotwell/src/Page.vala" +#line 2037 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (_tmp5_); -#line 2025 "/home/jens/Source/shotwell/src/Page.vala" +#line 2037 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = _tmp14_; -#line 2025 "/home/jens/Source/shotwell/src/Page.vala" +#line 2037 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (_tmp12_); -#line 12916 "Page.c" +#line 13040 "Page.c" } -#line 2024 "/home/jens/Source/shotwell/src/Page.vala" +#line 2036 "/home/jens/Source/shotwell/src/Page.vala" _tmp15_ = _g_object_ref0 (_tmp5_); -#line 2024 "/home/jens/Source/shotwell/src/Page.vala" +#line 2036 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (zoomed); -#line 2024 "/home/jens/Source/shotwell/src/Page.vala" +#line 2036 "/home/jens/Source/shotwell/src/Page.vala" zoomed = _tmp15_; -#line 2023 "/home/jens/Source/shotwell/src/Page.vala" +#line 2035 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (_tmp5_); -#line 12926 "Page.c" +#line 13050 "Page.c" } else { GdkRectangle view_rect_proj = {0}; GdkPixbuf* _tmp16_ = NULL; @@ -12944,113 +13068,113 @@ static void single_photo_page_render_zoomed_to_pixmap (SinglePhotoPage* self, Zo GdkRectangle _tmp31_ = {0}; gint _tmp32_ = 0; GdkPixbuf* _tmp33_ = NULL; -#line 2027 "/home/jens/Source/shotwell/src/Page.vala" +#line 2039 "/home/jens/Source/shotwell/src/Page.vala" _tmp16_ = self->priv->unscaled; -#line 2027 "/home/jens/Source/shotwell/src/Page.vala" +#line 2039 "/home/jens/Source/shotwell/src/Page.vala" zoom_state_get_viewing_rectangle_projection (zoom_state, _tmp16_, &_tmp17_); -#line 2027 "/home/jens/Source/shotwell/src/Page.vala" +#line 2039 "/home/jens/Source/shotwell/src/Page.vala" view_rect_proj = _tmp17_; -#line 2029 "/home/jens/Source/shotwell/src/Page.vala" +#line 2041 "/home/jens/Source/shotwell/src/Page.vala" _tmp18_ = self->priv->unscaled; -#line 2029 "/home/jens/Source/shotwell/src/Page.vala" +#line 2041 "/home/jens/Source/shotwell/src/Page.vala" _tmp19_ = view_rect_proj; -#line 2029 "/home/jens/Source/shotwell/src/Page.vala" +#line 2041 "/home/jens/Source/shotwell/src/Page.vala" _tmp20_ = _tmp19_.x; -#line 2029 "/home/jens/Source/shotwell/src/Page.vala" +#line 2041 "/home/jens/Source/shotwell/src/Page.vala" _tmp21_ = view_rect_proj; -#line 2029 "/home/jens/Source/shotwell/src/Page.vala" +#line 2041 "/home/jens/Source/shotwell/src/Page.vala" _tmp22_ = _tmp21_.y; -#line 2029 "/home/jens/Source/shotwell/src/Page.vala" +#line 2041 "/home/jens/Source/shotwell/src/Page.vala" _tmp23_ = view_rect_proj; -#line 2029 "/home/jens/Source/shotwell/src/Page.vala" +#line 2041 "/home/jens/Source/shotwell/src/Page.vala" _tmp24_ = _tmp23_.width; -#line 2029 "/home/jens/Source/shotwell/src/Page.vala" +#line 2041 "/home/jens/Source/shotwell/src/Page.vala" _tmp25_ = view_rect_proj; -#line 2029 "/home/jens/Source/shotwell/src/Page.vala" +#line 2041 "/home/jens/Source/shotwell/src/Page.vala" _tmp26_ = _tmp25_.height; -#line 2029 "/home/jens/Source/shotwell/src/Page.vala" +#line 2041 "/home/jens/Source/shotwell/src/Page.vala" _tmp27_ = gdk_pixbuf_new_subpixbuf (_tmp18_, _tmp20_, _tmp22_, _tmp24_, _tmp26_); -#line 2029 "/home/jens/Source/shotwell/src/Page.vala" +#line 2041 "/home/jens/Source/shotwell/src/Page.vala" proj_subpixbuf = _tmp27_; -#line 2032 "/home/jens/Source/shotwell/src/Page.vala" +#line 2044 "/home/jens/Source/shotwell/src/Page.vala" _tmp28_ = proj_subpixbuf; -#line 2032 "/home/jens/Source/shotwell/src/Page.vala" +#line 2044 "/home/jens/Source/shotwell/src/Page.vala" _tmp29_ = view_rect; -#line 2032 "/home/jens/Source/shotwell/src/Page.vala" +#line 2044 "/home/jens/Source/shotwell/src/Page.vala" _tmp30_ = _tmp29_.width; -#line 2032 "/home/jens/Source/shotwell/src/Page.vala" +#line 2044 "/home/jens/Source/shotwell/src/Page.vala" _tmp31_ = view_rect; -#line 2032 "/home/jens/Source/shotwell/src/Page.vala" +#line 2044 "/home/jens/Source/shotwell/src/Page.vala" _tmp32_ = _tmp31_.height; -#line 2032 "/home/jens/Source/shotwell/src/Page.vala" +#line 2044 "/home/jens/Source/shotwell/src/Page.vala" _tmp33_ = gdk_pixbuf_scale_simple (_tmp28_, _tmp30_, _tmp32_, GDK_INTERP_BILINEAR); -#line 2032 "/home/jens/Source/shotwell/src/Page.vala" +#line 2044 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (zoomed); -#line 2032 "/home/jens/Source/shotwell/src/Page.vala" +#line 2044 "/home/jens/Source/shotwell/src/Page.vala" zoomed = _tmp33_; -#line 2023 "/home/jens/Source/shotwell/src/Page.vala" +#line 2035 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (proj_subpixbuf); -#line 12994 "Page.c" +#line 13118 "Page.c" } -#line 2036 "/home/jens/Source/shotwell/src/Page.vala" +#line 2048 "/home/jens/Source/shotwell/src/Page.vala" _tmp34_ = zoomed; -#line 2036 "/home/jens/Source/shotwell/src/Page.vala" +#line 2048 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp34_ == NULL) { -#line 2037 "/home/jens/Source/shotwell/src/Page.vala" +#line 2049 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (zoomed); -#line 2037 "/home/jens/Source/shotwell/src/Page.vala" +#line 2049 "/home/jens/Source/shotwell/src/Page.vala" return; -#line 13004 "Page.c" +#line 13128 "Page.c" } -#line 2040 "/home/jens/Source/shotwell/src/Page.vala" +#line 2052 "/home/jens/Source/shotwell/src/Page.vala" _tmp35_ = self->priv->pixmap_dim; -#line 2040 "/home/jens/Source/shotwell/src/Page.vala" +#line 2052 "/home/jens/Source/shotwell/src/Page.vala" _tmp36_ = _tmp35_.width; -#line 2040 "/home/jens/Source/shotwell/src/Page.vala" +#line 2052 "/home/jens/Source/shotwell/src/Page.vala" _tmp37_ = view_rect; -#line 2040 "/home/jens/Source/shotwell/src/Page.vala" +#line 2052 "/home/jens/Source/shotwell/src/Page.vala" _tmp38_ = _tmp37_.width; -#line 2040 "/home/jens/Source/shotwell/src/Page.vala" +#line 2052 "/home/jens/Source/shotwell/src/Page.vala" draw_x = (_tmp36_ - _tmp38_) / 2; -#line 2041 "/home/jens/Source/shotwell/src/Page.vala" +#line 2053 "/home/jens/Source/shotwell/src/Page.vala" _tmp39_ = draw_x; -#line 2041 "/home/jens/Source/shotwell/src/Page.vala" +#line 2053 "/home/jens/Source/shotwell/src/Page.vala" _tmp40_ = CLAMP (_tmp39_, 0, G_MAXINT); -#line 2041 "/home/jens/Source/shotwell/src/Page.vala" +#line 2053 "/home/jens/Source/shotwell/src/Page.vala" draw_x = _tmp40_; -#line 2043 "/home/jens/Source/shotwell/src/Page.vala" +#line 2055 "/home/jens/Source/shotwell/src/Page.vala" _tmp41_ = self->priv->pixmap_dim; -#line 2043 "/home/jens/Source/shotwell/src/Page.vala" +#line 2055 "/home/jens/Source/shotwell/src/Page.vala" _tmp42_ = _tmp41_.height; -#line 2043 "/home/jens/Source/shotwell/src/Page.vala" +#line 2055 "/home/jens/Source/shotwell/src/Page.vala" _tmp43_ = view_rect; -#line 2043 "/home/jens/Source/shotwell/src/Page.vala" +#line 2055 "/home/jens/Source/shotwell/src/Page.vala" _tmp44_ = _tmp43_.height; -#line 2043 "/home/jens/Source/shotwell/src/Page.vala" +#line 2055 "/home/jens/Source/shotwell/src/Page.vala" draw_y = (_tmp42_ - _tmp44_) / 2; -#line 2044 "/home/jens/Source/shotwell/src/Page.vala" +#line 2056 "/home/jens/Source/shotwell/src/Page.vala" _tmp45_ = draw_y; -#line 2044 "/home/jens/Source/shotwell/src/Page.vala" +#line 2056 "/home/jens/Source/shotwell/src/Page.vala" _tmp46_ = CLAMP (_tmp45_, 0, G_MAXINT); -#line 2044 "/home/jens/Source/shotwell/src/Page.vala" +#line 2056 "/home/jens/Source/shotwell/src/Page.vala" draw_y = _tmp46_; -#line 2046 "/home/jens/Source/shotwell/src/Page.vala" +#line 2058 "/home/jens/Source/shotwell/src/Page.vala" _tmp47_ = self->priv->pixmap_ctx; -#line 2046 "/home/jens/Source/shotwell/src/Page.vala" +#line 2058 "/home/jens/Source/shotwell/src/Page.vala" _tmp48_ = zoomed; -#line 2046 "/home/jens/Source/shotwell/src/Page.vala" +#line 2058 "/home/jens/Source/shotwell/src/Page.vala" _tmp49_ = draw_x; -#line 2046 "/home/jens/Source/shotwell/src/Page.vala" +#line 2058 "/home/jens/Source/shotwell/src/Page.vala" _tmp50_ = draw_y; -#line 2046 "/home/jens/Source/shotwell/src/Page.vala" +#line 2058 "/home/jens/Source/shotwell/src/Page.vala" gdk_cairo_set_source_pixbuf (_tmp47_, _tmp48_, (gdouble) _tmp49_, (gdouble) _tmp50_); -#line 2047 "/home/jens/Source/shotwell/src/Page.vala" +#line 2059 "/home/jens/Source/shotwell/src/Page.vala" _tmp51_ = self->priv->pixmap_ctx; -#line 2047 "/home/jens/Source/shotwell/src/Page.vala" +#line 2059 "/home/jens/Source/shotwell/src/Page.vala" cairo_paint (_tmp51_); -#line 2017 "/home/jens/Source/shotwell/src/Page.vala" +#line 2029 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (zoomed); -#line 13054 "Page.c" +#line 13178 "Page.c" } @@ -13062,39 +13186,39 @@ void single_photo_page_on_interactive_zoom (SinglePhotoPage* self, ZoomState* in gboolean _tmp3_ = FALSE; ZoomState _tmp4_ = {0}; GtkDrawingArea* _tmp5_ = NULL; -#line 2050 "/home/jens/Source/shotwell/src/Page.vala" +#line 2062 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2050 "/home/jens/Source/shotwell/src/Page.vala" +#line 2062 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (interactive_zoom_state != NULL); -#line 2051 "/home/jens/Source/shotwell/src/Page.vala" +#line 2063 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = single_photo_page_is_zoom_supported (self); -#line 2051 "/home/jens/Source/shotwell/src/Page.vala" +#line 2063 "/home/jens/Source/shotwell/src/Page.vala" _vala_assert (_tmp0_, "is_zoom_supported()"); -#line 2053 "/home/jens/Source/shotwell/src/Page.vala" +#line 2065 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = self->priv->pixmap_ctx; -#line 2053 "/home/jens/Source/shotwell/src/Page.vala" +#line 2065 "/home/jens/Source/shotwell/src/Page.vala" set_source_color_from_string (_tmp1_, "#000"); -#line 2054 "/home/jens/Source/shotwell/src/Page.vala" +#line 2066 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = self->priv->pixmap_ctx; -#line 2054 "/home/jens/Source/shotwell/src/Page.vala" +#line 2066 "/home/jens/Source/shotwell/src/Page.vala" cairo_paint (_tmp2_); -#line 2056 "/home/jens/Source/shotwell/src/Page.vala" +#line 2068 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = self->priv->zoom_high_quality; -#line 2056 "/home/jens/Source/shotwell/src/Page.vala" +#line 2068 "/home/jens/Source/shotwell/src/Page.vala" old_quality_setting = _tmp3_; -#line 2057 "/home/jens/Source/shotwell/src/Page.vala" +#line 2069 "/home/jens/Source/shotwell/src/Page.vala" self->priv->zoom_high_quality = FALSE; -#line 2058 "/home/jens/Source/shotwell/src/Page.vala" +#line 2070 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = *interactive_zoom_state; -#line 2058 "/home/jens/Source/shotwell/src/Page.vala" +#line 2070 "/home/jens/Source/shotwell/src/Page.vala" single_photo_page_render_zoomed_to_pixmap (self, &_tmp4_); -#line 2059 "/home/jens/Source/shotwell/src/Page.vala" +#line 2071 "/home/jens/Source/shotwell/src/Page.vala" self->priv->zoom_high_quality = old_quality_setting; -#line 2061 "/home/jens/Source/shotwell/src/Page.vala" +#line 2073 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = self->canvas; -#line 2061 "/home/jens/Source/shotwell/src/Page.vala" +#line 2073 "/home/jens/Source/shotwell/src/Page.vala" gtk_widget_queue_draw (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget)); -#line 13098 "Page.c" +#line 13222 "Page.c" } @@ -13106,230 +13230,230 @@ void single_photo_page_on_interactive_pan (SinglePhotoPage* self, ZoomState* int gboolean _tmp3_ = FALSE; ZoomState _tmp4_ = {0}; GtkDrawingArea* _tmp5_ = NULL; -#line 2064 "/home/jens/Source/shotwell/src/Page.vala" +#line 2076 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2064 "/home/jens/Source/shotwell/src/Page.vala" +#line 2076 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (interactive_zoom_state != NULL); -#line 2065 "/home/jens/Source/shotwell/src/Page.vala" +#line 2077 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = single_photo_page_is_zoom_supported (self); -#line 2065 "/home/jens/Source/shotwell/src/Page.vala" +#line 2077 "/home/jens/Source/shotwell/src/Page.vala" _vala_assert (_tmp0_, "is_zoom_supported()"); -#line 2067 "/home/jens/Source/shotwell/src/Page.vala" +#line 2079 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = self->priv->pixmap_ctx; -#line 2067 "/home/jens/Source/shotwell/src/Page.vala" +#line 2079 "/home/jens/Source/shotwell/src/Page.vala" set_source_color_from_string (_tmp1_, "#000"); -#line 2068 "/home/jens/Source/shotwell/src/Page.vala" +#line 2080 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = self->priv->pixmap_ctx; -#line 2068 "/home/jens/Source/shotwell/src/Page.vala" +#line 2080 "/home/jens/Source/shotwell/src/Page.vala" cairo_paint (_tmp2_); -#line 2070 "/home/jens/Source/shotwell/src/Page.vala" +#line 2082 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = self->priv->zoom_high_quality; -#line 2070 "/home/jens/Source/shotwell/src/Page.vala" +#line 2082 "/home/jens/Source/shotwell/src/Page.vala" old_quality_setting = _tmp3_; -#line 2071 "/home/jens/Source/shotwell/src/Page.vala" +#line 2083 "/home/jens/Source/shotwell/src/Page.vala" self->priv->zoom_high_quality = TRUE; -#line 2072 "/home/jens/Source/shotwell/src/Page.vala" +#line 2084 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = *interactive_zoom_state; -#line 2072 "/home/jens/Source/shotwell/src/Page.vala" +#line 2084 "/home/jens/Source/shotwell/src/Page.vala" single_photo_page_render_zoomed_to_pixmap (self, &_tmp4_); -#line 2073 "/home/jens/Source/shotwell/src/Page.vala" +#line 2085 "/home/jens/Source/shotwell/src/Page.vala" self->priv->zoom_high_quality = old_quality_setting; -#line 2075 "/home/jens/Source/shotwell/src/Page.vala" +#line 2087 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = self->canvas; -#line 2075 "/home/jens/Source/shotwell/src/Page.vala" +#line 2087 "/home/jens/Source/shotwell/src/Page.vala" gtk_widget_queue_draw (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget)); -#line 13142 "Page.c" +#line 13266 "Page.c" } static gboolean single_photo_page_real_is_zoom_supported (SinglePhotoPage* self) { gboolean result = FALSE; -#line 2079 "/home/jens/Source/shotwell/src/Page.vala" +#line 2091 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 2079 "/home/jens/Source/shotwell/src/Page.vala" +#line 2091 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 13152 "Page.c" +#line 13276 "Page.c" } gboolean single_photo_page_is_zoom_supported (SinglePhotoPage* self) { -#line 2078 "/home/jens/Source/shotwell/src/Page.vala" +#line 2090 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_SINGLE_PHOTO_PAGE (self), FALSE); -#line 2078 "/home/jens/Source/shotwell/src/Page.vala" +#line 2090 "/home/jens/Source/shotwell/src/Page.vala" return SINGLE_PHOTO_PAGE_GET_CLASS (self)->is_zoom_supported (self); -#line 13161 "Page.c" +#line 13285 "Page.c" } static void single_photo_page_real_cancel_zoom (SinglePhotoPage* self) { cairo_surface_t* _tmp0_ = NULL; -#line 2083 "/home/jens/Source/shotwell/src/Page.vala" +#line 2095 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->pixmap; -#line 2083 "/home/jens/Source/shotwell/src/Page.vala" +#line 2095 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp0_ != NULL) { -#line 13171 "Page.c" +#line 13295 "Page.c" cairo_t* _tmp1_ = NULL; cairo_t* _tmp2_ = NULL; -#line 2084 "/home/jens/Source/shotwell/src/Page.vala" +#line 2096 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = self->priv->pixmap_ctx; -#line 2084 "/home/jens/Source/shotwell/src/Page.vala" +#line 2096 "/home/jens/Source/shotwell/src/Page.vala" set_source_color_from_string (_tmp1_, "#000"); -#line 2085 "/home/jens/Source/shotwell/src/Page.vala" +#line 2097 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = self->priv->pixmap_ctx; -#line 2085 "/home/jens/Source/shotwell/src/Page.vala" +#line 2097 "/home/jens/Source/shotwell/src/Page.vala" cairo_paint (_tmp2_); -#line 13182 "Page.c" +#line 13306 "Page.c" } } void single_photo_page_cancel_zoom (SinglePhotoPage* self) { -#line 2082 "/home/jens/Source/shotwell/src/Page.vala" +#line 2094 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2082 "/home/jens/Source/shotwell/src/Page.vala" +#line 2094 "/home/jens/Source/shotwell/src/Page.vala" SINGLE_PHOTO_PAGE_GET_CLASS (self)->cancel_zoom (self); -#line 13192 "Page.c" +#line 13316 "Page.c" } static void single_photo_page_real_save_zoom_state (SinglePhotoPage* self) { ZoomState _tmp0_ = {0}; -#line 2090 "/home/jens/Source/shotwell/src/Page.vala" +#line 2102 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->static_zoom_state; -#line 2090 "/home/jens/Source/shotwell/src/Page.vala" +#line 2102 "/home/jens/Source/shotwell/src/Page.vala" self->priv->saved_zoom_state = _tmp0_; -#line 2091 "/home/jens/Source/shotwell/src/Page.vala" +#line 2103 "/home/jens/Source/shotwell/src/Page.vala" self->priv->has_saved_zoom_state = TRUE; -#line 13204 "Page.c" +#line 13328 "Page.c" } void single_photo_page_save_zoom_state (SinglePhotoPage* self) { -#line 2089 "/home/jens/Source/shotwell/src/Page.vala" +#line 2101 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2089 "/home/jens/Source/shotwell/src/Page.vala" +#line 2101 "/home/jens/Source/shotwell/src/Page.vala" SINGLE_PHOTO_PAGE_GET_CLASS (self)->save_zoom_state (self); -#line 13213 "Page.c" +#line 13337 "Page.c" } static void single_photo_page_real_restore_zoom_state (SinglePhotoPage* self) { gboolean _tmp0_ = FALSE; ZoomState _tmp1_ = {0}; -#line 2095 "/home/jens/Source/shotwell/src/Page.vala" +#line 2107 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->has_saved_zoom_state; -#line 2095 "/home/jens/Source/shotwell/src/Page.vala" +#line 2107 "/home/jens/Source/shotwell/src/Page.vala" if (!_tmp0_) { -#line 2096 "/home/jens/Source/shotwell/src/Page.vala" +#line 2108 "/home/jens/Source/shotwell/src/Page.vala" return; -#line 13226 "Page.c" +#line 13350 "Page.c" } -#line 2098 "/home/jens/Source/shotwell/src/Page.vala" +#line 2110 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = self->priv->saved_zoom_state; -#line 2098 "/home/jens/Source/shotwell/src/Page.vala" +#line 2110 "/home/jens/Source/shotwell/src/Page.vala" self->priv->static_zoom_state = _tmp1_; -#line 2099 "/home/jens/Source/shotwell/src/Page.vala" +#line 2111 "/home/jens/Source/shotwell/src/Page.vala" single_photo_page_repaint (self, NULL); -#line 2100 "/home/jens/Source/shotwell/src/Page.vala" +#line 2112 "/home/jens/Source/shotwell/src/Page.vala" self->priv->has_saved_zoom_state = FALSE; -#line 13236 "Page.c" +#line 13360 "Page.c" } void single_photo_page_restore_zoom_state (SinglePhotoPage* self) { -#line 2094 "/home/jens/Source/shotwell/src/Page.vala" +#line 2106 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2094 "/home/jens/Source/shotwell/src/Page.vala" +#line 2106 "/home/jens/Source/shotwell/src/Page.vala" SINGLE_PHOTO_PAGE_GET_CLASS (self)->restore_zoom_state (self); -#line 13245 "Page.c" +#line 13369 "Page.c" } static ZoomBuffer* single_photo_page_real_get_zoom_buffer (SinglePhotoPage* self) { ZoomBuffer* result = NULL; -#line 2104 "/home/jens/Source/shotwell/src/Page.vala" +#line 2116 "/home/jens/Source/shotwell/src/Page.vala" result = NULL; -#line 2104 "/home/jens/Source/shotwell/src/Page.vala" +#line 2116 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 13255 "Page.c" +#line 13379 "Page.c" } ZoomBuffer* single_photo_page_get_zoom_buffer (SinglePhotoPage* self) { -#line 2103 "/home/jens/Source/shotwell/src/Page.vala" +#line 2115 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_SINGLE_PHOTO_PAGE (self), NULL); -#line 2103 "/home/jens/Source/shotwell/src/Page.vala" +#line 2115 "/home/jens/Source/shotwell/src/Page.vala" return SINGLE_PHOTO_PAGE_GET_CLASS (self)->get_zoom_buffer (self); -#line 13264 "Page.c" +#line 13388 "Page.c" } void single_photo_page_get_saved_zoom_state (SinglePhotoPage* self, ZoomState* result) { ZoomState _tmp0_ = {0}; -#line 2107 "/home/jens/Source/shotwell/src/Page.vala" +#line 2119 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2108 "/home/jens/Source/shotwell/src/Page.vala" +#line 2120 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->saved_zoom_state; -#line 2108 "/home/jens/Source/shotwell/src/Page.vala" +#line 2120 "/home/jens/Source/shotwell/src/Page.vala" *result = _tmp0_; -#line 2108 "/home/jens/Source/shotwell/src/Page.vala" +#line 2120 "/home/jens/Source/shotwell/src/Page.vala" return; -#line 13278 "Page.c" +#line 13402 "Page.c" } void single_photo_page_set_zoom_state (SinglePhotoPage* self, ZoomState* zoom_state) { gboolean _tmp0_ = FALSE; ZoomState _tmp1_ = {0}; -#line 2111 "/home/jens/Source/shotwell/src/Page.vala" +#line 2123 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2111 "/home/jens/Source/shotwell/src/Page.vala" +#line 2123 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (zoom_state != NULL); -#line 2112 "/home/jens/Source/shotwell/src/Page.vala" +#line 2124 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = single_photo_page_is_zoom_supported (self); -#line 2112 "/home/jens/Source/shotwell/src/Page.vala" +#line 2124 "/home/jens/Source/shotwell/src/Page.vala" _vala_assert (_tmp0_, "is_zoom_supported()"); -#line 2114 "/home/jens/Source/shotwell/src/Page.vala" +#line 2126 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = *zoom_state; -#line 2114 "/home/jens/Source/shotwell/src/Page.vala" +#line 2126 "/home/jens/Source/shotwell/src/Page.vala" self->priv->static_zoom_state = _tmp1_; -#line 13297 "Page.c" +#line 13421 "Page.c" } void single_photo_page_get_zoom_state (SinglePhotoPage* self, ZoomState* result) { gboolean _tmp0_ = FALSE; ZoomState _tmp1_ = {0}; -#line 2117 "/home/jens/Source/shotwell/src/Page.vala" +#line 2129 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2118 "/home/jens/Source/shotwell/src/Page.vala" +#line 2130 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = single_photo_page_is_zoom_supported (self); -#line 2118 "/home/jens/Source/shotwell/src/Page.vala" +#line 2130 "/home/jens/Source/shotwell/src/Page.vala" _vala_assert (_tmp0_, "is_zoom_supported()"); -#line 2120 "/home/jens/Source/shotwell/src/Page.vala" +#line 2132 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = self->priv->static_zoom_state; -#line 2120 "/home/jens/Source/shotwell/src/Page.vala" +#line 2132 "/home/jens/Source/shotwell/src/Page.vala" *result = _tmp1_; -#line 2120 "/home/jens/Source/shotwell/src/Page.vala" +#line 2132 "/home/jens/Source/shotwell/src/Page.vala" return; -#line 13316 "Page.c" +#line 13440 "Page.c" } static void single_photo_page_real_switched_to (Page* base) { SinglePhotoPage * self; GdkPixbuf* _tmp0_ = NULL; -#line 2123 "/home/jens/Source/shotwell/src/Page.vala" +#line 2135 "/home/jens/Source/shotwell/src/Page.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage); -#line 2124 "/home/jens/Source/shotwell/src/Page.vala" +#line 2136 "/home/jens/Source/shotwell/src/Page.vala" PAGE_CLASS (single_photo_page_parent_class)->switched_to (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2126 "/home/jens/Source/shotwell/src/Page.vala" +#line 2138 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->unscaled; -#line 2126 "/home/jens/Source/shotwell/src/Page.vala" +#line 2138 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp0_ != NULL) { -#line 2127 "/home/jens/Source/shotwell/src/Page.vala" +#line 2139 "/home/jens/Source/shotwell/src/Page.vala" single_photo_page_repaint (self, NULL); -#line 13333 "Page.c" +#line 13457 "Page.c" } } @@ -13338,21 +13462,21 @@ static void single_photo_page_real_set_container (Page* base, GtkWindow* contain SinglePhotoPage * self; GtkWindow* _tmp0_ = NULL; GtkWindow* _tmp1_ = NULL; -#line 2130 "/home/jens/Source/shotwell/src/Page.vala" +#line 2142 "/home/jens/Source/shotwell/src/Page.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage); -#line 2130 "/home/jens/Source/shotwell/src/Page.vala" +#line 2142 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (GTK_IS_WINDOW (container)); -#line 2131 "/home/jens/Source/shotwell/src/Page.vala" +#line 2143 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = container; -#line 2131 "/home/jens/Source/shotwell/src/Page.vala" +#line 2143 "/home/jens/Source/shotwell/src/Page.vala" PAGE_CLASS (single_photo_page_parent_class)->set_container (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), _tmp0_); -#line 2135 "/home/jens/Source/shotwell/src/Page.vala" +#line 2147 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = container; -#line 2135 "/home/jens/Source/shotwell/src/Page.vala" +#line 2147 "/home/jens/Source/shotwell/src/Page.vala" if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, TYPE_FULLSCREEN_WINDOW)) { -#line 2136 "/home/jens/Source/shotwell/src/Page.vala" +#line 2148 "/home/jens/Source/shotwell/src/Page.vala" gtk_scrolled_window_set_policy (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_scrolled_window_get_type (), GtkScrolledWindow), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); -#line 13356 "Page.c" +#line 13480 "Page.c" } } @@ -13369,92 +13493,92 @@ void single_photo_page_set_pixbuf (SinglePhotoPage* self, GdkPixbuf* unscaled, D GdkPixbuf* _tmp8_ = NULL; GtkDrawingArea* _tmp9_ = NULL; Direction* _tmp10_ = NULL; -#line 2143 "/home/jens/Source/shotwell/src/Page.vala" +#line 2155 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2143 "/home/jens/Source/shotwell/src/Page.vala" +#line 2155 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (GDK_IS_PIXBUF (unscaled)); -#line 2143 "/home/jens/Source/shotwell/src/Page.vala" +#line 2155 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (max_dim != NULL); -#line 2144 "/home/jens/Source/shotwell/src/Page.vala" +#line 2156 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = *max_dim; -#line 2144 "/home/jens/Source/shotwell/src/Page.vala" +#line 2156 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = self->priv->pixmap_dim; -#line 2144 "/home/jens/Source/shotwell/src/Page.vala" +#line 2156 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = zoom_state_get_interpolation_factor (&self->priv->static_zoom_state); -#line 2144 "/home/jens/Source/shotwell/src/Page.vala" +#line 2156 "/home/jens/Source/shotwell/src/Page.vala" zoom_state_get_viewport_center (&self->priv->static_zoom_state, &_tmp3_); -#line 2144 "/home/jens/Source/shotwell/src/Page.vala" +#line 2156 "/home/jens/Source/shotwell/src/Page.vala" zoom_state_init (&self->priv->static_zoom_state, &_tmp0_, &_tmp1_, _tmp2_, &_tmp3_); -#line 2148 "/home/jens/Source/shotwell/src/Page.vala" +#line 2160 "/home/jens/Source/shotwell/src/Page.vala" single_photo_page_cancel_transition (self); -#line 2150 "/home/jens/Source/shotwell/src/Page.vala" +#line 2162 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = unscaled; -#line 2150 "/home/jens/Source/shotwell/src/Page.vala" +#line 2162 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = _g_object_ref0 (_tmp4_); -#line 2150 "/home/jens/Source/shotwell/src/Page.vala" +#line 2162 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->priv->unscaled); -#line 2150 "/home/jens/Source/shotwell/src/Page.vala" +#line 2162 "/home/jens/Source/shotwell/src/Page.vala" self->priv->unscaled = _tmp5_; -#line 2151 "/home/jens/Source/shotwell/src/Page.vala" +#line 2163 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = *max_dim; -#line 2151 "/home/jens/Source/shotwell/src/Page.vala" +#line 2163 "/home/jens/Source/shotwell/src/Page.vala" self->priv->max_dim = _tmp6_; -#line 2152 "/home/jens/Source/shotwell/src/Page.vala" +#line 2164 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = self->priv->scaled; -#line 2152 "/home/jens/Source/shotwell/src/Page.vala" +#line 2164 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = _g_object_ref0 (_tmp7_); -#line 2152 "/home/jens/Source/shotwell/src/Page.vala" +#line 2164 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->priv->old_scaled); -#line 2152 "/home/jens/Source/shotwell/src/Page.vala" +#line 2164 "/home/jens/Source/shotwell/src/Page.vala" self->priv->old_scaled = _tmp8_; -#line 2153 "/home/jens/Source/shotwell/src/Page.vala" +#line 2165 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->priv->scaled); -#line 2153 "/home/jens/Source/shotwell/src/Page.vala" +#line 2165 "/home/jens/Source/shotwell/src/Page.vala" self->priv->scaled = NULL; -#line 2156 "/home/jens/Source/shotwell/src/Page.vala" +#line 2168 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = self->canvas; -#line 2156 "/home/jens/Source/shotwell/src/Page.vala" +#line 2168 "/home/jens/Source/shotwell/src/Page.vala" gtk_widget_realize (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget)); -#line 2158 "/home/jens/Source/shotwell/src/Page.vala" +#line 2170 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = direction; -#line 2158 "/home/jens/Source/shotwell/src/Page.vala" +#line 2170 "/home/jens/Source/shotwell/src/Page.vala" single_photo_page_repaint (self, _tmp10_); -#line 13423 "Page.c" +#line 13547 "Page.c" } void single_photo_page_blank_display (SinglePhotoPage* self) { GtkDrawingArea* _tmp0_ = NULL; -#line 2161 "/home/jens/Source/shotwell/src/Page.vala" +#line 2173 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2162 "/home/jens/Source/shotwell/src/Page.vala" +#line 2174 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->priv->unscaled); -#line 2162 "/home/jens/Source/shotwell/src/Page.vala" +#line 2174 "/home/jens/Source/shotwell/src/Page.vala" self->priv->unscaled = NULL; -#line 2163 "/home/jens/Source/shotwell/src/Page.vala" +#line 2175 "/home/jens/Source/shotwell/src/Page.vala" dimensions_init (&self->priv->max_dim, 0, 0); -#line 2164 "/home/jens/Source/shotwell/src/Page.vala" +#line 2176 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->priv->scaled); -#line 2164 "/home/jens/Source/shotwell/src/Page.vala" +#line 2176 "/home/jens/Source/shotwell/src/Page.vala" self->priv->scaled = NULL; -#line 2165 "/home/jens/Source/shotwell/src/Page.vala" +#line 2177 "/home/jens/Source/shotwell/src/Page.vala" _cairo_surface_destroy0 (self->priv->pixmap); -#line 2165 "/home/jens/Source/shotwell/src/Page.vala" +#line 2177 "/home/jens/Source/shotwell/src/Page.vala" self->priv->pixmap = NULL; -#line 2168 "/home/jens/Source/shotwell/src/Page.vala" +#line 2180 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->canvas; -#line 2168 "/home/jens/Source/shotwell/src/Page.vala" +#line 2180 "/home/jens/Source/shotwell/src/Page.vala" gtk_widget_realize (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 2171 "/home/jens/Source/shotwell/src/Page.vala" +#line 2183 "/home/jens/Source/shotwell/src/Page.vala" single_photo_page_invalidate_all (self); -#line 13451 "Page.c" +#line 13575 "Page.c" } static gpointer _cairo_surface_reference0 (gpointer self) { -#line 2175 "/home/jens/Source/shotwell/src/Page.vala" +#line 2187 "/home/jens/Source/shotwell/src/Page.vala" return self ? cairo_surface_reference (self) : NULL; -#line 13458 "Page.c" +#line 13582 "Page.c" } @@ -13462,38 +13586,38 @@ cairo_surface_t* single_photo_page_get_surface (SinglePhotoPage* self) { cairo_surface_t* result = NULL; cairo_surface_t* _tmp0_ = NULL; cairo_surface_t* _tmp1_ = NULL; -#line 2174 "/home/jens/Source/shotwell/src/Page.vala" +#line 2186 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_SINGLE_PHOTO_PAGE (self), NULL); -#line 2175 "/home/jens/Source/shotwell/src/Page.vala" +#line 2187 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->pixmap; -#line 2175 "/home/jens/Source/shotwell/src/Page.vala" +#line 2187 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = _cairo_surface_reference0 (_tmp0_); -#line 2175 "/home/jens/Source/shotwell/src/Page.vala" +#line 2187 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp1_; -#line 2175 "/home/jens/Source/shotwell/src/Page.vala" +#line 2187 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 13476 "Page.c" +#line 13600 "Page.c" } void single_photo_page_get_surface_dim (SinglePhotoPage* self, Dimensions* result) { Dimensions _tmp0_ = {0}; -#line 2178 "/home/jens/Source/shotwell/src/Page.vala" +#line 2190 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2179 "/home/jens/Source/shotwell/src/Page.vala" +#line 2191 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->pixmap_dim; -#line 2179 "/home/jens/Source/shotwell/src/Page.vala" +#line 2191 "/home/jens/Source/shotwell/src/Page.vala" *result = _tmp0_; -#line 2179 "/home/jens/Source/shotwell/src/Page.vala" +#line 2191 "/home/jens/Source/shotwell/src/Page.vala" return; -#line 13490 "Page.c" +#line 13614 "Page.c" } static gpointer _cairo_reference0 (gpointer self) { -#line 2183 "/home/jens/Source/shotwell/src/Page.vala" +#line 2195 "/home/jens/Source/shotwell/src/Page.vala" return self ? cairo_reference (self) : NULL; -#line 13497 "Page.c" +#line 13621 "Page.c" } @@ -13501,17 +13625,17 @@ cairo_t* single_photo_page_get_cairo_context (SinglePhotoPage* self) { cairo_t* result = NULL; cairo_t* _tmp0_ = NULL; cairo_t* _tmp1_ = NULL; -#line 2182 "/home/jens/Source/shotwell/src/Page.vala" +#line 2194 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_SINGLE_PHOTO_PAGE (self), NULL); -#line 2183 "/home/jens/Source/shotwell/src/Page.vala" +#line 2195 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->pixmap_ctx; -#line 2183 "/home/jens/Source/shotwell/src/Page.vala" +#line 2195 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = _cairo_reference0 (_tmp0_); -#line 2183 "/home/jens/Source/shotwell/src/Page.vala" +#line 2195 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp1_; -#line 2183 "/home/jens/Source/shotwell/src/Page.vala" +#line 2195 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 13515 "Page.c" +#line 13639 "Page.c" } @@ -13521,25 +13645,25 @@ void single_photo_page_paint_text (SinglePhotoPage* self, PangoLayout* pango_lay gint _tmp2_ = 0; cairo_t* _tmp3_ = NULL; PangoLayout* _tmp4_ = NULL; -#line 2186 "/home/jens/Source/shotwell/src/Page.vala" +#line 2198 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2186 "/home/jens/Source/shotwell/src/Page.vala" +#line 2198 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (PANGO_IS_LAYOUT (pango_layout)); -#line 2187 "/home/jens/Source/shotwell/src/Page.vala" +#line 2199 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->text_ctx; -#line 2187 "/home/jens/Source/shotwell/src/Page.vala" +#line 2199 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = x; -#line 2187 "/home/jens/Source/shotwell/src/Page.vala" +#line 2199 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = y; -#line 2187 "/home/jens/Source/shotwell/src/Page.vala" +#line 2199 "/home/jens/Source/shotwell/src/Page.vala" cairo_move_to (_tmp0_, (gdouble) _tmp1_, (gdouble) _tmp2_); -#line 2188 "/home/jens/Source/shotwell/src/Page.vala" +#line 2200 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = self->priv->text_ctx; -#line 2188 "/home/jens/Source/shotwell/src/Page.vala" +#line 2200 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = pango_layout; -#line 2188 "/home/jens/Source/shotwell/src/Page.vala" +#line 2200 "/home/jens/Source/shotwell/src/Page.vala" pango_cairo_show_layout (_tmp3_, _tmp4_); -#line 13543 "Page.c" +#line 13667 "Page.c" } @@ -13548,55 +13672,55 @@ void single_photo_page_get_canvas_scaling (SinglePhotoPage* self, Scaling* resul GtkWindow* _tmp1_ = NULL; GtkWindow* _tmp2_ = NULL; gboolean _tmp3_ = FALSE; -#line 2191 "/home/jens/Source/shotwell/src/Page.vala" +#line 2203 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2192 "/home/jens/Source/shotwell/src/Page.vala" +#line 2204 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = page_get_container (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2192 "/home/jens/Source/shotwell/src/Page.vala" +#line 2204 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = _tmp1_; -#line 2192 "/home/jens/Source/shotwell/src/Page.vala" +#line 2204 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, TYPE_FULLSCREEN_WINDOW); -#line 2192 "/home/jens/Source/shotwell/src/Page.vala" +#line 2204 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (_tmp2_); -#line 2192 "/home/jens/Source/shotwell/src/Page.vala" +#line 2204 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp3_) { -#line 13564 "Page.c" +#line 13688 "Page.c" GtkWindow* _tmp4_ = NULL; GtkWindow* _tmp5_ = NULL; gboolean _tmp6_ = FALSE; Scaling _tmp7_ = {0}; -#line 2192 "/home/jens/Source/shotwell/src/Page.vala" +#line 2204 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = page_get_container (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2192 "/home/jens/Source/shotwell/src/Page.vala" +#line 2204 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = _tmp4_; -#line 2192 "/home/jens/Source/shotwell/src/Page.vala" +#line 2204 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = self->priv->scale_up_to_viewport; -#line 2192 "/home/jens/Source/shotwell/src/Page.vala" +#line 2204 "/home/jens/Source/shotwell/src/Page.vala" scaling_for_screen (_tmp5_, _tmp6_, &_tmp7_); -#line 2192 "/home/jens/Source/shotwell/src/Page.vala" +#line 2204 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = _tmp7_; -#line 2192 "/home/jens/Source/shotwell/src/Page.vala" +#line 2204 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (_tmp5_); -#line 13581 "Page.c" +#line 13705 "Page.c" } else { GtkViewport* _tmp8_ = NULL; gboolean _tmp9_ = FALSE; Scaling _tmp10_ = {0}; -#line 2193 "/home/jens/Source/shotwell/src/Page.vala" +#line 2205 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = self->viewport; -#line 2193 "/home/jens/Source/shotwell/src/Page.vala" +#line 2205 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = self->priv->scale_up_to_viewport; -#line 2193 "/home/jens/Source/shotwell/src/Page.vala" +#line 2205 "/home/jens/Source/shotwell/src/Page.vala" scaling_for_widget (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget), _tmp9_, &_tmp10_); -#line 2193 "/home/jens/Source/shotwell/src/Page.vala" +#line 2205 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = _tmp10_; -#line 13594 "Page.c" +#line 13718 "Page.c" } -#line 2192 "/home/jens/Source/shotwell/src/Page.vala" +#line 2204 "/home/jens/Source/shotwell/src/Page.vala" *result = _tmp0_; -#line 2192 "/home/jens/Source/shotwell/src/Page.vala" +#line 2204 "/home/jens/Source/shotwell/src/Page.vala" return; -#line 13600 "Page.c" +#line 13724 "Page.c" } @@ -13604,17 +13728,17 @@ GdkPixbuf* single_photo_page_get_unscaled_pixbuf (SinglePhotoPage* self) { GdkPixbuf* result = NULL; GdkPixbuf* _tmp0_ = NULL; GdkPixbuf* _tmp1_ = NULL; -#line 2196 "/home/jens/Source/shotwell/src/Page.vala" +#line 2208 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_SINGLE_PHOTO_PAGE (self), NULL); -#line 2197 "/home/jens/Source/shotwell/src/Page.vala" +#line 2209 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->unscaled; -#line 2197 "/home/jens/Source/shotwell/src/Page.vala" +#line 2209 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = _g_object_ref0 (_tmp0_); -#line 2197 "/home/jens/Source/shotwell/src/Page.vala" +#line 2209 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp1_; -#line 2197 "/home/jens/Source/shotwell/src/Page.vala" +#line 2209 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 13618 "Page.c" +#line 13742 "Page.c" } @@ -13622,31 +13746,31 @@ GdkPixbuf* single_photo_page_get_scaled_pixbuf (SinglePhotoPage* self) { GdkPixbuf* result = NULL; GdkPixbuf* _tmp0_ = NULL; GdkPixbuf* _tmp1_ = NULL; -#line 2200 "/home/jens/Source/shotwell/src/Page.vala" +#line 2212 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_SINGLE_PHOTO_PAGE (self), NULL); -#line 2201 "/home/jens/Source/shotwell/src/Page.vala" +#line 2213 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->scaled; -#line 2201 "/home/jens/Source/shotwell/src/Page.vala" +#line 2213 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = _g_object_ref0 (_tmp0_); -#line 2201 "/home/jens/Source/shotwell/src/Page.vala" +#line 2213 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp1_; -#line 2201 "/home/jens/Source/shotwell/src/Page.vala" +#line 2213 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 13636 "Page.c" +#line 13760 "Page.c" } void single_photo_page_get_scaled_pixbuf_position (SinglePhotoPage* self, GdkRectangle* result) { GdkRectangle _tmp0_ = {0}; -#line 2205 "/home/jens/Source/shotwell/src/Page.vala" +#line 2217 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2206 "/home/jens/Source/shotwell/src/Page.vala" +#line 2218 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->scaled_pos; -#line 2206 "/home/jens/Source/shotwell/src/Page.vala" +#line 2218 "/home/jens/Source/shotwell/src/Page.vala" *result = _tmp0_; -#line 2206 "/home/jens/Source/shotwell/src/Page.vala" +#line 2218 "/home/jens/Source/shotwell/src/Page.vala" return; -#line 13650 "Page.c" +#line 13774 "Page.c" } @@ -13656,50 +13780,50 @@ gboolean single_photo_page_is_inside_pixbuf (SinglePhotoPage* self, gint x, gint gint _tmp1_ = 0; GdkRectangle _tmp2_ = {0}; gboolean _tmp3_ = FALSE; -#line 2209 "/home/jens/Source/shotwell/src/Page.vala" +#line 2221 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_SINGLE_PHOTO_PAGE (self), FALSE); -#line 2210 "/home/jens/Source/shotwell/src/Page.vala" +#line 2222 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = x; -#line 2210 "/home/jens/Source/shotwell/src/Page.vala" +#line 2222 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = y; -#line 2210 "/home/jens/Source/shotwell/src/Page.vala" +#line 2222 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = self->priv->scaled_pos; -#line 2210 "/home/jens/Source/shotwell/src/Page.vala" +#line 2222 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = coord_in_rectangle (_tmp0_, _tmp1_, &_tmp2_); -#line 2210 "/home/jens/Source/shotwell/src/Page.vala" +#line 2222 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp3_; -#line 2210 "/home/jens/Source/shotwell/src/Page.vala" +#line 2222 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 13674 "Page.c" +#line 13798 "Page.c" } void single_photo_page_invalidate (SinglePhotoPage* self, GdkRectangle* rect) { GtkDrawingArea* _tmp0_ = NULL; GdkWindow* _tmp1_ = NULL; -#line 2213 "/home/jens/Source/shotwell/src/Page.vala" +#line 2225 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2213 "/home/jens/Source/shotwell/src/Page.vala" +#line 2225 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (rect != NULL); -#line 2214 "/home/jens/Source/shotwell/src/Page.vala" +#line 2226 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->canvas; -#line 2214 "/home/jens/Source/shotwell/src/Page.vala" +#line 2226 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 2214 "/home/jens/Source/shotwell/src/Page.vala" +#line 2226 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp1_ != NULL) { -#line 13691 "Page.c" +#line 13815 "Page.c" GtkDrawingArea* _tmp2_ = NULL; GdkWindow* _tmp3_ = NULL; GdkRectangle _tmp4_ = {0}; -#line 2215 "/home/jens/Source/shotwell/src/Page.vala" +#line 2227 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = self->canvas; -#line 2215 "/home/jens/Source/shotwell/src/Page.vala" +#line 2227 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget)); -#line 2215 "/home/jens/Source/shotwell/src/Page.vala" +#line 2227 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = *rect; -#line 2215 "/home/jens/Source/shotwell/src/Page.vala" +#line 2227 "/home/jens/Source/shotwell/src/Page.vala" gdk_window_invalidate_rect (_tmp3_, &_tmp4_, FALSE); -#line 13703 "Page.c" +#line 13827 "Page.c" } } @@ -13707,51 +13831,51 @@ void single_photo_page_invalidate (SinglePhotoPage* self, GdkRectangle* rect) { void single_photo_page_invalidate_all (SinglePhotoPage* self) { GtkDrawingArea* _tmp0_ = NULL; GdkWindow* _tmp1_ = NULL; -#line 2218 "/home/jens/Source/shotwell/src/Page.vala" +#line 2230 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2219 "/home/jens/Source/shotwell/src/Page.vala" +#line 2231 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->canvas; -#line 2219 "/home/jens/Source/shotwell/src/Page.vala" +#line 2231 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 2219 "/home/jens/Source/shotwell/src/Page.vala" +#line 2231 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp1_ != NULL) { -#line 13719 "Page.c" +#line 13843 "Page.c" GtkDrawingArea* _tmp2_ = NULL; GdkWindow* _tmp3_ = NULL; -#line 2220 "/home/jens/Source/shotwell/src/Page.vala" +#line 2232 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = self->canvas; -#line 2220 "/home/jens/Source/shotwell/src/Page.vala" +#line 2232 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget)); -#line 2220 "/home/jens/Source/shotwell/src/Page.vala" +#line 2232 "/home/jens/Source/shotwell/src/Page.vala" gdk_window_invalidate_rect (_tmp3_, NULL, FALSE); -#line 13728 "Page.c" +#line 13852 "Page.c" } } static void single_photo_page_on_viewport_resize (SinglePhotoPage* self) { -#line 2223 "/home/jens/Source/shotwell/src/Page.vala" +#line 2235 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2225 "/home/jens/Source/shotwell/src/Page.vala" +#line 2237 "/home/jens/Source/shotwell/src/Page.vala" single_photo_page_internal_repaint (self, TRUE, NULL); -#line 13738 "Page.c" +#line 13862 "Page.c" } static void single_photo_page_real_on_resize_finished (Page* base, GdkRectangle* rect) { SinglePhotoPage * self; GdkRectangle _tmp0_ = {0}; -#line 2228 "/home/jens/Source/shotwell/src/Page.vala" +#line 2240 "/home/jens/Source/shotwell/src/Page.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage); -#line 2228 "/home/jens/Source/shotwell/src/Page.vala" +#line 2240 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (rect != NULL); -#line 2229 "/home/jens/Source/shotwell/src/Page.vala" +#line 2241 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = *rect; -#line 2229 "/home/jens/Source/shotwell/src/Page.vala" +#line 2241 "/home/jens/Source/shotwell/src/Page.vala" PAGE_CLASS (single_photo_page_parent_class)->on_resize_finished (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), &_tmp0_); -#line 2232 "/home/jens/Source/shotwell/src/Page.vala" +#line 2244 "/home/jens/Source/shotwell/src/Page.vala" single_photo_page_repaint (self, NULL); -#line 13755 "Page.c" +#line 13879 "Page.c" } @@ -13762,114 +13886,114 @@ static gboolean single_photo_page_on_canvas_exposed (SinglePhotoPage* self, cair gint _tmp5_ = 0; gint _tmp6_ = 0; cairo_t* _tmp7_ = NULL; -#line 2235 "/home/jens/Source/shotwell/src/Page.vala" +#line 2247 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_SINGLE_PHOTO_PAGE (self), FALSE); -#line 2235 "/home/jens/Source/shotwell/src/Page.vala" +#line 2247 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (exposed_ctx != NULL, FALSE); -#line 2238 "/home/jens/Source/shotwell/src/Page.vala" +#line 2250 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->pixmap; -#line 2238 "/home/jens/Source/shotwell/src/Page.vala" +#line 2250 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp0_ != NULL) { -#line 13774 "Page.c" +#line 13898 "Page.c" cairo_t* _tmp1_ = NULL; cairo_surface_t* _tmp2_ = NULL; -#line 2239 "/home/jens/Source/shotwell/src/Page.vala" +#line 2251 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = exposed_ctx; -#line 2239 "/home/jens/Source/shotwell/src/Page.vala" +#line 2251 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = self->priv->pixmap; -#line 2239 "/home/jens/Source/shotwell/src/Page.vala" +#line 2251 "/home/jens/Source/shotwell/src/Page.vala" cairo_set_source_surface (_tmp1_, _tmp2_, (gdouble) 0, (gdouble) 0); -#line 13783 "Page.c" +#line 13907 "Page.c" } else { cairo_t* _tmp3_ = NULL; -#line 2241 "/home/jens/Source/shotwell/src/Page.vala" +#line 2253 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = exposed_ctx; -#line 2241 "/home/jens/Source/shotwell/src/Page.vala" +#line 2253 "/home/jens/Source/shotwell/src/Page.vala" set_source_color_from_string (_tmp3_, "#000"); -#line 13790 "Page.c" +#line 13914 "Page.c" } -#line 2243 "/home/jens/Source/shotwell/src/Page.vala" +#line 2255 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = exposed_ctx; -#line 2243 "/home/jens/Source/shotwell/src/Page.vala" +#line 2255 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = gtk_widget_get_allocated_width (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 2243 "/home/jens/Source/shotwell/src/Page.vala" +#line 2255 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = gtk_widget_get_allocated_height (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 2243 "/home/jens/Source/shotwell/src/Page.vala" +#line 2255 "/home/jens/Source/shotwell/src/Page.vala" cairo_rectangle (_tmp4_, (gdouble) 0, (gdouble) 0, (gdouble) _tmp5_, (gdouble) _tmp6_); -#line 2244 "/home/jens/Source/shotwell/src/Page.vala" +#line 2256 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = exposed_ctx; -#line 2244 "/home/jens/Source/shotwell/src/Page.vala" +#line 2256 "/home/jens/Source/shotwell/src/Page.vala" cairo_paint (_tmp7_); -#line 2246 "/home/jens/Source/shotwell/src/Page.vala" +#line 2258 "/home/jens/Source/shotwell/src/Page.vala" result = TRUE; -#line 2246 "/home/jens/Source/shotwell/src/Page.vala" +#line 2258 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 13808 "Page.c" +#line 13932 "Page.c" } static void single_photo_page_real_new_surface (SinglePhotoPage* self, cairo_t* ctx, Dimensions* ctx_dim) { -#line 2249 "/home/jens/Source/shotwell/src/Page.vala" +#line 2261 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (ctx != NULL); -#line 2249 "/home/jens/Source/shotwell/src/Page.vala" +#line 2261 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (ctx_dim != NULL); -#line 13817 "Page.c" +#line 13941 "Page.c" } void single_photo_page_new_surface (SinglePhotoPage* self, cairo_t* ctx, Dimensions* ctx_dim) { -#line 2249 "/home/jens/Source/shotwell/src/Page.vala" +#line 2261 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2249 "/home/jens/Source/shotwell/src/Page.vala" +#line 2261 "/home/jens/Source/shotwell/src/Page.vala" SINGLE_PHOTO_PAGE_GET_CLASS (self)->new_surface (self, ctx, ctx_dim); -#line 13826 "Page.c" +#line 13950 "Page.c" } static void single_photo_page_real_updated_pixbuf (SinglePhotoPage* self, GdkPixbuf* pixbuf, SinglePhotoPageUpdateReason reason, Dimensions* old_dim) { -#line 2252 "/home/jens/Source/shotwell/src/Page.vala" +#line 2264 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (GDK_IS_PIXBUF (pixbuf)); -#line 2252 "/home/jens/Source/shotwell/src/Page.vala" +#line 2264 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (old_dim != NULL); -#line 13835 "Page.c" +#line 13959 "Page.c" } void single_photo_page_updated_pixbuf (SinglePhotoPage* self, GdkPixbuf* pixbuf, SinglePhotoPageUpdateReason reason, Dimensions* old_dim) { -#line 2252 "/home/jens/Source/shotwell/src/Page.vala" +#line 2264 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2252 "/home/jens/Source/shotwell/src/Page.vala" +#line 2264 "/home/jens/Source/shotwell/src/Page.vala" SINGLE_PHOTO_PAGE_GET_CLASS (self)->updated_pixbuf (self, pixbuf, reason, old_dim); -#line 13844 "Page.c" +#line 13968 "Page.c" } static void single_photo_page_real_paint (SinglePhotoPage* self, cairo_t* ctx, Dimensions* ctx_dim) { gboolean _tmp0_ = FALSE; gboolean _tmp1_ = FALSE; -#line 2255 "/home/jens/Source/shotwell/src/Page.vala" +#line 2267 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (ctx != NULL); -#line 2255 "/home/jens/Source/shotwell/src/Page.vala" +#line 2267 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (ctx_dim != NULL); -#line 2256 "/home/jens/Source/shotwell/src/Page.vala" +#line 2268 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = single_photo_page_is_zoom_supported (self); -#line 2256 "/home/jens/Source/shotwell/src/Page.vala" +#line 2268 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp1_) { -#line 13859 "Page.c" +#line 13983 "Page.c" gboolean _tmp2_ = FALSE; -#line 2256 "/home/jens/Source/shotwell/src/Page.vala" +#line 2268 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = zoom_state_is_default (&self->priv->static_zoom_state); -#line 2256 "/home/jens/Source/shotwell/src/Page.vala" +#line 2268 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = !_tmp2_; -#line 13865 "Page.c" +#line 13989 "Page.c" } else { -#line 2256 "/home/jens/Source/shotwell/src/Page.vala" +#line 2268 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = FALSE; -#line 13869 "Page.c" +#line 13993 "Page.c" } -#line 2256 "/home/jens/Source/shotwell/src/Page.vala" +#line 2268 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp0_) { -#line 13873 "Page.c" +#line 13997 "Page.c" cairo_t* _tmp3_ = NULL; cairo_t* _tmp4_ = NULL; Dimensions _tmp5_ = {0}; @@ -13878,31 +14002,31 @@ static void single_photo_page_real_paint (SinglePhotoPage* self, cairo_t* ctx, D gint _tmp8_ = 0; cairo_t* _tmp9_ = NULL; ZoomState _tmp10_ = {0}; -#line 2257 "/home/jens/Source/shotwell/src/Page.vala" +#line 2269 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = ctx; -#line 2257 "/home/jens/Source/shotwell/src/Page.vala" +#line 2269 "/home/jens/Source/shotwell/src/Page.vala" set_source_color_from_string (_tmp3_, "#000"); -#line 2258 "/home/jens/Source/shotwell/src/Page.vala" +#line 2270 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = ctx; -#line 2258 "/home/jens/Source/shotwell/src/Page.vala" +#line 2270 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = self->priv->pixmap_dim; -#line 2258 "/home/jens/Source/shotwell/src/Page.vala" +#line 2270 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = _tmp5_.width; -#line 2258 "/home/jens/Source/shotwell/src/Page.vala" +#line 2270 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = self->priv->pixmap_dim; -#line 2258 "/home/jens/Source/shotwell/src/Page.vala" +#line 2270 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = _tmp7_.height; -#line 2258 "/home/jens/Source/shotwell/src/Page.vala" +#line 2270 "/home/jens/Source/shotwell/src/Page.vala" cairo_rectangle (_tmp4_, (gdouble) 0, (gdouble) 0, (gdouble) _tmp6_, (gdouble) _tmp8_); -#line 2259 "/home/jens/Source/shotwell/src/Page.vala" +#line 2271 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = ctx; -#line 2259 "/home/jens/Source/shotwell/src/Page.vala" +#line 2271 "/home/jens/Source/shotwell/src/Page.vala" cairo_fill (_tmp9_); -#line 2261 "/home/jens/Source/shotwell/src/Page.vala" +#line 2273 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = self->priv->static_zoom_state; -#line 2261 "/home/jens/Source/shotwell/src/Page.vala" +#line 2273 "/home/jens/Source/shotwell/src/Page.vala" single_photo_page_render_zoomed_to_pixmap (self, &_tmp10_); -#line 13906 "Page.c" +#line 14030 "Page.c" } else { TransitionClock* _tmp11_ = NULL; cairo_t* _tmp12_ = NULL; @@ -13911,23 +14035,23 @@ static void single_photo_page_real_paint (SinglePhotoPage* self, cairo_t* ctx, D Dimensions _tmp15_ = {0}; gint _tmp16_ = 0; gboolean _tmp17_ = FALSE; -#line 2262 "/home/jens/Source/shotwell/src/Page.vala" +#line 2274 "/home/jens/Source/shotwell/src/Page.vala" _tmp11_ = self->priv->transition_clock; -#line 2262 "/home/jens/Source/shotwell/src/Page.vala" +#line 2274 "/home/jens/Source/shotwell/src/Page.vala" _tmp12_ = ctx; -#line 2262 "/home/jens/Source/shotwell/src/Page.vala" +#line 2274 "/home/jens/Source/shotwell/src/Page.vala" _tmp13_ = *ctx_dim; -#line 2262 "/home/jens/Source/shotwell/src/Page.vala" +#line 2274 "/home/jens/Source/shotwell/src/Page.vala" _tmp14_ = _tmp13_.width; -#line 2262 "/home/jens/Source/shotwell/src/Page.vala" +#line 2274 "/home/jens/Source/shotwell/src/Page.vala" _tmp15_ = *ctx_dim; -#line 2262 "/home/jens/Source/shotwell/src/Page.vala" +#line 2274 "/home/jens/Source/shotwell/src/Page.vala" _tmp16_ = _tmp15_.height; -#line 2262 "/home/jens/Source/shotwell/src/Page.vala" +#line 2274 "/home/jens/Source/shotwell/src/Page.vala" _tmp17_ = transition_clock_paint (_tmp11_, _tmp12_, _tmp14_, _tmp16_); -#line 2262 "/home/jens/Source/shotwell/src/Page.vala" +#line 2274 "/home/jens/Source/shotwell/src/Page.vala" if (!_tmp17_) { -#line 13931 "Page.c" +#line 14055 "Page.c" cairo_t* _tmp18_ = NULL; cairo_t* _tmp19_ = NULL; Dimensions _tmp20_ = {0}; @@ -13942,56 +14066,56 @@ static void single_photo_page_real_paint (SinglePhotoPage* self, cairo_t* ctx, D GdkRectangle _tmp29_ = {0}; gint _tmp30_ = 0; cairo_t* _tmp31_ = NULL; -#line 2264 "/home/jens/Source/shotwell/src/Page.vala" +#line 2276 "/home/jens/Source/shotwell/src/Page.vala" _tmp18_ = ctx; -#line 2264 "/home/jens/Source/shotwell/src/Page.vala" +#line 2276 "/home/jens/Source/shotwell/src/Page.vala" set_source_color_from_string (_tmp18_, "#000"); -#line 2266 "/home/jens/Source/shotwell/src/Page.vala" +#line 2278 "/home/jens/Source/shotwell/src/Page.vala" _tmp19_ = ctx; -#line 2266 "/home/jens/Source/shotwell/src/Page.vala" +#line 2278 "/home/jens/Source/shotwell/src/Page.vala" _tmp20_ = self->priv->pixmap_dim; -#line 2266 "/home/jens/Source/shotwell/src/Page.vala" +#line 2278 "/home/jens/Source/shotwell/src/Page.vala" _tmp21_ = _tmp20_.width; -#line 2266 "/home/jens/Source/shotwell/src/Page.vala" +#line 2278 "/home/jens/Source/shotwell/src/Page.vala" _tmp22_ = self->priv->pixmap_dim; -#line 2266 "/home/jens/Source/shotwell/src/Page.vala" +#line 2278 "/home/jens/Source/shotwell/src/Page.vala" _tmp23_ = _tmp22_.height; -#line 2266 "/home/jens/Source/shotwell/src/Page.vala" +#line 2278 "/home/jens/Source/shotwell/src/Page.vala" cairo_rectangle (_tmp19_, (gdouble) 0, (gdouble) 0, (gdouble) _tmp21_, (gdouble) _tmp23_); -#line 2267 "/home/jens/Source/shotwell/src/Page.vala" +#line 2279 "/home/jens/Source/shotwell/src/Page.vala" _tmp24_ = ctx; -#line 2267 "/home/jens/Source/shotwell/src/Page.vala" +#line 2279 "/home/jens/Source/shotwell/src/Page.vala" cairo_fill (_tmp24_); -#line 2269 "/home/jens/Source/shotwell/src/Page.vala" +#line 2281 "/home/jens/Source/shotwell/src/Page.vala" _tmp25_ = ctx; -#line 2269 "/home/jens/Source/shotwell/src/Page.vala" +#line 2281 "/home/jens/Source/shotwell/src/Page.vala" _tmp26_ = self->priv->scaled; -#line 2269 "/home/jens/Source/shotwell/src/Page.vala" +#line 2281 "/home/jens/Source/shotwell/src/Page.vala" _tmp27_ = self->priv->scaled_pos; -#line 2269 "/home/jens/Source/shotwell/src/Page.vala" +#line 2281 "/home/jens/Source/shotwell/src/Page.vala" _tmp28_ = _tmp27_.x; -#line 2269 "/home/jens/Source/shotwell/src/Page.vala" +#line 2281 "/home/jens/Source/shotwell/src/Page.vala" _tmp29_ = self->priv->scaled_pos; -#line 2269 "/home/jens/Source/shotwell/src/Page.vala" +#line 2281 "/home/jens/Source/shotwell/src/Page.vala" _tmp30_ = _tmp29_.y; -#line 2269 "/home/jens/Source/shotwell/src/Page.vala" +#line 2281 "/home/jens/Source/shotwell/src/Page.vala" gdk_cairo_set_source_pixbuf (_tmp25_, _tmp26_, (gdouble) _tmp28_, (gdouble) _tmp30_); -#line 2270 "/home/jens/Source/shotwell/src/Page.vala" +#line 2282 "/home/jens/Source/shotwell/src/Page.vala" _tmp31_ = ctx; -#line 2270 "/home/jens/Source/shotwell/src/Page.vala" +#line 2282 "/home/jens/Source/shotwell/src/Page.vala" cairo_paint (_tmp31_); -#line 13984 "Page.c" +#line 14108 "Page.c" } } } void single_photo_page_paint (SinglePhotoPage* self, cairo_t* ctx, Dimensions* ctx_dim) { -#line 2255 "/home/jens/Source/shotwell/src/Page.vala" +#line 2267 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2255 "/home/jens/Source/shotwell/src/Page.vala" +#line 2267 "/home/jens/Source/shotwell/src/Page.vala" SINGLE_PHOTO_PAGE_GET_CLASS (self)->paint (self, ctx, ctx_dim); -#line 13995 "Page.c" +#line 14119 "Page.c" } @@ -13999,44 +14123,44 @@ static void single_photo_page_repaint_pixmap (SinglePhotoPage* self) { cairo_t* _tmp0_ = NULL; cairo_t* _tmp1_ = NULL; Dimensions _tmp2_ = {0}; -#line 2274 "/home/jens/Source/shotwell/src/Page.vala" +#line 2286 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2275 "/home/jens/Source/shotwell/src/Page.vala" +#line 2287 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->pixmap_ctx; -#line 2275 "/home/jens/Source/shotwell/src/Page.vala" +#line 2287 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp0_ == NULL) { -#line 2276 "/home/jens/Source/shotwell/src/Page.vala" +#line 2288 "/home/jens/Source/shotwell/src/Page.vala" return; -#line 14011 "Page.c" +#line 14135 "Page.c" } -#line 2278 "/home/jens/Source/shotwell/src/Page.vala" +#line 2290 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = self->priv->pixmap_ctx; -#line 2278 "/home/jens/Source/shotwell/src/Page.vala" +#line 2290 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = self->priv->pixmap_dim; -#line 2278 "/home/jens/Source/shotwell/src/Page.vala" +#line 2290 "/home/jens/Source/shotwell/src/Page.vala" single_photo_page_paint (self, _tmp1_, &_tmp2_); -#line 2279 "/home/jens/Source/shotwell/src/Page.vala" +#line 2291 "/home/jens/Source/shotwell/src/Page.vala" single_photo_page_invalidate_all (self); -#line 14021 "Page.c" +#line 14145 "Page.c" } void single_photo_page_repaint (SinglePhotoPage* self, Direction* direction) { Direction* _tmp0_ = NULL; -#line 2282 "/home/jens/Source/shotwell/src/Page.vala" +#line 2294 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2283 "/home/jens/Source/shotwell/src/Page.vala" +#line 2295 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = direction; -#line 2283 "/home/jens/Source/shotwell/src/Page.vala" +#line 2295 "/home/jens/Source/shotwell/src/Page.vala" single_photo_page_internal_repaint (self, FALSE, _tmp0_); -#line 14033 "Page.c" +#line 14157 "Page.c" } static void _single_photo_page_repaint_pixmap_transition_clock_repaint_callback (gpointer self) { -#line 2371 "/home/jens/Source/shotwell/src/Page.vala" +#line 2383 "/home/jens/Source/shotwell/src/Page.vala" single_photo_page_repaint_pixmap ((SinglePhotoPage*) self); -#line 14040 "Page.c" +#line 14164 "Page.c" } @@ -14079,171 +14203,171 @@ static void single_photo_page_internal_repaint (SinglePhotoPage* self, gboolean Direction* _tmp84_ = NULL; TransitionClock* _tmp98_ = NULL; gboolean _tmp99_ = FALSE; -#line 2286 "/home/jens/Source/shotwell/src/Page.vala" +#line 2298 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2288 "/home/jens/Source/shotwell/src/Page.vala" +#line 2300 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = page_is_in_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2288 "/home/jens/Source/shotwell/src/Page.vala" +#line 2300 "/home/jens/Source/shotwell/src/Page.vala" if (!_tmp0_) { -#line 2289 "/home/jens/Source/shotwell/src/Page.vala" +#line 2301 "/home/jens/Source/shotwell/src/Page.vala" _cairo_surface_destroy0 (self->priv->pixmap); -#line 2289 "/home/jens/Source/shotwell/src/Page.vala" +#line 2301 "/home/jens/Source/shotwell/src/Page.vala" self->priv->pixmap = NULL; -#line 2290 "/home/jens/Source/shotwell/src/Page.vala" +#line 2302 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->priv->scaled); -#line 2290 "/home/jens/Source/shotwell/src/Page.vala" +#line 2302 "/home/jens/Source/shotwell/src/Page.vala" self->priv->scaled = NULL; -#line 2292 "/home/jens/Source/shotwell/src/Page.vala" +#line 2304 "/home/jens/Source/shotwell/src/Page.vala" return; -#line 14099 "Page.c" +#line 14223 "Page.c" } -#line 2296 "/home/jens/Source/shotwell/src/Page.vala" +#line 2308 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = self->priv->unscaled; -#line 2296 "/home/jens/Source/shotwell/src/Page.vala" +#line 2308 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp2_ == NULL) { -#line 2296 "/home/jens/Source/shotwell/src/Page.vala" +#line 2308 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = TRUE; -#line 14107 "Page.c" +#line 14231 "Page.c" } else { GtkDrawingArea* _tmp3_ = NULL; GdkWindow* _tmp4_ = NULL; -#line 2296 "/home/jens/Source/shotwell/src/Page.vala" +#line 2308 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = self->canvas; -#line 2296 "/home/jens/Source/shotwell/src/Page.vala" +#line 2308 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget)); -#line 2296 "/home/jens/Source/shotwell/src/Page.vala" +#line 2308 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = _tmp4_ == NULL; -#line 14117 "Page.c" +#line 14241 "Page.c" } -#line 2296 "/home/jens/Source/shotwell/src/Page.vala" +#line 2308 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp1_) { -#line 2297 "/home/jens/Source/shotwell/src/Page.vala" +#line 2309 "/home/jens/Source/shotwell/src/Page.vala" return; -#line 14123 "Page.c" +#line 14247 "Page.c" } -#line 2300 "/home/jens/Source/shotwell/src/Page.vala" +#line 2312 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = self->viewport; -#line 2300 "/home/jens/Source/shotwell/src/Page.vala" +#line 2312 "/home/jens/Source/shotwell/src/Page.vala" gtk_widget_get_allocation (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget), &_tmp6_); -#line 2300 "/home/jens/Source/shotwell/src/Page.vala" +#line 2312 "/home/jens/Source/shotwell/src/Page.vala" allocation = _tmp6_; -#line 2302 "/home/jens/Source/shotwell/src/Page.vala" +#line 2314 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = allocation; -#line 2302 "/home/jens/Source/shotwell/src/Page.vala" +#line 2314 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = _tmp7_.width; -#line 2302 "/home/jens/Source/shotwell/src/Page.vala" +#line 2314 "/home/jens/Source/shotwell/src/Page.vala" width = _tmp8_; -#line 2303 "/home/jens/Source/shotwell/src/Page.vala" +#line 2315 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = allocation; -#line 2303 "/home/jens/Source/shotwell/src/Page.vala" +#line 2315 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = _tmp9_.height; -#line 2303 "/home/jens/Source/shotwell/src/Page.vala" +#line 2315 "/home/jens/Source/shotwell/src/Page.vala" height = _tmp10_; -#line 2305 "/home/jens/Source/shotwell/src/Page.vala" +#line 2317 "/home/jens/Source/shotwell/src/Page.vala" _tmp12_ = width; -#line 2305 "/home/jens/Source/shotwell/src/Page.vala" +#line 2317 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp12_ <= 0) { -#line 2305 "/home/jens/Source/shotwell/src/Page.vala" +#line 2317 "/home/jens/Source/shotwell/src/Page.vala" _tmp11_ = TRUE; -#line 14149 "Page.c" +#line 14273 "Page.c" } else { gint _tmp13_ = 0; -#line 2305 "/home/jens/Source/shotwell/src/Page.vala" +#line 2317 "/home/jens/Source/shotwell/src/Page.vala" _tmp13_ = height; -#line 2305 "/home/jens/Source/shotwell/src/Page.vala" +#line 2317 "/home/jens/Source/shotwell/src/Page.vala" _tmp11_ = _tmp13_ <= 0; -#line 14156 "Page.c" +#line 14280 "Page.c" } -#line 2305 "/home/jens/Source/shotwell/src/Page.vala" +#line 2317 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp11_) { -#line 2306 "/home/jens/Source/shotwell/src/Page.vala" +#line 2318 "/home/jens/Source/shotwell/src/Page.vala" return; -#line 14162 "Page.c" +#line 14286 "Page.c" } -#line 2308 "/home/jens/Source/shotwell/src/Page.vala" +#line 2320 "/home/jens/Source/shotwell/src/Page.vala" _tmp14_ = self->priv->scaled; -#line 2308 "/home/jens/Source/shotwell/src/Page.vala" +#line 2320 "/home/jens/Source/shotwell/src/Page.vala" new_pixbuf = _tmp14_ == NULL; -#line 2311 "/home/jens/Source/shotwell/src/Page.vala" +#line 2323 "/home/jens/Source/shotwell/src/Page.vala" _tmp15_ = self->priv->scaled_pos; -#line 2311 "/home/jens/Source/shotwell/src/Page.vala" +#line 2323 "/home/jens/Source/shotwell/src/Page.vala" dimensions_for_rectangle (&_tmp15_, &_tmp16_); -#line 2311 "/home/jens/Source/shotwell/src/Page.vala" +#line 2323 "/home/jens/Source/shotwell/src/Page.vala" old_scaled_dim = _tmp16_; -#line 2312 "/home/jens/Source/shotwell/src/Page.vala" +#line 2324 "/home/jens/Source/shotwell/src/Page.vala" _tmp17_ = self->priv->scaled_pos; -#line 2312 "/home/jens/Source/shotwell/src/Page.vala" +#line 2324 "/home/jens/Source/shotwell/src/Page.vala" old_scaled_pos = _tmp17_; -#line 2315 "/home/jens/Source/shotwell/src/Page.vala" +#line 2327 "/home/jens/Source/shotwell/src/Page.vala" _tmp19_ = self->priv->pixmap_dim; -#line 2315 "/home/jens/Source/shotwell/src/Page.vala" +#line 2327 "/home/jens/Source/shotwell/src/Page.vala" _tmp20_ = _tmp19_.width; -#line 2315 "/home/jens/Source/shotwell/src/Page.vala" +#line 2327 "/home/jens/Source/shotwell/src/Page.vala" _tmp21_ = width; -#line 2315 "/home/jens/Source/shotwell/src/Page.vala" +#line 2327 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp20_ != _tmp21_) { -#line 2315 "/home/jens/Source/shotwell/src/Page.vala" +#line 2327 "/home/jens/Source/shotwell/src/Page.vala" _tmp18_ = TRUE; -#line 14188 "Page.c" +#line 14312 "Page.c" } else { Dimensions _tmp22_ = {0}; gint _tmp23_ = 0; gint _tmp24_ = 0; -#line 2315 "/home/jens/Source/shotwell/src/Page.vala" +#line 2327 "/home/jens/Source/shotwell/src/Page.vala" _tmp22_ = self->priv->pixmap_dim; -#line 2315 "/home/jens/Source/shotwell/src/Page.vala" +#line 2327 "/home/jens/Source/shotwell/src/Page.vala" _tmp23_ = _tmp22_.height; -#line 2315 "/home/jens/Source/shotwell/src/Page.vala" +#line 2327 "/home/jens/Source/shotwell/src/Page.vala" _tmp24_ = height; -#line 2315 "/home/jens/Source/shotwell/src/Page.vala" +#line 2327 "/home/jens/Source/shotwell/src/Page.vala" _tmp18_ = _tmp23_ != _tmp24_; -#line 14201 "Page.c" +#line 14325 "Page.c" } -#line 2315 "/home/jens/Source/shotwell/src/Page.vala" +#line 2327 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp18_) { -#line 2316 "/home/jens/Source/shotwell/src/Page.vala" +#line 2328 "/home/jens/Source/shotwell/src/Page.vala" _cairo_surface_destroy0 (self->priv->pixmap); -#line 2316 "/home/jens/Source/shotwell/src/Page.vala" +#line 2328 "/home/jens/Source/shotwell/src/Page.vala" self->priv->pixmap = NULL; -#line 14209 "Page.c" +#line 14333 "Page.c" } -#line 2319 "/home/jens/Source/shotwell/src/Page.vala" +#line 2331 "/home/jens/Source/shotwell/src/Page.vala" new_pixmap = FALSE; -#line 2320 "/home/jens/Source/shotwell/src/Page.vala" +#line 2332 "/home/jens/Source/shotwell/src/Page.vala" _tmp25_ = self->priv->pixmap; -#line 2320 "/home/jens/Source/shotwell/src/Page.vala" +#line 2332 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp25_ == NULL) { -#line 14217 "Page.c" +#line 14341 "Page.c" gint _tmp26_ = 0; gint _tmp27_ = 0; -#line 2321 "/home/jens/Source/shotwell/src/Page.vala" +#line 2333 "/home/jens/Source/shotwell/src/Page.vala" _tmp26_ = width; -#line 2321 "/home/jens/Source/shotwell/src/Page.vala" +#line 2333 "/home/jens/Source/shotwell/src/Page.vala" _tmp27_ = height; -#line 2321 "/home/jens/Source/shotwell/src/Page.vala" +#line 2333 "/home/jens/Source/shotwell/src/Page.vala" single_photo_page_init_pixmap (self, _tmp26_, _tmp27_); -#line 2322 "/home/jens/Source/shotwell/src/Page.vala" +#line 2334 "/home/jens/Source/shotwell/src/Page.vala" new_pixmap = TRUE; -#line 14228 "Page.c" +#line 14352 "Page.c" } -#line 2325 "/home/jens/Source/shotwell/src/Page.vala" +#line 2337 "/home/jens/Source/shotwell/src/Page.vala" _tmp29_ = new_pixbuf; -#line 2325 "/home/jens/Source/shotwell/src/Page.vala" +#line 2337 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp29_) { -#line 2325 "/home/jens/Source/shotwell/src/Page.vala" +#line 2337 "/home/jens/Source/shotwell/src/Page.vala" _tmp28_ = TRUE; -#line 14236 "Page.c" +#line 14360 "Page.c" } else { gboolean _tmp30_ = FALSE; -#line 2325 "/home/jens/Source/shotwell/src/Page.vala" +#line 2337 "/home/jens/Source/shotwell/src/Page.vala" _tmp30_ = new_pixmap; -#line 2325 "/home/jens/Source/shotwell/src/Page.vala" +#line 2337 "/home/jens/Source/shotwell/src/Page.vala" _tmp28_ = _tmp30_; -#line 14243 "Page.c" +#line 14367 "Page.c" } -#line 2325 "/home/jens/Source/shotwell/src/Page.vala" +#line 2337 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp28_) { -#line 14247 "Page.c" +#line 14371 "Page.c" Dimensions unscaled_dim = {0}; GdkPixbuf* _tmp31_ = NULL; Dimensions _tmp32_ = {0}; @@ -14268,155 +14392,155 @@ static void single_photo_page_internal_repaint (SinglePhotoPage* self, gboolean gint _tmp60_ = 0; Dimensions _tmp61_ = {0}; gint _tmp62_ = 0; -#line 2326 "/home/jens/Source/shotwell/src/Page.vala" +#line 2338 "/home/jens/Source/shotwell/src/Page.vala" _tmp31_ = self->priv->unscaled; -#line 2326 "/home/jens/Source/shotwell/src/Page.vala" +#line 2338 "/home/jens/Source/shotwell/src/Page.vala" dimensions_for_pixbuf (_tmp31_, &_tmp32_); -#line 2326 "/home/jens/Source/shotwell/src/Page.vala" +#line 2338 "/home/jens/Source/shotwell/src/Page.vala" unscaled_dim = _tmp32_; -#line 2330 "/home/jens/Source/shotwell/src/Page.vala" +#line 2342 "/home/jens/Source/shotwell/src/Page.vala" dimensions_init (&scaled_dim, 0, 0); -#line 2331 "/home/jens/Source/shotwell/src/Page.vala" +#line 2343 "/home/jens/Source/shotwell/src/Page.vala" _tmp36_ = self->priv->scale_up_to_viewport; -#line 2331 "/home/jens/Source/shotwell/src/Page.vala" +#line 2343 "/home/jens/Source/shotwell/src/Page.vala" if (!_tmp36_) { -#line 14284 "Page.c" +#line 14408 "Page.c" gboolean _tmp37_ = FALSE; -#line 2331 "/home/jens/Source/shotwell/src/Page.vala" +#line 2343 "/home/jens/Source/shotwell/src/Page.vala" _tmp37_ = dimensions_has_area (&self->priv->max_dim); -#line 2331 "/home/jens/Source/shotwell/src/Page.vala" +#line 2343 "/home/jens/Source/shotwell/src/Page.vala" _tmp35_ = _tmp37_; -#line 14290 "Page.c" +#line 14414 "Page.c" } else { -#line 2331 "/home/jens/Source/shotwell/src/Page.vala" +#line 2343 "/home/jens/Source/shotwell/src/Page.vala" _tmp35_ = FALSE; -#line 14294 "Page.c" +#line 14418 "Page.c" } -#line 2331 "/home/jens/Source/shotwell/src/Page.vala" +#line 2343 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp35_) { -#line 14298 "Page.c" +#line 14422 "Page.c" Dimensions _tmp38_ = {0}; gint _tmp39_ = 0; gint _tmp40_ = 0; -#line 2331 "/home/jens/Source/shotwell/src/Page.vala" +#line 2343 "/home/jens/Source/shotwell/src/Page.vala" _tmp38_ = self->priv->max_dim; -#line 2331 "/home/jens/Source/shotwell/src/Page.vala" +#line 2343 "/home/jens/Source/shotwell/src/Page.vala" _tmp39_ = _tmp38_.width; -#line 2331 "/home/jens/Source/shotwell/src/Page.vala" +#line 2343 "/home/jens/Source/shotwell/src/Page.vala" _tmp40_ = width; -#line 2331 "/home/jens/Source/shotwell/src/Page.vala" +#line 2343 "/home/jens/Source/shotwell/src/Page.vala" _tmp34_ = _tmp39_ < _tmp40_; -#line 14310 "Page.c" +#line 14434 "Page.c" } else { -#line 2331 "/home/jens/Source/shotwell/src/Page.vala" +#line 2343 "/home/jens/Source/shotwell/src/Page.vala" _tmp34_ = FALSE; -#line 14314 "Page.c" +#line 14438 "Page.c" } -#line 2331 "/home/jens/Source/shotwell/src/Page.vala" +#line 2343 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp34_) { -#line 14318 "Page.c" +#line 14442 "Page.c" Dimensions _tmp41_ = {0}; gint _tmp42_ = 0; gint _tmp43_ = 0; -#line 2331 "/home/jens/Source/shotwell/src/Page.vala" +#line 2343 "/home/jens/Source/shotwell/src/Page.vala" _tmp41_ = self->priv->max_dim; -#line 2331 "/home/jens/Source/shotwell/src/Page.vala" +#line 2343 "/home/jens/Source/shotwell/src/Page.vala" _tmp42_ = _tmp41_.height; -#line 2331 "/home/jens/Source/shotwell/src/Page.vala" +#line 2343 "/home/jens/Source/shotwell/src/Page.vala" _tmp43_ = height; -#line 2331 "/home/jens/Source/shotwell/src/Page.vala" +#line 2343 "/home/jens/Source/shotwell/src/Page.vala" _tmp33_ = _tmp42_ < _tmp43_; -#line 14330 "Page.c" +#line 14454 "Page.c" } else { -#line 2331 "/home/jens/Source/shotwell/src/Page.vala" +#line 2343 "/home/jens/Source/shotwell/src/Page.vala" _tmp33_ = FALSE; -#line 14334 "Page.c" +#line 14458 "Page.c" } -#line 2331 "/home/jens/Source/shotwell/src/Page.vala" +#line 2343 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp33_) { -#line 14338 "Page.c" +#line 14462 "Page.c" Dimensions _tmp44_ = {0}; -#line 2332 "/home/jens/Source/shotwell/src/Page.vala" +#line 2344 "/home/jens/Source/shotwell/src/Page.vala" _tmp44_ = self->priv->max_dim; -#line 2332 "/home/jens/Source/shotwell/src/Page.vala" +#line 2344 "/home/jens/Source/shotwell/src/Page.vala" scaled_dim = _tmp44_; -#line 14344 "Page.c" +#line 14468 "Page.c" } else { Dimensions _tmp45_ = {0}; Dimensions _tmp46_ = {0}; -#line 2334 "/home/jens/Source/shotwell/src/Page.vala" +#line 2346 "/home/jens/Source/shotwell/src/Page.vala" _tmp45_ = self->priv->pixmap_dim; -#line 2334 "/home/jens/Source/shotwell/src/Page.vala" +#line 2346 "/home/jens/Source/shotwell/src/Page.vala" dimensions_get_scaled_proportional (&unscaled_dim, &_tmp45_, &_tmp46_); -#line 2334 "/home/jens/Source/shotwell/src/Page.vala" +#line 2346 "/home/jens/Source/shotwell/src/Page.vala" scaled_dim = _tmp46_; -#line 14354 "Page.c" +#line 14478 "Page.c" } -#line 2336 "/home/jens/Source/shotwell/src/Page.vala" +#line 2348 "/home/jens/Source/shotwell/src/Page.vala" _tmp47_ = width; -#line 2336 "/home/jens/Source/shotwell/src/Page.vala" +#line 2348 "/home/jens/Source/shotwell/src/Page.vala" _tmp48_ = scaled_dim; -#line 2336 "/home/jens/Source/shotwell/src/Page.vala" +#line 2348 "/home/jens/Source/shotwell/src/Page.vala" _tmp49_ = _tmp48_.width; -#line 2336 "/home/jens/Source/shotwell/src/Page.vala" +#line 2348 "/home/jens/Source/shotwell/src/Page.vala" _vala_assert (_tmp47_ >= _tmp49_, "width >= scaled_dim.width"); -#line 2337 "/home/jens/Source/shotwell/src/Page.vala" +#line 2349 "/home/jens/Source/shotwell/src/Page.vala" _tmp50_ = height; -#line 2337 "/home/jens/Source/shotwell/src/Page.vala" +#line 2349 "/home/jens/Source/shotwell/src/Page.vala" _tmp51_ = scaled_dim; -#line 2337 "/home/jens/Source/shotwell/src/Page.vala" +#line 2349 "/home/jens/Source/shotwell/src/Page.vala" _tmp52_ = _tmp51_.height; -#line 2337 "/home/jens/Source/shotwell/src/Page.vala" +#line 2349 "/home/jens/Source/shotwell/src/Page.vala" _vala_assert (_tmp50_ >= _tmp52_, "height >= scaled_dim.height"); -#line 2340 "/home/jens/Source/shotwell/src/Page.vala" +#line 2352 "/home/jens/Source/shotwell/src/Page.vala" _tmp53_ = width; -#line 2340 "/home/jens/Source/shotwell/src/Page.vala" +#line 2352 "/home/jens/Source/shotwell/src/Page.vala" _tmp54_ = scaled_dim; -#line 2340 "/home/jens/Source/shotwell/src/Page.vala" +#line 2352 "/home/jens/Source/shotwell/src/Page.vala" _tmp55_ = _tmp54_.width; -#line 2340 "/home/jens/Source/shotwell/src/Page.vala" +#line 2352 "/home/jens/Source/shotwell/src/Page.vala" self->priv->scaled_pos.x = (_tmp53_ - _tmp55_) / 2; -#line 2341 "/home/jens/Source/shotwell/src/Page.vala" +#line 2353 "/home/jens/Source/shotwell/src/Page.vala" _tmp56_ = height; -#line 2341 "/home/jens/Source/shotwell/src/Page.vala" +#line 2353 "/home/jens/Source/shotwell/src/Page.vala" _tmp57_ = scaled_dim; -#line 2341 "/home/jens/Source/shotwell/src/Page.vala" +#line 2353 "/home/jens/Source/shotwell/src/Page.vala" _tmp58_ = _tmp57_.height; -#line 2341 "/home/jens/Source/shotwell/src/Page.vala" +#line 2353 "/home/jens/Source/shotwell/src/Page.vala" self->priv->scaled_pos.y = (_tmp56_ - _tmp58_) / 2; -#line 2342 "/home/jens/Source/shotwell/src/Page.vala" +#line 2354 "/home/jens/Source/shotwell/src/Page.vala" _tmp59_ = scaled_dim; -#line 2342 "/home/jens/Source/shotwell/src/Page.vala" +#line 2354 "/home/jens/Source/shotwell/src/Page.vala" _tmp60_ = _tmp59_.width; -#line 2342 "/home/jens/Source/shotwell/src/Page.vala" +#line 2354 "/home/jens/Source/shotwell/src/Page.vala" self->priv->scaled_pos.width = _tmp60_; -#line 2343 "/home/jens/Source/shotwell/src/Page.vala" +#line 2355 "/home/jens/Source/shotwell/src/Page.vala" _tmp61_ = scaled_dim; -#line 2343 "/home/jens/Source/shotwell/src/Page.vala" +#line 2355 "/home/jens/Source/shotwell/src/Page.vala" _tmp62_ = _tmp61_.height; -#line 2343 "/home/jens/Source/shotwell/src/Page.vala" +#line 2355 "/home/jens/Source/shotwell/src/Page.vala" self->priv->scaled_pos.height = _tmp62_; -#line 14400 "Page.c" +#line 14524 "Page.c" } -#line 2346 "/home/jens/Source/shotwell/src/Page.vala" +#line 2358 "/home/jens/Source/shotwell/src/Page.vala" _tmp64_ = fast; -#line 2346 "/home/jens/Source/shotwell/src/Page.vala" +#line 2358 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp64_) { -#line 2346 "/home/jens/Source/shotwell/src/Page.vala" +#line 2358 "/home/jens/Source/shotwell/src/Page.vala" _tmp63_ = SINGLE_PHOTO_PAGE_FAST_INTERP; -#line 14408 "Page.c" +#line 14532 "Page.c" } else { -#line 2346 "/home/jens/Source/shotwell/src/Page.vala" +#line 2358 "/home/jens/Source/shotwell/src/Page.vala" _tmp63_ = SINGLE_PHOTO_PAGE_QUALITY_INTERP; -#line 14412 "Page.c" +#line 14536 "Page.c" } -#line 2346 "/home/jens/Source/shotwell/src/Page.vala" +#line 2358 "/home/jens/Source/shotwell/src/Page.vala" interp = _tmp63_; -#line 2349 "/home/jens/Source/shotwell/src/Page.vala" +#line 2361 "/home/jens/Source/shotwell/src/Page.vala" _tmp65_ = self->priv->scaled; -#line 2349 "/home/jens/Source/shotwell/src/Page.vala" +#line 2361 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp65_ == NULL) { -#line 14420 "Page.c" +#line 14544 "Page.c" GdkPixbuf* _tmp66_ = NULL; GdkRectangle _tmp67_ = {0}; Dimensions _tmp68_ = {0}; @@ -14431,101 +14555,101 @@ static void single_photo_page_internal_repaint (SinglePhotoPage* self, gboolean GdkPixbuf* _tmp79_ = NULL; SinglePhotoPageUpdateReason _tmp80_ = 0; Dimensions _tmp81_ = {0}; -#line 2350 "/home/jens/Source/shotwell/src/Page.vala" +#line 2362 "/home/jens/Source/shotwell/src/Page.vala" _tmp66_ = self->priv->unscaled; -#line 2350 "/home/jens/Source/shotwell/src/Page.vala" +#line 2362 "/home/jens/Source/shotwell/src/Page.vala" _tmp67_ = self->priv->scaled_pos; -#line 2350 "/home/jens/Source/shotwell/src/Page.vala" +#line 2362 "/home/jens/Source/shotwell/src/Page.vala" dimensions_for_rectangle (&_tmp67_, &_tmp68_); -#line 2350 "/home/jens/Source/shotwell/src/Page.vala" +#line 2362 "/home/jens/Source/shotwell/src/Page.vala" _tmp69_ = interp; -#line 2350 "/home/jens/Source/shotwell/src/Page.vala" +#line 2362 "/home/jens/Source/shotwell/src/Page.vala" _tmp70_ = resize_pixbuf (_tmp66_, &_tmp68_, _tmp69_); -#line 2350 "/home/jens/Source/shotwell/src/Page.vala" +#line 2362 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->priv->scaled); -#line 2350 "/home/jens/Source/shotwell/src/Page.vala" +#line 2362 "/home/jens/Source/shotwell/src/Page.vala" self->priv->scaled = _tmp70_; -#line 2352 "/home/jens/Source/shotwell/src/Page.vala" +#line 2364 "/home/jens/Source/shotwell/src/Page.vala" reason = SINGLE_PHOTO_PAGE_UPDATE_REASON_RESIZED_CANVAS; -#line 2353 "/home/jens/Source/shotwell/src/Page.vala" +#line 2365 "/home/jens/Source/shotwell/src/Page.vala" _tmp71_ = new_pixbuf; -#line 2353 "/home/jens/Source/shotwell/src/Page.vala" +#line 2365 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp71_) { -#line 2354 "/home/jens/Source/shotwell/src/Page.vala" +#line 2366 "/home/jens/Source/shotwell/src/Page.vala" reason = SINGLE_PHOTO_PAGE_UPDATE_REASON_NEW_PIXBUF; -#line 14457 "Page.c" +#line 14581 "Page.c" } else { gboolean _tmp72_ = FALSE; gboolean _tmp73_ = FALSE; -#line 2355 "/home/jens/Source/shotwell/src/Page.vala" +#line 2367 "/home/jens/Source/shotwell/src/Page.vala" _tmp73_ = new_pixmap; -#line 2355 "/home/jens/Source/shotwell/src/Page.vala" +#line 2367 "/home/jens/Source/shotwell/src/Page.vala" if (!_tmp73_) { -#line 14465 "Page.c" +#line 14589 "Page.c" GdkInterpType _tmp74_ = 0; -#line 2355 "/home/jens/Source/shotwell/src/Page.vala" +#line 2367 "/home/jens/Source/shotwell/src/Page.vala" _tmp74_ = interp; -#line 2355 "/home/jens/Source/shotwell/src/Page.vala" +#line 2367 "/home/jens/Source/shotwell/src/Page.vala" _tmp72_ = _tmp74_ == SINGLE_PHOTO_PAGE_QUALITY_INTERP; -#line 14471 "Page.c" +#line 14595 "Page.c" } else { -#line 2355 "/home/jens/Source/shotwell/src/Page.vala" +#line 2367 "/home/jens/Source/shotwell/src/Page.vala" _tmp72_ = FALSE; -#line 14475 "Page.c" +#line 14599 "Page.c" } -#line 2355 "/home/jens/Source/shotwell/src/Page.vala" +#line 2367 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp72_) { -#line 2356 "/home/jens/Source/shotwell/src/Page.vala" +#line 2368 "/home/jens/Source/shotwell/src/Page.vala" reason = SINGLE_PHOTO_PAGE_UPDATE_REASON_QUALITY_IMPROVEMENT; -#line 14481 "Page.c" +#line 14605 "Page.c" } } -#line 2358 "/home/jens/Source/shotwell/src/Page.vala" +#line 2370 "/home/jens/Source/shotwell/src/Page.vala" _tmp75_ = self->priv->max_dim; -#line 2358 "/home/jens/Source/shotwell/src/Page.vala" +#line 2370 "/home/jens/Source/shotwell/src/Page.vala" _tmp76_ = self->priv->pixmap_dim; -#line 2358 "/home/jens/Source/shotwell/src/Page.vala" +#line 2370 "/home/jens/Source/shotwell/src/Page.vala" _tmp77_ = zoom_state_get_interpolation_factor (&self->priv->static_zoom_state); -#line 2358 "/home/jens/Source/shotwell/src/Page.vala" +#line 2370 "/home/jens/Source/shotwell/src/Page.vala" zoom_state_get_viewport_center (&self->priv->static_zoom_state, &_tmp78_); -#line 2358 "/home/jens/Source/shotwell/src/Page.vala" +#line 2370 "/home/jens/Source/shotwell/src/Page.vala" zoom_state_init (&self->priv->static_zoom_state, &_tmp75_, &_tmp76_, _tmp77_, &_tmp78_); -#line 2362 "/home/jens/Source/shotwell/src/Page.vala" +#line 2374 "/home/jens/Source/shotwell/src/Page.vala" _tmp79_ = self->priv->scaled; -#line 2362 "/home/jens/Source/shotwell/src/Page.vala" +#line 2374 "/home/jens/Source/shotwell/src/Page.vala" _tmp80_ = reason; -#line 2362 "/home/jens/Source/shotwell/src/Page.vala" +#line 2374 "/home/jens/Source/shotwell/src/Page.vala" _tmp81_ = old_scaled_dim; -#line 2362 "/home/jens/Source/shotwell/src/Page.vala" +#line 2374 "/home/jens/Source/shotwell/src/Page.vala" single_photo_page_updated_pixbuf (self, _tmp79_, _tmp80_, &_tmp81_); -#line 14502 "Page.c" +#line 14626 "Page.c" } -#line 2365 "/home/jens/Source/shotwell/src/Page.vala" +#line 2377 "/home/jens/Source/shotwell/src/Page.vala" _tmp82_ = fast; -#line 2365 "/home/jens/Source/shotwell/src/Page.vala" +#line 2377 "/home/jens/Source/shotwell/src/Page.vala" self->priv->zoom_high_quality = !_tmp82_; -#line 2367 "/home/jens/Source/shotwell/src/Page.vala" +#line 2379 "/home/jens/Source/shotwell/src/Page.vala" _tmp84_ = direction; -#line 2367 "/home/jens/Source/shotwell/src/Page.vala" +#line 2379 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp84_ != NULL) { -#line 14512 "Page.c" +#line 14636 "Page.c" TransitionClock* _tmp85_ = NULL; gboolean _tmp86_ = FALSE; -#line 2367 "/home/jens/Source/shotwell/src/Page.vala" +#line 2379 "/home/jens/Source/shotwell/src/Page.vala" _tmp85_ = self->priv->transition_clock; -#line 2367 "/home/jens/Source/shotwell/src/Page.vala" +#line 2379 "/home/jens/Source/shotwell/src/Page.vala" _tmp86_ = transition_clock_is_in_progress (_tmp85_); -#line 2367 "/home/jens/Source/shotwell/src/Page.vala" +#line 2379 "/home/jens/Source/shotwell/src/Page.vala" _tmp83_ = !_tmp86_; -#line 14521 "Page.c" +#line 14645 "Page.c" } else { -#line 2367 "/home/jens/Source/shotwell/src/Page.vala" +#line 2379 "/home/jens/Source/shotwell/src/Page.vala" _tmp83_ = FALSE; -#line 14525 "Page.c" +#line 14649 "Page.c" } -#line 2367 "/home/jens/Source/shotwell/src/Page.vala" +#line 2379 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp83_) { -#line 14529 "Page.c" +#line 14653 "Page.c" SpitTransitionsVisuals* visuals = NULL; GdkPixbuf* _tmp87_ = NULL; GdkRectangle _tmp88_ = {0}; @@ -14538,45 +14662,45 @@ static void single_photo_page_internal_repaint (SinglePhotoPage* self, gboolean Direction* _tmp95_ = NULL; SpitTransitionsDirection _tmp96_ = 0; gint _tmp97_ = 0; -#line 2368 "/home/jens/Source/shotwell/src/Page.vala" +#line 2380 "/home/jens/Source/shotwell/src/Page.vala" _tmp87_ = self->priv->old_scaled; -#line 2368 "/home/jens/Source/shotwell/src/Page.vala" +#line 2380 "/home/jens/Source/shotwell/src/Page.vala" _tmp88_ = old_scaled_pos; -#line 2368 "/home/jens/Source/shotwell/src/Page.vala" +#line 2380 "/home/jens/Source/shotwell/src/Page.vala" _tmp89_ = self->priv->scaled; -#line 2368 "/home/jens/Source/shotwell/src/Page.vala" +#line 2380 "/home/jens/Source/shotwell/src/Page.vala" _tmp90_ = self->priv->scaled_pos; -#line 2368 "/home/jens/Source/shotwell/src/Page.vala" +#line 2380 "/home/jens/Source/shotwell/src/Page.vala" parse_color ("#000", &_tmp91_); -#line 2368 "/home/jens/Source/shotwell/src/Page.vala" +#line 2380 "/home/jens/Source/shotwell/src/Page.vala" _tmp92_ = spit_transitions_visuals_new (_tmp87_, &_tmp88_, _tmp89_, &_tmp90_, &_tmp91_); -#line 2368 "/home/jens/Source/shotwell/src/Page.vala" +#line 2380 "/home/jens/Source/shotwell/src/Page.vala" visuals = _tmp92_; -#line 2371 "/home/jens/Source/shotwell/src/Page.vala" +#line 2383 "/home/jens/Source/shotwell/src/Page.vala" _tmp93_ = self->priv->transition_clock; -#line 2371 "/home/jens/Source/shotwell/src/Page.vala" +#line 2383 "/home/jens/Source/shotwell/src/Page.vala" _tmp94_ = visuals; -#line 2371 "/home/jens/Source/shotwell/src/Page.vala" +#line 2383 "/home/jens/Source/shotwell/src/Page.vala" _tmp95_ = direction; -#line 2371 "/home/jens/Source/shotwell/src/Page.vala" +#line 2383 "/home/jens/Source/shotwell/src/Page.vala" _tmp96_ = direction_to_transition_direction (*_tmp95_); -#line 2371 "/home/jens/Source/shotwell/src/Page.vala" +#line 2383 "/home/jens/Source/shotwell/src/Page.vala" _tmp97_ = self->priv->transition_duration_msec; -#line 2371 "/home/jens/Source/shotwell/src/Page.vala" +#line 2383 "/home/jens/Source/shotwell/src/Page.vala" transition_clock_start (_tmp93_, _tmp94_, _tmp96_, _tmp97_, _single_photo_page_repaint_pixmap_transition_clock_repaint_callback, self); -#line 2367 "/home/jens/Source/shotwell/src/Page.vala" +#line 2379 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (visuals); -#line 14570 "Page.c" +#line 14694 "Page.c" } -#line 2375 "/home/jens/Source/shotwell/src/Page.vala" +#line 2387 "/home/jens/Source/shotwell/src/Page.vala" _tmp98_ = self->priv->transition_clock; -#line 2375 "/home/jens/Source/shotwell/src/Page.vala" +#line 2387 "/home/jens/Source/shotwell/src/Page.vala" _tmp99_ = transition_clock_is_in_progress (_tmp98_); -#line 2375 "/home/jens/Source/shotwell/src/Page.vala" +#line 2387 "/home/jens/Source/shotwell/src/Page.vala" if (!_tmp99_) { -#line 2376 "/home/jens/Source/shotwell/src/Page.vala" +#line 2388 "/home/jens/Source/shotwell/src/Page.vala" single_photo_page_repaint_pixmap (self); -#line 14580 "Page.c" +#line 14704 "Page.c" } } @@ -14597,65 +14721,65 @@ static void single_photo_page_init_pixmap (SinglePhotoPage* self, gint width, gi cairo_t* _tmp12_ = NULL; cairo_t* _tmp13_ = NULL; Dimensions _tmp14_ = {0}; -#line 2379 "/home/jens/Source/shotwell/src/Page.vala" +#line 2391 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2380 "/home/jens/Source/shotwell/src/Page.vala" +#line 2392 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->unscaled; -#line 2380 "/home/jens/Source/shotwell/src/Page.vala" +#line 2392 "/home/jens/Source/shotwell/src/Page.vala" _vala_assert (_tmp0_ != NULL, "unscaled != null"); -#line 2381 "/home/jens/Source/shotwell/src/Page.vala" +#line 2393 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = self->canvas; -#line 2381 "/home/jens/Source/shotwell/src/Page.vala" +#line 2393 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget)); -#line 2381 "/home/jens/Source/shotwell/src/Page.vala" +#line 2393 "/home/jens/Source/shotwell/src/Page.vala" _vala_assert (_tmp2_ != NULL, "canvas.get_window() != null"); -#line 2384 "/home/jens/Source/shotwell/src/Page.vala" +#line 2396 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = width; -#line 2384 "/home/jens/Source/shotwell/src/Page.vala" +#line 2396 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = height; -#line 2384 "/home/jens/Source/shotwell/src/Page.vala" +#line 2396 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, _tmp3_, _tmp4_); -#line 2384 "/home/jens/Source/shotwell/src/Page.vala" +#line 2396 "/home/jens/Source/shotwell/src/Page.vala" _cairo_surface_destroy0 (self->priv->pixmap); -#line 2384 "/home/jens/Source/shotwell/src/Page.vala" +#line 2396 "/home/jens/Source/shotwell/src/Page.vala" self->priv->pixmap = _tmp5_; -#line 2385 "/home/jens/Source/shotwell/src/Page.vala" +#line 2397 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = width; -#line 2385 "/home/jens/Source/shotwell/src/Page.vala" +#line 2397 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = height; -#line 2385 "/home/jens/Source/shotwell/src/Page.vala" +#line 2397 "/home/jens/Source/shotwell/src/Page.vala" dimensions_init (&self->priv->pixmap_dim, _tmp6_, _tmp7_); -#line 2388 "/home/jens/Source/shotwell/src/Page.vala" +#line 2400 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = self->priv->pixmap; -#line 2388 "/home/jens/Source/shotwell/src/Page.vala" +#line 2400 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = cairo_create (_tmp8_); -#line 2388 "/home/jens/Source/shotwell/src/Page.vala" +#line 2400 "/home/jens/Source/shotwell/src/Page.vala" _cairo_destroy0 (self->priv->pixmap_ctx); -#line 2388 "/home/jens/Source/shotwell/src/Page.vala" +#line 2400 "/home/jens/Source/shotwell/src/Page.vala" self->priv->pixmap_ctx = _tmp9_; -#line 2391 "/home/jens/Source/shotwell/src/Page.vala" +#line 2403 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->priv->scaled); -#line 2391 "/home/jens/Source/shotwell/src/Page.vala" +#line 2403 "/home/jens/Source/shotwell/src/Page.vala" self->priv->scaled = NULL; -#line 2394 "/home/jens/Source/shotwell/src/Page.vala" +#line 2406 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = self->priv->pixmap; -#line 2394 "/home/jens/Source/shotwell/src/Page.vala" +#line 2406 "/home/jens/Source/shotwell/src/Page.vala" _tmp11_ = cairo_create (_tmp10_); -#line 2394 "/home/jens/Source/shotwell/src/Page.vala" +#line 2406 "/home/jens/Source/shotwell/src/Page.vala" _cairo_destroy0 (self->priv->text_ctx); -#line 2394 "/home/jens/Source/shotwell/src/Page.vala" +#line 2406 "/home/jens/Source/shotwell/src/Page.vala" self->priv->text_ctx = _tmp11_; -#line 2395 "/home/jens/Source/shotwell/src/Page.vala" +#line 2407 "/home/jens/Source/shotwell/src/Page.vala" _tmp12_ = self->priv->text_ctx; -#line 2395 "/home/jens/Source/shotwell/src/Page.vala" +#line 2407 "/home/jens/Source/shotwell/src/Page.vala" set_source_color_from_string (_tmp12_, "#fff"); -#line 2400 "/home/jens/Source/shotwell/src/Page.vala" +#line 2412 "/home/jens/Source/shotwell/src/Page.vala" _tmp13_ = self->priv->pixmap_ctx; -#line 2400 "/home/jens/Source/shotwell/src/Page.vala" +#line 2412 "/home/jens/Source/shotwell/src/Page.vala" _tmp14_ = self->priv->pixmap_dim; -#line 2400 "/home/jens/Source/shotwell/src/Page.vala" +#line 2412 "/home/jens/Source/shotwell/src/Page.vala" single_photo_page_new_surface (self, _tmp13_, &_tmp14_); -#line 14659 "Page.c" +#line 14783 "Page.c" } @@ -14666,23 +14790,23 @@ static gboolean single_photo_page_real_on_context_keypress (Page* base) { GtkMenu* _tmp1_ = NULL; gboolean _tmp2_ = FALSE; gboolean _tmp3_ = FALSE; -#line 2403 "/home/jens/Source/shotwell/src/Page.vala" +#line 2415 "/home/jens/Source/shotwell/src/Page.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage); -#line 2404 "/home/jens/Source/shotwell/src/Page.vala" +#line 2416 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = page_get_page_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2404 "/home/jens/Source/shotwell/src/Page.vala" +#line 2416 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = _tmp0_; -#line 2404 "/home/jens/Source/shotwell/src/Page.vala" +#line 2416 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = page_popup_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), _tmp1_, NULL); -#line 2404 "/home/jens/Source/shotwell/src/Page.vala" +#line 2416 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = _tmp2_; -#line 2404 "/home/jens/Source/shotwell/src/Page.vala" +#line 2416 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (_tmp1_); -#line 2404 "/home/jens/Source/shotwell/src/Page.vala" +#line 2416 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp3_; -#line 2404 "/home/jens/Source/shotwell/src/Page.vala" +#line 2416 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 14686 "Page.c" +#line 14810 "Page.c" } @@ -14691,11 +14815,11 @@ static void single_photo_page_real_on_previous_photo (SinglePhotoPage* self) { void single_photo_page_on_previous_photo (SinglePhotoPage* self) { -#line 2407 "/home/jens/Source/shotwell/src/Page.vala" +#line 2419 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2407 "/home/jens/Source/shotwell/src/Page.vala" +#line 2419 "/home/jens/Source/shotwell/src/Page.vala" SINGLE_PHOTO_PAGE_GET_CLASS (self)->on_previous_photo (self); -#line 14699 "Page.c" +#line 14823 "Page.c" } @@ -14704,11 +14828,11 @@ static void single_photo_page_real_on_next_photo (SinglePhotoPage* self) { void single_photo_page_on_next_photo (SinglePhotoPage* self) { -#line 2410 "/home/jens/Source/shotwell/src/Page.vala" +#line 2422 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2410 "/home/jens/Source/shotwell/src/Page.vala" +#line 2422 "/home/jens/Source/shotwell/src/Page.vala" SINGLE_PHOTO_PAGE_GET_CLASS (self)->on_next_photo (self); -#line 14712 "Page.c" +#line 14836 "Page.c" } @@ -14725,266 +14849,266 @@ static gboolean single_photo_page_real_key_press_event (GtkWidget* base, GdkEven const gchar* _tmp5_ = NULL; const gchar* _tmp6_ = NULL; GQuark _tmp8_ = 0U; -#line 2420 "/home/jens/Source/shotwell/src/Page.vala" +#line 2432 "/home/jens/Source/shotwell/src/Page.vala" static GQuark _tmp7_label0 = 0; -#line 2420 "/home/jens/Source/shotwell/src/Page.vala" +#line 2432 "/home/jens/Source/shotwell/src/Page.vala" static GQuark _tmp7_label1 = 0; -#line 2420 "/home/jens/Source/shotwell/src/Page.vala" +#line 2432 "/home/jens/Source/shotwell/src/Page.vala" static GQuark _tmp7_label2 = 0; -#line 2420 "/home/jens/Source/shotwell/src/Page.vala" +#line 2432 "/home/jens/Source/shotwell/src/Page.vala" static GQuark _tmp7_label3 = 0; -#line 2420 "/home/jens/Source/shotwell/src/Page.vala" +#line 2432 "/home/jens/Source/shotwell/src/Page.vala" static GQuark _tmp7_label4 = 0; -#line 2420 "/home/jens/Source/shotwell/src/Page.vala" +#line 2432 "/home/jens/Source/shotwell/src/Page.vala" static GQuark _tmp7_label5 = 0; -#line 14741 "Page.c" +#line 14865 "Page.c" gboolean _tmp15_ = FALSE; gboolean _tmp16_ = FALSE; -#line 2413 "/home/jens/Source/shotwell/src/Page.vala" +#line 2425 "/home/jens/Source/shotwell/src/Page.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage); -#line 2413 "/home/jens/Source/shotwell/src/Page.vala" +#line 2425 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 2417 "/home/jens/Source/shotwell/src/Page.vala" +#line 2429 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = event; -#line 2417 "/home/jens/Source/shotwell/src/Page.vala" +#line 2429 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = _tmp0_->time; -#line 2417 "/home/jens/Source/shotwell/src/Page.vala" +#line 2429 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = self->priv->last_nav_key; -#line 2417 "/home/jens/Source/shotwell/src/Page.vala" +#line 2429 "/home/jens/Source/shotwell/src/Page.vala" nav_ok = (_tmp1_ - _tmp2_) > ((guint32) SINGLE_PHOTO_PAGE_KEY_REPEAT_INTERVAL_MSEC); -#line 2419 "/home/jens/Source/shotwell/src/Page.vala" +#line 2431 "/home/jens/Source/shotwell/src/Page.vala" handled = TRUE; -#line 2420 "/home/jens/Source/shotwell/src/Page.vala" +#line 2432 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = event; -#line 2420 "/home/jens/Source/shotwell/src/Page.vala" +#line 2432 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = _tmp3_->keyval; -#line 2420 "/home/jens/Source/shotwell/src/Page.vala" +#line 2432 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = gdk_keyval_name (_tmp4_); -#line 2420 "/home/jens/Source/shotwell/src/Page.vala" +#line 2432 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = _tmp5_; -#line 2420 "/home/jens/Source/shotwell/src/Page.vala" +#line 2432 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = (NULL == _tmp6_) ? 0 : g_quark_from_string (_tmp6_); -#line 2420 "/home/jens/Source/shotwell/src/Page.vala" +#line 2432 "/home/jens/Source/shotwell/src/Page.vala" if (((_tmp8_ == ((0 != _tmp7_label0) ? _tmp7_label0 : (_tmp7_label0 = g_quark_from_static_string ("Left")))) || (_tmp8_ == ((0 != _tmp7_label1) ? _tmp7_label1 : (_tmp7_label1 = g_quark_from_static_string ("KP_Left"))))) || (_tmp8_ == ((0 != _tmp7_label2) ? _tmp7_label2 : (_tmp7_label2 = g_quark_from_static_string ("BackSpace"))))) { -#line 2420 "/home/jens/Source/shotwell/src/Page.vala" +#line 2432 "/home/jens/Source/shotwell/src/Page.vala" switch (0) { -#line 14772 "Page.c" +#line 14896 "Page.c" default: { gboolean _tmp9_ = FALSE; -#line 2424 "/home/jens/Source/shotwell/src/Page.vala" +#line 2436 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = nav_ok; -#line 2424 "/home/jens/Source/shotwell/src/Page.vala" +#line 2436 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp9_) { -#line 14780 "Page.c" +#line 14904 "Page.c" GdkEventKey* _tmp10_ = NULL; guint32 _tmp11_ = 0U; -#line 2425 "/home/jens/Source/shotwell/src/Page.vala" +#line 2437 "/home/jens/Source/shotwell/src/Page.vala" single_photo_page_on_previous_photo (self); -#line 2426 "/home/jens/Source/shotwell/src/Page.vala" +#line 2438 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = event; -#line 2426 "/home/jens/Source/shotwell/src/Page.vala" +#line 2438 "/home/jens/Source/shotwell/src/Page.vala" _tmp11_ = _tmp10_->time; -#line 2426 "/home/jens/Source/shotwell/src/Page.vala" +#line 2438 "/home/jens/Source/shotwell/src/Page.vala" self->priv->last_nav_key = _tmp11_; -#line 14791 "Page.c" +#line 14915 "Page.c" } -#line 2428 "/home/jens/Source/shotwell/src/Page.vala" +#line 2440 "/home/jens/Source/shotwell/src/Page.vala" break; -#line 14795 "Page.c" +#line 14919 "Page.c" } } } else if (((_tmp8_ == ((0 != _tmp7_label3) ? _tmp7_label3 : (_tmp7_label3 = g_quark_from_static_string ("Right")))) || (_tmp8_ == ((0 != _tmp7_label4) ? _tmp7_label4 : (_tmp7_label4 = g_quark_from_static_string ("KP_Right"))))) || (_tmp8_ == ((0 != _tmp7_label5) ? _tmp7_label5 : (_tmp7_label5 = g_quark_from_static_string ("space"))))) { -#line 2420 "/home/jens/Source/shotwell/src/Page.vala" +#line 2432 "/home/jens/Source/shotwell/src/Page.vala" switch (0) { -#line 14801 "Page.c" +#line 14925 "Page.c" default: { gboolean _tmp12_ = FALSE; -#line 2433 "/home/jens/Source/shotwell/src/Page.vala" +#line 2445 "/home/jens/Source/shotwell/src/Page.vala" _tmp12_ = nav_ok; -#line 2433 "/home/jens/Source/shotwell/src/Page.vala" +#line 2445 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp12_) { -#line 14809 "Page.c" +#line 14933 "Page.c" GdkEventKey* _tmp13_ = NULL; guint32 _tmp14_ = 0U; -#line 2434 "/home/jens/Source/shotwell/src/Page.vala" +#line 2446 "/home/jens/Source/shotwell/src/Page.vala" single_photo_page_on_next_photo (self); -#line 2435 "/home/jens/Source/shotwell/src/Page.vala" +#line 2447 "/home/jens/Source/shotwell/src/Page.vala" _tmp13_ = event; -#line 2435 "/home/jens/Source/shotwell/src/Page.vala" +#line 2447 "/home/jens/Source/shotwell/src/Page.vala" _tmp14_ = _tmp13_->time; -#line 2435 "/home/jens/Source/shotwell/src/Page.vala" +#line 2447 "/home/jens/Source/shotwell/src/Page.vala" self->priv->last_nav_key = _tmp14_; -#line 14820 "Page.c" +#line 14944 "Page.c" } -#line 2437 "/home/jens/Source/shotwell/src/Page.vala" +#line 2449 "/home/jens/Source/shotwell/src/Page.vala" break; -#line 14824 "Page.c" +#line 14948 "Page.c" } } } else { -#line 2420 "/home/jens/Source/shotwell/src/Page.vala" +#line 2432 "/home/jens/Source/shotwell/src/Page.vala" switch (0) { -#line 14830 "Page.c" +#line 14954 "Page.c" default: { -#line 2440 "/home/jens/Source/shotwell/src/Page.vala" +#line 2452 "/home/jens/Source/shotwell/src/Page.vala" handled = FALSE; -#line 2441 "/home/jens/Source/shotwell/src/Page.vala" +#line 2453 "/home/jens/Source/shotwell/src/Page.vala" break; -#line 14837 "Page.c" +#line 14961 "Page.c" } } } -#line 2444 "/home/jens/Source/shotwell/src/Page.vala" +#line 2456 "/home/jens/Source/shotwell/src/Page.vala" _tmp15_ = handled; -#line 2444 "/home/jens/Source/shotwell/src/Page.vala" +#line 2456 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp15_) { -#line 2445 "/home/jens/Source/shotwell/src/Page.vala" +#line 2457 "/home/jens/Source/shotwell/src/Page.vala" result = TRUE; -#line 2445 "/home/jens/Source/shotwell/src/Page.vala" +#line 2457 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 14849 "Page.c" +#line 14973 "Page.c" } -#line 2447 "/home/jens/Source/shotwell/src/Page.vala" +#line 2459 "/home/jens/Source/shotwell/src/Page.vala" if (GTK_WIDGET_CLASS (single_photo_page_parent_class)->key_press_event != NULL) { -#line 14853 "Page.c" +#line 14977 "Page.c" GdkEventKey* _tmp17_ = NULL; gboolean _tmp18_ = FALSE; -#line 2447 "/home/jens/Source/shotwell/src/Page.vala" +#line 2459 "/home/jens/Source/shotwell/src/Page.vala" _tmp17_ = event; -#line 2447 "/home/jens/Source/shotwell/src/Page.vala" +#line 2459 "/home/jens/Source/shotwell/src/Page.vala" _tmp18_ = GTK_WIDGET_CLASS (single_photo_page_parent_class)->key_press_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), gtk_widget_get_type (), GtkWidget), _tmp17_); -#line 2447 "/home/jens/Source/shotwell/src/Page.vala" +#line 2459 "/home/jens/Source/shotwell/src/Page.vala" _tmp16_ = _tmp18_; -#line 14862 "Page.c" +#line 14986 "Page.c" } else { -#line 2447 "/home/jens/Source/shotwell/src/Page.vala" +#line 2459 "/home/jens/Source/shotwell/src/Page.vala" _tmp16_ = TRUE; -#line 14866 "Page.c" +#line 14990 "Page.c" } -#line 2447 "/home/jens/Source/shotwell/src/Page.vala" +#line 2459 "/home/jens/Source/shotwell/src/Page.vala" result = _tmp16_; -#line 2447 "/home/jens/Source/shotwell/src/Page.vala" +#line 2459 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 14872 "Page.c" +#line 14996 "Page.c" } static void single_photo_page_class_init (SinglePhotoPageClass * klass) { -#line 1936 "/home/jens/Source/shotwell/src/Page.vala" +#line 1948 "/home/jens/Source/shotwell/src/Page.vala" single_photo_page_parent_class = g_type_class_peek_parent (klass); -#line 1936 "/home/jens/Source/shotwell/src/Page.vala" +#line 1948 "/home/jens/Source/shotwell/src/Page.vala" g_type_class_add_private (klass, sizeof (SinglePhotoPagePrivate)); -#line 1936 "/home/jens/Source/shotwell/src/Page.vala" +#line 1948 "/home/jens/Source/shotwell/src/Page.vala" ((SinglePhotoPageClass *) klass)->is_zoom_supported = single_photo_page_real_is_zoom_supported; -#line 1936 "/home/jens/Source/shotwell/src/Page.vala" +#line 1948 "/home/jens/Source/shotwell/src/Page.vala" ((SinglePhotoPageClass *) klass)->cancel_zoom = single_photo_page_real_cancel_zoom; -#line 1936 "/home/jens/Source/shotwell/src/Page.vala" +#line 1948 "/home/jens/Source/shotwell/src/Page.vala" ((SinglePhotoPageClass *) klass)->save_zoom_state = single_photo_page_real_save_zoom_state; -#line 1936 "/home/jens/Source/shotwell/src/Page.vala" +#line 1948 "/home/jens/Source/shotwell/src/Page.vala" ((SinglePhotoPageClass *) klass)->restore_zoom_state = single_photo_page_real_restore_zoom_state; -#line 1936 "/home/jens/Source/shotwell/src/Page.vala" +#line 1948 "/home/jens/Source/shotwell/src/Page.vala" ((SinglePhotoPageClass *) klass)->get_zoom_buffer = single_photo_page_real_get_zoom_buffer; -#line 1936 "/home/jens/Source/shotwell/src/Page.vala" +#line 1948 "/home/jens/Source/shotwell/src/Page.vala" ((PageClass *) klass)->switched_to = single_photo_page_real_switched_to; -#line 1936 "/home/jens/Source/shotwell/src/Page.vala" +#line 1948 "/home/jens/Source/shotwell/src/Page.vala" ((PageClass *) klass)->set_container = single_photo_page_real_set_container; -#line 1936 "/home/jens/Source/shotwell/src/Page.vala" +#line 1948 "/home/jens/Source/shotwell/src/Page.vala" ((PageClass *) klass)->on_resize_finished = single_photo_page_real_on_resize_finished; -#line 1936 "/home/jens/Source/shotwell/src/Page.vala" +#line 1948 "/home/jens/Source/shotwell/src/Page.vala" ((SinglePhotoPageClass *) klass)->new_surface = single_photo_page_real_new_surface; -#line 1936 "/home/jens/Source/shotwell/src/Page.vala" +#line 1948 "/home/jens/Source/shotwell/src/Page.vala" ((SinglePhotoPageClass *) klass)->updated_pixbuf = single_photo_page_real_updated_pixbuf; -#line 1936 "/home/jens/Source/shotwell/src/Page.vala" +#line 1948 "/home/jens/Source/shotwell/src/Page.vala" ((SinglePhotoPageClass *) klass)->paint = single_photo_page_real_paint; -#line 1936 "/home/jens/Source/shotwell/src/Page.vala" +#line 1948 "/home/jens/Source/shotwell/src/Page.vala" ((PageClass *) klass)->on_context_keypress = single_photo_page_real_on_context_keypress; -#line 1936 "/home/jens/Source/shotwell/src/Page.vala" +#line 1948 "/home/jens/Source/shotwell/src/Page.vala" ((SinglePhotoPageClass *) klass)->on_previous_photo = single_photo_page_real_on_previous_photo; -#line 1936 "/home/jens/Source/shotwell/src/Page.vala" +#line 1948 "/home/jens/Source/shotwell/src/Page.vala" ((SinglePhotoPageClass *) klass)->on_next_photo = single_photo_page_real_on_next_photo; -#line 1936 "/home/jens/Source/shotwell/src/Page.vala" +#line 1948 "/home/jens/Source/shotwell/src/Page.vala" ((GtkWidgetClass *) klass)->key_press_event = single_photo_page_real_key_press_event; -#line 1936 "/home/jens/Source/shotwell/src/Page.vala" +#line 1948 "/home/jens/Source/shotwell/src/Page.vala" G_OBJECT_CLASS (klass)->finalize = single_photo_page_finalize; -#line 14913 "Page.c" +#line 15037 "Page.c" } static void single_photo_page_instance_init (SinglePhotoPage * self) { GtkDrawingArea* _tmp0_ = NULL; GtkViewport* _tmp1_ = NULL; -#line 1936 "/home/jens/Source/shotwell/src/Page.vala" +#line 1948 "/home/jens/Source/shotwell/src/Page.vala" self->priv = SINGLE_PHOTO_PAGE_GET_PRIVATE (self); -#line 1947 "/home/jens/Source/shotwell/src/Page.vala" +#line 1959 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = (GtkDrawingArea*) gtk_drawing_area_new (); -#line 1947 "/home/jens/Source/shotwell/src/Page.vala" +#line 1959 "/home/jens/Source/shotwell/src/Page.vala" g_object_ref_sink (_tmp0_); -#line 1947 "/home/jens/Source/shotwell/src/Page.vala" +#line 1959 "/home/jens/Source/shotwell/src/Page.vala" self->canvas = _tmp0_; -#line 1948 "/home/jens/Source/shotwell/src/Page.vala" +#line 1960 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = (GtkViewport*) gtk_viewport_new (NULL, NULL); -#line 1948 "/home/jens/Source/shotwell/src/Page.vala" +#line 1960 "/home/jens/Source/shotwell/src/Page.vala" g_object_ref_sink (_tmp1_); -#line 1948 "/home/jens/Source/shotwell/src/Page.vala" +#line 1960 "/home/jens/Source/shotwell/src/Page.vala" self->viewport = _tmp1_; -#line 1952 "/home/jens/Source/shotwell/src/Page.vala" +#line 1964 "/home/jens/Source/shotwell/src/Page.vala" self->priv->transition_duration_msec = 0; -#line 1953 "/home/jens/Source/shotwell/src/Page.vala" +#line 1965 "/home/jens/Source/shotwell/src/Page.vala" self->priv->pixmap = NULL; -#line 1954 "/home/jens/Source/shotwell/src/Page.vala" +#line 1966 "/home/jens/Source/shotwell/src/Page.vala" self->priv->pixmap_ctx = NULL; -#line 1955 "/home/jens/Source/shotwell/src/Page.vala" +#line 1967 "/home/jens/Source/shotwell/src/Page.vala" self->priv->text_ctx = NULL; -#line 1956 "/home/jens/Source/shotwell/src/Page.vala" +#line 1968 "/home/jens/Source/shotwell/src/Page.vala" dimensions_init (&self->priv->pixmap_dim, 0, 0); -#line 1957 "/home/jens/Source/shotwell/src/Page.vala" +#line 1969 "/home/jens/Source/shotwell/src/Page.vala" self->priv->unscaled = NULL; -#line 1958 "/home/jens/Source/shotwell/src/Page.vala" +#line 1970 "/home/jens/Source/shotwell/src/Page.vala" dimensions_init (&self->priv->max_dim, 0, 0); -#line 1959 "/home/jens/Source/shotwell/src/Page.vala" +#line 1971 "/home/jens/Source/shotwell/src/Page.vala" self->priv->scaled = NULL; -#line 1960 "/home/jens/Source/shotwell/src/Page.vala" +#line 1972 "/home/jens/Source/shotwell/src/Page.vala" self->priv->old_scaled = NULL; -#line 1961 "/home/jens/Source/shotwell/src/Page.vala" +#line 1973 "/home/jens/Source/shotwell/src/Page.vala" memset (&self->priv->scaled_pos, 0, sizeof (GdkRectangle)); -#line 1963 "/home/jens/Source/shotwell/src/Page.vala" +#line 1975 "/home/jens/Source/shotwell/src/Page.vala" self->priv->zoom_high_quality = TRUE; -#line 1965 "/home/jens/Source/shotwell/src/Page.vala" +#line 1977 "/home/jens/Source/shotwell/src/Page.vala" self->priv->has_saved_zoom_state = FALSE; -#line 1966 "/home/jens/Source/shotwell/src/Page.vala" +#line 1978 "/home/jens/Source/shotwell/src/Page.vala" self->priv->last_nav_key = (guint32) 0; -#line 14960 "Page.c" +#line 15084 "Page.c" } static void single_photo_page_finalize (GObject* obj) { SinglePhotoPage * self; -#line 1936 "/home/jens/Source/shotwell/src/Page.vala" +#line 1948 "/home/jens/Source/shotwell/src/Page.vala" self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage); -#line 1947 "/home/jens/Source/shotwell/src/Page.vala" +#line 1959 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->canvas); -#line 1948 "/home/jens/Source/shotwell/src/Page.vala" +#line 1960 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->viewport); -#line 1951 "/home/jens/Source/shotwell/src/Page.vala" +#line 1963 "/home/jens/Source/shotwell/src/Page.vala" _transition_clock_unref0 (self->priv->transition_clock); -#line 1953 "/home/jens/Source/shotwell/src/Page.vala" +#line 1965 "/home/jens/Source/shotwell/src/Page.vala" _cairo_surface_destroy0 (self->priv->pixmap); -#line 1954 "/home/jens/Source/shotwell/src/Page.vala" +#line 1966 "/home/jens/Source/shotwell/src/Page.vala" _cairo_destroy0 (self->priv->pixmap_ctx); -#line 1955 "/home/jens/Source/shotwell/src/Page.vala" +#line 1967 "/home/jens/Source/shotwell/src/Page.vala" _cairo_destroy0 (self->priv->text_ctx); -#line 1957 "/home/jens/Source/shotwell/src/Page.vala" +#line 1969 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->priv->unscaled); -#line 1959 "/home/jens/Source/shotwell/src/Page.vala" +#line 1971 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->priv->scaled); -#line 1960 "/home/jens/Source/shotwell/src/Page.vala" +#line 1972 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->priv->old_scaled); -#line 1936 "/home/jens/Source/shotwell/src/Page.vala" +#line 1948 "/home/jens/Source/shotwell/src/Page.vala" G_OBJECT_CLASS (single_photo_page_parent_class)->finalize (obj); -#line 14988 "Page.c" +#line 15112 "Page.c" } @@ -15001,32 +15125,32 @@ GType single_photo_page_get_type (void) { static void _drag_and_drop_handler_on_drag_begin_gtk_widget_drag_begin (GtkWidget* _sender, GdkDragContext* context, gpointer self) { -#line 2506 "/home/jens/Source/shotwell/src/Page.vala" +#line 2518 "/home/jens/Source/shotwell/src/Page.vala" drag_and_drop_handler_on_drag_begin ((DragAndDropHandler*) self, context); -#line 15007 "Page.c" +#line 15131 "Page.c" } static void _drag_and_drop_handler_on_drag_data_get_gtk_widget_drag_data_get (GtkWidget* _sender, GdkDragContext* context, GtkSelectionData* selection_data, guint info, guint time_, gpointer self) { -#line 2507 "/home/jens/Source/shotwell/src/Page.vala" +#line 2519 "/home/jens/Source/shotwell/src/Page.vala" drag_and_drop_handler_on_drag_data_get ((DragAndDropHandler*) self, context, selection_data, info, time_); -#line 15014 "Page.c" +#line 15138 "Page.c" } static void _drag_and_drop_handler_on_drag_end_gtk_widget_drag_end (GtkWidget* _sender, GdkDragContext* context, gpointer self) { -#line 2508 "/home/jens/Source/shotwell/src/Page.vala" +#line 2520 "/home/jens/Source/shotwell/src/Page.vala" drag_and_drop_handler_on_drag_end ((DragAndDropHandler*) self); -#line 15021 "Page.c" +#line 15145 "Page.c" } static gboolean _drag_and_drop_handler_on_drag_failed_gtk_widget_drag_failed (GtkWidget* _sender, GdkDragContext* context, GtkDragResult _result_, gpointer self) { gboolean result; result = drag_and_drop_handler_on_drag_failed ((DragAndDropHandler*) self, context, _result_); -#line 2509 "/home/jens/Source/shotwell/src/Page.vala" +#line 2521 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 15030 "Page.c" +#line 15154 "Page.c" } @@ -15044,20 +15168,20 @@ static GType drag_and_drop_handler_target_type_get_type (void) { static GdkAtom* _gdk_atom_dup (GdkAtom* self) { GdkAtom* dup; -#line 2484 "/home/jens/Source/shotwell/src/Page.vala" +#line 2496 "/home/jens/Source/shotwell/src/Page.vala" dup = g_new0 (GdkAtom, 1); -#line 2484 "/home/jens/Source/shotwell/src/Page.vala" +#line 2496 "/home/jens/Source/shotwell/src/Page.vala" memcpy (dup, self, sizeof (GdkAtom)); -#line 2484 "/home/jens/Source/shotwell/src/Page.vala" +#line 2496 "/home/jens/Source/shotwell/src/Page.vala" return dup; -#line 15054 "Page.c" +#line 15178 "Page.c" } static gpointer __gdk_atom_dup0 (gpointer self) { -#line 2484 "/home/jens/Source/shotwell/src/Page.vala" +#line 2496 "/home/jens/Source/shotwell/src/Page.vala" return self ? _gdk_atom_dup (self) : NULL; -#line 15061 "Page.c" +#line 15185 "Page.c" } @@ -15078,117 +15202,117 @@ DragAndDropHandler* drag_and_drop_handler_construct (GType object_type, Page* pa GtkWidget* _tmp17_ = NULL; GtkWidget* _tmp18_ = NULL; GtkWidget* _tmp19_ = NULL; -#line 2476 "/home/jens/Source/shotwell/src/Page.vala" +#line 2488 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_PAGE (page), NULL); -#line 2476 "/home/jens/Source/shotwell/src/Page.vala" +#line 2488 "/home/jens/Source/shotwell/src/Page.vala" self = (DragAndDropHandler*) g_type_create_instance (object_type); -#line 2477 "/home/jens/Source/shotwell/src/Page.vala" +#line 2489 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = page; -#line 2477 "/home/jens/Source/shotwell/src/Page.vala" +#line 2489 "/home/jens/Source/shotwell/src/Page.vala" self->priv->page = _tmp0_; -#line 2478 "/home/jens/Source/shotwell/src/Page.vala" +#line 2490 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = page; -#line 2478 "/home/jens/Source/shotwell/src/Page.vala" +#line 2490 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = page_get_event_source (_tmp1_); -#line 2478 "/home/jens/Source/shotwell/src/Page.vala" +#line 2490 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->priv->event_source); -#line 2478 "/home/jens/Source/shotwell/src/Page.vala" +#line 2490 "/home/jens/Source/shotwell/src/Page.vala" self->priv->event_source = _tmp2_; -#line 2479 "/home/jens/Source/shotwell/src/Page.vala" +#line 2491 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = self->priv->event_source; -#line 2479 "/home/jens/Source/shotwell/src/Page.vala" +#line 2491 "/home/jens/Source/shotwell/src/Page.vala" _vala_assert (_tmp3_ != NULL, "event_source != null"); -#line 2480 "/home/jens/Source/shotwell/src/Page.vala" +#line 2492 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = self->priv->event_source; -#line 2480 "/home/jens/Source/shotwell/src/Page.vala" +#line 2492 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = gtk_widget_get_has_window (_tmp4_); -#line 2480 "/home/jens/Source/shotwell/src/Page.vala" +#line 2492 "/home/jens/Source/shotwell/src/Page.vala" _vala_assert (_tmp5_, "event_source.get_has_window()"); -#line 2483 "/home/jens/Source/shotwell/src/Page.vala" +#line 2495 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = drag_and_drop_handler_XDS_ATOM; -#line 2483 "/home/jens/Source/shotwell/src/Page.vala" +#line 2495 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp6_ == NULL) { -#line 15112 "Page.c" +#line 15236 "Page.c" GdkAtom _tmp7_ = 0U; GdkAtom* _tmp8_ = NULL; -#line 2484 "/home/jens/Source/shotwell/src/Page.vala" +#line 2496 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = gdk_atom_intern_static_string ("XdndDirectSave0"); -#line 2484 "/home/jens/Source/shotwell/src/Page.vala" +#line 2496 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = __gdk_atom_dup0 (&_tmp7_); -#line 2484 "/home/jens/Source/shotwell/src/Page.vala" +#line 2496 "/home/jens/Source/shotwell/src/Page.vala" _g_free0 (drag_and_drop_handler_XDS_ATOM); -#line 2484 "/home/jens/Source/shotwell/src/Page.vala" +#line 2496 "/home/jens/Source/shotwell/src/Page.vala" drag_and_drop_handler_XDS_ATOM = _tmp8_; -#line 15123 "Page.c" +#line 15247 "Page.c" } -#line 2486 "/home/jens/Source/shotwell/src/Page.vala" +#line 2498 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = drag_and_drop_handler_TEXT_ATOM; -#line 2486 "/home/jens/Source/shotwell/src/Page.vala" +#line 2498 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp9_ == NULL) { -#line 15129 "Page.c" +#line 15253 "Page.c" GdkAtom _tmp10_ = 0U; GdkAtom* _tmp11_ = NULL; -#line 2487 "/home/jens/Source/shotwell/src/Page.vala" +#line 2499 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = gdk_atom_intern_static_string ("text/plain"); -#line 2487 "/home/jens/Source/shotwell/src/Page.vala" +#line 2499 "/home/jens/Source/shotwell/src/Page.vala" _tmp11_ = __gdk_atom_dup0 (&_tmp10_); -#line 2487 "/home/jens/Source/shotwell/src/Page.vala" +#line 2499 "/home/jens/Source/shotwell/src/Page.vala" _g_free0 (drag_and_drop_handler_TEXT_ATOM); -#line 2487 "/home/jens/Source/shotwell/src/Page.vala" +#line 2499 "/home/jens/Source/shotwell/src/Page.vala" drag_and_drop_handler_TEXT_ATOM = _tmp11_; -#line 15140 "Page.c" +#line 15264 "Page.c" } -#line 2489 "/home/jens/Source/shotwell/src/Page.vala" +#line 2501 "/home/jens/Source/shotwell/src/Page.vala" _tmp12_ = drag_and_drop_handler_XDS_FAKE_TARGET; -#line 2489 "/home/jens/Source/shotwell/src/Page.vala" +#line 2501 "/home/jens/Source/shotwell/src/Page.vala" _tmp12__length1 = drag_and_drop_handler_XDS_FAKE_TARGET_length1; -#line 2489 "/home/jens/Source/shotwell/src/Page.vala" +#line 2501 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp12_ == NULL) { -#line 15148 "Page.c" +#line 15272 "Page.c" gint _tmp13_ = 0; guchar* _tmp14_ = NULL; -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" +#line 2502 "/home/jens/Source/shotwell/src/Page.vala" _tmp14_ = string_to_uchar_array ("shotwell.txt", &_tmp13_); -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" +#line 2502 "/home/jens/Source/shotwell/src/Page.vala" drag_and_drop_handler_XDS_FAKE_TARGET = (g_free (drag_and_drop_handler_XDS_FAKE_TARGET), NULL); -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" +#line 2502 "/home/jens/Source/shotwell/src/Page.vala" drag_and_drop_handler_XDS_FAKE_TARGET = _tmp14_; -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" +#line 2502 "/home/jens/Source/shotwell/src/Page.vala" drag_and_drop_handler_XDS_FAKE_TARGET_length1 = _tmp13_; -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" +#line 2502 "/home/jens/Source/shotwell/src/Page.vala" _drag_and_drop_handler_XDS_FAKE_TARGET_size_ = drag_and_drop_handler_XDS_FAKE_TARGET_length1; -#line 15161 "Page.c" +#line 15285 "Page.c" } -#line 2493 "/home/jens/Source/shotwell/src/Page.vala" +#line 2505 "/home/jens/Source/shotwell/src/Page.vala" _tmp15_ = self->priv->event_source; -#line 2493 "/home/jens/Source/shotwell/src/Page.vala" +#line 2505 "/home/jens/Source/shotwell/src/Page.vala" gtk_drag_source_set (_tmp15_, GDK_BUTTON1_MASK, DRAG_AND_DROP_HANDLER_SOURCE_TARGET_ENTRIES, G_N_ELEMENTS (DRAG_AND_DROP_HANDLER_SOURCE_TARGET_ENTRIES), GDK_ACTION_COPY); -#line 2498 "/home/jens/Source/shotwell/src/Page.vala" +#line 2510 "/home/jens/Source/shotwell/src/Page.vala" _tmp16_ = self->priv->event_source; -#line 2498 "/home/jens/Source/shotwell/src/Page.vala" +#line 2510 "/home/jens/Source/shotwell/src/Page.vala" g_signal_connect (_tmp16_, "drag-begin", (GCallback) _drag_and_drop_handler_on_drag_begin_gtk_widget_drag_begin, self); -#line 2499 "/home/jens/Source/shotwell/src/Page.vala" +#line 2511 "/home/jens/Source/shotwell/src/Page.vala" _tmp17_ = self->priv->event_source; -#line 2499 "/home/jens/Source/shotwell/src/Page.vala" +#line 2511 "/home/jens/Source/shotwell/src/Page.vala" g_signal_connect (_tmp17_, "drag-data-get", (GCallback) _drag_and_drop_handler_on_drag_data_get_gtk_widget_drag_data_get, self); -#line 2500 "/home/jens/Source/shotwell/src/Page.vala" +#line 2512 "/home/jens/Source/shotwell/src/Page.vala" _tmp18_ = self->priv->event_source; -#line 2500 "/home/jens/Source/shotwell/src/Page.vala" +#line 2512 "/home/jens/Source/shotwell/src/Page.vala" g_signal_connect (_tmp18_, "drag-end", (GCallback) _drag_and_drop_handler_on_drag_end_gtk_widget_drag_end, self); -#line 2501 "/home/jens/Source/shotwell/src/Page.vala" +#line 2513 "/home/jens/Source/shotwell/src/Page.vala" _tmp19_ = self->priv->event_source; -#line 2501 "/home/jens/Source/shotwell/src/Page.vala" +#line 2513 "/home/jens/Source/shotwell/src/Page.vala" g_signal_connect (_tmp19_, "drag-failed", (GCallback) _drag_and_drop_handler_on_drag_failed_gtk_widget_drag_failed, self); -#line 2476 "/home/jens/Source/shotwell/src/Page.vala" +#line 2488 "/home/jens/Source/shotwell/src/Page.vala" return self; -#line 15185 "Page.c" +#line 15309 "Page.c" } DragAndDropHandler* drag_and_drop_handler_new (Page* page) { -#line 2476 "/home/jens/Source/shotwell/src/Page.vala" +#line 2488 "/home/jens/Source/shotwell/src/Page.vala" return drag_and_drop_handler_construct (TYPE_DRAG_AND_DROP_HANDLER, page); -#line 15192 "Page.c" +#line 15316 "Page.c" } @@ -15214,119 +15338,119 @@ static void drag_and_drop_handler_on_drag_begin (DragAndDropHandler* self, GdkDr guint8* _tmp31_ = NULL; gint _tmp31__length1 = 0; GError * _inner_error_ = NULL; -#line 2516 "/home/jens/Source/shotwell/src/Page.vala" +#line 2528 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_DRAG_AND_DROP_HANDLER (self)); -#line 2516 "/home/jens/Source/shotwell/src/Page.vala" +#line 2528 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (GDK_IS_DRAG_CONTEXT (context)); -#line 2517 "/home/jens/Source/shotwell/src/Page.vala" +#line 2529 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->page; -#line 2517 "/home/jens/Source/shotwell/src/Page.vala" +#line 2529 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = page_get_page_name (_tmp0_); -#line 2517 "/home/jens/Source/shotwell/src/Page.vala" +#line 2529 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = _tmp1_; -#line 2517 "/home/jens/Source/shotwell/src/Page.vala" - g_debug ("Page.vala:2517: on_drag_begin (%s)", _tmp2_); -#line 2517 "/home/jens/Source/shotwell/src/Page.vala" +#line 2529 "/home/jens/Source/shotwell/src/Page.vala" + g_debug ("Page.vala:2529: on_drag_begin (%s)", _tmp2_); +#line 2529 "/home/jens/Source/shotwell/src/Page.vala" _g_free0 (_tmp2_); -#line 2519 "/home/jens/Source/shotwell/src/Page.vala" +#line 2531 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = self->priv->page; -#line 2519 "/home/jens/Source/shotwell/src/Page.vala" +#line 2531 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp5_ == NULL) { -#line 2519 "/home/jens/Source/shotwell/src/Page.vala" +#line 2531 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = TRUE; -#line 15238 "Page.c" +#line 15362 "Page.c" } else { Page* _tmp6_ = NULL; ViewCollection* _tmp7_ = NULL; ViewCollection* _tmp8_ = NULL; gint _tmp9_ = 0; -#line 2519 "/home/jens/Source/shotwell/src/Page.vala" +#line 2531 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = self->priv->page; -#line 2519 "/home/jens/Source/shotwell/src/Page.vala" +#line 2531 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = page_get_view (_tmp6_); -#line 2519 "/home/jens/Source/shotwell/src/Page.vala" +#line 2531 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = _tmp7_; -#line 2519 "/home/jens/Source/shotwell/src/Page.vala" +#line 2531 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = view_collection_get_selected_count (_tmp8_); -#line 2519 "/home/jens/Source/shotwell/src/Page.vala" +#line 2531 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = _tmp9_ == 0; -#line 2519 "/home/jens/Source/shotwell/src/Page.vala" +#line 2531 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp8_); -#line 15256 "Page.c" +#line 15380 "Page.c" } -#line 2519 "/home/jens/Source/shotwell/src/Page.vala" +#line 2531 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp4_) { -#line 2519 "/home/jens/Source/shotwell/src/Page.vala" +#line 2531 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = TRUE; -#line 15262 "Page.c" +#line 15386 "Page.c" } else { ExporterUI* _tmp10_ = NULL; -#line 2519 "/home/jens/Source/shotwell/src/Page.vala" +#line 2531 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = self->priv->exporter; -#line 2519 "/home/jens/Source/shotwell/src/Page.vala" +#line 2531 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = _tmp10_ != NULL; -#line 15269 "Page.c" +#line 15393 "Page.c" } -#line 2519 "/home/jens/Source/shotwell/src/Page.vala" +#line 2531 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp3_) { -#line 2520 "/home/jens/Source/shotwell/src/Page.vala" +#line 2532 "/home/jens/Source/shotwell/src/Page.vala" return; -#line 15275 "Page.c" +#line 15399 "Page.c" } -#line 2522 "/home/jens/Source/shotwell/src/Page.vala" +#line 2534 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->priv->drag_destination); -#line 2522 "/home/jens/Source/shotwell/src/Page.vala" +#line 2534 "/home/jens/Source/shotwell/src/Page.vala" self->priv->drag_destination = NULL; -#line 2525 "/home/jens/Source/shotwell/src/Page.vala" +#line 2537 "/home/jens/Source/shotwell/src/Page.vala" _tmp11_ = self->priv->page; -#line 2525 "/home/jens/Source/shotwell/src/Page.vala" +#line 2537 "/home/jens/Source/shotwell/src/Page.vala" _tmp12_ = page_get_view (_tmp11_); -#line 2525 "/home/jens/Source/shotwell/src/Page.vala" +#line 2537 "/home/jens/Source/shotwell/src/Page.vala" _tmp13_ = _tmp12_; -#line 2525 "/home/jens/Source/shotwell/src/Page.vala" +#line 2537 "/home/jens/Source/shotwell/src/Page.vala" _tmp14_ = view_collection_get_selected_at (_tmp13_, 0); -#line 2525 "/home/jens/Source/shotwell/src/Page.vala" +#line 2537 "/home/jens/Source/shotwell/src/Page.vala" _tmp15_ = _tmp14_; -#line 2525 "/home/jens/Source/shotwell/src/Page.vala" +#line 2537 "/home/jens/Source/shotwell/src/Page.vala" _tmp16_ = data_view_get_source (_tmp15_); -#line 2525 "/home/jens/Source/shotwell/src/Page.vala" +#line 2537 "/home/jens/Source/shotwell/src/Page.vala" _tmp17_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource); -#line 2525 "/home/jens/Source/shotwell/src/Page.vala" +#line 2537 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (_tmp15_); -#line 2525 "/home/jens/Source/shotwell/src/Page.vala" +#line 2537 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp13_); -#line 2525 "/home/jens/Source/shotwell/src/Page.vala" +#line 2537 "/home/jens/Source/shotwell/src/Page.vala" thumb = _tmp17_; -#line 15301 "Page.c" +#line 15425 "Page.c" { GdkPixbuf* icon = NULL; ThumbnailSource* _tmp18_ = NULL; GdkPixbuf* _tmp19_ = NULL; GtkWidget* _tmp20_ = NULL; GdkPixbuf* _tmp21_ = NULL; -#line 2528 "/home/jens/Source/shotwell/src/Page.vala" +#line 2540 "/home/jens/Source/shotwell/src/Page.vala" _tmp18_ = thumb; -#line 2528 "/home/jens/Source/shotwell/src/Page.vala" +#line 2540 "/home/jens/Source/shotwell/src/Page.vala" _tmp19_ = thumbnail_source_get_thumbnail (_tmp18_, APP_WINDOW_DND_ICON_SCALE, &_inner_error_); -#line 2528 "/home/jens/Source/shotwell/src/Page.vala" +#line 2540 "/home/jens/Source/shotwell/src/Page.vala" icon = _tmp19_; -#line 2528 "/home/jens/Source/shotwell/src/Page.vala" +#line 2540 "/home/jens/Source/shotwell/src/Page.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 15316 "Page.c" - goto __catch252_g_error; +#line 15440 "Page.c" + goto __catch254_g_error; } -#line 2529 "/home/jens/Source/shotwell/src/Page.vala" +#line 2541 "/home/jens/Source/shotwell/src/Page.vala" _tmp20_ = self->priv->event_source; -#line 2529 "/home/jens/Source/shotwell/src/Page.vala" +#line 2541 "/home/jens/Source/shotwell/src/Page.vala" _tmp21_ = icon; -#line 2529 "/home/jens/Source/shotwell/src/Page.vala" +#line 2541 "/home/jens/Source/shotwell/src/Page.vala" gtk_drag_source_set_icon_pixbuf (_tmp20_, _tmp21_); -#line 2527 "/home/jens/Source/shotwell/src/Page.vala" +#line 2539 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (icon); -#line 15327 "Page.c" +#line 15451 "Page.c" } - goto __finally252; - __catch252_g_error: + goto __finally254; + __catch254_g_error: { GError* err = NULL; ThumbnailSource* _tmp22_ = NULL; @@ -15334,58 +15458,58 @@ static void drag_and_drop_handler_on_drag_begin (DragAndDropHandler* self, GdkDr gchar* _tmp24_ = NULL; GError* _tmp25_ = NULL; const gchar* _tmp26_ = NULL; -#line 2527 "/home/jens/Source/shotwell/src/Page.vala" +#line 2539 "/home/jens/Source/shotwell/src/Page.vala" err = _inner_error_; -#line 2527 "/home/jens/Source/shotwell/src/Page.vala" +#line 2539 "/home/jens/Source/shotwell/src/Page.vala" _inner_error_ = NULL; -#line 2531 "/home/jens/Source/shotwell/src/Page.vala" +#line 2543 "/home/jens/Source/shotwell/src/Page.vala" _tmp22_ = thumb; -#line 2531 "/home/jens/Source/shotwell/src/Page.vala" +#line 2543 "/home/jens/Source/shotwell/src/Page.vala" _tmp23_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_DATA_OBJECT, DataObject)); -#line 2531 "/home/jens/Source/shotwell/src/Page.vala" +#line 2543 "/home/jens/Source/shotwell/src/Page.vala" _tmp24_ = _tmp23_; -#line 2531 "/home/jens/Source/shotwell/src/Page.vala" +#line 2543 "/home/jens/Source/shotwell/src/Page.vala" _tmp25_ = err; -#line 2531 "/home/jens/Source/shotwell/src/Page.vala" +#line 2543 "/home/jens/Source/shotwell/src/Page.vala" _tmp26_ = _tmp25_->message; -#line 2531 "/home/jens/Source/shotwell/src/Page.vala" - g_warning ("Page.vala:2531: Unable to fetch icon for drag-and-drop from %s: %s", _tmp24_, _tmp26_); -#line 2531 "/home/jens/Source/shotwell/src/Page.vala" +#line 2543 "/home/jens/Source/shotwell/src/Page.vala" + g_warning ("Page.vala:2543: Unable to fetch icon for drag-and-drop from %s: %s", _tmp24_, _tmp26_); +#line 2543 "/home/jens/Source/shotwell/src/Page.vala" _g_free0 (_tmp24_); -#line 2527 "/home/jens/Source/shotwell/src/Page.vala" +#line 2539 "/home/jens/Source/shotwell/src/Page.vala" _g_error_free0 (err); -#line 15358 "Page.c" +#line 15482 "Page.c" } - __finally252: -#line 2527 "/home/jens/Source/shotwell/src/Page.vala" + __finally254: +#line 2539 "/home/jens/Source/shotwell/src/Page.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2527 "/home/jens/Source/shotwell/src/Page.vala" +#line 2539 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (thumb); -#line 2527 "/home/jens/Source/shotwell/src/Page.vala" +#line 2539 "/home/jens/Source/shotwell/src/Page.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2527 "/home/jens/Source/shotwell/src/Page.vala" +#line 2539 "/home/jens/Source/shotwell/src/Page.vala" g_clear_error (&_inner_error_); -#line 2527 "/home/jens/Source/shotwell/src/Page.vala" +#line 2539 "/home/jens/Source/shotwell/src/Page.vala" return; -#line 15371 "Page.c" +#line 15495 "Page.c" } -#line 2537 "/home/jens/Source/shotwell/src/Page.vala" +#line 2549 "/home/jens/Source/shotwell/src/Page.vala" _tmp27_ = context; -#line 2537 "/home/jens/Source/shotwell/src/Page.vala" +#line 2549 "/home/jens/Source/shotwell/src/Page.vala" _tmp28_ = gdk_drag_context_get_source_window (_tmp27_); -#line 2537 "/home/jens/Source/shotwell/src/Page.vala" +#line 2549 "/home/jens/Source/shotwell/src/Page.vala" _tmp29_ = drag_and_drop_handler_XDS_ATOM; -#line 2537 "/home/jens/Source/shotwell/src/Page.vala" +#line 2549 "/home/jens/Source/shotwell/src/Page.vala" _tmp30_ = drag_and_drop_handler_TEXT_ATOM; -#line 2537 "/home/jens/Source/shotwell/src/Page.vala" +#line 2549 "/home/jens/Source/shotwell/src/Page.vala" _tmp31_ = drag_and_drop_handler_XDS_FAKE_TARGET; -#line 2537 "/home/jens/Source/shotwell/src/Page.vala" +#line 2549 "/home/jens/Source/shotwell/src/Page.vala" _tmp31__length1 = drag_and_drop_handler_XDS_FAKE_TARGET_length1; -#line 2537 "/home/jens/Source/shotwell/src/Page.vala" +#line 2549 "/home/jens/Source/shotwell/src/Page.vala" gdk_property_change (_tmp28_, *_tmp29_, *_tmp30_, 8, GDK_PROP_MODE_REPLACE, (const guchar*) _tmp31_, 1); -#line 2516 "/home/jens/Source/shotwell/src/Page.vala" +#line 2528 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (thumb); -#line 15389 "Page.c" +#line 15513 "Page.c" } @@ -15396,61 +15520,61 @@ static void drag_and_drop_handler_on_drag_data_get (DragAndDropHandler* self, Gd gboolean _tmp3_ = FALSE; Page* _tmp4_ = NULL; guint _tmp9_ = 0U; -#line 2545 "/home/jens/Source/shotwell/src/Page.vala" +#line 2557 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_DRAG_AND_DROP_HANDLER (self)); -#line 2545 "/home/jens/Source/shotwell/src/Page.vala" +#line 2557 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (GDK_IS_DRAG_CONTEXT (context)); -#line 2545 "/home/jens/Source/shotwell/src/Page.vala" +#line 2557 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (selection_data != NULL); -#line 2547 "/home/jens/Source/shotwell/src/Page.vala" +#line 2559 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->page; -#line 2547 "/home/jens/Source/shotwell/src/Page.vala" +#line 2559 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = page_get_page_name (_tmp0_); -#line 2547 "/home/jens/Source/shotwell/src/Page.vala" +#line 2559 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = _tmp1_; -#line 2547 "/home/jens/Source/shotwell/src/Page.vala" - g_debug ("Page.vala:2547: on_drag_data_get (%s)", _tmp2_); -#line 2547 "/home/jens/Source/shotwell/src/Page.vala" +#line 2559 "/home/jens/Source/shotwell/src/Page.vala" + g_debug ("Page.vala:2559: on_drag_data_get (%s)", _tmp2_); +#line 2559 "/home/jens/Source/shotwell/src/Page.vala" _g_free0 (_tmp2_); -#line 2549 "/home/jens/Source/shotwell/src/Page.vala" +#line 2561 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = self->priv->page; -#line 2549 "/home/jens/Source/shotwell/src/Page.vala" +#line 2561 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp4_ == NULL) { -#line 2549 "/home/jens/Source/shotwell/src/Page.vala" +#line 2561 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = TRUE; -#line 15422 "Page.c" +#line 15546 "Page.c" } else { Page* _tmp5_ = NULL; ViewCollection* _tmp6_ = NULL; ViewCollection* _tmp7_ = NULL; gint _tmp8_ = 0; -#line 2549 "/home/jens/Source/shotwell/src/Page.vala" +#line 2561 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = self->priv->page; -#line 2549 "/home/jens/Source/shotwell/src/Page.vala" +#line 2561 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = page_get_view (_tmp5_); -#line 2549 "/home/jens/Source/shotwell/src/Page.vala" +#line 2561 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = _tmp6_; -#line 2549 "/home/jens/Source/shotwell/src/Page.vala" +#line 2561 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = view_collection_get_selected_count (_tmp7_); -#line 2549 "/home/jens/Source/shotwell/src/Page.vala" +#line 2561 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = _tmp8_ == 0; -#line 2549 "/home/jens/Source/shotwell/src/Page.vala" +#line 2561 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp7_); -#line 15440 "Page.c" +#line 15564 "Page.c" } -#line 2549 "/home/jens/Source/shotwell/src/Page.vala" +#line 2561 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp3_) { -#line 2550 "/home/jens/Source/shotwell/src/Page.vala" +#line 2562 "/home/jens/Source/shotwell/src/Page.vala" return; -#line 15446 "Page.c" +#line 15570 "Page.c" } -#line 2552 "/home/jens/Source/shotwell/src/Page.vala" +#line 2564 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = target_type; -#line 2552 "/home/jens/Source/shotwell/src/Page.vala" +#line 2564 "/home/jens/Source/shotwell/src/Page.vala" switch (_tmp9_) { -#line 2552 "/home/jens/Source/shotwell/src/Page.vala" +#line 2564 "/home/jens/Source/shotwell/src/Page.vala" case DRAG_AND_DROP_HANDLER_TARGET_TYPE_XDS: -#line 15454 "Page.c" +#line 15578 "Page.c" { guchar* data = NULL; guchar* _tmp10_ = NULL; @@ -15486,83 +15610,83 @@ static void drag_and_drop_handler_on_drag_data_get (DragAndDropHandler* self, Gd guchar* _tmp45_ = NULL; guchar* _tmp46_ = NULL; gint _tmp46__length1 = 0; -#line 2555 "/home/jens/Source/shotwell/src/Page.vala" +#line 2567 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = g_new0 (guchar, 4096); -#line 2555 "/home/jens/Source/shotwell/src/Page.vala" +#line 2567 "/home/jens/Source/shotwell/src/Page.vala" data = _tmp10_; -#line 2555 "/home/jens/Source/shotwell/src/Page.vala" +#line 2567 "/home/jens/Source/shotwell/src/Page.vala" data_length1 = 4096; -#line 2555 "/home/jens/Source/shotwell/src/Page.vala" +#line 2567 "/home/jens/Source/shotwell/src/Page.vala" _data_size_ = data_length1; -#line 2557 "/home/jens/Source/shotwell/src/Page.vala" +#line 2569 "/home/jens/Source/shotwell/src/Page.vala" actual_format = 0; -#line 2558 "/home/jens/Source/shotwell/src/Page.vala" +#line 2570 "/home/jens/Source/shotwell/src/Page.vala" _tmp11_ = context; -#line 2558 "/home/jens/Source/shotwell/src/Page.vala" +#line 2570 "/home/jens/Source/shotwell/src/Page.vala" _tmp12_ = gdk_drag_context_get_source_window (_tmp11_); -#line 2558 "/home/jens/Source/shotwell/src/Page.vala" +#line 2570 "/home/jens/Source/shotwell/src/Page.vala" _tmp13_ = drag_and_drop_handler_XDS_ATOM; -#line 2558 "/home/jens/Source/shotwell/src/Page.vala" +#line 2570 "/home/jens/Source/shotwell/src/Page.vala" _tmp14_ = drag_and_drop_handler_TEXT_ATOM; -#line 2558 "/home/jens/Source/shotwell/src/Page.vala" +#line 2570 "/home/jens/Source/shotwell/src/Page.vala" _tmp15_ = data; -#line 2558 "/home/jens/Source/shotwell/src/Page.vala" +#line 2570 "/home/jens/Source/shotwell/src/Page.vala" _tmp15__length1 = data_length1; -#line 2558 "/home/jens/Source/shotwell/src/Page.vala" +#line 2570 "/home/jens/Source/shotwell/src/Page.vala" _tmp20_ = gdk_property_get (_tmp12_, *_tmp13_, *_tmp14_, (gulong) 0, (gulong) _tmp15__length1, 0, &_tmp16_, &_tmp17_, &_tmp19_, &_tmp18_); -#line 2558 "/home/jens/Source/shotwell/src/Page.vala" +#line 2570 "/home/jens/Source/shotwell/src/Page.vala" actual_type = _tmp16_; -#line 2558 "/home/jens/Source/shotwell/src/Page.vala" +#line 2570 "/home/jens/Source/shotwell/src/Page.vala" actual_format = _tmp17_; -#line 2558 "/home/jens/Source/shotwell/src/Page.vala" +#line 2570 "/home/jens/Source/shotwell/src/Page.vala" data = (g_free (data), NULL); -#line 2558 "/home/jens/Source/shotwell/src/Page.vala" +#line 2570 "/home/jens/Source/shotwell/src/Page.vala" data = _tmp18_; -#line 2558 "/home/jens/Source/shotwell/src/Page.vala" +#line 2570 "/home/jens/Source/shotwell/src/Page.vala" data_length1 = _tmp19_; -#line 2558 "/home/jens/Source/shotwell/src/Page.vala" +#line 2570 "/home/jens/Source/shotwell/src/Page.vala" _data_size_ = data_length1; -#line 2558 "/home/jens/Source/shotwell/src/Page.vala" +#line 2570 "/home/jens/Source/shotwell/src/Page.vala" fetched = _tmp20_; -#line 2563 "/home/jens/Source/shotwell/src/Page.vala" +#line 2575 "/home/jens/Source/shotwell/src/Page.vala" _tmp23_ = fetched; -#line 2563 "/home/jens/Source/shotwell/src/Page.vala" +#line 2575 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp23_) { -#line 15532 "Page.c" +#line 15656 "Page.c" guchar* _tmp24_ = NULL; gint _tmp24__length1 = 0; -#line 2563 "/home/jens/Source/shotwell/src/Page.vala" +#line 2575 "/home/jens/Source/shotwell/src/Page.vala" _tmp24_ = data; -#line 2563 "/home/jens/Source/shotwell/src/Page.vala" +#line 2575 "/home/jens/Source/shotwell/src/Page.vala" _tmp24__length1 = data_length1; -#line 2563 "/home/jens/Source/shotwell/src/Page.vala" +#line 2575 "/home/jens/Source/shotwell/src/Page.vala" _tmp22_ = _tmp24_ != NULL; -#line 15541 "Page.c" +#line 15665 "Page.c" } else { -#line 2563 "/home/jens/Source/shotwell/src/Page.vala" +#line 2575 "/home/jens/Source/shotwell/src/Page.vala" _tmp22_ = FALSE; -#line 15545 "Page.c" +#line 15669 "Page.c" } -#line 2563 "/home/jens/Source/shotwell/src/Page.vala" +#line 2575 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp22_) { -#line 15549 "Page.c" +#line 15673 "Page.c" guchar* _tmp25_ = NULL; gint _tmp25__length1 = 0; -#line 2563 "/home/jens/Source/shotwell/src/Page.vala" +#line 2575 "/home/jens/Source/shotwell/src/Page.vala" _tmp25_ = data; -#line 2563 "/home/jens/Source/shotwell/src/Page.vala" +#line 2575 "/home/jens/Source/shotwell/src/Page.vala" _tmp25__length1 = data_length1; -#line 2563 "/home/jens/Source/shotwell/src/Page.vala" +#line 2575 "/home/jens/Source/shotwell/src/Page.vala" _tmp21_ = _tmp25__length1 > 0; -#line 15558 "Page.c" +#line 15682 "Page.c" } else { -#line 2563 "/home/jens/Source/shotwell/src/Page.vala" +#line 2575 "/home/jens/Source/shotwell/src/Page.vala" _tmp21_ = FALSE; -#line 15562 "Page.c" +#line 15686 "Page.c" } -#line 2563 "/home/jens/Source/shotwell/src/Page.vala" +#line 2575 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp21_) { -#line 15566 "Page.c" +#line 15690 "Page.c" guchar* _tmp26_ = NULL; gint _tmp26__length1 = 0; gchar* _tmp27_ = NULL; @@ -15570,103 +15694,103 @@ static void drag_and_drop_handler_on_drag_data_get (DragAndDropHandler* self, Gd GFile* _tmp29_ = NULL; GFile* _tmp30_ = NULL; GFile* _tmp31_ = NULL; -#line 2564 "/home/jens/Source/shotwell/src/Page.vala" +#line 2576 "/home/jens/Source/shotwell/src/Page.vala" _tmp26_ = data; -#line 2564 "/home/jens/Source/shotwell/src/Page.vala" +#line 2576 "/home/jens/Source/shotwell/src/Page.vala" _tmp26__length1 = data_length1; -#line 2564 "/home/jens/Source/shotwell/src/Page.vala" +#line 2576 "/home/jens/Source/shotwell/src/Page.vala" _tmp27_ = uchar_array_to_string (_tmp26_, _tmp26__length1, -1); -#line 2564 "/home/jens/Source/shotwell/src/Page.vala" +#line 2576 "/home/jens/Source/shotwell/src/Page.vala" _tmp28_ = _tmp27_; -#line 2564 "/home/jens/Source/shotwell/src/Page.vala" +#line 2576 "/home/jens/Source/shotwell/src/Page.vala" _tmp29_ = g_file_new_for_uri (_tmp28_); -#line 2564 "/home/jens/Source/shotwell/src/Page.vala" +#line 2576 "/home/jens/Source/shotwell/src/Page.vala" _tmp30_ = _tmp29_; -#line 2564 "/home/jens/Source/shotwell/src/Page.vala" +#line 2576 "/home/jens/Source/shotwell/src/Page.vala" _tmp31_ = g_file_get_parent (_tmp30_); -#line 2564 "/home/jens/Source/shotwell/src/Page.vala" +#line 2576 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->priv->drag_destination); -#line 2564 "/home/jens/Source/shotwell/src/Page.vala" +#line 2576 "/home/jens/Source/shotwell/src/Page.vala" self->priv->drag_destination = _tmp31_; -#line 2564 "/home/jens/Source/shotwell/src/Page.vala" +#line 2576 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (_tmp30_); -#line 2564 "/home/jens/Source/shotwell/src/Page.vala" +#line 2576 "/home/jens/Source/shotwell/src/Page.vala" _g_free0 (_tmp28_); -#line 15596 "Page.c" +#line 15720 "Page.c" } -#line 2567 "/home/jens/Source/shotwell/src/Page.vala" +#line 2579 "/home/jens/Source/shotwell/src/Page.vala" _tmp33_ = self->priv->drag_destination; -#line 2567 "/home/jens/Source/shotwell/src/Page.vala" +#line 2579 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp33_ != NULL) { -#line 15602 "Page.c" +#line 15726 "Page.c" GFile* _tmp34_ = NULL; gchar* _tmp35_ = NULL; -#line 2567 "/home/jens/Source/shotwell/src/Page.vala" +#line 2579 "/home/jens/Source/shotwell/src/Page.vala" _tmp34_ = self->priv->drag_destination; -#line 2567 "/home/jens/Source/shotwell/src/Page.vala" +#line 2579 "/home/jens/Source/shotwell/src/Page.vala" _tmp35_ = g_file_get_path (_tmp34_); -#line 2567 "/home/jens/Source/shotwell/src/Page.vala" +#line 2579 "/home/jens/Source/shotwell/src/Page.vala" _g_free0 (_tmp32_); -#line 2567 "/home/jens/Source/shotwell/src/Page.vala" +#line 2579 "/home/jens/Source/shotwell/src/Page.vala" _tmp32_ = _tmp35_; -#line 15613 "Page.c" +#line 15737 "Page.c" } else { gchar* _tmp36_ = NULL; -#line 2567 "/home/jens/Source/shotwell/src/Page.vala" +#line 2579 "/home/jens/Source/shotwell/src/Page.vala" _tmp36_ = g_strdup ("(no path)"); -#line 2567 "/home/jens/Source/shotwell/src/Page.vala" +#line 2579 "/home/jens/Source/shotwell/src/Page.vala" _g_free0 (_tmp32_); -#line 2567 "/home/jens/Source/shotwell/src/Page.vala" +#line 2579 "/home/jens/Source/shotwell/src/Page.vala" _tmp32_ = _tmp36_; -#line 15622 "Page.c" +#line 15746 "Page.c" } -#line 2566 "/home/jens/Source/shotwell/src/Page.vala" +#line 2578 "/home/jens/Source/shotwell/src/Page.vala" _tmp37_ = self->priv->page; -#line 2566 "/home/jens/Source/shotwell/src/Page.vala" +#line 2578 "/home/jens/Source/shotwell/src/Page.vala" _tmp38_ = page_get_page_name (_tmp37_); -#line 2566 "/home/jens/Source/shotwell/src/Page.vala" +#line 2578 "/home/jens/Source/shotwell/src/Page.vala" _tmp39_ = _tmp38_; -#line 2566 "/home/jens/Source/shotwell/src/Page.vala" - g_debug ("Page.vala:2566: on_drag_data_get (%s): %s", _tmp39_, _tmp32_); -#line 2566 "/home/jens/Source/shotwell/src/Page.vala" +#line 2578 "/home/jens/Source/shotwell/src/Page.vala" + g_debug ("Page.vala:2578: on_drag_data_get (%s): %s", _tmp39_, _tmp32_); +#line 2578 "/home/jens/Source/shotwell/src/Page.vala" _g_free0 (_tmp39_); -#line 2571 "/home/jens/Source/shotwell/src/Page.vala" +#line 2583 "/home/jens/Source/shotwell/src/Page.vala" _tmp41_ = self->priv->drag_destination; -#line 2571 "/home/jens/Source/shotwell/src/Page.vala" +#line 2583 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp41_ != NULL) { -#line 2571 "/home/jens/Source/shotwell/src/Page.vala" +#line 2583 "/home/jens/Source/shotwell/src/Page.vala" _tmp40_ = "S"; -#line 15640 "Page.c" +#line 15764 "Page.c" } else { -#line 2571 "/home/jens/Source/shotwell/src/Page.vala" +#line 2583 "/home/jens/Source/shotwell/src/Page.vala" _tmp40_ = "E"; -#line 15644 "Page.c" +#line 15768 "Page.c" } -#line 2570 "/home/jens/Source/shotwell/src/Page.vala" +#line 2582 "/home/jens/Source/shotwell/src/Page.vala" _tmp42_ = selection_data; -#line 2570 "/home/jens/Source/shotwell/src/Page.vala" +#line 2582 "/home/jens/Source/shotwell/src/Page.vala" _tmp43_ = drag_and_drop_handler_XDS_ATOM; -#line 2570 "/home/jens/Source/shotwell/src/Page.vala" +#line 2582 "/home/jens/Source/shotwell/src/Page.vala" _tmp45_ = string_to_uchar_array (_tmp40_, &_tmp44_); -#line 2570 "/home/jens/Source/shotwell/src/Page.vala" +#line 2582 "/home/jens/Source/shotwell/src/Page.vala" _tmp46_ = _tmp45_; -#line 2570 "/home/jens/Source/shotwell/src/Page.vala" +#line 2582 "/home/jens/Source/shotwell/src/Page.vala" _tmp46__length1 = _tmp44_; -#line 2570 "/home/jens/Source/shotwell/src/Page.vala" +#line 2582 "/home/jens/Source/shotwell/src/Page.vala" gtk_selection_data_set (_tmp42_, *_tmp43_, 8, _tmp46_, _tmp44_); -#line 2570 "/home/jens/Source/shotwell/src/Page.vala" +#line 2582 "/home/jens/Source/shotwell/src/Page.vala" _tmp46_ = (g_free (_tmp46_), NULL); -#line 2572 "/home/jens/Source/shotwell/src/Page.vala" +#line 2584 "/home/jens/Source/shotwell/src/Page.vala" _g_free0 (_tmp32_); -#line 2572 "/home/jens/Source/shotwell/src/Page.vala" +#line 2584 "/home/jens/Source/shotwell/src/Page.vala" data = (g_free (data), NULL); -#line 2572 "/home/jens/Source/shotwell/src/Page.vala" +#line 2584 "/home/jens/Source/shotwell/src/Page.vala" break; -#line 15666 "Page.c" +#line 15790 "Page.c" } -#line 2552 "/home/jens/Source/shotwell/src/Page.vala" +#line 2564 "/home/jens/Source/shotwell/src/Page.vala" case DRAG_AND_DROP_HANDLER_TARGET_TYPE_MEDIA_LIST: -#line 15670 "Page.c" +#line 15794 "Page.c" { GeeCollection* sources = NULL; Page* _tmp47_ = NULL; @@ -15681,41 +15805,41 @@ static void drag_and_drop_handler_on_drag_data_get (DragAndDropHandler* self, Gd guchar* _tmp56_ = NULL; guchar* _tmp57_ = NULL; gint _tmp57__length1 = 0; -#line 2575 "/home/jens/Source/shotwell/src/Page.vala" +#line 2587 "/home/jens/Source/shotwell/src/Page.vala" _tmp47_ = self->priv->page; -#line 2575 "/home/jens/Source/shotwell/src/Page.vala" +#line 2587 "/home/jens/Source/shotwell/src/Page.vala" _tmp48_ = page_get_view (_tmp47_); -#line 2575 "/home/jens/Source/shotwell/src/Page.vala" +#line 2587 "/home/jens/Source/shotwell/src/Page.vala" _tmp49_ = _tmp48_; -#line 2575 "/home/jens/Source/shotwell/src/Page.vala" +#line 2587 "/home/jens/Source/shotwell/src/Page.vala" _tmp50_ = view_collection_get_selected_sources (_tmp49_); -#line 2575 "/home/jens/Source/shotwell/src/Page.vala" +#line 2587 "/home/jens/Source/shotwell/src/Page.vala" _tmp51_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, GEE_TYPE_COLLECTION, GeeCollection); -#line 2575 "/home/jens/Source/shotwell/src/Page.vala" +#line 2587 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp49_); -#line 2575 "/home/jens/Source/shotwell/src/Page.vala" +#line 2587 "/home/jens/Source/shotwell/src/Page.vala" sources = _tmp51_; -#line 2580 "/home/jens/Source/shotwell/src/Page.vala" +#line 2592 "/home/jens/Source/shotwell/src/Page.vala" _tmp52_ = selection_data; -#line 2580 "/home/jens/Source/shotwell/src/Page.vala" +#line 2592 "/home/jens/Source/shotwell/src/Page.vala" _tmp53_ = gdk_atom_intern_static_string ("SourceIDAtom"); -#line 2580 "/home/jens/Source/shotwell/src/Page.vala" +#line 2592 "/home/jens/Source/shotwell/src/Page.vala" _tmp54_ = sources; -#line 2580 "/home/jens/Source/shotwell/src/Page.vala" +#line 2592 "/home/jens/Source/shotwell/src/Page.vala" _tmp56_ = serialize_media_sources (_tmp54_, &_tmp55_); -#line 2580 "/home/jens/Source/shotwell/src/Page.vala" +#line 2592 "/home/jens/Source/shotwell/src/Page.vala" _tmp57_ = _tmp56_; -#line 2580 "/home/jens/Source/shotwell/src/Page.vala" +#line 2592 "/home/jens/Source/shotwell/src/Page.vala" _tmp57__length1 = _tmp55_; -#line 2580 "/home/jens/Source/shotwell/src/Page.vala" +#line 2592 "/home/jens/Source/shotwell/src/Page.vala" gtk_selection_data_set (_tmp52_, _tmp53_, (gint) sizeof (GdkAtom), _tmp57_, _tmp55_); -#line 2580 "/home/jens/Source/shotwell/src/Page.vala" +#line 2592 "/home/jens/Source/shotwell/src/Page.vala" _tmp57_ = (g_free (_tmp57_), NULL); -#line 2582 "/home/jens/Source/shotwell/src/Page.vala" +#line 2594 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (sources); -#line 2582 "/home/jens/Source/shotwell/src/Page.vala" +#line 2594 "/home/jens/Source/shotwell/src/Page.vala" break; -#line 15719 "Page.c" +#line 15843 "Page.c" } default: { @@ -15723,30 +15847,30 @@ static void drag_and_drop_handler_on_drag_data_get (DragAndDropHandler* self, Gd gchar* _tmp59_ = NULL; gchar* _tmp60_ = NULL; guint _tmp61_ = 0U; -#line 2585 "/home/jens/Source/shotwell/src/Page.vala" +#line 2597 "/home/jens/Source/shotwell/src/Page.vala" _tmp58_ = self->priv->page; -#line 2585 "/home/jens/Source/shotwell/src/Page.vala" +#line 2597 "/home/jens/Source/shotwell/src/Page.vala" _tmp59_ = page_get_page_name (_tmp58_); -#line 2585 "/home/jens/Source/shotwell/src/Page.vala" +#line 2597 "/home/jens/Source/shotwell/src/Page.vala" _tmp60_ = _tmp59_; -#line 2585 "/home/jens/Source/shotwell/src/Page.vala" +#line 2597 "/home/jens/Source/shotwell/src/Page.vala" _tmp61_ = target_type; -#line 2585 "/home/jens/Source/shotwell/src/Page.vala" - g_warning ("Page.vala:2585: on_drag_data_get (%s): unknown target type %u", _tmp60_, _tmp61_); -#line 2585 "/home/jens/Source/shotwell/src/Page.vala" +#line 2597 "/home/jens/Source/shotwell/src/Page.vala" + g_warning ("Page.vala:2597: on_drag_data_get (%s): unknown target type %u", _tmp60_, _tmp61_); +#line 2597 "/home/jens/Source/shotwell/src/Page.vala" _g_free0 (_tmp60_); -#line 2587 "/home/jens/Source/shotwell/src/Page.vala" +#line 2599 "/home/jens/Source/shotwell/src/Page.vala" break; -#line 15741 "Page.c" +#line 15865 "Page.c" } } } static void _drag_and_drop_handler_on_export_completed_exporter_completion_callback (Exporter* exporter, gboolean is_cancelled, gpointer self) { -#line 2608 "/home/jens/Source/shotwell/src/Page.vala" +#line 2620 "/home/jens/Source/shotwell/src/Page.vala" drag_and_drop_handler_on_export_completed ((DragAndDropHandler*) self); -#line 15750 "Page.c" +#line 15874 "Page.c" } @@ -15765,99 +15889,99 @@ static void drag_and_drop_handler_on_drag_end (DragAndDropHandler* self) { gchar* _tmp17_ = NULL; gchar* _tmp18_ = NULL; gboolean _tmp19_ = FALSE; -#line 2591 "/home/jens/Source/shotwell/src/Page.vala" +#line 2603 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_DRAG_AND_DROP_HANDLER (self)); -#line 2592 "/home/jens/Source/shotwell/src/Page.vala" +#line 2604 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->page; -#line 2592 "/home/jens/Source/shotwell/src/Page.vala" +#line 2604 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = page_get_page_name (_tmp0_); -#line 2592 "/home/jens/Source/shotwell/src/Page.vala" +#line 2604 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = _tmp1_; -#line 2592 "/home/jens/Source/shotwell/src/Page.vala" - g_debug ("Page.vala:2592: on_drag_end (%s)", _tmp2_); -#line 2592 "/home/jens/Source/shotwell/src/Page.vala" +#line 2604 "/home/jens/Source/shotwell/src/Page.vala" + g_debug ("Page.vala:2604: on_drag_end (%s)", _tmp2_); +#line 2604 "/home/jens/Source/shotwell/src/Page.vala" _g_free0 (_tmp2_); -#line 2594 "/home/jens/Source/shotwell/src/Page.vala" +#line 2606 "/home/jens/Source/shotwell/src/Page.vala" _tmp6_ = self->priv->page; -#line 2594 "/home/jens/Source/shotwell/src/Page.vala" +#line 2606 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp6_ == NULL) { -#line 2594 "/home/jens/Source/shotwell/src/Page.vala" +#line 2606 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = TRUE; -#line 15787 "Page.c" +#line 15911 "Page.c" } else { Page* _tmp7_ = NULL; ViewCollection* _tmp8_ = NULL; ViewCollection* _tmp9_ = NULL; gint _tmp10_ = 0; -#line 2594 "/home/jens/Source/shotwell/src/Page.vala" +#line 2606 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = self->priv->page; -#line 2594 "/home/jens/Source/shotwell/src/Page.vala" +#line 2606 "/home/jens/Source/shotwell/src/Page.vala" _tmp8_ = page_get_view (_tmp7_); -#line 2594 "/home/jens/Source/shotwell/src/Page.vala" +#line 2606 "/home/jens/Source/shotwell/src/Page.vala" _tmp9_ = _tmp8_; -#line 2594 "/home/jens/Source/shotwell/src/Page.vala" +#line 2606 "/home/jens/Source/shotwell/src/Page.vala" _tmp10_ = view_collection_get_selected_count (_tmp9_); -#line 2594 "/home/jens/Source/shotwell/src/Page.vala" +#line 2606 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = _tmp10_ == 0; -#line 2594 "/home/jens/Source/shotwell/src/Page.vala" +#line 2606 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp9_); -#line 15805 "Page.c" +#line 15929 "Page.c" } -#line 2594 "/home/jens/Source/shotwell/src/Page.vala" +#line 2606 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp5_) { -#line 2594 "/home/jens/Source/shotwell/src/Page.vala" +#line 2606 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = TRUE; -#line 15811 "Page.c" +#line 15935 "Page.c" } else { GFile* _tmp11_ = NULL; -#line 2594 "/home/jens/Source/shotwell/src/Page.vala" +#line 2606 "/home/jens/Source/shotwell/src/Page.vala" _tmp11_ = self->priv->drag_destination; -#line 2594 "/home/jens/Source/shotwell/src/Page.vala" +#line 2606 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = _tmp11_ == NULL; -#line 15818 "Page.c" +#line 15942 "Page.c" } -#line 2594 "/home/jens/Source/shotwell/src/Page.vala" +#line 2606 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp4_) { -#line 2594 "/home/jens/Source/shotwell/src/Page.vala" +#line 2606 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = TRUE; -#line 15824 "Page.c" +#line 15948 "Page.c" } else { ExporterUI* _tmp12_ = NULL; -#line 2595 "/home/jens/Source/shotwell/src/Page.vala" +#line 2607 "/home/jens/Source/shotwell/src/Page.vala" _tmp12_ = self->priv->exporter; -#line 2595 "/home/jens/Source/shotwell/src/Page.vala" +#line 2607 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = _tmp12_ != NULL; -#line 15831 "Page.c" +#line 15955 "Page.c" } -#line 2594 "/home/jens/Source/shotwell/src/Page.vala" +#line 2606 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp3_) { -#line 2596 "/home/jens/Source/shotwell/src/Page.vala" +#line 2608 "/home/jens/Source/shotwell/src/Page.vala" return; -#line 15837 "Page.c" +#line 15961 "Page.c" } -#line 2599 "/home/jens/Source/shotwell/src/Page.vala" +#line 2611 "/home/jens/Source/shotwell/src/Page.vala" _tmp13_ = self->priv->drag_destination; -#line 2599 "/home/jens/Source/shotwell/src/Page.vala" +#line 2611 "/home/jens/Source/shotwell/src/Page.vala" _tmp14_ = g_file_get_path (_tmp13_); -#line 2599 "/home/jens/Source/shotwell/src/Page.vala" +#line 2611 "/home/jens/Source/shotwell/src/Page.vala" _tmp15_ = _tmp14_; -#line 2599 "/home/jens/Source/shotwell/src/Page.vala" - g_debug ("Page.vala:2599: Exporting to %s", _tmp15_); -#line 2599 "/home/jens/Source/shotwell/src/Page.vala" +#line 2611 "/home/jens/Source/shotwell/src/Page.vala" + g_debug ("Page.vala:2611: Exporting to %s", _tmp15_); +#line 2611 "/home/jens/Source/shotwell/src/Page.vala" _g_free0 (_tmp15_); -#line 2604 "/home/jens/Source/shotwell/src/Page.vala" +#line 2616 "/home/jens/Source/shotwell/src/Page.vala" _tmp16_ = self->priv->drag_destination; -#line 2604 "/home/jens/Source/shotwell/src/Page.vala" +#line 2616 "/home/jens/Source/shotwell/src/Page.vala" _tmp17_ = g_file_get_path (_tmp16_); -#line 2604 "/home/jens/Source/shotwell/src/Page.vala" +#line 2616 "/home/jens/Source/shotwell/src/Page.vala" _tmp18_ = _tmp17_; -#line 2604 "/home/jens/Source/shotwell/src/Page.vala" +#line 2616 "/home/jens/Source/shotwell/src/Page.vala" _tmp19_ = _tmp18_ != NULL; -#line 2604 "/home/jens/Source/shotwell/src/Page.vala" +#line 2616 "/home/jens/Source/shotwell/src/Page.vala" _g_free0 (_tmp18_); -#line 2604 "/home/jens/Source/shotwell/src/Page.vala" +#line 2616 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp19_) { -#line 15861 "Page.c" +#line 15985 "Page.c" Page* _tmp20_ = NULL; ViewCollection* _tmp21_ = NULL; ViewCollection* _tmp22_ = NULL; @@ -15870,56 +15994,56 @@ static void drag_and_drop_handler_on_drag_end (DragAndDropHandler* self) { Exporter* _tmp29_ = NULL; ExporterUI* _tmp30_ = NULL; ExporterUI* _tmp31_ = NULL; -#line 2605 "/home/jens/Source/shotwell/src/Page.vala" +#line 2617 "/home/jens/Source/shotwell/src/Page.vala" _tmp20_ = self->priv->page; -#line 2605 "/home/jens/Source/shotwell/src/Page.vala" +#line 2617 "/home/jens/Source/shotwell/src/Page.vala" _tmp21_ = page_get_view (_tmp20_); -#line 2605 "/home/jens/Source/shotwell/src/Page.vala" +#line 2617 "/home/jens/Source/shotwell/src/Page.vala" _tmp22_ = _tmp21_; -#line 2605 "/home/jens/Source/shotwell/src/Page.vala" +#line 2617 "/home/jens/Source/shotwell/src/Page.vala" _tmp23_ = view_collection_get_selected_sources (_tmp22_); -#line 2605 "/home/jens/Source/shotwell/src/Page.vala" +#line 2617 "/home/jens/Source/shotwell/src/Page.vala" _tmp24_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_COLLECTION, GeeCollection); -#line 2605 "/home/jens/Source/shotwell/src/Page.vala" +#line 2617 "/home/jens/Source/shotwell/src/Page.vala" _tmp25_ = self->priv->drag_destination; -#line 2605 "/home/jens/Source/shotwell/src/Page.vala" +#line 2617 "/home/jens/Source/shotwell/src/Page.vala" scaling_for_original (&_tmp26_); -#line 2605 "/home/jens/Source/shotwell/src/Page.vala" +#line 2617 "/home/jens/Source/shotwell/src/Page.vala" export_format_parameters_current (&_tmp27_); -#line 2605 "/home/jens/Source/shotwell/src/Page.vala" +#line 2617 "/home/jens/Source/shotwell/src/Page.vala" _tmp28_ = exporter_new (_tmp24_, _tmp25_, &_tmp26_, &_tmp27_, FALSE); -#line 2605 "/home/jens/Source/shotwell/src/Page.vala" +#line 2617 "/home/jens/Source/shotwell/src/Page.vala" _tmp29_ = _tmp28_; -#line 2605 "/home/jens/Source/shotwell/src/Page.vala" +#line 2617 "/home/jens/Source/shotwell/src/Page.vala" _tmp30_ = exporter_ui_new (_tmp29_); -#line 2605 "/home/jens/Source/shotwell/src/Page.vala" +#line 2617 "/home/jens/Source/shotwell/src/Page.vala" _exporter_ui_unref0 (self->priv->exporter); -#line 2605 "/home/jens/Source/shotwell/src/Page.vala" +#line 2617 "/home/jens/Source/shotwell/src/Page.vala" self->priv->exporter = _tmp30_; -#line 2605 "/home/jens/Source/shotwell/src/Page.vala" +#line 2617 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (_tmp29_); -#line 2605 "/home/jens/Source/shotwell/src/Page.vala" +#line 2617 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (_tmp24_); -#line 2605 "/home/jens/Source/shotwell/src/Page.vala" +#line 2617 "/home/jens/Source/shotwell/src/Page.vala" _data_collection_unref0 (_tmp22_); -#line 2608 "/home/jens/Source/shotwell/src/Page.vala" +#line 2620 "/home/jens/Source/shotwell/src/Page.vala" _tmp31_ = self->priv->exporter; -#line 2608 "/home/jens/Source/shotwell/src/Page.vala" +#line 2620 "/home/jens/Source/shotwell/src/Page.vala" exporter_ui_export (_tmp31_, _drag_and_drop_handler_on_export_completed_exporter_completion_callback, self); -#line 15910 "Page.c" +#line 16034 "Page.c" } else { const gchar* _tmp32_ = NULL; -#line 2610 "/home/jens/Source/shotwell/src/Page.vala" +#line 2622 "/home/jens/Source/shotwell/src/Page.vala" _tmp32_ = _ ("Photos cannot be exported to this directory."); -#line 2610 "/home/jens/Source/shotwell/src/Page.vala" +#line 2622 "/home/jens/Source/shotwell/src/Page.vala" app_window_error_message (_tmp32_, NULL); -#line 15917 "Page.c" +#line 16041 "Page.c" } -#line 2613 "/home/jens/Source/shotwell/src/Page.vala" +#line 2625 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->priv->drag_destination); -#line 2613 "/home/jens/Source/shotwell/src/Page.vala" +#line 2625 "/home/jens/Source/shotwell/src/Page.vala" self->priv->drag_destination = NULL; -#line 15923 "Page.c" +#line 16047 "Page.c" } @@ -15930,271 +16054,271 @@ static gboolean drag_and_drop_handler_on_drag_failed (DragAndDropHandler* self, gchar* _tmp2_ = NULL; GtkDragResult _tmp3_ = 0; Page* _tmp4_ = NULL; -#line 2616 "/home/jens/Source/shotwell/src/Page.vala" +#line 2628 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (IS_DRAG_AND_DROP_HANDLER (self), FALSE); -#line 2616 "/home/jens/Source/shotwell/src/Page.vala" +#line 2628 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (GDK_IS_DRAG_CONTEXT (context), FALSE); -#line 2617 "/home/jens/Source/shotwell/src/Page.vala" +#line 2629 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->page; -#line 2617 "/home/jens/Source/shotwell/src/Page.vala" +#line 2629 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = page_get_page_name (_tmp0_); -#line 2617 "/home/jens/Source/shotwell/src/Page.vala" +#line 2629 "/home/jens/Source/shotwell/src/Page.vala" _tmp2_ = _tmp1_; -#line 2617 "/home/jens/Source/shotwell/src/Page.vala" +#line 2629 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = drag_result; -#line 2617 "/home/jens/Source/shotwell/src/Page.vala" - g_debug ("Page.vala:2617: on_drag_failed (%s): %d", _tmp2_, (gint) _tmp3_); -#line 2617 "/home/jens/Source/shotwell/src/Page.vala" +#line 2629 "/home/jens/Source/shotwell/src/Page.vala" + g_debug ("Page.vala:2629: on_drag_failed (%s): %d", _tmp2_, (gint) _tmp3_); +#line 2629 "/home/jens/Source/shotwell/src/Page.vala" _g_free0 (_tmp2_); -#line 2619 "/home/jens/Source/shotwell/src/Page.vala" +#line 2631 "/home/jens/Source/shotwell/src/Page.vala" _tmp4_ = self->priv->page; -#line 2619 "/home/jens/Source/shotwell/src/Page.vala" +#line 2631 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp4_ == NULL) { -#line 2620 "/home/jens/Source/shotwell/src/Page.vala" +#line 2632 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 2620 "/home/jens/Source/shotwell/src/Page.vala" +#line 2632 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 15958 "Page.c" +#line 16082 "Page.c" } -#line 2622 "/home/jens/Source/shotwell/src/Page.vala" +#line 2634 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->priv->drag_destination); -#line 2622 "/home/jens/Source/shotwell/src/Page.vala" +#line 2634 "/home/jens/Source/shotwell/src/Page.vala" self->priv->drag_destination = NULL; -#line 2624 "/home/jens/Source/shotwell/src/Page.vala" +#line 2636 "/home/jens/Source/shotwell/src/Page.vala" result = FALSE; -#line 2624 "/home/jens/Source/shotwell/src/Page.vala" +#line 2636 "/home/jens/Source/shotwell/src/Page.vala" return result; -#line 15968 "Page.c" +#line 16092 "Page.c" } static void drag_and_drop_handler_on_export_completed (DragAndDropHandler* self) { -#line 2627 "/home/jens/Source/shotwell/src/Page.vala" +#line 2639 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (IS_DRAG_AND_DROP_HANDLER (self)); -#line 2628 "/home/jens/Source/shotwell/src/Page.vala" +#line 2640 "/home/jens/Source/shotwell/src/Page.vala" _exporter_ui_unref0 (self->priv->exporter); -#line 2628 "/home/jens/Source/shotwell/src/Page.vala" +#line 2640 "/home/jens/Source/shotwell/src/Page.vala" self->priv->exporter = NULL; -#line 15979 "Page.c" +#line 16103 "Page.c" } static void value_drag_and_drop_handler_init (GValue* value) { -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" value->data[0].v_pointer = NULL; -#line 15986 "Page.c" +#line 16110 "Page.c" } static void value_drag_and_drop_handler_free_value (GValue* value) { -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" if (value->data[0].v_pointer) { -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" drag_and_drop_handler_unref (value->data[0].v_pointer); -#line 15995 "Page.c" +#line 16119 "Page.c" } } static void value_drag_and_drop_handler_copy_value (const GValue* src_value, GValue* dest_value) { -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" if (src_value->data[0].v_pointer) { -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" dest_value->data[0].v_pointer = drag_and_drop_handler_ref (src_value->data[0].v_pointer); -#line 16005 "Page.c" +#line 16129 "Page.c" } else { -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" dest_value->data[0].v_pointer = NULL; -#line 16009 "Page.c" +#line 16133 "Page.c" } } static gpointer value_drag_and_drop_handler_peek_pointer (const GValue* value) { -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" return value->data[0].v_pointer; -#line 16017 "Page.c" +#line 16141 "Page.c" } static gchar* value_drag_and_drop_handler_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) { -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" if (collect_values[0].v_pointer) { -#line 16024 "Page.c" +#line 16148 "Page.c" DragAndDropHandler* object; object = collect_values[0].v_pointer; -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" if (object->parent_instance.g_class == NULL) { -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 16031 "Page.c" +#line 16155 "Page.c" } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 16035 "Page.c" +#line 16159 "Page.c" } -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" value->data[0].v_pointer = drag_and_drop_handler_ref (object); -#line 16039 "Page.c" +#line 16163 "Page.c" } else { -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" value->data[0].v_pointer = NULL; -#line 16043 "Page.c" +#line 16167 "Page.c" } -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" return NULL; -#line 16047 "Page.c" +#line 16171 "Page.c" } static gchar* value_drag_and_drop_handler_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) { DragAndDropHandler** object_p; object_p = collect_values[0].v_pointer; -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" if (!object_p) { -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 16058 "Page.c" +#line 16182 "Page.c" } -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" if (!value->data[0].v_pointer) { -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" *object_p = NULL; -#line 16064 "Page.c" +#line 16188 "Page.c" } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" *object_p = value->data[0].v_pointer; -#line 16068 "Page.c" +#line 16192 "Page.c" } else { -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" *object_p = drag_and_drop_handler_ref (value->data[0].v_pointer); -#line 16072 "Page.c" +#line 16196 "Page.c" } -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" return NULL; -#line 16076 "Page.c" +#line 16200 "Page.c" } GParamSpec* param_spec_drag_and_drop_handler (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) { ParamSpecDragAndDropHandler* spec; -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (g_type_is_a (object_type, TYPE_DRAG_AND_DROP_HANDLER), NULL); -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" G_PARAM_SPEC (spec)->value_type = object_type; -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" return G_PARAM_SPEC (spec); -#line 16090 "Page.c" +#line 16214 "Page.c" } gpointer value_get_drag_and_drop_handler (const GValue* value) { -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_DRAG_AND_DROP_HANDLER), NULL); -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" return value->data[0].v_pointer; -#line 16099 "Page.c" +#line 16223 "Page.c" } void value_set_drag_and_drop_handler (GValue* value, gpointer v_object) { DragAndDropHandler* old; -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_DRAG_AND_DROP_HANDLER)); -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" old = value->data[0].v_pointer; -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" if (v_object) { -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_DRAG_AND_DROP_HANDLER)); -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" value->data[0].v_pointer = v_object; -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" drag_and_drop_handler_ref (value->data[0].v_pointer); -#line 16119 "Page.c" +#line 16243 "Page.c" } else { -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" value->data[0].v_pointer = NULL; -#line 16123 "Page.c" +#line 16247 "Page.c" } -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" if (old) { -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" drag_and_drop_handler_unref (old); -#line 16129 "Page.c" +#line 16253 "Page.c" } } void value_take_drag_and_drop_handler (GValue* value, gpointer v_object) { DragAndDropHandler* old; -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_DRAG_AND_DROP_HANDLER)); -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" old = value->data[0].v_pointer; -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" if (v_object) { -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_DRAG_AND_DROP_HANDLER)); -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" value->data[0].v_pointer = v_object; -#line 16148 "Page.c" +#line 16272 "Page.c" } else { -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" value->data[0].v_pointer = NULL; -#line 16152 "Page.c" +#line 16276 "Page.c" } -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" if (old) { -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" drag_and_drop_handler_unref (old); -#line 16158 "Page.c" +#line 16282 "Page.c" } } static void drag_and_drop_handler_class_init (DragAndDropHandlerClass * klass) { -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" drag_and_drop_handler_parent_class = g_type_class_peek_parent (klass); -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" ((DragAndDropHandlerClass *) klass)->finalize = drag_and_drop_handler_finalize; -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" g_type_class_add_private (klass, sizeof (DragAndDropHandlerPrivate)); -#line 16170 "Page.c" +#line 16294 "Page.c" } static void drag_and_drop_handler_instance_init (DragAndDropHandler * self) { -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" self->priv = DRAG_AND_DROP_HANDLER_GET_PRIVATE (self); -#line 2473 "/home/jens/Source/shotwell/src/Page.vala" +#line 2485 "/home/jens/Source/shotwell/src/Page.vala" self->priv->drag_destination = NULL; -#line 2474 "/home/jens/Source/shotwell/src/Page.vala" +#line 2486 "/home/jens/Source/shotwell/src/Page.vala" self->priv->exporter = NULL; -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" self->ref_count = 1; -#line 16183 "Page.c" +#line 16307 "Page.c" } static void drag_and_drop_handler_finalize (DragAndDropHandler* obj) { DragAndDropHandler * self; GtkWidget* _tmp0_ = NULL; -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DRAG_AND_DROP_HANDLER, DragAndDropHandler); -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" g_signal_handlers_destroy (self); -#line 2505 "/home/jens/Source/shotwell/src/Page.vala" +#line 2517 "/home/jens/Source/shotwell/src/Page.vala" _tmp0_ = self->priv->event_source; -#line 2505 "/home/jens/Source/shotwell/src/Page.vala" +#line 2517 "/home/jens/Source/shotwell/src/Page.vala" if (_tmp0_ != NULL) { -#line 16198 "Page.c" +#line 16322 "Page.c" GtkWidget* _tmp1_ = NULL; guint _tmp2_ = 0U; GtkWidget* _tmp3_ = NULL; @@ -16203,45 +16327,45 @@ static void drag_and_drop_handler_finalize (DragAndDropHandler* obj) { guint _tmp6_ = 0U; GtkWidget* _tmp7_ = NULL; guint _tmp8_ = 0U; -#line 2506 "/home/jens/Source/shotwell/src/Page.vala" +#line 2518 "/home/jens/Source/shotwell/src/Page.vala" _tmp1_ = self->priv->event_source; -#line 2506 "/home/jens/Source/shotwell/src/Page.vala" +#line 2518 "/home/jens/Source/shotwell/src/Page.vala" g_signal_parse_name ("drag-begin", gtk_widget_get_type (), &_tmp2_, NULL, FALSE); -#line 2506 "/home/jens/Source/shotwell/src/Page.vala" +#line 2518 "/home/jens/Source/shotwell/src/Page.vala" g_signal_handlers_disconnect_matched (_tmp1_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _drag_and_drop_handler_on_drag_begin_gtk_widget_drag_begin, self); -#line 2507 "/home/jens/Source/shotwell/src/Page.vala" +#line 2519 "/home/jens/Source/shotwell/src/Page.vala" _tmp3_ = self->priv->event_source; -#line 2507 "/home/jens/Source/shotwell/src/Page.vala" +#line 2519 "/home/jens/Source/shotwell/src/Page.vala" g_signal_parse_name ("drag-data-get", gtk_widget_get_type (), &_tmp4_, NULL, FALSE); -#line 2507 "/home/jens/Source/shotwell/src/Page.vala" +#line 2519 "/home/jens/Source/shotwell/src/Page.vala" g_signal_handlers_disconnect_matched (_tmp3_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp4_, 0, NULL, (GCallback) _drag_and_drop_handler_on_drag_data_get_gtk_widget_drag_data_get, self); -#line 2508 "/home/jens/Source/shotwell/src/Page.vala" +#line 2520 "/home/jens/Source/shotwell/src/Page.vala" _tmp5_ = self->priv->event_source; -#line 2508 "/home/jens/Source/shotwell/src/Page.vala" +#line 2520 "/home/jens/Source/shotwell/src/Page.vala" g_signal_parse_name ("drag-end", gtk_widget_get_type (), &_tmp6_, NULL, FALSE); -#line 2508 "/home/jens/Source/shotwell/src/Page.vala" +#line 2520 "/home/jens/Source/shotwell/src/Page.vala" g_signal_handlers_disconnect_matched (_tmp5_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp6_, 0, NULL, (GCallback) _drag_and_drop_handler_on_drag_end_gtk_widget_drag_end, self); -#line 2509 "/home/jens/Source/shotwell/src/Page.vala" +#line 2521 "/home/jens/Source/shotwell/src/Page.vala" _tmp7_ = self->priv->event_source; -#line 2509 "/home/jens/Source/shotwell/src/Page.vala" +#line 2521 "/home/jens/Source/shotwell/src/Page.vala" g_signal_parse_name ("drag-failed", gtk_widget_get_type (), &_tmp8_, NULL, FALSE); -#line 2509 "/home/jens/Source/shotwell/src/Page.vala" +#line 2521 "/home/jens/Source/shotwell/src/Page.vala" g_signal_handlers_disconnect_matched (_tmp7_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp8_, 0, NULL, (GCallback) _drag_and_drop_handler_on_drag_failed_gtk_widget_drag_failed, self); -#line 16231 "Page.c" +#line 16355 "Page.c" } -#line 2512 "/home/jens/Source/shotwell/src/Page.vala" +#line 2524 "/home/jens/Source/shotwell/src/Page.vala" self->priv->page = NULL; -#line 2513 "/home/jens/Source/shotwell/src/Page.vala" +#line 2525 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->priv->event_source); -#line 2513 "/home/jens/Source/shotwell/src/Page.vala" +#line 2525 "/home/jens/Source/shotwell/src/Page.vala" self->priv->event_source = NULL; -#line 2472 "/home/jens/Source/shotwell/src/Page.vala" +#line 2484 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->priv->event_source); -#line 2473 "/home/jens/Source/shotwell/src/Page.vala" +#line 2485 "/home/jens/Source/shotwell/src/Page.vala" _g_object_unref0 (self->priv->drag_destination); -#line 2474 "/home/jens/Source/shotwell/src/Page.vala" +#line 2486 "/home/jens/Source/shotwell/src/Page.vala" _exporter_ui_unref0 (self->priv->exporter); -#line 16245 "Page.c" +#line 16369 "Page.c" } @@ -16262,24 +16386,24 @@ GType drag_and_drop_handler_get_type (void) { gpointer drag_and_drop_handler_ref (gpointer instance) { DragAndDropHandler* self; self = instance; -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" g_atomic_int_inc (&self->ref_count); -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" return instance; -#line 16270 "Page.c" +#line 16394 "Page.c" } void drag_and_drop_handler_unref (gpointer instance) { DragAndDropHandler* self; self = instance; -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" DRAG_AND_DROP_HANDLER_GET_CLASS (self)->finalize (self); -#line 2456 "/home/jens/Source/shotwell/src/Page.vala" +#line 2468 "/home/jens/Source/shotwell/src/Page.vala" g_type_free_instance ((GTypeInstance *) self); -#line 16283 "Page.c" +#line 16407 "Page.c" } } diff --git a/src/Page.vala b/src/Page.vala index a65a1e2..06454d8 100644 --- a/src/Page.vala +++ b/src/Page.vala @@ -97,8 +97,6 @@ public abstract class Page : Gtk.ScrolledWindow { popup_menu.connect(on_context_keypress); - init_ui(); - realize.connect(attach_view_signals); } @@ -270,6 +268,7 @@ public abstract class Page : Gtk.ScrolledWindow { public virtual void switching_from() { in_view = false; + remove_actions(AppWindow.get_instance()); if (toolbar_path != null) toolbar = null; } @@ -277,6 +276,11 @@ public abstract class Page : Gtk.ScrolledWindow { public virtual void switched_to() { in_view = true; add_ui(); + add_actions(AppWindow.get_instance()); + int selected_count = get_view().get_selected_count(); + int count = get_view().get_count(); + init_actions(selected_count, count); + update_actions(selected_count, count); update_modifiers(); } @@ -288,16 +292,24 @@ public abstract class Page : Gtk.ScrolledWindow { } public virtual void switching_to_fullscreen(FullscreenWindow fsw) { + add_actions(fsw); } public virtual void returning_from_fullscreen(FullscreenWindow fsw) { + remove_actions(fsw); + switched_to(); } public GLib.Action? get_action (string name) { - var aw = AppWindow.get_instance (); + GLib.ActionMap? map = null; + if (container is FullscreenWindow) { + map = container as GLib.ActionMap; + } else { + map = AppWindow.get_instance () as GLib.ActionMap; + } - if (aw != null) { - return aw.lookup_action (name); + if (map != null) { + return map.lookup_action(name); } return null; @@ -468,7 +480,8 @@ public abstract class Page : Gtk.ScrolledWindow { return AppWindow.get_command_manager(); } - protected virtual void add_actions () { } + protected virtual void add_actions (GLib.ActionMap map) { } + protected virtual void remove_actions (GLib.ActionMap map) { } protected void on_action_toggle (GLib.Action action, Variant? value) { Variant new_state = ! (bool) action.get_state (); @@ -479,10 +492,6 @@ public abstract class Page : Gtk.ScrolledWindow { action.change_state (value); } - private void init_ui() { - add_actions (); - } - private void add_ui() { // Collect all UI filenames and load them into the UI manager Gee.List<string> ui_filenames = new Gee.ArrayList<string>(); @@ -546,6 +555,9 @@ public abstract class Page : Gtk.ScrolledWindow { private void on_update_actions_on_idle() { if (is_destroyed) return; + + if (!this.in_view) + return; update_actions(get_view().get_selected_count(), get_view().get_count()); } @@ -562,13 +574,13 @@ public abstract class Page : Gtk.ScrolledWindow { } } - // This is called during init_ui() to collect all the UI files to be loaded into the UI + // This is called during add_ui() to collect all the UI files to be loaded into the UI // manager. Because order is important here, call the base method *first*, then add the // classes' filename. protected virtual void init_collect_ui_filenames(Gee.List<string> ui_filenames) { } - // This is called during init_ui() to collect all Page.InjectedUIElements for the page. They + // This is called during add_ui() to collect all Page.InjectedUIElements for the page. They // should be added to the MultiSet using the injection path as the key. protected virtual InjectionGroup[] init_collect_injection_groups() { return new InjectionGroup[0]; diff --git a/src/Photo.c b/src/Photo.c index 776a63d..17e0e5d 100644 --- a/src/Photo.c +++ b/src/Photo.c @@ -1,4 +1,4 @@ -/* Photo.c generated by valac 0.32.1, the Vala compiler +/* Photo.c generated by valac 0.34.4, the Vala compiler * generated from Photo.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -3965,7 +3965,7 @@ Photo* photo_construct (GType object_type, PhotoRow* row) { #line 425 "/home/jens/Source/shotwell/src/Photo.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 3968 "Photo.c" - goto __catch253_database_error; + goto __catch255_database_error; } #line 425 "/home/jens/Source/shotwell/src/Photo.vala" _backing_photo_row_unref0 (e); @@ -3980,8 +3980,8 @@ Photo* photo_construct (GType object_type, PhotoRow* row) { #line 3981 "Photo.c" } } - goto __finally253; - __catch253_database_error: + goto __finally255; + __catch255_database_error: { GError* err = NULL; #line 424 "/home/jens/Source/shotwell/src/Photo.vala" @@ -3992,7 +3992,7 @@ Photo* photo_construct (GType object_type, PhotoRow* row) { _g_error_free0 (err); #line 3994 "Photo.c" } - __finally253: + __finally255: #line 424 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 424 "/home/jens/Source/shotwell/src/Photo.vala" @@ -4530,7 +4530,7 @@ static gboolean photo_real_internal_delete_backing (DataSource* base, GError** e #line 4531 "Photo.c" } } - __finally254: + __finally256: { PhotoBackingReaders* _tmp6_ = NULL; #line 518 "/home/jens/Source/shotwell/src/Photo.vala" @@ -4610,14 +4610,14 @@ static gboolean photo_real_internal_delete_backing (DataSource* base, GError** e #line 533 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 4613 "Photo.c" - goto __catch255_g_error; + goto __catch257_g_error; } #line 533 "/home/jens/Source/shotwell/src/Photo.vala" ret = _tmp12_; #line 4618 "Photo.c" } - goto __finally255; - __catch255_g_error: + goto __finally257; + __catch257_g_error: { GError* err = NULL; GFile* _tmp15_ = NULL; @@ -4657,7 +4657,7 @@ static gboolean photo_real_internal_delete_backing (DataSource* base, GError** e _g_error_free0 (err); #line 4659 "Photo.c" } - __finally255: + __finally257: #line 532 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 532 "/home/jens/Source/shotwell/src/Photo.vala" @@ -4760,7 +4760,7 @@ static BackingPhotoRow* photo_get_backing_row (Photo* self, BackingPhotoID* id) #line 553 "/home/jens/Source/shotwell/src/Photo.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 4763 "Photo.c" - goto __catch256_database_error; + goto __catch258_database_error; } #line 553 "/home/jens/Source/shotwell/src/Photo.vala" _backing_photo_row_unref0 (backing_row); @@ -4784,8 +4784,8 @@ static BackingPhotoRow* photo_get_backing_row (Photo* self, BackingPhotoID* id) _backing_photo_row_unref0 (_tmp2_); #line 4786 "Photo.c" } - goto __finally256; - __catch256_database_error: + goto __finally258; + __catch258_database_error: { GError* err = NULL; gchar* _tmp9_ = NULL; @@ -4812,7 +4812,7 @@ static BackingPhotoRow* photo_get_backing_row (Photo* self, BackingPhotoID* id) _g_error_free0 (err); #line 4814 "Photo.c" } - __finally256: + __finally258: #line 552 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 552 "/home/jens/Source/shotwell/src/Photo.vala" @@ -4849,7 +4849,7 @@ static BackingPhotoRow* photo_get_backing_row (Photo* self, BackingPhotoID* id) #line 560 "/home/jens/Source/shotwell/src/Photo.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 4852 "Photo.c" - goto __catch257_database_error; + goto __catch259_database_error; } #line 560 "/home/jens/Source/shotwell/src/Photo.vala" _backing_photo_row_unref0 (backing_row); @@ -4862,8 +4862,8 @@ static BackingPhotoRow* photo_get_backing_row (Photo* self, BackingPhotoID* id) #line 4863 "Photo.c" } } - goto __finally257; - __catch257_database_error: + goto __finally259; + __catch259_database_error: { GError* err = NULL; #line 559 "/home/jens/Source/shotwell/src/Photo.vala" @@ -4874,7 +4874,7 @@ static BackingPhotoRow* photo_get_backing_row (Photo* self, BackingPhotoID* id) _g_error_free0 (err); #line 4876 "Photo.c" } - __finally257: + __finally259: #line 559 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 559 "/home/jens/Source/shotwell/src/Photo.vala" @@ -4973,7 +4973,7 @@ gboolean photo_is_raw_developer_complete (Photo* self, RawDeveloper d) { return result; #line 4975 "Photo.c" } - __finally258: + __finally260: { GeeHashMap* _tmp12_ = NULL; #line 573 "/home/jens/Source/shotwell/src/Photo.vala" @@ -5035,7 +5035,7 @@ gboolean photo_is_raw_developer_available (Photo* self, RawDeveloper d) { #line 5036 "Photo.c" } } - __finally259: + __finally261: { GeeHashMap* _tmp5_ = NULL; #line 581 "/home/jens/Source/shotwell/src/Photo.vala" @@ -5097,7 +5097,7 @@ gboolean photo_is_raw_developer_available (Photo* self, RawDeveloper d) { #line 595 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 5100 "Photo.c" - goto __catch260_g_error; + goto __catch262_g_error; } #line 596 "/home/jens/Source/shotwell/src/Photo.vala" _tmp8_ = meta; @@ -5218,8 +5218,8 @@ gboolean photo_is_raw_developer_available (Photo* self, RawDeveloper d) { return result; #line 5220 "Photo.c" } - goto __finally260; - __catch260_g_error: + goto __finally262; + __catch262_g_error: { GError* e = NULL; GError* _tmp27_ = NULL; @@ -5238,7 +5238,7 @@ gboolean photo_is_raw_developer_available (Photo* self, RawDeveloper d) { _g_error_free0 (e); #line 5240 "Photo.c" } - __finally260: + __finally262: #line 594 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 594 "/home/jens/Source/shotwell/src/Photo.vala" @@ -5313,7 +5313,7 @@ void photo_add_backing_photo_for_development (Photo* self, RawDeveloper d, Backi gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) _tmp5_), _tmp6_); #line 5315 "Photo.c" } - __finally261: + __finally263: { GeeHashMap* _tmp7_ = NULL; #line 633 "/home/jens/Source/shotwell/src/Photo.vala" @@ -5662,7 +5662,7 @@ static void photo_develop_photo (Photo* self, RawDeveloper d) { #line 678 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 5665 "Photo.c" - goto __catch262_g_error; + goto __catch264_g_error; } #line 678 "/home/jens/Source/shotwell/src/Photo.vala" _tmp7_ = _tmp1_; @@ -5696,7 +5696,7 @@ static void photo_develop_photo (Photo* self, RawDeveloper d) { #line 685 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 5699 "Photo.c" - goto __finally263; + goto __finally265; } #line 685 "/home/jens/Source/shotwell/src/Photo.vala" _tmp12_ = _tmp9_; @@ -5710,7 +5710,7 @@ static void photo_develop_photo (Photo* self, RawDeveloper d) { _g_object_unref0 (_tmp9_); #line 5712 "Photo.c" } - __finally263: + __finally265: { PhotoBackingReaders* _tmp13_ = NULL; #line 680 "/home/jens/Source/shotwell/src/Photo.vala" @@ -5726,7 +5726,7 @@ static void photo_develop_photo (Photo* self, RawDeveloper d) { #line 680 "/home/jens/Source/shotwell/src/Photo.vala" _backing_photo_row_unref0 (_tmp1_); #line 5729 "Photo.c" - goto __catch262_g_error; + goto __catch264_g_error; } } #line 688 "/home/jens/Source/shotwell/src/Photo.vala" @@ -5759,14 +5759,14 @@ static void photo_develop_photo (Photo* self, RawDeveloper d) { #line 717 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 5762 "Photo.c" - goto __catch264_g_error; + goto __catch266_g_error; } #line 719 "/home/jens/Source/shotwell/src/Photo.vala" photo_notify_raw_development_modified (self); #line 5767 "Photo.c" } - goto __finally264; - __catch264_g_error: + goto __finally266; + __catch266_g_error: { GError* e = NULL; GError* _tmp18_ = NULL; @@ -5785,11 +5785,11 @@ static void photo_develop_photo (Photo* self, RawDeveloper d) { _g_error_free0 (e); #line 5787 "Photo.c" } - __finally264: + __finally266: #line 715 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 5792 "Photo.c" - goto __catch262_g_error; + goto __catch264_g_error; } } } @@ -5814,7 +5814,7 @@ static void photo_develop_photo (Photo* self, RawDeveloper d) { #line 694 "/home/jens/Source/shotwell/src/Photo.vala" _backing_photo_row_unref0 (_tmp1_); #line 5817 "Photo.c" - goto __catch262_g_error; + goto __catch264_g_error; } #line 695 "/home/jens/Source/shotwell/src/Photo.vala" _tmp23_ = writer; @@ -5831,7 +5831,7 @@ static void photo_develop_photo (Photo* self, RawDeveloper d) { #line 695 "/home/jens/Source/shotwell/src/Photo.vala" _backing_photo_row_unref0 (_tmp1_); #line 5834 "Photo.c" - goto __catch262_g_error; + goto __catch264_g_error; } #line 703 "/home/jens/Source/shotwell/src/Photo.vala" wrote_img_to_disk = TRUE; @@ -5848,7 +5848,7 @@ static void photo_develop_photo (Photo* self, RawDeveloper d) { #line 708 "/home/jens/Source/shotwell/src/Photo.vala" _backing_photo_row_unref0 (_tmp1_); #line 5851 "Photo.c" - goto __catch262_g_error; + goto __catch264_g_error; } #line 709 "/home/jens/Source/shotwell/src/Photo.vala" _tmp26_ = bps; @@ -5869,7 +5869,7 @@ static void photo_develop_photo (Photo* self, RawDeveloper d) { #line 709 "/home/jens/Source/shotwell/src/Photo.vala" _backing_photo_row_unref0 (_tmp1_); #line 5872 "Photo.c" - goto __catch262_g_error; + goto __catch264_g_error; } #line 710 "/home/jens/Source/shotwell/src/Photo.vala" _tmp29_ = mwriter; @@ -5890,7 +5890,7 @@ static void photo_develop_photo (Photo* self, RawDeveloper d) { #line 710 "/home/jens/Source/shotwell/src/Photo.vala" _backing_photo_row_unref0 (_tmp1_); #line 5893 "Photo.c" - goto __catch262_g_error; + goto __catch264_g_error; } #line 676 "/home/jens/Source/shotwell/src/Photo.vala" _photo_file_adapter_unref0 (mwriter); @@ -5904,8 +5904,8 @@ static void photo_develop_photo (Photo* self, RawDeveloper d) { _backing_photo_row_unref0 (_tmp1_); #line 5906 "Photo.c" } - goto __finally262; - __catch262_g_error: + goto __finally264; + __catch264_g_error: { GError* err = NULL; GError* _tmp31_ = NULL; @@ -5924,7 +5924,7 @@ static void photo_develop_photo (Photo* self, RawDeveloper d) { _g_error_free0 (err); #line 5926 "Photo.c" } - __finally262: + __finally264: { gboolean _tmp33_ = FALSE; #line 714 "/home/jens/Source/shotwell/src/Photo.vala" @@ -5944,14 +5944,14 @@ static void photo_develop_photo (Photo* self, RawDeveloper d) { #line 717 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 5947 "Photo.c" - goto __catch265_g_error; + goto __catch267_g_error; } #line 719 "/home/jens/Source/shotwell/src/Photo.vala" photo_notify_raw_development_modified (self); #line 5952 "Photo.c" } - goto __finally265; - __catch265_g_error: + goto __finally267; + __catch267_g_error: { GError* e = NULL; GError* _tmp36_ = NULL; @@ -5970,7 +5970,7 @@ static void photo_develop_photo (Photo* self, RawDeveloper d) { _g_error_free0 (e); #line 5972 "Photo.c" } - __finally265: + __finally267: #line 715 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 715 "/home/jens/Source/shotwell/src/Photo.vala" @@ -6055,7 +6055,7 @@ static void photo_develop_photo (Photo* self, RawDeveloper d) { #line 736 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 6058 "Photo.c" - goto __catch266_g_error; + goto __catch268_g_error; } #line 737 "/home/jens/Source/shotwell/src/Photo.vala" _tmp39_ = meta; @@ -6089,14 +6089,14 @@ static void photo_develop_photo (Photo* self, RawDeveloper d) { #line 771 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 6092 "Photo.c" - goto __catch267_g_error; + goto __catch269_g_error; } #line 773 "/home/jens/Source/shotwell/src/Photo.vala" photo_notify_raw_development_modified (self); #line 6097 "Photo.c" } - goto __finally267; - __catch267_g_error: + goto __finally269; + __catch269_g_error: { GError* e = NULL; GError* _tmp45_ = NULL; @@ -6115,11 +6115,11 @@ static void photo_develop_photo (Photo* self, RawDeveloper d) { _g_error_free0 (e); #line 6117 "Photo.c" } - __finally267: + __finally269: #line 769 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 6122 "Photo.c" - goto __catch266_g_error; + goto __catch268_g_error; } } } @@ -6167,14 +6167,14 @@ static void photo_develop_photo (Photo* self, RawDeveloper d) { #line 771 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 6170 "Photo.c" - goto __catch268_g_error; + goto __catch270_g_error; } #line 773 "/home/jens/Source/shotwell/src/Photo.vala" photo_notify_raw_development_modified (self); #line 6175 "Photo.c" } - goto __finally268; - __catch268_g_error: + goto __finally270; + __catch270_g_error: { GError* e = NULL; GError* _tmp54_ = NULL; @@ -6193,11 +6193,11 @@ static void photo_develop_photo (Photo* self, RawDeveloper d) { _g_error_free0 (e); #line 6195 "Photo.c" } - __finally268: + __finally270: #line 769 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 6200 "Photo.c" - goto __catch266_g_error; + goto __catch268_g_error; } } } @@ -6220,7 +6220,7 @@ static void photo_develop_photo (Photo* self, RawDeveloper d) { #line 746 "/home/jens/Source/shotwell/src/Photo.vala" _media_metadata_unref0 (meta); #line 6223 "Photo.c" - goto __catch266_g_error; + goto __catch268_g_error; } #line 747 "/home/jens/Source/shotwell/src/Photo.vala" _tmp58_ = pix; @@ -6254,14 +6254,14 @@ static void photo_develop_photo (Photo* self, RawDeveloper d) { #line 771 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 6257 "Photo.c" - goto __catch269_g_error; + goto __catch271_g_error; } #line 773 "/home/jens/Source/shotwell/src/Photo.vala" photo_notify_raw_development_modified (self); #line 6262 "Photo.c" } - goto __finally269; - __catch269_g_error: + goto __finally271; + __catch271_g_error: { GError* e = NULL; GError* _tmp62_ = NULL; @@ -6280,11 +6280,11 @@ static void photo_develop_photo (Photo* self, RawDeveloper d) { _g_error_free0 (e); #line 6282 "Photo.c" } - __finally269: + __finally271: #line 769 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 6287 "Photo.c" - goto __catch266_g_error; + goto __catch268_g_error; } } } @@ -6315,7 +6315,7 @@ static void photo_develop_photo (Photo* self, RawDeveloper d) { #line 753 "/home/jens/Source/shotwell/src/Photo.vala" _media_metadata_unref0 (meta); #line 6318 "Photo.c" - goto __catch266_g_error; + goto __catch268_g_error; } #line 753 "/home/jens/Source/shotwell/src/Photo.vala" _tmp70_ = _tmp64_; @@ -6344,7 +6344,7 @@ static void photo_develop_photo (Photo* self, RawDeveloper d) { #line 754 "/home/jens/Source/shotwell/src/Photo.vala" _media_metadata_unref0 (meta); #line 6347 "Photo.c" - goto __catch266_g_error; + goto __catch268_g_error; } #line 755 "/home/jens/Source/shotwell/src/Photo.vala" _tmp74_ = writer; @@ -6365,7 +6365,7 @@ static void photo_develop_photo (Photo* self, RawDeveloper d) { #line 755 "/home/jens/Source/shotwell/src/Photo.vala" _media_metadata_unref0 (meta); #line 6368 "Photo.c" - goto __catch266_g_error; + goto __catch268_g_error; } #line 759 "/home/jens/Source/shotwell/src/Photo.vala" wrote_img_to_disk = TRUE; @@ -6390,7 +6390,7 @@ static void photo_develop_photo (Photo* self, RawDeveloper d) { #line 762 "/home/jens/Source/shotwell/src/Photo.vala" _media_metadata_unref0 (meta); #line 6393 "Photo.c" - goto __catch266_g_error; + goto __catch268_g_error; } #line 763 "/home/jens/Source/shotwell/src/Photo.vala" _tmp79_ = mwriter; @@ -6413,7 +6413,7 @@ static void photo_develop_photo (Photo* self, RawDeveloper d) { #line 763 "/home/jens/Source/shotwell/src/Photo.vala" _media_metadata_unref0 (meta); #line 6416 "Photo.c" - goto __catch266_g_error; + goto __catch268_g_error; } #line 734 "/home/jens/Source/shotwell/src/Photo.vala" _photo_file_adapter_unref0 (mwriter); @@ -6429,8 +6429,8 @@ static void photo_develop_photo (Photo* self, RawDeveloper d) { _media_metadata_unref0 (meta); #line 6431 "Photo.c" } - goto __finally266; - __catch266_g_error: + goto __finally268; + __catch268_g_error: { GError* e = NULL; GError* _tmp81_ = NULL; @@ -6467,14 +6467,14 @@ static void photo_develop_photo (Photo* self, RawDeveloper d) { #line 771 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 6470 "Photo.c" - goto __catch270_g_error; + goto __catch272_g_error; } #line 773 "/home/jens/Source/shotwell/src/Photo.vala" photo_notify_raw_development_modified (self); #line 6475 "Photo.c" } - goto __finally270; - __catch270_g_error: + goto __finally272; + __catch272_g_error: { GError* e = NULL; GError* _tmp86_ = NULL; @@ -6493,7 +6493,7 @@ static void photo_develop_photo (Photo* self, RawDeveloper d) { _g_error_free0 (e); #line 6495 "Photo.c" } - __finally270: + __finally272: #line 769 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 769 "/home/jens/Source/shotwell/src/Photo.vala" @@ -6508,7 +6508,7 @@ static void photo_develop_photo (Photo* self, RawDeveloper d) { return; #line 6510 "Photo.c" } - __finally266: + __finally268: { gboolean _tmp88_ = FALSE; #line 768 "/home/jens/Source/shotwell/src/Photo.vala" @@ -6528,14 +6528,14 @@ static void photo_develop_photo (Photo* self, RawDeveloper d) { #line 771 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 6531 "Photo.c" - goto __catch271_g_error; + goto __catch273_g_error; } #line 773 "/home/jens/Source/shotwell/src/Photo.vala" photo_notify_raw_development_modified (self); #line 6536 "Photo.c" } - goto __finally271; - __catch271_g_error: + goto __finally273; + __catch273_g_error: { GError* e = NULL; GError* _tmp91_ = NULL; @@ -6554,7 +6554,7 @@ static void photo_develop_photo (Photo* self, RawDeveloper d) { _g_error_free0 (e); #line 6556 "Photo.c" } - __finally271: + __finally273: #line 769 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 769 "/home/jens/Source/shotwell/src/Photo.vala" @@ -6621,7 +6621,7 @@ void photo_set_default_raw_developer (Photo* self, RawDeveloper d) { _tmp1_->developer = _tmp2_; #line 6623 "Photo.c" } - __finally272: + __finally274: { PhotoRow* _tmp3_ = NULL; #line 789 "/home/jens/Source/shotwell/src/Photo.vala" @@ -6754,11 +6754,11 @@ void photo_set_raw_developer (Photo* self, RawDeveloper d) { #line 817 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 6757 "Photo.c" - goto __catch274_g_error; + goto __catch276_g_error; } } - goto __finally274; - __catch274_g_error: + goto __finally276; + __catch276_g_error: { GError* e = NULL; #line 816 "/home/jens/Source/shotwell/src/Photo.vala" @@ -6780,7 +6780,7 @@ void photo_set_raw_developer (Photo* self, RawDeveloper d) { return; #line 6782 "Photo.c" } - __finally274: + __finally276: #line 816 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 6787 "Photo.c" @@ -6889,11 +6889,11 @@ void photo_set_raw_developer (Photo* self, RawDeveloper d) { #line 837 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 6892 "Photo.c" - goto __catch275_g_error; + goto __catch277_g_error; } } - goto __finally275; - __catch275_g_error: + goto __finally277; + __catch277_g_error: { GError* e = NULL; GError* _tmp38_ = NULL; @@ -6912,7 +6912,7 @@ void photo_set_raw_developer (Photo* self, RawDeveloper d) { _g_error_free0 (e); #line 6914 "Photo.c" } - __finally275: + __finally277: #line 836 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 6919 "Photo.c" @@ -6965,7 +6965,7 @@ void photo_set_raw_developer (Photo* self, RawDeveloper d) { #line 6966 "Photo.c" } } - __finally273: + __finally275: { GeeHashMap* _tmp47_ = NULL; #line 810 "/home/jens/Source/shotwell/src/Photo.vala" @@ -7133,7 +7133,7 @@ static gboolean photo_delete_raw_development (Photo* self, RawDeveloper d) { #line 882 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 7136 "Photo.c" - goto __catch277_g_error; + goto __catch279_g_error; } } else { GFile* _tmp20_ = NULL; @@ -7144,12 +7144,12 @@ static gboolean photo_delete_raw_development (Photo* self, RawDeveloper d) { #line 884 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 7147 "Photo.c" - goto __catch277_g_error; + goto __catch279_g_error; } } } - goto __finally277; - __catch277_g_error: + goto __finally279; + __catch279_g_error: { GError* e = NULL; BackingPhotoRow* _tmp21_ = NULL; @@ -7174,7 +7174,7 @@ static gboolean photo_delete_raw_development (Photo* self, RawDeveloper d) { _g_error_free0 (e); #line 7176 "Photo.c" } - __finally277: + __finally279: #line 880 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 880 "/home/jens/Source/shotwell/src/Photo.vala" @@ -7230,7 +7230,7 @@ static gboolean photo_delete_raw_development (Photo* self, RawDeveloper d) { #line 892 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 7233 "Photo.c" - goto __catch278_g_error; + goto __catch280_g_error; } #line 893 "/home/jens/Source/shotwell/src/Photo.vala" _tmp30_ = backing_photo_table_get_instance (); @@ -7247,11 +7247,11 @@ static gboolean photo_delete_raw_development (Photo* self, RawDeveloper d) { #line 893 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 7250 "Photo.c" - goto __catch278_g_error; + goto __catch280_g_error; } } - goto __finally278; - __catch278_g_error: + goto __finally280; + __catch280_g_error: { GError* e = NULL; GError* _tmp34_ = NULL; @@ -7270,7 +7270,7 @@ static gboolean photo_delete_raw_development (Photo* self, RawDeveloper d) { _g_error_free0 (e); #line 7272 "Photo.c" } - __finally278: + __finally280: #line 891 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 891 "/home/jens/Source/shotwell/src/Photo.vala" @@ -7306,7 +7306,7 @@ static gboolean photo_delete_raw_development (Photo* self, RawDeveloper d) { _backing_photo_row_unref0 (bpr); #line 7308 "Photo.c" } - __finally276: + __finally278: { GeeHashMap* _tmp40_ = NULL; #line 870 "/home/jens/Source/shotwell/src/Photo.vala" @@ -7376,7 +7376,7 @@ void photo_redevelop_raw (Photo* self, RawDeveloper d) { photo_set_raw_developer (self, _tmp4_); #line 7378 "Photo.c" } - __finally279: + __finally281: { GeeHashMap* _tmp5_ = NULL; #line 907 "/home/jens/Source/shotwell/src/Photo.vala" @@ -7612,7 +7612,7 @@ static BackingFileState** photo_real_get_backing_files_state (MediaSource* base, #line 7613 "Photo.c" } } - __finally280: + __finally282: { PhotoRow* _tmp26_ = NULL; #line 919 "/home/jens/Source/shotwell/src/Photo.vala" @@ -7790,7 +7790,7 @@ static PhotoFileReader* photo_get_master_reader (Photo* self) { return result; #line 7792 "Photo.c" } - __finally281: + __finally283: { PhotoBackingReaders* _tmp5_ = NULL; #line 961 "/home/jens/Source/shotwell/src/Photo.vala" @@ -7848,7 +7848,7 @@ PhotoFileReader* photo_get_editable_reader (Photo* self) { return result; #line 7850 "Photo.c" } - __finally282: + __finally284: { PhotoBackingReaders* _tmp5_ = NULL; #line 967 "/home/jens/Source/shotwell/src/Photo.vala" @@ -7972,7 +7972,7 @@ static PhotoFileReader* photo_get_baseline_reader (Photo* self) { return result; #line 7974 "Photo.c" } - __finally283: + __finally285: { PhotoBackingReaders* _tmp17_ = NULL; #line 974 "/home/jens/Source/shotwell/src/Photo.vala" @@ -8096,7 +8096,7 @@ static PhotoFileReader* photo_get_source_reader (Photo* self) { return result; #line 8098 "Photo.c" } - __finally284: + __finally286: { PhotoBackingReaders* _tmp17_ = NULL; #line 987 "/home/jens/Source/shotwell/src/Photo.vala" @@ -8154,7 +8154,7 @@ static PhotoFileReader* photo_get_raw_developer_reader (Photo* self) { return result; #line 8156 "Photo.c" } - __finally285: + __finally287: { PhotoBackingReaders* _tmp5_ = NULL; #line 1000 "/home/jens/Source/shotwell/src/Photo.vala" @@ -8209,7 +8209,7 @@ gboolean photo_is_developed (Photo* self) { return result; #line 8211 "Photo.c" } - __finally286: + __finally288: { PhotoBackingReaders* _tmp4_ = NULL; #line 1006 "/home/jens/Source/shotwell/src/Photo.vala" @@ -8264,7 +8264,7 @@ gboolean photo_has_editable (Photo* self) { return result; #line 8266 "Photo.c" } - __finally287: + __finally289: { PhotoBackingReaders* _tmp4_ = NULL; #line 1012 "/home/jens/Source/shotwell/src/Photo.vala" @@ -8322,7 +8322,7 @@ gboolean photo_does_master_exist (Photo* self) { return result; #line 8324 "Photo.c" } - __finally288: + __finally290: { PhotoBackingReaders* _tmp5_ = NULL; #line 1018 "/home/jens/Source/shotwell/src/Photo.vala" @@ -8398,7 +8398,7 @@ gboolean photo_does_editable_exist (Photo* self) { return result; #line 8400 "Photo.c" } - __finally289: + __finally291: { PhotoBackingReaders* _tmp8_ = NULL; #line 1025 "/home/jens/Source/shotwell/src/Photo.vala" @@ -8453,7 +8453,7 @@ gboolean photo_is_master_baseline (Photo* self) { return result; #line 8455 "Photo.c" } - __finally290: + __finally292: { PhotoBackingReaders* _tmp4_ = NULL; #line 1031 "/home/jens/Source/shotwell/src/Photo.vala" @@ -8523,7 +8523,7 @@ gboolean photo_is_editable_baseline (Photo* self) { return result; #line 8525 "Photo.c" } - __finally291: + __finally293: { PhotoBackingReaders* _tmp4_ = NULL; #line 1041 "/home/jens/Source/shotwell/src/Photo.vala" @@ -8596,7 +8596,7 @@ BackingPhotoRow* photo_get_master_photo_row (Photo* self) { return result; #line 8598 "Photo.c" } - __finally292: + __finally294: { PhotoRow* _tmp5_ = NULL; #line 1051 "/home/jens/Source/shotwell/src/Photo.vala" @@ -8676,7 +8676,7 @@ BackingPhotoRow* photo_get_editable_photo_row (Photo* self) { #line 8677 "Photo.c" } } - __finally293: + __finally295: { PhotoRow* _tmp7_ = NULL; #line 1057 "/home/jens/Source/shotwell/src/Photo.vala" @@ -8753,7 +8753,7 @@ GeeCollection* photo_get_raw_development_photo_rows (Photo* self) { return result; #line 8755 "Photo.c" } - __finally294: + __finally296: { PhotoRow* _tmp7_ = NULL; #line 1067 "/home/jens/Source/shotwell/src/Photo.vala" @@ -8830,7 +8830,7 @@ BackingPhotoRow* photo_get_raw_development_photo_row (Photo* self, RawDeveloper return result; #line 8832 "Photo.c" } - __finally295: + __finally297: { PhotoRow* _tmp7_ = NULL; #line 1073 "/home/jens/Source/shotwell/src/Photo.vala" @@ -9225,7 +9225,7 @@ ImportResult photo_prepare_for_import (PhotoImportParams* params) { #line 1150 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 9226 "Photo.c" - goto __catch296_g_error; + goto __catch298_g_error; } #line 1150 "/home/jens/Source/shotwell/src/Photo.vala" _tmp6_ = _tmp3_; @@ -9239,8 +9239,8 @@ ImportResult photo_prepare_for_import (PhotoImportParams* params) { _g_object_unref0 (_tmp3_); #line 9239 "Photo.c" } - goto __finally296; - __catch296_g_error: + goto __finally298; + __catch298_g_error: { GError* err = NULL; #line 1149 "/home/jens/Source/shotwell/src/Photo.vala" @@ -9259,7 +9259,7 @@ ImportResult photo_prepare_for_import (PhotoImportParams* params) { return result; #line 9259 "Photo.c" } - __finally296: + __finally298: #line 1149 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1149 "/home/jens/Source/shotwell/src/Photo.vala" @@ -9430,11 +9430,11 @@ ImportResult photo_prepare_for_import (PhotoImportParams* params) { #line 1180 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 9431 "Photo.c" - goto __catch297_g_error; + goto __catch299_g_error; } } - goto __finally297; - __catch297_g_error: + goto __finally299; + __catch299_g_error: { GError* err = NULL; GFile* _tmp37_ = NULL; @@ -9474,7 +9474,7 @@ ImportResult photo_prepare_for_import (PhotoImportParams* params) { return result; #line 9474 "Photo.c" } - __finally297: + __finally299: #line 1179 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1179 "/home/jens/Source/shotwell/src/Photo.vala" @@ -10071,11 +10071,11 @@ ImportResult photo_prepare_for_import (PhotoImportParams* params) { #line 1262 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 10072 "Photo.c" - goto __catch298_g_error; + goto __catch300_g_error; } } - goto __finally298; - __catch298_g_error: + goto __finally300; + __catch300_g_error: { GError* err = NULL; GError* _tmp197_ = NULL; @@ -10110,7 +10110,7 @@ ImportResult photo_prepare_for_import (PhotoImportParams* params) { return result; #line 10110 "Photo.c" } - __finally298: + __finally300: #line 1261 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1261 "/home/jens/Source/shotwell/src/Photo.vala" @@ -10406,7 +10406,7 @@ void photo_create_pre_import (PhotoImportParams* params) { #line 1300 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 10407 "Photo.c" - goto __catch299_g_error; + goto __catch301_g_error; } #line 1301 "/home/jens/Source/shotwell/src/Photo.vala" _tmp57_ = photo_file_interrogator_get_detected_photo_information (interrogator); @@ -10471,8 +10471,8 @@ void photo_create_pre_import (PhotoImportParams* params) { _detected_photo_information_unref0 (detected); #line 10471 "Photo.c" } - goto __finally299; - __catch299_g_error: + goto __finally301; + __catch301_g_error: { GError* err = NULL; gchar* _tmp69_ = NULL; @@ -10499,7 +10499,7 @@ void photo_create_pre_import (PhotoImportParams* params) { _g_error_free0 (err); #line 10499 "Photo.c" } - __finally299: + __finally301: #line 1299 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1299 "/home/jens/Source/shotwell/src/Photo.vala" @@ -10589,7 +10589,7 @@ BackingPhotoRow* photo_query_backing_photo_row (Photo* self, GFile* file, PhotoF #line 1317 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 10590 "Photo.c" - goto __catch300_g_error; + goto __catch302_g_error; } #line 1317 "/home/jens/Source/shotwell/src/Photo.vala" _tmp4_ = _tmp1_; @@ -10603,8 +10603,8 @@ BackingPhotoRow* photo_query_backing_photo_row (Photo* self, GFile* file, PhotoF _g_object_unref0 (_tmp1_); #line 10603 "Photo.c" } - goto __finally300; - __catch300_g_error: + goto __finally302; + __catch302_g_error: { GError* err = NULL; GFile* _tmp5_ = NULL; @@ -10652,7 +10652,7 @@ BackingPhotoRow* photo_query_backing_photo_row (Photo* self, GFile* file, PhotoF return result; #line 10652 "Photo.c" } - __finally300: + __finally302: #line 1316 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1316 "/home/jens/Source/shotwell/src/Photo.vala" @@ -11197,7 +11197,7 @@ gboolean photo_prepare_for_reimport_master (Photo* self, PhotoReimportMasterStat updated_row = _tmp25_; #line 11197 "Photo.c" } - __finally301: + __finally303: { PhotoRow* _tmp26_ = NULL; #line 1433 "/home/jens/Source/shotwell/src/Photo.vala" @@ -11850,7 +11850,7 @@ void photo_finish_reimport_master (Photo* self, PhotoReimportMasterState* state, _backing_photo_row_unref0 (original_master); #line 11850 "Photo.c" } - __finally302: + __finally304: { PhotoRow* _tmp19_ = NULL; #line 1494 "/home/jens/Source/shotwell/src/Photo.vala" @@ -12449,7 +12449,7 @@ void photo_finish_reimport_editable (Photo* self, PhotoReimportEditableState* st photo_internal_remove_all_transformations (self, FALSE); #line 12449 "Photo.c" } - __finally303: + __finally305: { PhotoRow* _tmp17_ = NULL; #line 1575 "/home/jens/Source/shotwell/src/Photo.vala" @@ -13058,7 +13058,7 @@ void photo_finish_reimport_raw_development (Photo* self, PhotoReimportRawDevelop #line 13057 "Photo.c" } } - __finally304: + __finally306: { PhotoRow* _tmp31_ = NULL; #line 1640 "/home/jens/Source/shotwell/src/Photo.vala" @@ -13301,7 +13301,7 @@ void photo_set_master_timestamp (Photo* self, GFileInfo* info) { #line 1687 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 13302 "Photo.c" - goto __finally306; + goto __finally308; } #line 1688 "/home/jens/Source/shotwell/src/Photo.vala" _tmp15_ = self->row; @@ -13315,7 +13315,7 @@ void photo_set_master_timestamp (Photo* self, GFileInfo* info) { _tmp16_->timestamp = (time_t) _tmp18_; #line 13315 "Photo.c" } - __finally306: + __finally308: { PhotoRow* _tmp19_ = NULL; #line 1683 "/home/jens/Source/shotwell/src/Photo.vala" @@ -13329,7 +13329,7 @@ void photo_set_master_timestamp (Photo* self, GFileInfo* info) { #line 1683 "/home/jens/Source/shotwell/src/Photo.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 13330 "Photo.c" - goto __catch305_database_error; + goto __catch307_database_error; } #line 1683 "/home/jens/Source/shotwell/src/Photo.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -13341,8 +13341,8 @@ void photo_set_master_timestamp (Photo* self, GFileInfo* info) { } } } - goto __finally305; - __catch305_database_error: + goto __finally307; + __catch307_database_error: { GError* err = NULL; GError* _tmp20_ = NULL; @@ -13360,7 +13360,7 @@ void photo_set_master_timestamp (Photo* self, GFileInfo* info) { return; #line 13360 "Photo.c" } - __finally305: + __finally307: #line 1682 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1682 "/home/jens/Source/shotwell/src/Photo.vala" @@ -13492,7 +13492,7 @@ void photo_update_editable_modification_time (Photo* self, GFileInfo* info, GErr #line 1709 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 13493 "Photo.c" - goto __finally307; + goto __finally309; } #line 1711 "/home/jens/Source/shotwell/src/Photo.vala" _tmp16_ = self->priv->editable; @@ -13507,7 +13507,7 @@ void photo_update_editable_modification_time (Photo* self, GFileInfo* info, GErr #line 13506 "Photo.c" } } - __finally307: + __finally309: { PhotoRow* _tmp19_ = NULL; #line 1707 "/home/jens/Source/shotwell/src/Photo.vala" @@ -14240,7 +14240,7 @@ void photo_set_master_file (Photo* self, GFile* file) { #line 1824 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 14241 "Photo.c" - goto __finally310; + goto __finally312; } #line 1826 "/home/jens/Source/shotwell/src/Photo.vala" _tmp14_ = self->row; @@ -14332,7 +14332,7 @@ void photo_set_master_file (Photo* self, GFile* file) { #line 14331 "Photo.c" } } - __finally310: + __finally312: { PhotoBackingReaders* _tmp38_ = NULL; #line 1821 "/home/jens/Source/shotwell/src/Photo.vala" @@ -14344,11 +14344,11 @@ void photo_set_master_file (Photo* self, GFile* file) { #line 1821 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 14345 "Photo.c" - goto __finally309; + goto __finally311; } } } - __finally309: + __finally311: { PhotoRow* _tmp39_ = NULL; #line 1820 "/home/jens/Source/shotwell/src/Photo.vala" @@ -14362,7 +14362,7 @@ void photo_set_master_file (Photo* self, GFile* file) { #line 1820 "/home/jens/Source/shotwell/src/Photo.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 14363 "Photo.c" - goto __catch308_database_error; + goto __catch310_database_error; } #line 1820 "/home/jens/Source/shotwell/src/Photo.vala" _g_object_unref0 (old_file); @@ -14378,8 +14378,8 @@ void photo_set_master_file (Photo* self, GFile* file) { } } } - goto __finally308; - __catch308_database_error: + goto __finally310; + __catch310_database_error: { GError* err = NULL; GError* _tmp40_ = NULL; @@ -14395,7 +14395,7 @@ void photo_set_master_file (Photo* self, GFile* file) { _g_error_free0 (err); #line 14395 "Photo.c" } - __finally308: + __finally310: #line 1819 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1819 "/home/jens/Source/shotwell/src/Photo.vala" @@ -14736,7 +14736,7 @@ void photo_set_editable_file (Photo* self, GFile* file) { #line 1880 "/home/jens/Source/shotwell/src/Photo.vala" _g_object_unref0 (_tmp4_); #line 14737 "Photo.c" - goto __finally313; + goto __finally315; } #line 1882 "/home/jens/Source/shotwell/src/Photo.vala" _tmp21_ = self->priv->editable; @@ -14778,7 +14778,7 @@ void photo_set_editable_file (Photo* self, GFile* file) { _g_object_unref0 (_tmp4_); #line 14778 "Photo.c" } - __finally313: + __finally315: { PhotoBackingReaders* _tmp31_ = NULL; #line 1877 "/home/jens/Source/shotwell/src/Photo.vala" @@ -14790,11 +14790,11 @@ void photo_set_editable_file (Photo* self, GFile* file) { #line 1877 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 14791 "Photo.c" - goto __finally312; + goto __finally314; } } } - __finally312: + __finally314: { PhotoRow* _tmp32_ = NULL; #line 1876 "/home/jens/Source/shotwell/src/Photo.vala" @@ -14808,7 +14808,7 @@ void photo_set_editable_file (Photo* self, GFile* file) { #line 1876 "/home/jens/Source/shotwell/src/Photo.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 14809 "Photo.c" - goto __catch311_database_error; + goto __catch313_database_error; } #line 1876 "/home/jens/Source/shotwell/src/Photo.vala" _g_object_unref0 (old_file); @@ -14824,8 +14824,8 @@ void photo_set_editable_file (Photo* self, GFile* file) { } } } - goto __finally311; - __catch311_database_error: + goto __finally313; + __catch313_database_error: { GError* err = NULL; GError* _tmp33_ = NULL; @@ -14841,7 +14841,7 @@ void photo_set_editable_file (Photo* self, GFile* file) { _g_error_free0 (err); #line 14841 "Photo.c" } - __finally311: + __finally313: #line 1875 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1875 "/home/jens/Source/shotwell/src/Photo.vala" @@ -15171,7 +15171,7 @@ GeeCollection* photo_get_raw_developer_files (Photo* self) { #line 15170 "Photo.c" } #line 1945 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = gee_array_list_new (G_TYPE_FILE, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL); + _tmp1_ = gee_array_list_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL); #line 1945 "/home/jens/Source/shotwell/src/Photo.vala" ret = _tmp1_; #line 15176 "Photo.c" @@ -15259,7 +15259,7 @@ GeeCollection* photo_get_raw_developer_files (Photo* self) { #line 15258 "Photo.c" } } - __finally314: + __finally316: { PhotoRow* _tmp18_ = NULL; #line 1946 "/home/jens/Source/shotwell/src/Photo.vala" @@ -15350,7 +15350,7 @@ PhotoFileFormat photo_get_file_format (Photo* self) { return result; #line 15350 "Photo.c" } - __finally315: + __finally317: { PhotoRow* _tmp4_ = NULL; #line 1959 "/home/jens/Source/shotwell/src/Photo.vala" @@ -15442,7 +15442,7 @@ PhotoFileFormat photo_get_master_file_format (Photo* self) { return result; #line 15442 "Photo.c" } - __finally316: + __finally318: { PhotoRow* _tmp5_ = NULL; #line 1973 "/home/jens/Source/shotwell/src/Photo.vala" @@ -15498,7 +15498,7 @@ static time_t photo_real_get_timestamp (MediaSource* base) { return result; #line 15498 "Photo.c" } - __finally317: + __finally319: { PhotoRow* _tmp4_ = NULL; #line 1979 "/home/jens/Source/shotwell/src/Photo.vala" @@ -15552,7 +15552,7 @@ void photo_get_photo_id (Photo* self, PhotoID* result) { return; #line 15552 "Photo.c" } - __finally318: + __finally320: { PhotoRow* _tmp4_ = NULL; #line 1985 "/home/jens/Source/shotwell/src/Photo.vala" @@ -15646,7 +15646,7 @@ static void photo_real_get_import_id (MediaSource* base, ImportID* result) { return; #line 15646 "Photo.c" } - __finally319: + __finally321: { PhotoRow* _tmp4_ = NULL; #line 2001 "/home/jens/Source/shotwell/src/Photo.vala" @@ -15700,7 +15700,7 @@ void photo_get_editable_id (Photo* self, BackingPhotoID* result) { return; #line 15700 "Photo.c" } - __finally320: + __finally322: { PhotoRow* _tmp4_ = NULL; #line 2007 "/home/jens/Source/shotwell/src/Photo.vala" @@ -15759,7 +15759,7 @@ static gchar* photo_real_get_master_md5 (MediaSource* base) { return result; #line 15759 "Photo.c" } - __finally321: + __finally323: { PhotoRow* _tmp5_ = NULL; #line 2013 "/home/jens/Source/shotwell/src/Photo.vala" @@ -15814,7 +15814,7 @@ guint64 photo_get_flags (Photo* self) { return result; #line 15814 "Photo.c" } - __finally322: + __finally324: { PhotoRow* _tmp4_ = NULL; #line 2021 "/home/jens/Source/shotwell/src/Photo.vala" @@ -15932,7 +15932,7 @@ guint64 photo_replace_flags (Photo* self, guint64 flags, Alteration* additional_ #line 15931 "Photo.c" } } - __finally323: + __finally325: { PhotoRow* _tmp9_ = NULL; #line 2036 "/home/jens/Source/shotwell/src/Photo.vala" @@ -16015,7 +16015,7 @@ gboolean photo_is_flag_set (Photo* self, guint64 mask) { return result; #line 16015 "Photo.c" } - __finally324: + __finally326: { PhotoRow* _tmp6_ = NULL; #line 2049 "/home/jens/Source/shotwell/src/Photo.vala" @@ -16121,7 +16121,7 @@ guint64 photo_add_flags (Photo* self, guint64 mask, Alteration* additional_alter } } } - __finally325: + __finally327: { PhotoRow* _tmp16_ = NULL; #line 2058 "/home/jens/Source/shotwell/src/Photo.vala" @@ -16247,7 +16247,7 @@ guint64 photo_remove_flags (Photo* self, guint64 mask, Alteration* additional_al } } } - __finally326: + __finally328: { PhotoRow* _tmp16_ = NULL; #line 2077 "/home/jens/Source/shotwell/src/Photo.vala" @@ -16373,7 +16373,7 @@ guint64 photo_add_remove_flags (Photo* self, guint64 add, guint64 remove, Altera } } } - __finally327: + __finally329: { PhotoRow* _tmp16_ = NULL; #line 2096 "/home/jens/Source/shotwell/src/Photo.vala" @@ -16652,7 +16652,7 @@ guint64 photo_toggle_flags (Photo* self, guint64 mask, Alteration* additional_al } } } - __finally328: + __finally330: { PhotoRow* _tmp15_ = NULL; #line 2133 "/home/jens/Source/shotwell/src/Photo.vala" @@ -16727,7 +16727,7 @@ gboolean photo_is_master_metadata_dirty (Photo* self) { return result; #line 16727 "Photo.c" } - __finally329: + __finally331: { PhotoRow* _tmp4_ = NULL; #line 2149 "/home/jens/Source/shotwell/src/Photo.vala" @@ -16797,7 +16797,7 @@ void photo_set_master_metadata_dirty (Photo* self, gboolean dirty, GError** erro #line 2158 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 16798 "Photo.c" - goto __finally330; + goto __finally332; } #line 2159 "/home/jens/Source/shotwell/src/Photo.vala" _tmp8_ = self->row; @@ -16810,7 +16810,7 @@ void photo_set_master_metadata_dirty (Photo* self, gboolean dirty, GError** erro #line 16809 "Photo.c" } } - __finally330: + __finally332: { PhotoRow* _tmp10_ = NULL; #line 2156 "/home/jens/Source/shotwell/src/Photo.vala" @@ -16895,7 +16895,7 @@ static Rating photo_real_get_rating (MediaSource* base) { return result; #line 16895 "Photo.c" } - __finally331: + __finally333: { PhotoRow* _tmp4_ = NULL; #line 2169 "/home/jens/Source/shotwell/src/Photo.vala" @@ -17000,7 +17000,7 @@ static void photo_real_set_rating (MediaSource* base, Rating rating) { } } } - __finally332: + __finally334: { PhotoRow* _tmp15_ = NULL; #line 2177 "/home/jens/Source/shotwell/src/Photo.vala" @@ -17067,7 +17067,7 @@ static void photo_real_increase_rating (MediaSource* base) { media_source_set_rating (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), _tmp3_); #line 17067 "Photo.c" } - __finally333: + __finally335: { PhotoRow* _tmp4_ = NULL; #line 2190 "/home/jens/Source/shotwell/src/Photo.vala" @@ -17117,7 +17117,7 @@ static void photo_real_decrease_rating (MediaSource* base) { media_source_set_rating (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), _tmp3_); #line 17117 "Photo.c" } - __finally334: + __finally336: { PhotoRow* _tmp4_ = NULL; #line 2196 "/home/jens/Source/shotwell/src/Photo.vala" @@ -17170,7 +17170,7 @@ static void photo_real_commit_backlinks (DataSource* base, SourceCollection* sou #line 2206 "/home/jens/Source/shotwell/src/Photo.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 17171 "Photo.c" - goto __catch335_database_error; + goto __catch337_database_error; } #line 2206 "/home/jens/Source/shotwell/src/Photo.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -17203,7 +17203,7 @@ static void photo_real_commit_backlinks (DataSource* base, SourceCollection* sou _tmp5_->backlinks = _tmp7_; #line 17203 "Photo.c" } - __finally336: + __finally338: { PhotoRow* _tmp8_ = NULL; #line 2207 "/home/jens/Source/shotwell/src/Photo.vala" @@ -17217,7 +17217,7 @@ static void photo_real_commit_backlinks (DataSource* base, SourceCollection* sou #line 2207 "/home/jens/Source/shotwell/src/Photo.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 17218 "Photo.c" - goto __catch335_database_error; + goto __catch337_database_error; } #line 2207 "/home/jens/Source/shotwell/src/Photo.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -17229,8 +17229,8 @@ static void photo_real_commit_backlinks (DataSource* base, SourceCollection* sou } } } - goto __finally335; - __catch335_database_error: + goto __finally337; + __catch337_database_error: { GError* err = NULL; gchar* _tmp9_ = NULL; @@ -17257,7 +17257,7 @@ static void photo_real_commit_backlinks (DataSource* base, SourceCollection* sou _g_error_free0 (err); #line 17257 "Photo.c" } - __finally335: + __finally337: #line 2205 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 2205 "/home/jens/Source/shotwell/src/Photo.vala" @@ -17345,7 +17345,7 @@ static gboolean photo_real_set_event_id (MediaSource* base, EventID* event_id) { return result; #line 17345 "Photo.c" } - __finally337: + __finally339: { PhotoRow* _tmp12_ = NULL; #line 2220 "/home/jens/Source/shotwell/src/Photo.vala" @@ -17595,7 +17595,7 @@ static void photo_file_exif_updated (Photo* self) { #line 2256 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 17596 "Photo.c" - goto __catch338_g_error; + goto __catch340_g_error; } #line 2256 "/home/jens/Source/shotwell/src/Photo.vala" _tmp3_ = _tmp1_; @@ -17609,8 +17609,8 @@ static void photo_file_exif_updated (Photo* self) { _g_object_unref0 (_tmp1_); #line 17609 "Photo.c" } - goto __finally338; - __catch338_g_error: + goto __finally340; + __catch340_g_error: { GError* err = NULL; gchar* _tmp4_ = NULL; @@ -17634,7 +17634,7 @@ static void photo_file_exif_updated (Photo* self) { _g_error_free0 (err); #line 17634 "Photo.c" } - __finally338: + __finally340: #line 2255 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 2255 "/home/jens/Source/shotwell/src/Photo.vala" @@ -17666,11 +17666,11 @@ static void photo_file_exif_updated (Photo* self) { #line 2267 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 17667 "Photo.c" - goto __catch339_g_error; + goto __catch341_g_error; } } - goto __finally339; - __catch339_g_error: + goto __finally341; + __catch341_g_error: { GError* err = NULL; gchar* _tmp10_ = NULL; @@ -17697,7 +17697,7 @@ static void photo_file_exif_updated (Photo* self) { _g_error_free0 (err); #line 17697 "Photo.c" } - __finally339: + __finally341: #line 2266 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 2266 "/home/jens/Source/shotwell/src/Photo.vala" @@ -17817,7 +17817,7 @@ static void photo_file_exif_updated (Photo* self) { _database_table_unref0 (_tmp22_); #line 17817 "Photo.c" } - __finally340: + __finally342: { PhotoRow* _tmp36_ = NULL; #line 2280 "/home/jens/Source/shotwell/src/Photo.vala" @@ -17910,7 +17910,7 @@ static guint64 photo_real_get_filesize (MediaSource* base) { return result; #line 17910 "Photo.c" } - __finally341: + __finally343: { PhotoRow* _tmp4_ = NULL; #line 2292 "/home/jens/Source/shotwell/src/Photo.vala" @@ -17969,7 +17969,7 @@ static guint64 photo_real_get_master_filesize (MediaSource* base) { return result; #line 17969 "Photo.c" } - __finally342: + __finally344: { PhotoRow* _tmp5_ = NULL; #line 2298 "/home/jens/Source/shotwell/src/Photo.vala" @@ -18024,7 +18024,7 @@ guint64 photo_get_editable_filesize (Photo* self) { return result; #line 18024 "Photo.c" } - __finally343: + __finally345: { PhotoRow* _tmp4_ = NULL; #line 2304 "/home/jens/Source/shotwell/src/Photo.vala" @@ -18096,7 +18096,7 @@ static gchar* photo_real_get_basename (MediaSource* base) { return result; #line 18096 "Photo.c" } - __finally344: + __finally346: { PhotoRow* _tmp4_ = NULL; #line 2314 "/home/jens/Source/shotwell/src/Photo.vala" @@ -18155,7 +18155,7 @@ static gchar* photo_real_get_title (MediaSource* base) { return result; #line 18155 "Photo.c" } - __finally345: + __finally347: { PhotoRow* _tmp5_ = NULL; #line 2320 "/home/jens/Source/shotwell/src/Photo.vala" @@ -18214,7 +18214,7 @@ static gchar* photo_real_get_comment (MediaSource* base) { return result; #line 18214 "Photo.c" } - __finally346: + __finally348: { PhotoRow* _tmp5_ = NULL; #line 2326 "/home/jens/Source/shotwell/src/Photo.vala" @@ -18331,7 +18331,7 @@ static void photo_real_set_title (MediaSource* base, const gchar* title) { #line 18330 "Photo.c" } } - __finally347: + __finally349: { PhotoRow* _tmp17_ = NULL; #line 2335 "/home/jens/Source/shotwell/src/Photo.vala" @@ -18476,7 +18476,7 @@ static gboolean photo_real_set_comment (MediaSource* base, const gchar* comment) #line 18475 "Photo.c" } } - __finally348: + __finally350: { PhotoRow* _tmp17_ = NULL; #line 2352 "/home/jens/Source/shotwell/src/Photo.vala" @@ -18578,7 +18578,7 @@ void photo_set_import_id (Photo* self, ImportID* import_id) { #line 2371 "/home/jens/Source/shotwell/src/Photo.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 18579 "Photo.c" - goto __catch350_database_error; + goto __catch352_database_error; } { PhotoRow* _tmp6_ = NULL; @@ -18606,8 +18606,8 @@ void photo_set_import_id (Photo* self, ImportID* import_id) { _tmp7_->import_id = _tmp8_; #line 18606 "Photo.c" } - goto __finally350; - __catch350_database_error: + goto __finally352; + __catch352_database_error: { GError* err = NULL; GError* _tmp9_ = NULL; @@ -18628,7 +18628,7 @@ void photo_set_import_id (Photo* self, ImportID* import_id) { _g_error_free0 (err); #line 18628 "Photo.c" } - __finally350: + __finally352: #line 2370 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 18633 "Photo.c" @@ -18651,7 +18651,7 @@ void photo_set_import_id (Photo* self, ImportID* import_id) { #line 18650 "Photo.c" } } - __finally349: + __finally351: { PhotoRow* _tmp12_ = NULL; #line 2369 "/home/jens/Source/shotwell/src/Photo.vala" @@ -18835,10 +18835,10 @@ void photo_set_title_persistent (Photo* self, const gchar* title, GError** error #line 2402 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 18836 "Photo.c" - goto __finally351; + goto __finally353; } } - __finally351: + __finally353: { PhotoFileReader* _tmp19_ = NULL; GFile* _tmp20_ = NULL; @@ -19006,10 +19006,10 @@ void photo_set_comment_persistent (Photo* self, const gchar* comment, GError** e #line 2430 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 19007 "Photo.c" - goto __finally352; + goto __finally354; } } - __finally352: + __finally354: { PhotoFileReader* _tmp19_ = NULL; GFile* _tmp20_ = NULL; @@ -19116,7 +19116,7 @@ static void photo_real_set_exposure_time (Dateable* base, time_t time) { #line 19115 "Photo.c" } } - __finally353: + __finally355: { PhotoRow* _tmp11_ = NULL; #line 2442 "/home/jens/Source/shotwell/src/Photo.vala" @@ -19285,10 +19285,10 @@ void photo_set_exposure_time_persistent (Photo* self, time_t time, GError** erro #line 2472 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 19286 "Photo.c" - goto __finally354; + goto __finally356; } } - __finally354: + __finally356: { PhotoFileReader* _tmp21_ = NULL; GFile* _tmp22_ = NULL; @@ -19613,7 +19613,7 @@ PixelTransformationBundle* photo_get_color_adjustments (Photo* self) { return result; #line 19613 "Photo.c" } - __finally355: + __finally357: { PhotoRow* _tmp5_ = NULL; #line 2560 "/home/jens/Source/shotwell/src/Photo.vala" @@ -19677,7 +19677,7 @@ PixelTransformer* photo_get_pixel_transformer (Photo* self) { return result; #line 19677 "Photo.c" } - __finally356: + __finally358: { PhotoRow* _tmp5_ = NULL; #line 2569 "/home/jens/Source/shotwell/src/Photo.vala" @@ -19786,7 +19786,7 @@ void photo_set_color_adjustments (Photo* self, PixelTransformationBundle* new_ad self->priv->transformer = NULL; #line 19786 "Photo.c" } - __finally357: + __finally359: { PhotoRow* _tmp4_ = NULL; #line 2590 "/home/jens/Source/shotwell/src/Photo.vala" @@ -19984,7 +19984,7 @@ void photo_set_color_adjustments (Photo* self, PixelTransformationBundle* new_ad committed = _tmp37_; #line 19984 "Photo.c" } - __finally358: + __finally360: { PhotoRow* _tmp38_ = NULL; #line 2606 "/home/jens/Source/shotwell/src/Photo.vala" @@ -20058,7 +20058,7 @@ static PhotoMetadata* photo_real_get_metadata (PhotoSource* base) { #line 2632 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 20059 "Photo.c" - goto __catch359_g_error; + goto __catch361_g_error; } #line 2632 "/home/jens/Source/shotwell/src/Photo.vala" _tmp5_ = _tmp0_; @@ -20072,8 +20072,8 @@ static PhotoMetadata* photo_real_get_metadata (PhotoSource* base) { return result; #line 20072 "Photo.c" } - goto __finally359; - __catch359_g_error: + goto __finally361; + __catch361_g_error: { GError* err = NULL; GError* _tmp6_ = NULL; @@ -20096,7 +20096,7 @@ static PhotoMetadata* photo_real_get_metadata (PhotoSource* base) { return result; #line 20096 "Photo.c" } - __finally359: + __finally361: #line 2631 "/home/jens/Source/shotwell/src/Photo.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 2631 "/home/jens/Source/shotwell/src/Photo.vala" @@ -20662,7 +20662,7 @@ void photo_get_raw_dimensions (Photo* self, Dimensions* result) { return; #line 20662 "Photo.c" } - __finally360: + __finally362: { PhotoRow* _tmp4_ = NULL; #line 2704 "/home/jens/Source/shotwell/src/Photo.vala" @@ -20740,7 +20740,7 @@ gboolean photo_has_transformations (Photo* self) { return result; #line 20740 "Photo.c" } - __finally361: + __finally363: { PhotoRow* _tmp9_ = NULL; #line 2710 "/home/jens/Source/shotwell/src/Photo.vala" @@ -20887,7 +20887,7 @@ gboolean photo_only_metadata_changed (Photo* self) { return result; #line 20887 "Photo.c" } - __finally362: + __finally364: { PhotoRow* _tmp20_ = NULL; #line 2724 "/home/jens/Source/shotwell/src/Photo.vala" @@ -21026,7 +21026,7 @@ gboolean photo_has_alterations (Photo* self) { #line 21025 "Photo.c" } } - __finally363: + __finally365: { PhotoRow* _tmp15_ = NULL; #line 2746 "/home/jens/Source/shotwell/src/Photo.vala" @@ -21197,7 +21197,7 @@ gboolean photo_has_alterations (Photo* self) { return result; #line 21197 "Photo.c" } - __finally364: + __finally366: { PhotoRow* _tmp40_ = NULL; #line 2755 "/home/jens/Source/shotwell/src/Photo.vala" @@ -21332,7 +21332,7 @@ PhotoTransformationState* photo_save_transformation_state (Photo* self) { return result; #line 21332 "Photo.c" } - __finally365: + __finally367: { PhotoRow* _tmp15_ = NULL; #line 2766 "/home/jens/Source/shotwell/src/Photo.vala" @@ -21517,7 +21517,7 @@ gboolean photo_load_transformation_state (Photo* self, PhotoTransformationState* #line 21516 "Photo.c" } } - __finally366: + __finally368: { PhotoRow* _tmp29_ = NULL; #line 2785 "/home/jens/Source/shotwell/src/Photo.vala" @@ -21692,7 +21692,7 @@ static void photo_internal_remove_all_transformations (Photo* self, gboolean not #line 21691 "Photo.c" } } - __finally367: + __finally369: { PhotoRow* _tmp20_ = NULL; #line 2808 "/home/jens/Source/shotwell/src/Photo.vala" @@ -21781,7 +21781,7 @@ Orientation photo_get_original_orientation (Photo* self) { return result; #line 21781 "Photo.c" } - __finally368: + __finally370: { PhotoRow* _tmp4_ = NULL; #line 2828 "/home/jens/Source/shotwell/src/Photo.vala" @@ -21836,7 +21836,7 @@ Orientation photo_get_orientation (Photo* self) { return result; #line 21836 "Photo.c" } - __finally369: + __finally371: { PhotoRow* _tmp4_ = NULL; #line 2834 "/home/jens/Source/shotwell/src/Photo.vala" @@ -21926,7 +21926,7 @@ gboolean photo_set_orientation (Photo* self, Orientation orientation) { } } } - __finally370: + __finally372: { PhotoRow* _tmp13_ = NULL; #line 2841 "/home/jens/Source/shotwell/src/Photo.vala" @@ -22009,7 +22009,7 @@ static void photo_real_rotate (Photo* self, Rotation rotation) { photo_set_orientation (self, _tmp3_); #line 22009 "Photo.c" } - __finally371: + __finally373: { PhotoRow* _tmp4_ = NULL; #line 2860 "/home/jens/Source/shotwell/src/Photo.vala" @@ -22102,7 +22102,7 @@ static gboolean photo_has_transformation (Photo* self, const gchar* name) { return result; #line 22102 "Photo.c" } - __finally372: + __finally374: { PhotoRow* _tmp9_ = NULL; #line 2866 "/home/jens/Source/shotwell/src/Photo.vala" @@ -22186,7 +22186,7 @@ static KeyValueMap* photo_get_transformation (Photo* self, const gchar* name) { } } } - __finally373: + __finally375: { PhotoRow* _tmp10_ = NULL; #line 2876 "/home/jens/Source/shotwell/src/Photo.vala" @@ -22313,7 +22313,7 @@ static gboolean photo_set_transformation (Photo* self, KeyValueMap* trans) { return result; #line 22313 "Photo.c" } - __finally374: + __finally376: { PhotoRow* _tmp19_ = NULL; #line 2888 "/home/jens/Source/shotwell/src/Photo.vala" @@ -22429,7 +22429,7 @@ static gboolean photo_remove_transformation (Photo* self, const gchar* name) { _database_table_unref0 (_tmp13_); #line 22429 "Photo.c" } - __finally375: + __finally377: { PhotoRow* _tmp18_ = NULL; #line 2900 "/home/jens/Source/shotwell/src/Photo.vala" @@ -23310,7 +23310,7 @@ static gboolean photo_calculate_pixbuf_dimensions (Photo* self, Scaling* scaling return result; #line 23310 "Photo.c" } - __finally376: + __finally378: { PhotoRow* _tmp7_ = NULL; #line 3047 "/home/jens/Source/shotwell/src/Photo.vala" @@ -24018,7 +24018,7 @@ static GdkPixbuf* photo_get_untransformed_pixbuf (Photo* self, Scaling* scaling, original_orientation = _tmp4_; #line 24018 "Photo.c" } - __finally377: + __finally379: { PhotoRow* _tmp5_ = NULL; #line 3207 "/home/jens/Source/shotwell/src/Photo.vala" @@ -24387,7 +24387,7 @@ static GdkPixbuf* photo_run_source_pixbuf_cache (Photo* locate, gboolean keep, G #line 3288 "/home/jens/Source/shotwell/src/Photo.vala" _photo_cached_pixbuf_unref0 (found); #line 24388 "Photo.c" - goto __finally378; + goto __finally380; } #line 3287 "/home/jens/Source/shotwell/src/Photo.vala" _tmp38_ = locate; @@ -24581,7 +24581,7 @@ static GdkPixbuf* photo_run_source_pixbuf_cache (Photo* locate, gboolean keep, G return result; #line 24581 "Photo.c" } - __finally378: + __finally380: { GeeLinkedList* _tmp75_ = NULL; #line 3253 "/home/jens/Source/shotwell/src/Photo.vala" @@ -24614,11 +24614,11 @@ static gboolean photo_trim_source_pixbuf_cache (void) { #line 3330 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 24615 "Photo.c" - goto __catch379_g_error; + goto __catch381_g_error; } } - goto __finally379; - __catch379_g_error: + goto __finally381; + __catch381_g_error: { GError* err = NULL; #line 3329 "/home/jens/Source/shotwell/src/Photo.vala" @@ -24629,7 +24629,7 @@ static gboolean photo_trim_source_pixbuf_cache (void) { _g_error_free0 (err); #line 24629 "Photo.c" } - __finally379: + __finally381: #line 3329 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 3329 "/home/jens/Source/shotwell/src/Photo.vala" @@ -24718,11 +24718,11 @@ void photo_discard_prefetched (Photo* self) { #line 3351 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 24719 "Photo.c" - goto __catch380_g_error; + goto __catch382_g_error; } } - goto __finally380; - __catch380_g_error: + goto __finally382; + __catch382_g_error: { GError* err = NULL; #line 3350 "/home/jens/Source/shotwell/src/Photo.vala" @@ -24733,7 +24733,7 @@ void photo_discard_prefetched (Photo* self) { _g_error_free0 (err); #line 24733 "Photo.c" } - __finally380: + __finally382: #line 3350 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 3350 "/home/jens/Source/shotwell/src/Photo.vala" @@ -24988,7 +24988,7 @@ GdkPixbuf* photo_get_pixbuf_with_options (Photo* self, Scaling* scaling, PhotoEx orientation = _tmp31_; #line 24988 "Photo.c" } - __finally381: + __finally383: { PhotoRow* _tmp32_ = NULL; #line 3398 "/home/jens/Source/shotwell/src/Photo.vala" @@ -25730,7 +25730,7 @@ static gboolean photo_export_fullsized_backing (Photo* self, GFile* file, gboole } } } - __finally382: + __finally384: { PhotoBackingReaders* _tmp28_ = NULL; #line 3565 "/home/jens/Source/shotwell/src/Photo.vala" @@ -26879,7 +26879,7 @@ static GFile* photo_generate_new_editable_file (Photo* self, PhotoFileFormat* fi backing = _tmp2_; #line 26878 "Photo.c" } - __finally383: + __finally385: { PhotoRow* _tmp3_ = NULL; #line 3739 "/home/jens/Source/shotwell/src/Photo.vala" @@ -27174,7 +27174,7 @@ static gboolean photo_launch_editor (GFile* file, PhotoFileFormat file_format, G #line 3768 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 27174 "Photo.c" - goto __catch384_g_error; + goto __catch386_g_error; } #line 3768 "/home/jens/Source/shotwell/src/Photo.vala" _tmp14_ = _tmp11_; @@ -27188,8 +27188,8 @@ static gboolean photo_launch_editor (GFile* file, PhotoFileFormat file_format, G _g_object_unref0 (_tmp11_); #line 27187 "Photo.c" } - goto __finally384; - __catch384_g_error: + goto __finally386; + __catch386_g_error: { GError* er = NULL; #line 3767 "/home/jens/Source/shotwell/src/Photo.vala" @@ -27204,7 +27204,7 @@ static gboolean photo_launch_editor (GFile* file, PhotoFileFormat file_format, G _g_error_free0 (er); #line 27203 "Photo.c" } - __finally384: + __finally386: #line 3767 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 3767 "/home/jens/Source/shotwell/src/Photo.vala" @@ -27456,7 +27456,7 @@ void photo_open_with_external_editor (Photo* self, GError** error) { #line 3810 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 27456 "Photo.c" - goto __finally385; + goto __finally387; } #line 3810 "/home/jens/Source/shotwell/src/Photo.vala" _tmp10_ = _tmp7_; @@ -27484,7 +27484,7 @@ void photo_open_with_external_editor (Photo* self, GError** error) { #line 27482 "Photo.c" } } - __finally385: + __finally387: { PhotoBackingReaders* _tmp14_ = NULL; #line 3805 "/home/jens/Source/shotwell/src/Photo.vala" @@ -27612,11 +27612,11 @@ void photo_open_with_external_editor (Photo* self, GError** error) { #line 3826 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 27612 "Photo.c" - goto __catch386_g_error; + goto __catch388_g_error; } } - goto __finally386; - __catch386_g_error: + goto __finally388; + __catch388_g_error: { GError* err = NULL; GError* _tmp38_ = NULL; @@ -27635,11 +27635,11 @@ void photo_open_with_external_editor (Photo* self, GError** error) { #line 3831 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 27635 "Photo.c" - goto __catch387_g_error; + goto __catch389_g_error; } } - goto __finally387; - __catch387_g_error: + goto __finally389; + __catch389_g_error: { GError* delete_err = NULL; GFile* _tmp33_ = NULL; @@ -27670,7 +27670,7 @@ void photo_open_with_external_editor (Photo* self, GError** error) { _g_error_free0 (delete_err); #line 27668 "Photo.c" } - __finally387: + __finally389: #line 3830 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 3830 "/home/jens/Source/shotwell/src/Photo.vala" @@ -27698,9 +27698,9 @@ void photo_open_with_external_editor (Photo* self, GError** error) { #line 3838 "/home/jens/Source/shotwell/src/Photo.vala" _g_error_free0 (err); #line 27697 "Photo.c" - goto __finally386; + goto __finally388; } - __finally386: + __finally388: #line 3825 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 3825 "/home/jens/Source/shotwell/src/Photo.vala" @@ -28330,7 +28330,7 @@ static void photo_update_editable (Photo* self, gboolean only_attributes, PhotoF #line 3936 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 28329 "Photo.c" - goto __finally388; + goto __finally390; } #line 3937 "/home/jens/Source/shotwell/src/Photo.vala" _tmp28_ = backing; @@ -28356,7 +28356,7 @@ static void photo_update_editable (Photo* self, gboolean only_attributes, PhotoF photo_set_orientation (self, _tmp33_); #line 28354 "Photo.c" } - __finally388: + __finally390: { PhotoRow* _tmp34_ = NULL; #line 3932 "/home/jens/Source/shotwell/src/Photo.vala" @@ -28425,7 +28425,7 @@ static void photo_update_editable (Photo* self, gboolean only_attributes, PhotoF #line 3951 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 28424 "Photo.c" - goto __catch389_g_error; + goto __catch391_g_error; } #line 3951 "/home/jens/Source/shotwell/src/Photo.vala" _tmp40_ = _tmp37_; @@ -28439,8 +28439,8 @@ static void photo_update_editable (Photo* self, gboolean only_attributes, PhotoF _g_object_unref0 (_tmp37_); #line 28437 "Photo.c" } - goto __finally389; - __catch389_g_error: + goto __finally391; + __catch391_g_error: { GError* err = NULL; gchar* _tmp41_ = NULL; @@ -28483,7 +28483,7 @@ static void photo_update_editable (Photo* self, gboolean only_attributes, PhotoF return; #line 28481 "Photo.c" } - __finally389: + __finally391: #line 3950 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 3950 "/home/jens/Source/shotwell/src/Photo.vala" @@ -28608,7 +28608,7 @@ static void photo_update_editable (Photo* self, gboolean only_attributes, PhotoF _tmp66_->filesize = _tmp68_; #line 28606 "Photo.c" } - __finally390: + __finally392: { PhotoRow* _tmp69_ = NULL; #line 3963 "/home/jens/Source/shotwell/src/Photo.vala" @@ -28768,7 +28768,7 @@ static void photo_update_editable (Photo* self, gboolean only_attributes, PhotoF photo_set_orientation (self, _tmp92_); #line 28766 "Photo.c" } - __finally391: + __finally393: { PhotoRow* _tmp93_ = NULL; #line 3979 "/home/jens/Source/shotwell/src/Photo.vala" @@ -28826,7 +28826,7 @@ static void photo_update_editable (Photo* self, gboolean only_attributes, PhotoF _tmp96_->editable = _tmp98_; #line 28824 "Photo.c" } - __finally392: + __finally394: { PhotoBackingReaders* _tmp99_ = NULL; #line 3992 "/home/jens/Source/shotwell/src/Photo.vala" @@ -29156,7 +29156,7 @@ static void photo_detach_editable (Photo* self, gboolean delete_editable, gboole #line 29153 "Photo.c" } } - __finally393: + __finally395: { PhotoBackingReaders* _tmp7_ = NULL; #line 4029 "/home/jens/Source/shotwell/src/Photo.vala" @@ -29229,7 +29229,7 @@ static void photo_detach_editable (Photo* self, gboolean delete_editable, gboole #line 4043 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 29228 "Photo.c" - goto __finally395; + goto __finally397; } } #line 4044 "/home/jens/Source/shotwell/src/Photo.vala" @@ -29244,7 +29244,7 @@ static void photo_detach_editable (Photo* self, gboolean delete_editable, gboole self->backing_photo_row = _tmp18_; #line 29242 "Photo.c" } - __finally395: + __finally397: { PhotoRow* _tmp19_ = NULL; #line 4040 "/home/jens/Source/shotwell/src/Photo.vala" @@ -29258,7 +29258,7 @@ static void photo_detach_editable (Photo* self, gboolean delete_editable, gboole #line 4040 "/home/jens/Source/shotwell/src/Photo.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 29257 "Photo.c" - goto __catch394_database_error; + goto __catch396_database_error; } #line 4040 "/home/jens/Source/shotwell/src/Photo.vala" _g_object_unref0 (editable_file); @@ -29272,8 +29272,8 @@ static void photo_detach_editable (Photo* self, gboolean delete_editable, gboole } } } - goto __finally394; - __catch394_database_error: + goto __finally396; + __catch396_database_error: { GError* err = NULL; GError* _tmp20_ = NULL; @@ -29292,7 +29292,7 @@ static void photo_detach_editable (Photo* self, gboolean delete_editable, gboole _g_error_free0 (err); #line 29290 "Photo.c" } - __finally394: + __finally396: #line 4039 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 4039 "/home/jens/Source/shotwell/src/Photo.vala" @@ -29330,7 +29330,7 @@ static void photo_detach_editable (Photo* self, gboolean delete_editable, gboole #line 4052 "/home/jens/Source/shotwell/src/Photo.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 29329 "Photo.c" - goto __catch396_database_error; + goto __catch398_database_error; } #line 4052 "/home/jens/Source/shotwell/src/Photo.vala" _g_object_unref0 (editable_file); @@ -29344,8 +29344,8 @@ static void photo_detach_editable (Photo* self, gboolean delete_editable, gboole } } } - goto __finally396; - __catch396_database_error: + goto __finally398; + __catch398_database_error: { GError* err = NULL; GError* _tmp26_ = NULL; @@ -29364,7 +29364,7 @@ static void photo_detach_editable (Photo* self, gboolean delete_editable, gboole _g_error_free0 (err); #line 29362 "Photo.c" } - __finally396: + __finally398: #line 4050 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 4050 "/home/jens/Source/shotwell/src/Photo.vala" @@ -29428,11 +29428,11 @@ static void photo_detach_editable (Photo* self, gboolean delete_editable, gboole #line 4068 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 29427 "Photo.c" - goto __catch397_g_error; + goto __catch399_g_error; } } - goto __finally397; - __catch397_g_error: + goto __finally399; + __catch399_g_error: { GError* err = NULL; GFile* _tmp35_ = NULL; @@ -29470,7 +29470,7 @@ static void photo_detach_editable (Photo* self, gboolean delete_editable, gboole _g_error_free0 (err); #line 29468 "Photo.c" } - __finally397: + __finally399: #line 4067 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 4067 "/home/jens/Source/shotwell/src/Photo.vala" @@ -29625,7 +29625,7 @@ static void photo_on_editable_file_changed (Photo* self, GFile* file, GFile* oth #line 29622 "Photo.c" } } - __finally398: + __finally400: { PhotoBackingReaders* _tmp11_ = NULL; #line 4081 "/home/jens/Source/shotwell/src/Photo.vala" @@ -29788,11 +29788,11 @@ static void photo_on_reimport_editable (Photo* self) { #line 4140 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 29787 "Photo.c" - goto __catch399_g_error; + goto __catch401_g_error; } } - goto __finally399; - __catch399_g_error: + goto __finally401; + __catch401_g_error: { GError* err = NULL; gchar* _tmp2_ = NULL; @@ -29820,7 +29820,7 @@ static void photo_on_reimport_editable (Photo* self) { _g_error_free0 (err); #line 29817 "Photo.c" } - __finally399: + __finally401: #line 4139 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 4139 "/home/jens/Source/shotwell/src/Photo.vala" @@ -29855,11 +29855,11 @@ static void photo_on_update_editable_attributes (Photo* self) { #line 4150 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 29853 "Photo.c" - goto __catch400_g_error; + goto __catch402_g_error; } } - goto __finally400; - __catch400_g_error: + goto __finally402; + __catch402_g_error: { GError* err = NULL; GError* _tmp2_ = NULL; @@ -29878,7 +29878,7 @@ static void photo_on_update_editable_attributes (Photo* self) { _g_error_free0 (err); #line 29875 "Photo.c" } - __finally400: + __finally402: #line 4149 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 4149 "/home/jens/Source/shotwell/src/Photo.vala" @@ -31502,7 +31502,7 @@ PixelTransformationBundle* photo_get_enhance_transformations (Photo* self) { #line 4394 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 31500 "Photo.c" - goto __catch401_g_error; + goto __catch403_g_error; } #line 4394 "/home/jens/Source/shotwell/src/Photo.vala" _tmp3_ = _tmp0_; @@ -31516,8 +31516,8 @@ PixelTransformationBundle* photo_get_enhance_transformations (Photo* self) { _g_object_unref0 (_tmp0_); #line 31513 "Photo.c" } - goto __finally401; - __catch401_g_error: + goto __finally403; + __catch403_g_error: { GError* e = NULL; #line 4393 "/home/jens/Source/shotwell/src/Photo.vala" @@ -31536,7 +31536,7 @@ PixelTransformationBundle* photo_get_enhance_transformations (Photo* self) { return result; #line 31533 "Photo.c" } - __finally401: + __finally403: #line 4393 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 4393 "/home/jens/Source/shotwell/src/Photo.vala" @@ -31604,7 +31604,7 @@ gboolean photo_enhance (Photo* self) { photo_set_color_adjustments (self, _tmp3_); #line 31601 "Photo.c" } - __finally402: + __finally404: { PhotoRow* _tmp4_ = NULL; #line 4430 "/home/jens/Source/shotwell/src/Photo.vala" @@ -34211,7 +34211,7 @@ static void photo_class_init (PhotoClass * klass) { #line 161 "/home/jens/Source/shotwell/src/Photo.vala" G_OBJECT_CLASS (klass)->finalize = photo_finalize; #line 161 "/home/jens/Source/shotwell/src/Photo.vala" - g_signal_new ("editable_replaced", TYPE_PHOTO, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (PhotoClass, editable_replaced), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT, G_TYPE_NONE, 2, G_TYPE_FILE, G_TYPE_FILE); + g_signal_new ("editable_replaced", TYPE_PHOTO, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (PhotoClass, editable_replaced), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT, G_TYPE_NONE, 2, g_file_get_type (), g_file_get_type ()); #line 161 "/home/jens/Source/shotwell/src/Photo.vala" g_signal_new ("raw_development_modified", TYPE_PHOTO, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (PhotoClass, raw_development_modified), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); #line 161 "/home/jens/Source/shotwell/src/Photo.vala" @@ -36919,37 +36919,37 @@ static glong string_strnlen (gchar* str, glong maxlen) { glong _tmp1_ = 0L; gchar* _tmp2_ = NULL; gchar* _tmp3_ = NULL; -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = str; -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = maxlen; -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = memchr (_tmp0_, 0, (gsize) _tmp1_); -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" end = _tmp2_; -#line 1296 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1296 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = end; -#line 1296 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1296 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp3_ == NULL) { #line 36930 "Photo.c" glong _tmp4_ = 0L; -#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = maxlen; -#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp4_; -#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 36938 "Photo.c" } else { gchar* _tmp5_ = NULL; gchar* _tmp6_ = NULL; -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = end; -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp6_ = str; -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = (glong) (_tmp5_ - _tmp6_); -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 36950 "Photo.c" } @@ -36969,112 +36969,112 @@ static gchar* string_substring (const gchar* self, glong offset, glong len) { glong _tmp20_ = 0L; glong _tmp21_ = 0L; gchar* _tmp22_ = NULL; -#line 1306 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1306 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, NULL); -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = offset; -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp1_ >= ((glong) 0)) { #line 36974 "Photo.c" glong _tmp2_ = 0L; -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = len; -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = _tmp2_ >= ((glong) 0); #line 36980 "Photo.c" } else { -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = FALSE; #line 36984 "Photo.c" } -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp0_) { #line 36988 "Photo.c" glong _tmp3_ = 0L; glong _tmp4_ = 0L; glong _tmp5_ = 0L; -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = offset; -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = len; -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = string_strnlen ((gchar*) self, _tmp3_ + _tmp4_); -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" string_length = _tmp5_; #line 37000 "Photo.c" } else { gint _tmp6_ = 0; gint _tmp7_ = 0; -#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp6_ = strlen (self); -#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp7_ = _tmp6_; -#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" string_length = (glong) _tmp7_; #line 37010 "Photo.c" } -#line 1315 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1315 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp8_ = offset; -#line 1315 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1315 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp8_ < ((glong) 0)) { #line 37016 "Photo.c" glong _tmp9_ = 0L; glong _tmp10_ = 0L; glong _tmp11_ = 0L; -#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp9_ = string_length; -#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp10_ = offset; -#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" offset = _tmp9_ + _tmp10_; -#line 1317 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1317 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp11_ = offset; -#line 1317 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1317 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (_tmp11_ >= ((glong) 0), NULL); #line 37030 "Photo.c" } else { glong _tmp12_ = 0L; glong _tmp13_ = 0L; -#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp12_ = offset; -#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp13_ = string_length; -#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (_tmp12_ <= _tmp13_, NULL); #line 37040 "Photo.c" } -#line 1321 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1321 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp14_ = len; -#line 1321 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1321 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp14_ < ((glong) 0)) { #line 37046 "Photo.c" glong _tmp15_ = 0L; glong _tmp16_ = 0L; -#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp15_ = string_length; -#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp16_ = offset; -#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" len = _tmp15_ - _tmp16_; #line 37055 "Photo.c" } -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp17_ = offset; -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp18_ = len; -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp19_ = string_length; -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail ((_tmp17_ + _tmp18_) <= _tmp19_, NULL); -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp20_ = offset; -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp21_ = len; -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp22_ = g_strndup (((gchar*) self) + _tmp20_, (gsize) _tmp21_); -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp22_; -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 37075 "Photo.c" } @@ -38400,11 +38400,11 @@ static void library_photo_source_collection_instance_init (LibraryPhotoSourceCol #line 4461 "/home/jens/Source/shotwell/src/Photo.vala" self->priv->_transaction_controller = NULL; #line 4462 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = gee_hash_map_new (G_TYPE_FILE, (GBoxedCopyFunc) g_object_ref, g_object_unref, TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL); + _tmp0_ = gee_hash_map_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL); #line 4462 "/home/jens/Source/shotwell/src/Photo.vala" self->priv->by_editable_file = _tmp0_; #line 4464 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = gee_hash_map_new (G_TYPE_FILE, (GBoxedCopyFunc) g_object_ref, g_object_unref, TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL); + _tmp1_ = gee_hash_map_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL); #line 4464 "/home/jens/Source/shotwell/src/Photo.vala" self->priv->by_raw_development_file = _tmp1_; #line 4466 "/home/jens/Source/shotwell/src/Photo.vala" @@ -38999,7 +38999,7 @@ void library_photo_import_failed (LibraryPhoto* photo) { #line 5046 "/home/jens/Source/shotwell/src/Photo.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 38997 "Photo.c" - goto __catch403_database_error; + goto __catch405_database_error; } #line 5046 "/home/jens/Source/shotwell/src/Photo.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -39010,8 +39010,8 @@ void library_photo_import_failed (LibraryPhoto* photo) { #line 39006 "Photo.c" } } - goto __finally403; - __catch403_database_error: + goto __finally405; + __catch405_database_error: { GError* err = NULL; GError* _tmp4_ = NULL; @@ -39027,7 +39027,7 @@ void library_photo_import_failed (LibraryPhoto* photo) { _g_error_free0 (err); #line 39024 "Photo.c" } - __finally403: + __finally405: #line 5045 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 5045 "/home/jens/Source/shotwell/src/Photo.vala" @@ -39144,11 +39144,11 @@ static void library_photo_generate_thumbnails (LibraryPhoto* self) { #line 5078 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 39142 "Photo.c" - goto __catch404_g_error; + goto __catch406_g_error; } } - goto __finally404; - __catch404_g_error: + goto __finally406; + __catch406_g_error: { GError* err = NULL; gchar* _tmp0_ = NULL; @@ -39175,7 +39175,7 @@ static void library_photo_generate_thumbnails (LibraryPhoto* self) { _g_error_free0 (err); #line 39172 "Photo.c" } - __finally404: + __finally406: #line 5077 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 5077 "/home/jens/Source/shotwell/src/Photo.vala" @@ -39326,11 +39326,11 @@ static void library_photo_real_rotate (Photo* base, Rotation rotation) { #line 5122 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 39324 "Photo.c" - goto __catch405_g_error; + goto __catch407_g_error; } } - goto __finally405; - __catch405_g_error: + goto __finally407; + __catch407_g_error: { GError* err = NULL; gchar* _tmp2_ = NULL; @@ -39357,7 +39357,7 @@ static void library_photo_real_rotate (Photo* base, Rotation rotation) { _g_error_free0 (err); #line 39354 "Photo.c" } - __finally405: + __finally407: #line 5121 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 5121 "/home/jens/Source/shotwell/src/Photo.vala" @@ -40159,7 +40159,7 @@ static void library_photo_real_destroy (DataSource* base) { #line 5273 "/home/jens/Source/shotwell/src/Photo.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 40157 "Photo.c" - goto __catch406_database_error; + goto __catch408_database_error; } #line 5273 "/home/jens/Source/shotwell/src/Photo.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -40170,8 +40170,8 @@ static void library_photo_real_destroy (DataSource* base) { #line 40166 "Photo.c" } } - goto __finally406; - __catch406_database_error: + goto __finally408; + __catch408_database_error: { GError* err = NULL; GError* _tmp4_ = NULL; @@ -40187,7 +40187,7 @@ static void library_photo_real_destroy (DataSource* base) { _g_error_free0 (err); #line 40184 "Photo.c" } - __finally406: + __finally408: #line 5272 "/home/jens/Source/shotwell/src/Photo.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 5272 "/home/jens/Source/shotwell/src/Photo.vala" @@ -42137,19 +42137,19 @@ static void library_photo_source_holding_tank_instance_init (LibraryPhotoSourceH #line 5383 "/home/jens/Source/shotwell/src/Photo.vala" self->priv = LIBRARY_PHOTO_SOURCE_HOLDING_TANK_GET_PRIVATE (self); #line 5384 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = gee_hash_map_new (G_TYPE_FILE, (GBoxedCopyFunc) g_object_ref, g_object_unref, TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL); + _tmp0_ = gee_hash_map_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL); #line 5384 "/home/jens/Source/shotwell/src/Photo.vala" self->priv->editable_file_map = _tmp0_; #line 5386 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = gee_hash_map_new (G_TYPE_FILE, (GBoxedCopyFunc) g_object_ref, g_object_unref, TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL); + _tmp1_ = gee_hash_map_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL); #line 5386 "/home/jens/Source/shotwell/src/Photo.vala" self->priv->development_file_map = _tmp1_; #line 5388 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = gee_hash_multi_map_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, g_object_unref, G_TYPE_FILE, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL); + _tmp2_ = gee_hash_multi_map_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, g_object_unref, g_file_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL); #line 5388 "/home/jens/Source/shotwell/src/Photo.vala" self->priv->reverse_editable_file_map = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_MULTI_MAP, GeeMultiMap); #line 5390 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = gee_hash_multi_map_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, g_object_unref, G_TYPE_FILE, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL); + _tmp3_ = gee_hash_multi_map_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, g_object_unref, g_file_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL); #line 5390 "/home/jens/Source/shotwell/src/Photo.vala" self->priv->reverse_development_file_map = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_MULTI_MAP, GeeMultiMap); #line 42151 "Photo.c" diff --git a/src/Photo.vala b/src/Photo.vala index 11dbae6..222896f 100644 --- a/src/Photo.vala +++ b/src/Photo.vala @@ -2212,7 +2212,7 @@ public abstract class Photo : PhotoSource, Dateable { } // Note: *Not* firing altered or metadata_altered signal because link_state is not a - // property that's available to users of Photo. Persisting it as a mechanism for deaing + // property that's available to users of Photo. Persisting it as a mechanism for dealing // with unlink/relink properly. } diff --git a/src/PhotoMonitor.c b/src/PhotoMonitor.c index a6f5f2e..7d24c99 100644 --- a/src/PhotoMonitor.c +++ b/src/PhotoMonitor.c @@ -1,4 +1,4 @@ -/* PhotoMonitor.c generated by valac 0.32.1, the Vala compiler +/* PhotoMonitor.c generated by valac 0.34.4, the Vala compiler * generated from PhotoMonitor.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -1677,7 +1677,7 @@ static void photo_updates_instance_init (PhotoUpdates * self) { #line 19 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" self->revert_to_master = FALSE; #line 20 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = gee_array_list_new (G_TYPE_FILE, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL); + _tmp0_ = gee_array_list_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL); #line 20 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" self->developer_files = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection); #line 1684 "PhotoMonitor.c" @@ -6226,7 +6226,7 @@ static void photo_monitor_real_process_updates (MediaMonitor* base, GeeCollectio #line 6225 "PhotoMonitor.c" GeeHashMap* _tmp17_ = NULL; #line 936 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp17_ = gee_hash_map_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, g_object_unref, G_TYPE_FILE, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); + _tmp17_ = gee_hash_map_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, g_object_unref, g_file_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); #line 936 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" _g_object_unref0 (set_editable_file); #line 936 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" @@ -6616,7 +6616,7 @@ static void photo_monitor_real_process_updates (MediaMonitor* base, GeeCollectio #line 997 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 6617 "PhotoMonitor.c" - goto __catch580_database_error; + goto __catch582_database_error; } #line 997 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" _g_object_unref0 (reimport_raw_developments); @@ -6641,8 +6641,8 @@ static void photo_monitor_real_process_updates (MediaMonitor* base, GeeCollectio #line 6640 "PhotoMonitor.c" } } - goto __finally580; - __catch580_database_error: + goto __finally582; + __catch582_database_error: { GError* err = NULL; GError* _tmp97_ = NULL; @@ -6658,7 +6658,7 @@ static void photo_monitor_real_process_updates (MediaMonitor* base, GeeCollectio _g_error_free0 (err); #line 6658 "PhotoMonitor.c" } - __finally580: + __finally582: #line 996 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 996 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" @@ -6718,7 +6718,7 @@ static void photo_monitor_real_process_updates (MediaMonitor* base, GeeCollectio #line 1007 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 6719 "PhotoMonitor.c" - goto __catch581_database_error; + goto __catch583_database_error; } #line 1007 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" _g_object_unref0 (reimport_raw_developments); @@ -6743,8 +6743,8 @@ static void photo_monitor_real_process_updates (MediaMonitor* base, GeeCollectio #line 6742 "PhotoMonitor.c" } } - goto __finally581; - __catch581_database_error: + goto __finally583; + __catch583_database_error: { GError* err = NULL; GError* _tmp105_ = NULL; @@ -6760,7 +6760,7 @@ static void photo_monitor_real_process_updates (MediaMonitor* base, GeeCollectio _g_error_free0 (err); #line 6760 "PhotoMonitor.c" } - __finally581: + __finally583: #line 1006 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1006 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" @@ -7437,7 +7437,7 @@ static void photo_monitor_on_master_reimported (PhotoMonitor* self, BackgroundJo #line 1085 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 7437 "PhotoMonitor.c" - goto __catch582_database_error; + goto __catch584_database_error; } #line 1085 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" _background_job_unref0 (job); @@ -7450,8 +7450,8 @@ static void photo_monitor_on_master_reimported (PhotoMonitor* self, BackgroundJo #line 7448 "PhotoMonitor.c" } } - goto __finally582; - __catch582_database_error: + goto __finally584; + __catch584_database_error: { GError* err = NULL; GError* _tmp26_ = NULL; @@ -7467,7 +7467,7 @@ static void photo_monitor_on_master_reimported (PhotoMonitor* self, BackgroundJo _g_error_free0 (err); #line 7466 "PhotoMonitor.c" } - __finally582: + __finally584: #line 1084 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1084 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" @@ -7650,7 +7650,7 @@ static void photo_monitor_on_editable_reimported (PhotoMonitor* self, Background #line 1116 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 7650 "PhotoMonitor.c" - goto __catch583_database_error; + goto __catch585_database_error; } #line 1116 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" _background_job_unref0 (job); @@ -7663,8 +7663,8 @@ static void photo_monitor_on_editable_reimported (PhotoMonitor* self, Background #line 7661 "PhotoMonitor.c" } } - goto __finally583; - __catch583_database_error: + goto __finally585; + __catch585_database_error: { GError* err = NULL; GError* _tmp20_ = NULL; @@ -7680,7 +7680,7 @@ static void photo_monitor_on_editable_reimported (PhotoMonitor* self, Background _g_error_free0 (err); #line 7679 "PhotoMonitor.c" } - __finally583: + __finally585: #line 1115 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1115 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" @@ -7844,7 +7844,7 @@ static void photo_monitor_on_raw_development_reimported (PhotoMonitor* self, Bac #line 1143 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 7844 "PhotoMonitor.c" - goto __catch584_database_error; + goto __catch586_database_error; } #line 1143 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" _background_job_unref0 (job); @@ -7857,8 +7857,8 @@ static void photo_monitor_on_raw_development_reimported (PhotoMonitor* self, Bac #line 7855 "PhotoMonitor.c" } } - goto __finally584; - __catch584_database_error: + goto __finally586; + __catch586_database_error: { GError* err = NULL; GError* _tmp20_ = NULL; @@ -7874,7 +7874,7 @@ static void photo_monitor_on_raw_development_reimported (PhotoMonitor* self, Bac _g_error_free0 (err); #line 7873 "PhotoMonitor.c" } - __finally584: + __finally586: #line 1142 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1142 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" @@ -8030,14 +8030,14 @@ static void photo_monitor_reimport_master_job_real_execute (BackgroundJob* base) #line 176 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 8030 "PhotoMonitor.c" - goto __catch585_g_error; + goto __catch587_g_error; } #line 176 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" self->mark_online = _tmp0_; #line 8035 "PhotoMonitor.c" } - goto __finally585; - __catch585_g_error: + goto __finally587; + __catch587_g_error: { GError* err = NULL; GError* _tmp4_ = NULL; @@ -8058,7 +8058,7 @@ static void photo_monitor_reimport_master_job_real_execute (BackgroundJob* base) _g_error_free0 (err); #line 8057 "PhotoMonitor.c" } - __finally585: + __finally587: #line 175 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 175 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" @@ -8208,14 +8208,14 @@ static void photo_monitor_reimport_editable_job_real_execute (BackgroundJob* bas #line 198 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 8208 "PhotoMonitor.c" - goto __catch586_g_error; + goto __catch588_g_error; } #line 198 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" self->success = _tmp0_; #line 8213 "PhotoMonitor.c" } - goto __finally586; - __catch586_g_error: + goto __finally588; + __catch588_g_error: { GError* err = NULL; GError* _tmp4_ = NULL; @@ -8236,7 +8236,7 @@ static void photo_monitor_reimport_editable_job_real_execute (BackgroundJob* bas _g_error_free0 (err); #line 8235 "PhotoMonitor.c" } - __finally586: + __finally588: #line 197 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 197 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" @@ -8386,14 +8386,14 @@ static void photo_monitor_reimport_raw_development_job_real_execute (BackgroundJ #line 220 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 8386 "PhotoMonitor.c" - goto __catch587_g_error; + goto __catch589_g_error; } #line 220 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" self->success = _tmp0_; #line 8391 "PhotoMonitor.c" } - goto __finally587; - __catch587_g_error: + goto __finally589; + __catch589_g_error: { GError* err = NULL; GError* _tmp4_ = NULL; @@ -8414,7 +8414,7 @@ static void photo_monitor_reimport_raw_development_job_real_execute (BackgroundJ _g_error_free0 (err); #line 8413 "PhotoMonitor.c" } - __finally587: + __finally589: #line 219 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 219 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" diff --git a/src/PhotoPage.c b/src/PhotoPage.c index 62e90b8..5eddab0 100644 --- a/src/PhotoPage.c +++ b/src/PhotoPage.c @@ -1,4 +1,4 @@ -/* PhotoPage.c generated by valac 0.32.1, the Vala compiler +/* PhotoPage.c generated by valac 0.34.4, the Vala compiler * generated from PhotoPage.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -1165,7 +1165,8 @@ struct _PageClass { void (*ready) (Page* self); void (*switching_to_fullscreen) (Page* self, FullscreenWindow* fsw); void (*returning_from_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*add_actions) (Page* self); + void (*add_actions) (Page* self, GActionMap* map); + void (*remove_actions) (Page* self, GActionMap* map); void (*init_collect_ui_filenames) (Page* self, GeeList* ui_filenames); InjectionGroup** (*init_collect_injection_groups) (Page* self, int* result_length1); void (*init_actions) (Page* self, gint selected_count, gint count); @@ -2213,10 +2214,6 @@ void page_on_action_toggle (Page* self, GAction* action, GVariant* value); static void _page_on_action_toggle_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self); static void library_photo_page_on_display_ratings (LibraryPhotoPage* self, GSimpleAction* action, GVariant* value); static void _library_photo_page_on_display_ratings_gsimple_action_change_state_callback (GSimpleAction* action, GVariant* value, gpointer self); -void page_on_action_radio (Page* self, GAction* action, GVariant* value); -static void _page_on_action_radio_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self); -static void library_photo_page_on_raw_developer_changed (LibraryPhotoPage* self, GSimpleAction* action, GVariant* value); -static void _library_photo_page_on_raw_developer_changed_gsimple_action_change_state_callback (GSimpleAction* action, GVariant* value, gpointer self); LibraryPhotoPage* library_photo_page_new (void); LibraryPhotoPage* library_photo_page_construct (GType object_type); static void library_photo_page_on_photos_altered (LibraryPhotoPage* self); @@ -2230,13 +2227,17 @@ gboolean library_photo_page_not_trashed_view_filter (LibraryPhotoPage* self, Dat gboolean media_source_is_trashed (MediaSource* self); static void library_photo_page_real_init_collect_ui_filenames (Page* base, GeeList* ui_filenames); void page_init_collect_ui_filenames (Page* self, GeeList* ui_filenames); -static void library_photo_page_real_add_actions (Page* base); -void page_add_actions (Page* self); +static void library_photo_page_real_add_actions (Page* base, GActionMap* map); +void page_add_actions (Page* self, GActionMap* map); GAction* page_get_action (Page* self, const gchar* name); gboolean configuration_facade_get_display_photo_ratings (ConfigurationFacade* self); static GVariant* _variant_new16 (gboolean value); RawDeveloper configuration_facade_get_default_raw_developer (ConfigurationFacade* self); static GVariant* _variant_new17 (const gchar* value); +static void library_photo_page_on_raw_developer_changed (LibraryPhotoPage* self, GSimpleAction* action, GVariant* value); +static void _library_photo_page_on_raw_developer_changed_g_simple_action_change_state (GSimpleAction* _sender, GVariant* value, gpointer self); +static void library_photo_page_real_remove_actions (Page* base, GActionMap* map); +void page_remove_actions (Page* self, GActionMap* map); static InjectionGroup** library_photo_page_real_init_collect_injection_groups (Page* base, int* result_length1); InjectionGroup** page_init_collect_injection_groups (Page* self, int* result_length1); InjectionGroup* injection_group_new (const gchar* path); @@ -2272,6 +2273,7 @@ static void _library_photo_page_on_page_destroyed_gtk_widget_destroy (GtkWidget* CollectionPage* library_photo_page_get_controller_page (LibraryPhotoPage* self); static void library_photo_page_real_switched_to (Page* base); static void library_photo_page_update_zoom_menu_item_sensitivity (LibraryPhotoPage* self); +static void library_photo_page_real_switching_from (Page* base); static GdkPixbuf* library_photo_page_real_get_bottom_left_trinket (EditingHostPage* base, gint scale); GType rating_get_type (void) G_GNUC_CONST; GdkPixbuf* resources_get_rating_trinket (Rating rating, gint scale); @@ -2397,7 +2399,7 @@ static void library_photo_page_finalize (GObject* obj); static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func); static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func); -static const GActionEntry LIBRARY_PHOTO_PAGE_entries[46] = {{"Export", _library_photo_page_on_export_gsimple_action_activate_callback}, {"Print", _library_photo_page_on_print_gsimple_action_activate_callback}, {"Publish", _library_photo_page_on_publish_gsimple_action_activate_callback}, {"RemoveFromLibrary", _library_photo_page_on_remove_from_library_gsimple_action_activate_callback}, {"MoveToTrash", _library_photo_page_on_move_to_trash_gsimple_action_activate_callback}, {"PrevPhoto", _single_photo_page_on_previous_photo_gsimple_action_activate_callback}, {"NextPhoto", _single_photo_page_on_next_photo_gsimple_action_activate_callback}, {"RotateClockwise", _editing_host_page_on_rotate_clockwise_gsimple_action_activate_callback}, {"RotateCounterclockwise", _editing_host_page_on_rotate_counterclockwise_gsimple_action_activate_callback}, {"FlipHorizontally", _editing_host_page_on_flip_horizontally_gsimple_action_activate_callback}, {"FlipVertically", _editing_host_page_on_flip_vertically_gsimple_action_activate_callback}, {"Enhance", _editing_host_page_on_enhance_gsimple_action_activate_callback}, {"CopyColorAdjustments", _editing_host_page_on_copy_adjustments_gsimple_action_activate_callback}, {"PasteColorAdjustments", _editing_host_page_on_paste_adjustments_gsimple_action_activate_callback}, {"Crop", _editing_host_page_toggle_crop_gsimple_action_activate_callback}, {"Straighten", _editing_host_page_toggle_straighten_gsimple_action_activate_callback}, {"RedEye", _editing_host_page_toggle_redeye_gsimple_action_activate_callback}, {"Adjust", _editing_host_page_toggle_adjust_gsimple_action_activate_callback}, {"Revert", _editing_host_page_on_revert_gsimple_action_activate_callback}, {"EditTitle", _editing_host_page_on_edit_title_gsimple_action_activate_callback}, {"EditComment", _editing_host_page_on_edit_comment_gsimple_action_activate_callback}, {"AdjustDateTime", _editing_host_page_on_adjust_date_time_gsimple_action_activate_callback}, {"ExternalEdit", _library_photo_page_on_external_edit_gsimple_action_activate_callback}, {"ExternalEditRAW", _library_photo_page_on_external_edit_raw_gsimple_action_activate_callback}, {"SendTo", _library_photo_page_on_send_to_gsimple_action_activate_callback}, {"SetBackground", _editing_host_page_on_set_background_gsimple_action_activate_callback}, {"Flag", _library_photo_page_on_flag_unflag_gsimple_action_activate_callback}, {"IncreaseRating", _library_photo_page_on_increase_rating_gsimple_action_activate_callback}, {"DecreaseRating", _library_photo_page_on_decrease_rating_gsimple_action_activate_callback}, {"RateRejected", _library_photo_page_on_rate_rejected_gsimple_action_activate_callback}, {"RateUnrated", _library_photo_page_on_rate_unrated_gsimple_action_activate_callback}, {"RateOne", _library_photo_page_on_rate_one_gsimple_action_activate_callback}, {"RateTwo", _library_photo_page_on_rate_two_gsimple_action_activate_callback}, {"RateThree", _library_photo_page_on_rate_three_gsimple_action_activate_callback}, {"RateFour", _library_photo_page_on_rate_four_gsimple_action_activate_callback}, {"RateFive", _library_photo_page_on_rate_five_gsimple_action_activate_callback}, {"IncreaseSize", _editing_host_page_on_increase_size_gsimple_action_activate_callback}, {"DecreaseSize", _editing_host_page_on_decrease_size_gsimple_action_activate_callback}, {"ZoomFit", _editing_host_page_snap_zoom_to_min_gsimple_action_activate_callback}, {"Zoom100", _editing_host_page_snap_zoom_to_isomorphic_gsimple_action_activate_callback}, {"Zoom200", _editing_host_page_snap_zoom_to_max_gsimple_action_activate_callback}, {"AddTags", _library_photo_page_on_add_tags_gsimple_action_activate_callback}, {"ModifyTags", _library_photo_page_on_modify_tags_gsimple_action_activate_callback}, {"Slideshow", _library_photo_page_on_slideshow_gsimple_action_activate_callback}, {"ViewRatings", _page_on_action_toggle_gsimple_action_activate_callback, NULL, "false", _library_photo_page_on_display_ratings_gsimple_action_change_state_callback}, {"RawDeveloper", _page_on_action_radio_gsimple_action_activate_callback, "s", "'Shotwell'", _library_photo_page_on_raw_developer_changed_gsimple_action_change_state_callback}}; +static const GActionEntry LIBRARY_PHOTO_PAGE_entries[45] = {{"Export", _library_photo_page_on_export_gsimple_action_activate_callback}, {"Print", _library_photo_page_on_print_gsimple_action_activate_callback}, {"Publish", _library_photo_page_on_publish_gsimple_action_activate_callback}, {"RemoveFromLibrary", _library_photo_page_on_remove_from_library_gsimple_action_activate_callback}, {"MoveToTrash", _library_photo_page_on_move_to_trash_gsimple_action_activate_callback}, {"PrevPhoto", _single_photo_page_on_previous_photo_gsimple_action_activate_callback}, {"NextPhoto", _single_photo_page_on_next_photo_gsimple_action_activate_callback}, {"RotateClockwise", _editing_host_page_on_rotate_clockwise_gsimple_action_activate_callback}, {"RotateCounterclockwise", _editing_host_page_on_rotate_counterclockwise_gsimple_action_activate_callback}, {"FlipHorizontally", _editing_host_page_on_flip_horizontally_gsimple_action_activate_callback}, {"FlipVertically", _editing_host_page_on_flip_vertically_gsimple_action_activate_callback}, {"Enhance", _editing_host_page_on_enhance_gsimple_action_activate_callback}, {"CopyColorAdjustments", _editing_host_page_on_copy_adjustments_gsimple_action_activate_callback}, {"PasteColorAdjustments", _editing_host_page_on_paste_adjustments_gsimple_action_activate_callback}, {"Crop", _editing_host_page_toggle_crop_gsimple_action_activate_callback}, {"Straighten", _editing_host_page_toggle_straighten_gsimple_action_activate_callback}, {"RedEye", _editing_host_page_toggle_redeye_gsimple_action_activate_callback}, {"Adjust", _editing_host_page_toggle_adjust_gsimple_action_activate_callback}, {"Revert", _editing_host_page_on_revert_gsimple_action_activate_callback}, {"EditTitle", _editing_host_page_on_edit_title_gsimple_action_activate_callback}, {"EditComment", _editing_host_page_on_edit_comment_gsimple_action_activate_callback}, {"AdjustDateTime", _editing_host_page_on_adjust_date_time_gsimple_action_activate_callback}, {"ExternalEdit", _library_photo_page_on_external_edit_gsimple_action_activate_callback}, {"ExternalEditRAW", _library_photo_page_on_external_edit_raw_gsimple_action_activate_callback}, {"SendTo", _library_photo_page_on_send_to_gsimple_action_activate_callback}, {"SetBackground", _editing_host_page_on_set_background_gsimple_action_activate_callback}, {"Flag", _library_photo_page_on_flag_unflag_gsimple_action_activate_callback}, {"IncreaseRating", _library_photo_page_on_increase_rating_gsimple_action_activate_callback}, {"DecreaseRating", _library_photo_page_on_decrease_rating_gsimple_action_activate_callback}, {"RateRejected", _library_photo_page_on_rate_rejected_gsimple_action_activate_callback}, {"RateUnrated", _library_photo_page_on_rate_unrated_gsimple_action_activate_callback}, {"RateOne", _library_photo_page_on_rate_one_gsimple_action_activate_callback}, {"RateTwo", _library_photo_page_on_rate_two_gsimple_action_activate_callback}, {"RateThree", _library_photo_page_on_rate_three_gsimple_action_activate_callback}, {"RateFour", _library_photo_page_on_rate_four_gsimple_action_activate_callback}, {"RateFive", _library_photo_page_on_rate_five_gsimple_action_activate_callback}, {"IncreaseSize", _editing_host_page_on_increase_size_gsimple_action_activate_callback}, {"DecreaseSize", _editing_host_page_on_decrease_size_gsimple_action_activate_callback}, {"ZoomFit", _editing_host_page_snap_zoom_to_min_gsimple_action_activate_callback}, {"Zoom100", _editing_host_page_snap_zoom_to_isomorphic_gsimple_action_activate_callback}, {"Zoom200", _editing_host_page_snap_zoom_to_max_gsimple_action_activate_callback}, {"AddTags", _library_photo_page_on_add_tags_gsimple_action_activate_callback}, {"ModifyTags", _library_photo_page_on_modify_tags_gsimple_action_activate_callback}, {"Slideshow", _library_photo_page_on_slideshow_gsimple_action_activate_callback}, {"ViewRatings", _page_on_action_toggle_gsimple_action_activate_callback, NULL, "false", _library_photo_page_on_display_ratings_gsimple_action_change_state_callback}}; static GType zoom_buffer_object_state_get_type (void) { static volatile gsize zoom_buffer_object_state_type_id__volatile = 0; @@ -2414,7 +2416,7 @@ static GType zoom_buffer_object_state_get_type (void) { static gpointer _g_object_ref0 (gpointer self) { #line 86 "/home/jens/Source/shotwell/src/PhotoPage.vala" return self ? g_object_ref (self) : NULL; -#line 2418 "PhotoPage.c" +#line 2420 "PhotoPage.c" } @@ -2467,28 +2469,28 @@ ZoomBuffer* zoom_buffer_construct (GType object_type, SinglePhotoPage* parent_pa self->priv->workers = _tmp6_; #line 84 "/home/jens/Source/shotwell/src/PhotoPage.vala" return self; -#line 2471 "PhotoPage.c" +#line 2473 "PhotoPage.c" } ZoomBuffer* zoom_buffer_new (SinglePhotoPage* parent_page, Photo* backing_photo, GdkPixbuf* preview_image) { #line 84 "/home/jens/Source/shotwell/src/PhotoPage.vala" return zoom_buffer_construct (TYPE_ZOOM_BUFFER, parent_page, backing_photo, preview_image); -#line 2478 "PhotoPage.c" +#line 2480 "PhotoPage.c" } static gpointer _background_job_ref0 (gpointer self) { #line 93 "/home/jens/Source/shotwell/src/PhotoPage.vala" return self ? background_job_ref (self) : NULL; -#line 2485 "PhotoPage.c" +#line 2487 "PhotoPage.c" } static void _zoom_buffer_on_iso_transformation_complete_completion_callback (BackgroundJob* job, gpointer self) { #line 109 "/home/jens/Source/shotwell/src/PhotoPage.vala" zoom_buffer_on_iso_transformation_complete ((ZoomBuffer*) self, job); -#line 2492 "PhotoPage.c" +#line 2494 "PhotoPage.c" } @@ -2542,7 +2544,7 @@ static void zoom_buffer_on_iso_source_fetch_complete (ZoomBuffer* self, Backgrou _background_job_unref0 (fetch_job); #line 96 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 2545 "PhotoPage.c" +#line 2547 "PhotoPage.c" } #line 99 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = fetch_job; @@ -2568,7 +2570,7 @@ static void zoom_buffer_on_iso_source_fetch_complete (ZoomBuffer* self, Backgrou _tmp12_ = _tmp11_; #line 100 "/home/jens/Source/shotwell/src/PhotoPage.vala" if ((_tmp9_ * _tmp12_) > ZOOM_BUFFER_USE_REDUCED_THRESHOLD) { -#line 2571 "PhotoPage.c" +#line 2573 "PhotoPage.c" GdkPixbuf* _tmp13_ = NULL; GdkPixbuf* _tmp14_ = NULL; gint _tmp15_ = 0; @@ -2597,7 +2599,7 @@ static void zoom_buffer_on_iso_source_fetch_complete (ZoomBuffer* self, Backgrou _g_object_unref0 (self->priv->reduced_source_image); #line 101 "/home/jens/Source/shotwell/src/PhotoPage.vala" self->priv->reduced_source_image = _tmp20_; -#line 2600 "PhotoPage.c" +#line 2602 "PhotoPage.c" } #line 104 "/home/jens/Source/shotwell/src/PhotoPage.vala" self->priv->object_state = ZOOM_BUFFER_OBJECT_STATE_SOURCE_NOT_TRANSFORMED; @@ -2605,13 +2607,13 @@ static void zoom_buffer_on_iso_source_fetch_complete (ZoomBuffer* self, Backgrou _tmp21_ = self->priv->is_interactive_redraw_in_progress; #line 106 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (!_tmp21_) { -#line 2608 "PhotoPage.c" +#line 2610 "PhotoPage.c" SinglePhotoPage* _tmp22_ = NULL; #line 107 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp22_ = self->priv->parent_page; #line 107 "/home/jens/Source/shotwell/src/PhotoPage.vala" single_photo_page_repaint (_tmp22_, NULL); -#line 2614 "PhotoPage.c" +#line 2616 "PhotoPage.c" } #line 109 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp23_ = self->priv->iso_source_image; @@ -2645,7 +2647,7 @@ static void zoom_buffer_on_iso_source_fetch_complete (ZoomBuffer* self, Backgrou _background_job_unref0 (transformation_job); #line 92 "/home/jens/Source/shotwell/src/PhotoPage.vala" _background_job_unref0 (fetch_job); -#line 2648 "PhotoPage.c" +#line 2650 "PhotoPage.c" } @@ -2686,7 +2688,7 @@ static void zoom_buffer_on_iso_transformation_complete (ZoomBuffer* self, Backgr _background_job_unref0 (transform_job); #line 120 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 2689 "PhotoPage.c" +#line 2691 "PhotoPage.c" } #line 123 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = transform_job; @@ -2712,7 +2714,7 @@ static void zoom_buffer_on_iso_transformation_complete (ZoomBuffer* self, Backgr _tmp12_ = _tmp11_; #line 124 "/home/jens/Source/shotwell/src/PhotoPage.vala" if ((_tmp9_ * _tmp12_) > ZOOM_BUFFER_USE_REDUCED_THRESHOLD) { -#line 2715 "PhotoPage.c" +#line 2717 "PhotoPage.c" GdkPixbuf* _tmp13_ = NULL; GdkPixbuf* _tmp14_ = NULL; gint _tmp15_ = 0; @@ -2741,13 +2743,13 @@ static void zoom_buffer_on_iso_transformation_complete (ZoomBuffer* self, Backgr _g_object_unref0 (self->priv->reduced_transformed_image); #line 125 "/home/jens/Source/shotwell/src/PhotoPage.vala" self->priv->reduced_transformed_image = _tmp20_; -#line 2744 "PhotoPage.c" +#line 2746 "PhotoPage.c" } #line 129 "/home/jens/Source/shotwell/src/PhotoPage.vala" self->priv->object_state = ZOOM_BUFFER_OBJECT_STATE_TRANSFORMED_READY; #line 115 "/home/jens/Source/shotwell/src/PhotoPage.vala" _background_job_unref0 (transform_job); -#line 2750 "PhotoPage.c" +#line 2752 "PhotoPage.c" } @@ -2783,7 +2785,7 @@ static void zoom_buffer_on_demand_transform_complete (ZoomBuffer* self, Backgrou _background_job_unref0 (transform_job); #line 137 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 2786 "PhotoPage.c" +#line 2788 "PhotoPage.c" } #line 140 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = transform_job; @@ -2805,7 +2807,7 @@ static void zoom_buffer_on_demand_transform_complete (ZoomBuffer* self, Backgrou single_photo_page_repaint (_tmp7_, NULL); #line 132 "/home/jens/Source/shotwell/src/PhotoPage.vala" _background_job_unref0 (transform_job); -#line 2808 "PhotoPage.c" +#line 2810 "PhotoPage.c" } @@ -2878,21 +2880,21 @@ static GdkPixbuf* zoom_buffer_get_view_projection_pixbuf (ZoomBuffer* self, Zoom _tmp6_ = reduced_pixbuf; #line 156 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp6_ != NULL) { -#line 2881 "PhotoPage.c" +#line 2883 "PhotoPage.c" gdouble _tmp7_ = 0.0; #line 156 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp7_ = zoom_state_get_zoom_factor (zoom_state); #line 156 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp5_ = _tmp7_ < 0.5; -#line 2887 "PhotoPage.c" +#line 2889 "PhotoPage.c" } else { #line 156 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp5_ = FALSE; -#line 2891 "PhotoPage.c" +#line 2893 "PhotoPage.c" } #line 156 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp5_) { -#line 2895 "PhotoPage.c" +#line 2897 "PhotoPage.c" GdkPixbuf* _tmp8_ = NULL; GdkPixbuf* _tmp9_ = NULL; gint _tmp10_ = 0; @@ -2923,7 +2925,7 @@ static GdkPixbuf* zoom_buffer_get_view_projection_pixbuf (ZoomBuffer* self, Zoom _tmp13_ = view_rect_proj.height; #line 161 "/home/jens/Source/shotwell/src/PhotoPage.vala" view_rect_proj.height = _tmp13_ / 2; -#line 2926 "PhotoPage.c" +#line 2928 "PhotoPage.c" } #line 167 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp14_ = view_rect_proj; @@ -3001,14 +3003,14 @@ static GdkPixbuf* zoom_buffer_get_view_projection_pixbuf (ZoomBuffer* self, Zoom _g_object_unref0 (sample_source_pixbuf); #line 181 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 3004 "PhotoPage.c" +#line 3006 "PhotoPage.c" } static void _zoom_buffer_on_demand_transform_complete_completion_callback (BackgroundJob* job, gpointer self) { #line 252 "/home/jens/Source/shotwell/src/PhotoPage.vala" zoom_buffer_on_demand_transform_complete ((ZoomBuffer*) self, job); -#line 3011 "PhotoPage.c" +#line 3013 "PhotoPage.c" } @@ -3027,7 +3029,7 @@ static GdkPixbuf* zoom_buffer_get_zoomed_image_source_not_transformed (ZoomBuffe _tmp0_ = self->priv->demand_transform_cached_pixbuf; #line 185 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp0_ != NULL) { -#line 3030 "PhotoPage.c" +#line 3032 "PhotoPage.c" ZoomState _tmp1_ = {0}; gboolean _tmp2_ = FALSE; #line 186 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -3036,7 +3038,7 @@ static GdkPixbuf* zoom_buffer_get_zoomed_image_source_not_transformed (ZoomBuffe _tmp2_ = zoom_state_equals (zoom_state, &_tmp1_); #line 186 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp2_) { -#line 3039 "PhotoPage.c" +#line 3041 "PhotoPage.c" GdkPixbuf* _tmp3_ = NULL; GdkPixbuf* _tmp4_ = NULL; #line 190 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -3047,7 +3049,7 @@ static GdkPixbuf* zoom_buffer_get_zoomed_image_source_not_transformed (ZoomBuffe result = _tmp4_; #line 190 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 3050 "PhotoPage.c" +#line 3052 "PhotoPage.c" } else { gdouble _tmp5_ = 0.0; gdouble _tmp6_ = 0.0; @@ -3057,7 +3059,7 @@ static GdkPixbuf* zoom_buffer_get_zoomed_image_source_not_transformed (ZoomBuffe _tmp6_ = zoom_state_get_zoom_factor (&self->priv->demand_transform_zoom_state); #line 191 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp5_ == _tmp6_) { -#line 3060 "PhotoPage.c" +#line 3062 "PhotoPage.c" GdkRectangle curr_rect = {0}; GdkRectangle _tmp7_ = {0}; GdkRectangle pre_rect = {0}; @@ -3377,7 +3379,7 @@ static GdkPixbuf* zoom_buffer_get_zoomed_image_source_not_transformed (ZoomBuffe result = composited_result; #line 231 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 3380 "PhotoPage.c" +#line 3382 "PhotoPage.c" } } } @@ -3385,7 +3387,7 @@ static GdkPixbuf* zoom_buffer_get_zoomed_image_source_not_transformed (ZoomBuffe _tmp97_ = self->priv->demand_transform_job; #line 242 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp97_ != NULL) { -#line 3388 "PhotoPage.c" +#line 3390 "PhotoPage.c" ZoomState _tmp98_ = {0}; gboolean _tmp99_ = FALSE; #line 243 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -3394,7 +3396,7 @@ static GdkPixbuf* zoom_buffer_get_zoomed_image_source_not_transformed (ZoomBuffe _tmp99_ = zoom_state_equals (zoom_state, &_tmp98_); #line 243 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp99_) { -#line 3397 "PhotoPage.c" +#line 3399 "PhotoPage.c" ZoomState _tmp100_ = {0}; GdkPixbuf* _tmp101_ = NULL; #line 244 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -3405,7 +3407,7 @@ static GdkPixbuf* zoom_buffer_get_zoomed_image_source_not_transformed (ZoomBuffe result = _tmp101_; #line 244 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 3408 "PhotoPage.c" +#line 3410 "PhotoPage.c" } else { ZoomBufferTransformationJob* _tmp102_ = NULL; GdkPixbuf* zoomed = NULL; @@ -3485,14 +3487,14 @@ static GdkPixbuf* zoom_buffer_get_zoomed_image_source_not_transformed (ZoomBuffe _g_object_unref0 (zoomed); #line 258 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 3488 "PhotoPage.c" +#line 3490 "PhotoPage.c" } } #line 263 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp119_ = self->priv->demand_transform_job; #line 263 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp119_ == NULL) { -#line 3495 "PhotoPage.c" +#line 3497 "PhotoPage.c" GdkPixbuf* zoomed = NULL; ZoomState _tmp120_ = {0}; GdkPixbuf* _tmp121_ = NULL; @@ -3562,7 +3564,7 @@ static GdkPixbuf* zoom_buffer_get_zoomed_image_source_not_transformed (ZoomBuffe _g_object_unref0 (zoomed); #line 275 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 3565 "PhotoPage.c" +#line 3567 "PhotoPage.c" } #line 283 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_critical ("PhotoPage.vala:283: %s", "ZoomBuffer: get_zoomed_image( ): in SOURCE-NOT-TRANSFORMED but can't t" \ @@ -3575,14 +3577,14 @@ static GdkPixbuf* zoom_buffer_get_zoomed_image_source_not_transformed (ZoomBuffe result = _tmp137_; #line 285 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 3577 "PhotoPage.c" +#line 3579 "PhotoPage.c" } static void _zoom_buffer_on_iso_source_fetch_complete_completion_callback (BackgroundJob* job, gpointer self) { #line 290 "/home/jens/Source/shotwell/src/PhotoPage.vala" zoom_buffer_on_iso_source_fetch_complete ((ZoomBuffer*) self, job); -#line 3584 "PhotoPage.c" +#line 3586 "PhotoPage.c" } @@ -3625,7 +3627,7 @@ GdkPixbuf* zoom_buffer_get_zoom_preview_image_internal (ZoomBuffer* self, ZoomSt _tmp0_ = self->priv->object_state; #line 289 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp0_ == ZOOM_BUFFER_OBJECT_STATE_SOURCE_NOT_LOADED) { -#line 3627 "PhotoPage.c" +#line 3629 "PhotoPage.c" BackgroundJob* iso_source_fetch_job = NULL; Photo* _tmp1_ = NULL; ZoomBufferIsoSourceFetchJob* _tmp2_ = NULL; @@ -3647,7 +3649,7 @@ GdkPixbuf* zoom_buffer_get_zoom_preview_image_internal (ZoomBuffer* self, ZoomSt self->priv->object_state = ZOOM_BUFFER_OBJECT_STATE_SOURCE_LOAD_IN_PROGRESS; #line 289 "/home/jens/Source/shotwell/src/PhotoPage.vala" _background_job_unref0 (iso_source_fetch_job); -#line 3649 "PhotoPage.c" +#line 3651 "PhotoPage.c" } #line 296 "/home/jens/Source/shotwell/src/PhotoPage.vala" zoom_state_get_viewing_rectangle_wrt_content (zoom_state, &_tmp5_); @@ -3715,7 +3717,7 @@ GdkPixbuf* zoom_buffer_get_zoom_preview_image_internal (ZoomBuffer* self, ZoomSt _g_object_unref0 (proj_subpixbuf); #line 309 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 3717 "PhotoPage.c" +#line 3719 "PhotoPage.c" } @@ -3733,7 +3735,7 @@ Photo* zoom_buffer_get_backing_photo (ZoomBuffer* self) { result = _tmp1_; #line 313 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 3735 "PhotoPage.c" +#line 3737 "PhotoPage.c" } @@ -3752,7 +3754,7 @@ void zoom_buffer_update_preview_image (ZoomBuffer* self, GdkPixbuf* preview_imag _g_object_unref0 (self->priv->preview_image); #line 317 "/home/jens/Source/shotwell/src/PhotoPage.vala" self->priv->preview_image = _tmp1_; -#line 3754 "PhotoPage.c" +#line 3756 "PhotoPage.c" } @@ -3768,7 +3770,7 @@ void zoom_buffer_flush_demand_cache (ZoomBuffer* self, ZoomState* initial_zoom_s _tmp0_ = initial_zoom_state; #line 324 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp0_ != NULL) { -#line 3770 "PhotoPage.c" +#line 3772 "PhotoPage.c" ZoomState* _tmp1_ = NULL; ZoomState _tmp2_ = {0}; GdkPixbuf* _tmp3_ = NULL; @@ -3783,7 +3785,7 @@ void zoom_buffer_flush_demand_cache (ZoomBuffer* self, ZoomState* initial_zoom_s _tmp4_ = _tmp3_; #line 325 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp4_); -#line 3785 "PhotoPage.c" +#line 3787 "PhotoPage.c" } } @@ -3802,7 +3804,7 @@ GdkPixbuf* zoom_buffer_get_zoomed_image (ZoomBuffer* self, ZoomState* zoom_state _tmp0_ = zoom_state_get_interpolation_factor (zoom_state); #line 333 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp0_ == 0.0) { -#line 3804 "PhotoPage.c" +#line 3806 "PhotoPage.c" ZoomState _tmp1_ = {0}; GdkPixbuf* _tmp2_ = NULL; #line 334 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -3813,7 +3815,7 @@ GdkPixbuf* zoom_buffer_get_zoomed_image (ZoomBuffer* self, ZoomState* zoom_state result = _tmp2_; #line 334 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 3815 "PhotoPage.c" +#line 3817 "PhotoPage.c" } #line 337 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = self->priv->object_state; @@ -3823,7 +3825,7 @@ GdkPixbuf* zoom_buffer_get_zoomed_image (ZoomBuffer* self, ZoomState* zoom_state case ZOOM_BUFFER_OBJECT_STATE_SOURCE_NOT_LOADED: #line 337 "/home/jens/Source/shotwell/src/PhotoPage.vala" case ZOOM_BUFFER_OBJECT_STATE_SOURCE_LOAD_IN_PROGRESS: -#line 3825 "PhotoPage.c" +#line 3827 "PhotoPage.c" { ZoomState _tmp4_ = {0}; GdkPixbuf* _tmp5_ = NULL; @@ -3835,11 +3837,11 @@ GdkPixbuf* zoom_buffer_get_zoomed_image (ZoomBuffer* self, ZoomState* zoom_state result = _tmp5_; #line 340 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 3837 "PhotoPage.c" +#line 3839 "PhotoPage.c" } #line 337 "/home/jens/Source/shotwell/src/PhotoPage.vala" case ZOOM_BUFFER_OBJECT_STATE_SOURCE_NOT_TRANSFORMED: -#line 3841 "PhotoPage.c" +#line 3843 "PhotoPage.c" { ZoomState _tmp6_ = {0}; GdkPixbuf* _tmp7_ = NULL; @@ -3851,11 +3853,11 @@ GdkPixbuf* zoom_buffer_get_zoomed_image (ZoomBuffer* self, ZoomState* zoom_state result = _tmp7_; #line 343 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 3853 "PhotoPage.c" +#line 3855 "PhotoPage.c" } #line 337 "/home/jens/Source/shotwell/src/PhotoPage.vala" case ZOOM_BUFFER_OBJECT_STATE_TRANSFORMED_READY: -#line 3857 "PhotoPage.c" +#line 3859 "PhotoPage.c" { ZoomState _tmp8_ = {0}; GdkPixbuf* _tmp9_ = NULL; @@ -3873,7 +3875,7 @@ GdkPixbuf* zoom_buffer_get_zoomed_image (ZoomBuffer* self, ZoomState* zoom_state result = _tmp11_; #line 348 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 3875 "PhotoPage.c" +#line 3877 "PhotoPage.c" } default: { @@ -3890,7 +3892,7 @@ GdkPixbuf* zoom_buffer_get_zoomed_image (ZoomBuffer* self, ZoomState* zoom_state result = _tmp13_; #line 353 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 3891 "PhotoPage.c" +#line 3893 "PhotoPage.c" } } } @@ -3914,7 +3916,7 @@ GdkPixbuf* zoom_buffer_get_zoom_preview_image (ZoomBuffer* self, ZoomState* zoom result = _tmp1_; #line 360 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 3915 "PhotoPage.c" +#line 3917 "PhotoPage.c" } @@ -3947,14 +3949,14 @@ static ZoomBufferIsoSourceFetchJob* zoom_buffer_iso_source_fetch_job_construct ( self->priv->to_fetch = _tmp3_; #line 20 "/home/jens/Source/shotwell/src/PhotoPage.vala" return self; -#line 3948 "PhotoPage.c" +#line 3950 "PhotoPage.c" } static ZoomBufferIsoSourceFetchJob* zoom_buffer_iso_source_fetch_job_new (ZoomBuffer* owner, Photo* to_fetch, CompletionCallback completion_callback, void* completion_callback_target) { #line 20 "/home/jens/Source/shotwell/src/PhotoPage.vala" return zoom_buffer_iso_source_fetch_job_construct (ZOOM_BUFFER_TYPE_ISO_SOURCE_FETCH_JOB, owner, to_fetch, completion_callback, completion_callback_target); -#line 3955 "PhotoPage.c" +#line 3957 "PhotoPage.c" } @@ -3963,7 +3965,7 @@ static void zoom_buffer_iso_source_fetch_job_real_execute (BackgroundJob* base) GError * _inner_error_ = NULL; #line 27 "/home/jens/Source/shotwell/src/PhotoPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, ZOOM_BUFFER_TYPE_ISO_SOURCE_FETCH_JOB, ZoomBufferIsoSourceFetchJob); -#line 3964 "PhotoPage.c" +#line 3966 "PhotoPage.c" { GdkPixbuf* _tmp0_ = NULL; Photo* _tmp1_ = NULL; @@ -3980,8 +3982,8 @@ static void zoom_buffer_iso_source_fetch_job_real_execute (BackgroundJob* base) _tmp0_ = _tmp3_; #line 29 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3981 "PhotoPage.c" - goto __catch240_g_error; +#line 3983 "PhotoPage.c" + goto __catch242_g_error; } #line 29 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = _tmp0_; @@ -3993,10 +3995,10 @@ static void zoom_buffer_iso_source_fetch_job_real_execute (BackgroundJob* base) self->fetched = _tmp4_; #line 28 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp0_); -#line 3994 "PhotoPage.c" +#line 3996 "PhotoPage.c" } - goto __finally240; - __catch240_g_error: + goto __finally242; + __catch242_g_error: { GError* fetch_error = NULL; #line 28 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -4008,9 +4010,9 @@ static void zoom_buffer_iso_source_fetch_job_real_execute (BackgroundJob* base) "m backing photo"); #line 28 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_error_free0 (fetch_error); -#line 4008 "PhotoPage.c" +#line 4010 "PhotoPage.c" } - __finally240: + __finally242: #line 28 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 28 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -4019,7 +4021,7 @@ static void zoom_buffer_iso_source_fetch_job_real_execute (BackgroundJob* base) g_clear_error (&_inner_error_); #line 28 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 4019 "PhotoPage.c" +#line 4021 "PhotoPage.c" } } @@ -4033,7 +4035,7 @@ static void zoom_buffer_iso_source_fetch_job_class_init (ZoomBufferIsoSourceFetc g_type_class_add_private (klass, sizeof (ZoomBufferIsoSourceFetchJobPrivate)); #line 15 "/home/jens/Source/shotwell/src/PhotoPage.vala" ((BackgroundJobClass *) klass)->execute = zoom_buffer_iso_source_fetch_job_real_execute; -#line 4033 "PhotoPage.c" +#line 4035 "PhotoPage.c" } @@ -4042,7 +4044,7 @@ static void zoom_buffer_iso_source_fetch_job_instance_init (ZoomBufferIsoSourceF self->priv = ZOOM_BUFFER_ISO_SOURCE_FETCH_JOB_GET_PRIVATE (self); #line 18 "/home/jens/Source/shotwell/src/PhotoPage.vala" self->fetched = NULL; -#line 4042 "PhotoPage.c" +#line 4044 "PhotoPage.c" } @@ -4056,7 +4058,7 @@ static void zoom_buffer_iso_source_fetch_job_finalize (BackgroundJob* obj) { _g_object_unref0 (self->fetched); #line 15 "/home/jens/Source/shotwell/src/PhotoPage.vala" BACKGROUND_JOB_CLASS (zoom_buffer_iso_source_fetch_job_parent_class)->finalize (obj); -#line 4056 "PhotoPage.c" +#line 4058 "PhotoPage.c" } @@ -4075,7 +4077,7 @@ static GType zoom_buffer_iso_source_fetch_job_get_type (void) { static gpointer _pixel_transformer_ref0 (gpointer self) { #line 55 "/home/jens/Source/shotwell/src/PhotoPage.vala" return self ? pixel_transformer_ref (self) : NULL; -#line 4075 "PhotoPage.c" +#line 4077 "PhotoPage.c" } @@ -4145,14 +4147,14 @@ static ZoomBufferTransformationJob* zoom_buffer_transformation_job_construct (GT self->transformed = _tmp10_; #line 49 "/home/jens/Source/shotwell/src/PhotoPage.vala" return self; -#line 4145 "PhotoPage.c" +#line 4147 "PhotoPage.c" } static ZoomBufferTransformationJob* zoom_buffer_transformation_job_new (ZoomBuffer* owner, GdkPixbuf* to_transform, PixelTransformer* transformer, CompletionCallback completion_callback, void* completion_callback_target, GCancellable* cancellable) { #line 49 "/home/jens/Source/shotwell/src/PhotoPage.vala" return zoom_buffer_transformation_job_construct (ZOOM_BUFFER_TYPE_TRANSFORMATION_JOB, owner, to_transform, transformer, completion_callback, completion_callback_target, cancellable); -#line 4152 "PhotoPage.c" +#line 4154 "PhotoPage.c" } @@ -4165,7 +4167,7 @@ static void zoom_buffer_transformation_job_real_execute (BackgroundJob* base) { _tmp0_ = self->priv->transformer; #line 60 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp0_ != NULL) { -#line 4165 "PhotoPage.c" +#line 4167 "PhotoPage.c" PixelTransformer* _tmp1_ = NULL; GdkPixbuf* _tmp2_ = NULL; GdkPixbuf* _tmp3_ = NULL; @@ -4180,7 +4182,7 @@ static void zoom_buffer_transformation_job_real_execute (BackgroundJob* base) { _tmp4_ = self->priv->cancellable; #line 61 "/home/jens/Source/shotwell/src/PhotoPage.vala" pixel_transformer_transform_to_other_pixbuf (_tmp1_, _tmp2_, _tmp3_, _tmp4_); -#line 4180 "PhotoPage.c" +#line 4182 "PhotoPage.c" } } @@ -4194,7 +4196,7 @@ static void zoom_buffer_transformation_job_class_init (ZoomBufferTransformationJ g_type_class_add_private (klass, sizeof (ZoomBufferTransformationJobPrivate)); #line 42 "/home/jens/Source/shotwell/src/PhotoPage.vala" ((BackgroundJobClass *) klass)->execute = zoom_buffer_transformation_job_real_execute; -#line 4194 "PhotoPage.c" +#line 4196 "PhotoPage.c" } @@ -4203,7 +4205,7 @@ static void zoom_buffer_transformation_job_instance_init (ZoomBufferTransformati self->priv = ZOOM_BUFFER_TRANSFORMATION_JOB_GET_PRIVATE (self); #line 47 "/home/jens/Source/shotwell/src/PhotoPage.vala" self->transformed = NULL; -#line 4203 "PhotoPage.c" +#line 4205 "PhotoPage.c" } @@ -4221,7 +4223,7 @@ static void zoom_buffer_transformation_job_finalize (BackgroundJob* obj) { _g_object_unref0 (self->transformed); #line 42 "/home/jens/Source/shotwell/src/PhotoPage.vala" BACKGROUND_JOB_CLASS (zoom_buffer_transformation_job_parent_class)->finalize (obj); -#line 4221 "PhotoPage.c" +#line 4223 "PhotoPage.c" } @@ -4244,7 +4246,7 @@ static void zoom_buffer_class_init (ZoomBufferClass * klass) { g_type_class_add_private (klass, sizeof (ZoomBufferPrivate)); #line 7 "/home/jens/Source/shotwell/src/PhotoPage.vala" G_OBJECT_CLASS (klass)->finalize = zoom_buffer_finalize; -#line 4244 "PhotoPage.c" +#line 4246 "PhotoPage.c" } @@ -4273,7 +4275,7 @@ static void zoom_buffer_instance_init (ZoomBuffer * self) { self->priv->workers = NULL; #line 82 "/home/jens/Source/shotwell/src/PhotoPage.vala" self->priv->is_interactive_redraw_in_progress = FALSE; -#line 4273 "PhotoPage.c" +#line 4275 "PhotoPage.c" } @@ -4303,7 +4305,7 @@ static void zoom_buffer_finalize (GObject* obj) { _g_object_unref0 (self->priv->parent_page); #line 7 "/home/jens/Source/shotwell/src/PhotoPage.vala" G_OBJECT_CLASS (zoom_buffer_parent_class)->finalize (obj); -#line 4303 "PhotoPage.c" +#line 4305 "PhotoPage.c" } @@ -4322,77 +4324,77 @@ GType zoom_buffer_get_type (void) { static void _editing_host_page_on_photos_altered_data_collection_items_altered (DataCollection* _sender, GeeMap* items, gpointer self) { #line 548 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_on_photos_altered ((EditingHostPage*) self, items); -#line 4322 "PhotoPage.c" +#line 4324 "PhotoPage.c" } static void _editing_host_page_on_view_contents_ordering_altered_data_collection_contents_altered (DataCollection* _sender, GeeIterable* added, GeeIterable* removed, gpointer self) { #line 550 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_on_view_contents_ordering_altered ((EditingHostPage*) self); -#line 4329 "PhotoPage.c" +#line 4331 "PhotoPage.c" } static void _editing_host_page_on_view_contents_ordering_altered_data_collection_ordering_changed (DataCollection* _sender, gpointer self) { #line 551 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_on_view_contents_ordering_altered ((EditingHostPage*) self); -#line 4336 "PhotoPage.c" +#line 4338 "PhotoPage.c" } static gpointer _data_collection_ref0 (gpointer self) { #line 420 "/home/jens/Source/shotwell/src/PhotoPage.vala" return self ? data_collection_ref (self) : NULL; -#line 4343 "PhotoPage.c" +#line 4345 "PhotoPage.c" } static void _editing_host_page_on_viewport_resized_gtk_widget_size_allocate (GtkWidget* _sender, GtkAllocation* allocation, gpointer self) { #line 431 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_on_viewport_resized ((EditingHostPage*) self); -#line 4350 "PhotoPage.c" +#line 4352 "PhotoPage.c" } static void _editing_host_page_on_rotate_clockwise_gtk_tool_button_clicked (GtkToolButton* _sender, gpointer self) { #line 440 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_on_rotate_clockwise ((EditingHostPage*) self); -#line 4357 "PhotoPage.c" +#line 4359 "PhotoPage.c" } static void _editing_host_page_on_crop_toggled_gtk_toggle_tool_button_toggled (GtkToggleToolButton* _sender, gpointer self) { #line 449 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_on_crop_toggled ((EditingHostPage*) self); -#line 4364 "PhotoPage.c" +#line 4366 "PhotoPage.c" } static void _editing_host_page_on_straighten_toggled_gtk_toggle_tool_button_toggled (GtkToggleToolButton* _sender, gpointer self) { #line 458 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_on_straighten_toggled ((EditingHostPage*) self); -#line 4371 "PhotoPage.c" +#line 4373 "PhotoPage.c" } static void _editing_host_page_on_redeye_toggled_gtk_toggle_tool_button_toggled (GtkToggleToolButton* _sender, gpointer self) { #line 467 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_on_redeye_toggled ((EditingHostPage*) self); -#line 4378 "PhotoPage.c" +#line 4380 "PhotoPage.c" } static void _editing_host_page_on_adjust_toggled_gtk_toggle_tool_button_toggled (GtkToggleToolButton* _sender, gpointer self) { #line 476 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_on_adjust_toggled ((EditingHostPage*) self); -#line 4385 "PhotoPage.c" +#line 4387 "PhotoPage.c" } static void _editing_host_page_on_enhance_gtk_tool_button_clicked (GtkToolButton* _sender, gpointer self) { #line 484 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_on_enhance ((EditingHostPage*) self); -#line 4392 "PhotoPage.c" +#line 4394 "PhotoPage.c" } @@ -4401,14 +4403,14 @@ static gboolean _editing_host_page_on_zoom_out_pressed_gtk_widget_button_press_e result = editing_host_page_on_zoom_out_pressed ((EditingHostPage*) self, event); #line 503 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 4401 "PhotoPage.c" +#line 4403 "PhotoPage.c" } static void _editing_host_page_on_zoom_slider_value_changed_gtk_range_value_changed (GtkRange* _sender, gpointer self) { #line 511 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_on_zoom_slider_value_changed ((EditingHostPage*) self); -#line 4408 "PhotoPage.c" +#line 4410 "PhotoPage.c" } @@ -4417,7 +4419,7 @@ static gboolean _editing_host_page_on_zoom_slider_drag_begin_gtk_widget_button_p result = editing_host_page_on_zoom_slider_drag_begin ((EditingHostPage*) self, event); #line 512 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 4417 "PhotoPage.c" +#line 4419 "PhotoPage.c" } @@ -4426,7 +4428,7 @@ static gboolean _editing_host_page_on_zoom_slider_drag_end_gtk_widget_button_rel result = editing_host_page_on_zoom_slider_drag_end ((EditingHostPage*) self, event); #line 513 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 4426 "PhotoPage.c" +#line 4428 "PhotoPage.c" } @@ -4435,7 +4437,7 @@ static gboolean _editing_host_page_on_zoom_slider_key_press_gtk_widget_key_press result = editing_host_page_on_zoom_slider_key_press ((EditingHostPage*) self, event); #line 514 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 4435 "PhotoPage.c" +#line 4437 "PhotoPage.c" } @@ -4444,21 +4446,21 @@ static gboolean _editing_host_page_on_zoom_in_pressed_gtk_widget_button_press_ev result = editing_host_page_on_zoom_in_pressed ((EditingHostPage*) self, event); #line 525 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 4444 "PhotoPage.c" +#line 4446 "PhotoPage.c" } static void _single_photo_page_on_previous_photo_gtk_tool_button_clicked (GtkToolButton* _sender, gpointer self) { #line 537 "/home/jens/Source/shotwell/src/PhotoPage.vala" single_photo_page_on_previous_photo ((SinglePhotoPage*) self); -#line 4451 "PhotoPage.c" +#line 4453 "PhotoPage.c" } static void _single_photo_page_on_next_photo_gtk_tool_button_clicked (GtkToolButton* _sender, gpointer self) { #line 543 "/home/jens/Source/shotwell/src/PhotoPage.vala" single_photo_page_on_next_photo ((SinglePhotoPage*) self); -#line 4458 "PhotoPage.c" +#line 4460 "PhotoPage.c" } @@ -4969,7 +4971,7 @@ EditingHostPage* editing_host_page_construct (GType object_type, SourceCollectio _g_object_unref0 (toolbar); #line 417 "/home/jens/Source/shotwell/src/PhotoPage.vala" return self; -#line 4969 "PhotoPage.c" +#line 4971 "PhotoPage.c" } @@ -4993,7 +4995,7 @@ static void editing_host_page_on_zoom_slider_value_changed (EditingHostPage* sel _tmp3_ = self->priv->enable_interactive_zoom_refresh; #line 557 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp3_) { -#line 4993 "PhotoPage.c" +#line 4995 "PhotoPage.c" ZoomState _tmp4_ = {0}; gboolean _tmp5_ = FALSE; #line 558 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -5004,13 +5006,13 @@ static void editing_host_page_on_zoom_slider_value_changed (EditingHostPage* sel _tmp5_ = zoom_state_is_default (&new_zoom_state); #line 560 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp5_) { -#line 5004 "PhotoPage.c" +#line 5006 "PhotoPage.c" ZoomState _tmp6_ = {0}; #line 561 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp6_ = new_zoom_state; #line 561 "/home/jens/Source/shotwell/src/PhotoPage.vala" single_photo_page_set_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp6_); -#line 5010 "PhotoPage.c" +#line 5012 "PhotoPage.c" } } else { gboolean _tmp7_ = FALSE; @@ -5020,22 +5022,22 @@ static void editing_host_page_on_zoom_slider_value_changed (EditingHostPage* sel if (_tmp7_) { #line 564 "/home/jens/Source/shotwell/src/PhotoPage.vala" single_photo_page_cancel_zoom (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)); -#line 5020 "PhotoPage.c" +#line 5022 "PhotoPage.c" } else { ZoomState _tmp8_ = {0}; #line 566 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp8_ = new_zoom_state; #line 566 "/home/jens/Source/shotwell/src/PhotoPage.vala" single_photo_page_set_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp8_); -#line 5027 "PhotoPage.c" +#line 5029 "PhotoPage.c" } #line 568 "/home/jens/Source/shotwell/src/PhotoPage.vala" single_photo_page_repaint (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), NULL); -#line 5031 "PhotoPage.c" +#line 5033 "PhotoPage.c" } #line 571 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_update_cursor_for_zoom_context (self); -#line 5035 "PhotoPage.c" +#line 5037 "PhotoPage.c" } @@ -5060,7 +5062,7 @@ static gboolean editing_host_page_on_zoom_slider_drag_begin (EditingHostPage* se _g_object_unref0 (_tmp1_); #line 577 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp2_) { -#line 5060 "PhotoPage.c" +#line 5062 "PhotoPage.c" GtkWindow* _tmp3_ = NULL; FullscreenWindow* _tmp4_ = NULL; #line 578 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -5071,13 +5073,13 @@ static gboolean editing_host_page_on_zoom_slider_drag_begin (EditingHostPage* se fullscreen_window_disable_toolbar_dismissal (_tmp4_); #line 578 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp4_); -#line 5071 "PhotoPage.c" +#line 5073 "PhotoPage.c" } #line 580 "/home/jens/Source/shotwell/src/PhotoPage.vala" result = FALSE; #line 580 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 5077 "PhotoPage.c" +#line 5079 "PhotoPage.c" } @@ -5107,7 +5109,7 @@ static gboolean editing_host_page_on_zoom_slider_drag_end (EditingHostPage* self _g_object_unref0 (_tmp1_); #line 586 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp2_) { -#line 5107 "PhotoPage.c" +#line 5109 "PhotoPage.c" GtkWindow* _tmp3_ = NULL; FullscreenWindow* _tmp4_ = NULL; #line 587 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -5118,7 +5120,7 @@ static gboolean editing_host_page_on_zoom_slider_drag_end (EditingHostPage* self fullscreen_window_update_toolbar_dismissal (_tmp4_); #line 587 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp4_); -#line 5118 "PhotoPage.c" +#line 5120 "PhotoPage.c" } #line 589 "/home/jens/Source/shotwell/src/PhotoPage.vala" single_photo_page_get_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp5_); @@ -5138,7 +5140,7 @@ static gboolean editing_host_page_on_zoom_slider_drag_end (EditingHostPage* self result = FALSE; #line 594 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 5138 "PhotoPage.c" +#line 5140 "PhotoPage.c" } @@ -5154,7 +5156,7 @@ static gboolean editing_host_page_on_zoom_out_pressed (EditingHostPage* self, Gd result = TRUE; #line 599 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 5154 "PhotoPage.c" +#line 5156 "PhotoPage.c" } @@ -5170,7 +5172,7 @@ static gboolean editing_host_page_on_zoom_in_pressed (EditingHostPage* self, Gdk result = TRUE; #line 604 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 5170 "PhotoPage.c" +#line 5172 "PhotoPage.c" } @@ -5282,7 +5284,7 @@ static void editing_host_page_get_cursor_wrt_viewport (EditingHostPage* self, Gd *result = _result_; #line 619 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 5282 "PhotoPage.c" +#line 5284 "PhotoPage.c" } @@ -5344,7 +5346,7 @@ static void editing_host_page_get_cursor_wrt_viewport_center (EditingHostPage* s *result = _tmp11_; #line 630 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 5344 "PhotoPage.c" +#line 5346 "PhotoPage.c" } @@ -5402,7 +5404,7 @@ static void editing_host_page_get_iso_pixel_under_cursor (EditingHostPage* self, *result = _tmp12_; #line 640 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 5402 "PhotoPage.c" +#line 5404 "PhotoPage.c" } @@ -5418,7 +5420,7 @@ static gdouble editing_host_page_snap_interpolation_factor (EditingHostPage* sel if (_tmp0_ < 0.03) { #line 645 "/home/jens/Source/shotwell/src/PhotoPage.vala" interp = 0.0; -#line 5418 "PhotoPage.c" +#line 5420 "PhotoPage.c" } else { gdouble _tmp1_ = 0.0; #line 646 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -5427,7 +5429,7 @@ static gdouble editing_host_page_snap_interpolation_factor (EditingHostPage* sel if (_tmp1_ > 0.97) { #line 647 "/home/jens/Source/shotwell/src/PhotoPage.vala" interp = 1.0; -#line 5427 "PhotoPage.c" +#line 5429 "PhotoPage.c" } } #line 649 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -5436,7 +5438,7 @@ static gdouble editing_host_page_snap_interpolation_factor (EditingHostPage* sel result = _tmp2_; #line 649 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 5436 "PhotoPage.c" +#line 5438 "PhotoPage.c" } @@ -5460,7 +5462,7 @@ static gdouble editing_host_page_adjust_interpolation_factor (EditingHostPage* s result = _tmp3_; #line 653 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 5460 "PhotoPage.c" +#line 5462 "PhotoPage.c" } @@ -5505,7 +5507,7 @@ static void editing_host_page_zoom_about_event_cursor_point (EditingHostPage* se if (_tmp0_) { #line 658 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 5505 "PhotoPage.c" +#line 5507 "PhotoPage.c" } #line 660 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = event; @@ -5559,7 +5561,7 @@ static void editing_host_page_zoom_about_event_cursor_point (EditingHostPage* se single_photo_page_repaint (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), NULL); #line 674 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 5559 "PhotoPage.c" +#line 5561 "PhotoPage.c" } #line 677 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp15_ = iso_pixel_under_cursor; @@ -5591,7 +5593,7 @@ static void editing_host_page_zoom_about_event_cursor_point (EditingHostPage* se single_photo_page_repaint (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), NULL); #line 687 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_update_cursor_for_zoom_context (self); -#line 5591 "PhotoPage.c" +#line 5593 "PhotoPage.c" } @@ -5603,7 +5605,7 @@ void editing_host_page_snap_zoom_to_min (EditingHostPage* self) { _tmp0_ = self->priv->zoom_slider; #line 691 "/home/jens/Source/shotwell/src/PhotoPage.vala" gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_range_get_type (), GtkRange), 0.0); -#line 5603 "PhotoPage.c" +#line 5605 "PhotoPage.c" } @@ -5615,7 +5617,7 @@ void editing_host_page_snap_zoom_to_max (EditingHostPage* self) { _tmp0_ = self->priv->zoom_slider; #line 695 "/home/jens/Source/shotwell/src/PhotoPage.vala" gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_range_get_type (), GtkRange), 1.0); -#line 5615 "PhotoPage.c" +#line 5617 "PhotoPage.c" } @@ -5636,7 +5638,7 @@ void editing_host_page_snap_zoom_to_isomorphic (EditingHostPage* self) { _tmp2_ = zoom_state_get_interpolation_factor (&iso_state); #line 700 "/home/jens/Source/shotwell/src/PhotoPage.vala" gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_range_get_type (), GtkRange), _tmp2_); -#line 5636 "PhotoPage.c" +#line 5638 "PhotoPage.c" } @@ -5679,7 +5681,7 @@ static gboolean editing_host_page_real_on_zoom_slider_key_press (EditingHostPage if (((_tmp5_ == ((0 != _tmp4_label0) ? _tmp4_label0 : (_tmp4_label0 = g_quark_from_static_string ("equal")))) || (_tmp5_ == ((0 != _tmp4_label1) ? _tmp4_label1 : (_tmp4_label1 = g_quark_from_static_string ("plus"))))) || (_tmp5_ == ((0 != _tmp4_label2) ? _tmp4_label2 : (_tmp4_label2 = g_quark_from_static_string ("KP_Add"))))) { #line 704 "/home/jens/Source/shotwell/src/PhotoPage.vala" switch (0) { -#line 5679 "PhotoPage.c" +#line 5681 "PhotoPage.c" default: { #line 708 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -5688,13 +5690,13 @@ static gboolean editing_host_page_real_on_zoom_slider_key_press (EditingHostPage result = TRUE; #line 709 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 5688 "PhotoPage.c" +#line 5690 "PhotoPage.c" } } } else if (((_tmp5_ == ((0 != _tmp4_label3) ? _tmp4_label3 : (_tmp4_label3 = g_quark_from_static_string ("minus")))) || (_tmp5_ == ((0 != _tmp4_label4) ? _tmp4_label4 : (_tmp4_label4 = g_quark_from_static_string ("underscore"))))) || (_tmp5_ == ((0 != _tmp4_label5) ? _tmp4_label5 : (_tmp4_label5 = g_quark_from_static_string ("KP_Subtract"))))) { #line 704 "/home/jens/Source/shotwell/src/PhotoPage.vala" switch (0) { -#line 5694 "PhotoPage.c" +#line 5696 "PhotoPage.c" default: { #line 714 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -5703,13 +5705,13 @@ static gboolean editing_host_page_real_on_zoom_slider_key_press (EditingHostPage result = TRUE; #line 715 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 5703 "PhotoPage.c" +#line 5705 "PhotoPage.c" } } } else if (_tmp5_ == ((0 != _tmp4_label6) ? _tmp4_label6 : (_tmp4_label6 = g_quark_from_static_string ("KP_Divide")))) { #line 704 "/home/jens/Source/shotwell/src/PhotoPage.vala" switch (0) { -#line 5709 "PhotoPage.c" +#line 5711 "PhotoPage.c" default: { #line 718 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -5718,13 +5720,13 @@ static gboolean editing_host_page_real_on_zoom_slider_key_press (EditingHostPage result = TRUE; #line 719 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 5718 "PhotoPage.c" +#line 5720 "PhotoPage.c" } } } else if (_tmp5_ == ((0 != _tmp4_label7) ? _tmp4_label7 : (_tmp4_label7 = g_quark_from_static_string ("KP_Multiply")))) { #line 704 "/home/jens/Source/shotwell/src/PhotoPage.vala" switch (0) { -#line 5724 "PhotoPage.c" +#line 5726 "PhotoPage.c" default: { #line 722 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -5733,7 +5735,7 @@ static gboolean editing_host_page_real_on_zoom_slider_key_press (EditingHostPage result = TRUE; #line 723 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 5733 "PhotoPage.c" +#line 5735 "PhotoPage.c" } } } @@ -5741,7 +5743,7 @@ static gboolean editing_host_page_real_on_zoom_slider_key_press (EditingHostPage result = FALSE; #line 726 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 5741 "PhotoPage.c" +#line 5743 "PhotoPage.c" } @@ -5750,7 +5752,7 @@ gboolean editing_host_page_on_zoom_slider_key_press (EditingHostPage* self, GdkE g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), FALSE); #line 703 "/home/jens/Source/shotwell/src/PhotoPage.vala" return EDITING_HOST_PAGE_GET_CLASS (self)->on_zoom_slider_key_press (self, event); -#line 5750 "PhotoPage.c" +#line 5752 "PhotoPage.c" } @@ -5763,7 +5765,7 @@ static void editing_host_page_real_on_increase_size (EditingHostPage* self) { _tmp1_ = editing_host_page_adjust_interpolation_factor (self, EDITING_HOST_PAGE_ZOOM_INCREMENT_SIZE); #line 730 "/home/jens/Source/shotwell/src/PhotoPage.vala" gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_range_get_type (), GtkRange), _tmp1_); -#line 5763 "PhotoPage.c" +#line 5765 "PhotoPage.c" } @@ -5772,7 +5774,7 @@ void editing_host_page_on_increase_size (EditingHostPage* self) { g_return_if_fail (IS_EDITING_HOST_PAGE (self)); #line 729 "/home/jens/Source/shotwell/src/PhotoPage.vala" EDITING_HOST_PAGE_GET_CLASS (self)->on_increase_size (self); -#line 5772 "PhotoPage.c" +#line 5774 "PhotoPage.c" } @@ -5785,7 +5787,7 @@ static void editing_host_page_real_on_decrease_size (EditingHostPage* self) { _tmp1_ = editing_host_page_adjust_interpolation_factor (self, -EDITING_HOST_PAGE_ZOOM_INCREMENT_SIZE); #line 734 "/home/jens/Source/shotwell/src/PhotoPage.vala" gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_range_get_type (), GtkRange), _tmp1_); -#line 5785 "PhotoPage.c" +#line 5787 "PhotoPage.c" } @@ -5794,7 +5796,7 @@ void editing_host_page_on_decrease_size (EditingHostPage* self) { g_return_if_fail (IS_EDITING_HOST_PAGE (self)); #line 733 "/home/jens/Source/shotwell/src/PhotoPage.vala" EDITING_HOST_PAGE_GET_CLASS (self)->on_decrease_size (self); -#line 5794 "PhotoPage.c" +#line 5796 "PhotoPage.c" } @@ -5812,7 +5814,7 @@ static void editing_host_page_real_save_zoom_state (SinglePhotoPage* base) { _tmp1_ = gtk_range_get_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_range_get_type (), GtkRange)); #line 739 "/home/jens/Source/shotwell/src/PhotoPage.vala" self->priv->saved_slider_val = _tmp1_; -#line 5812 "PhotoPage.c" +#line 5814 "PhotoPage.c" } @@ -5831,7 +5833,7 @@ static ZoomBuffer* editing_host_page_real_get_zoom_buffer (SinglePhotoPage* base result = _tmp1_; #line 743 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 5831 "PhotoPage.c" +#line 5833 "PhotoPage.c" } @@ -5854,7 +5856,7 @@ static gboolean editing_host_page_real_on_mousewheel_up (Page* base, GdkEventScr if (_tmp2_) { #line 747 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = TRUE; -#line 5854 "PhotoPage.c" +#line 5856 "PhotoPage.c" } else { GtkScale* _tmp3_ = NULL; gboolean _tmp4_ = FALSE; @@ -5864,7 +5866,7 @@ static gboolean editing_host_page_real_on_mousewheel_up (Page* base, GdkEventScr _tmp4_ = gtk_widget_get_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget)); #line 747 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = !_tmp4_; -#line 5864 "PhotoPage.c" +#line 5866 "PhotoPage.c" } #line 747 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp0_) { @@ -5872,7 +5874,7 @@ static gboolean editing_host_page_real_on_mousewheel_up (Page* base, GdkEventScr result = FALSE; #line 748 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 5872 "PhotoPage.c" +#line 5874 "PhotoPage.c" } #line 750 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp5_ = event; @@ -5882,7 +5884,7 @@ static gboolean editing_host_page_real_on_mousewheel_up (Page* base, GdkEventScr result = FALSE; #line 751 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 5882 "PhotoPage.c" +#line 5884 "PhotoPage.c" } @@ -5905,7 +5907,7 @@ static gboolean editing_host_page_real_on_mousewheel_down (Page* base, GdkEventS if (_tmp2_) { #line 755 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = TRUE; -#line 5905 "PhotoPage.c" +#line 5907 "PhotoPage.c" } else { GtkScale* _tmp3_ = NULL; gboolean _tmp4_ = FALSE; @@ -5915,7 +5917,7 @@ static gboolean editing_host_page_real_on_mousewheel_down (Page* base, GdkEventS _tmp4_ = gtk_widget_get_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget)); #line 755 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = !_tmp4_; -#line 5915 "PhotoPage.c" +#line 5917 "PhotoPage.c" } #line 755 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp0_) { @@ -5923,7 +5925,7 @@ static gboolean editing_host_page_real_on_mousewheel_down (Page* base, GdkEventS result = FALSE; #line 756 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 5923 "PhotoPage.c" +#line 5925 "PhotoPage.c" } #line 758 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp5_ = event; @@ -5933,7 +5935,7 @@ static gboolean editing_host_page_real_on_mousewheel_down (Page* base, GdkEventS result = FALSE; #line 759 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 5933 "PhotoPage.c" +#line 5935 "PhotoPage.c" } @@ -5964,7 +5966,7 @@ static void editing_host_page_real_restore_zoom_state (SinglePhotoPage* base) { _tmp4_ = self->priv->zoom_slider; #line 767 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_range_get_type (), GtkRange), "value-changed", (GCallback) _editing_host_page_on_zoom_slider_value_changed_gtk_range_value_changed, self, 0); -#line 5964 "PhotoPage.c" +#line 5966 "PhotoPage.c" } @@ -5977,7 +5979,7 @@ static gboolean editing_host_page_real_is_zoom_supported (SinglePhotoPage* base) result = TRUE; #line 771 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 5977 "PhotoPage.c" +#line 5979 "PhotoPage.c" } @@ -5997,7 +5999,7 @@ static void editing_host_page_real_set_container (Page* base, GtkWindow* contain _tmp1_ = container; #line 778 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (!G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, TYPE_FULLSCREEN_WINDOW)) { -#line 5997 "PhotoPage.c" +#line 5999 "PhotoPage.c" DragAndDropHandler* _tmp2_ = NULL; #line 779 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = drag_and_drop_handler_new (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); @@ -6005,7 +6007,7 @@ static void editing_host_page_real_set_container (Page* base, GtkWindow* contain _drag_and_drop_handler_unref0 (self->priv->dnd_handler); #line 779 "/home/jens/Source/shotwell/src/PhotoPage.vala" self->priv->dnd_handler = _tmp2_; -#line 6005 "PhotoPage.c" +#line 6007 "PhotoPage.c" } } @@ -6024,7 +6026,7 @@ ViewCollection* editing_host_page_get_parent_view (EditingHostPage* self) { result = _tmp1_; #line 783 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 6024 "PhotoPage.c" +#line 6026 "PhotoPage.c" } @@ -6047,7 +6049,7 @@ gboolean editing_host_page_has_photo (EditingHostPage* self) { result = _tmp2_; #line 787 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 6047 "PhotoPage.c" +#line 6049 "PhotoPage.c" } @@ -6084,7 +6086,7 @@ Photo* editing_host_page_get_photo (EditingHostPage* self) { result = NULL; #line 793 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 6084 "PhotoPage.c" +#line 6086 "PhotoPage.c" } #line 797 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); @@ -6116,7 +6118,7 @@ Photo* editing_host_page_get_photo (EditingHostPage* self) { result = _tmp12_; #line 798 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 6116 "PhotoPage.c" +#line 6118 "PhotoPage.c" } @@ -6134,7 +6136,7 @@ static void editing_host_page_real_photo_changing (EditingHostPage* self, Photo* if (_tmp1_ == PHOTO_FILE_FORMAT_RAW) { #line 806 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_set_photo_missing (self, FALSE); -#line 6134 "PhotoPage.c" +#line 6136 "PhotoPage.c" } else { Photo* _tmp2_ = NULL; GFile* _tmp3_ = NULL; @@ -6152,13 +6154,13 @@ static void editing_host_page_real_photo_changing (EditingHostPage* self, Photo* editing_host_page_set_photo_missing (self, !_tmp5_); #line 808 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp4_); -#line 6152 "PhotoPage.c" +#line 6154 "PhotoPage.c" } #line 810 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp6_ = self->priv->photo_missing; #line 810 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_update_ui (self, _tmp6_); -#line 6158 "PhotoPage.c" +#line 6160 "PhotoPage.c" } @@ -6167,7 +6169,7 @@ void editing_host_page_photo_changing (EditingHostPage* self, Photo* new_photo) g_return_if_fail (IS_EDITING_HOST_PAGE (self)); #line 802 "/home/jens/Source/shotwell/src/PhotoPage.vala" EDITING_HOST_PAGE_GET_CLASS (self)->photo_changing (self, new_photo); -#line 6167 "PhotoPage.c" +#line 6169 "PhotoPage.c" } @@ -6272,7 +6274,7 @@ static void editing_host_page_set_photo (EditingHostPage* self, Photo* photo) { _tmp21_ = self->priv->parent_view; #line 829 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp21_ != NULL) { -#line 6272 "PhotoPage.c" +#line 6274 "PhotoPage.c" ViewCollection* _tmp22_ = NULL; DataView* view_in_parent = NULL; ViewCollection* _tmp23_ = NULL; @@ -6295,7 +6297,7 @@ static void editing_host_page_set_photo (EditingHostPage* self, Photo* photo) { _tmp26_ = view_in_parent; #line 832 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (NULL != _tmp26_) { -#line 6295 "PhotoPage.c" +#line 6297 "PhotoPage.c" ViewCollection* _tmp27_ = NULL; ViewCollection* _tmp28_ = NULL; DataView* _tmp29_ = NULL; @@ -6315,17 +6317,17 @@ static void editing_host_page_set_photo (EditingHostPage* self, Photo* photo) { view_collection_select_marked (_tmp27_, _tmp31_); #line 833 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp31_); -#line 6315 "PhotoPage.c" +#line 6317 "PhotoPage.c" } #line 829 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (view_in_parent); -#line 6319 "PhotoPage.c" +#line 6321 "PhotoPage.c" } #line 813 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (marker); #line 813 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (view); -#line 6325 "PhotoPage.c" +#line 6327 "PhotoPage.c" } @@ -6337,7 +6339,7 @@ static void editing_host_page_real_realize (GtkWidget* base) { GTK_WIDGET_CLASS (editing_host_page_parent_class)->realize (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), gtk_widget_get_type (), GtkWidget)); #line 840 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_rebuild_caches (self, "realize"); -#line 6337 "PhotoPage.c" +#line 6339 "PhotoPage.c" } @@ -6355,21 +6357,21 @@ static void editing_host_page_real_switched_to (Page* base) { _tmp1_ = editing_host_page_has_photo (self); #line 849 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp1_) { -#line 6355 "PhotoPage.c" +#line 6357 "PhotoPage.c" gboolean _tmp2_ = FALSE; #line 849 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = self->priv->pixbuf_dirty; #line 849 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = _tmp2_; -#line 6361 "PhotoPage.c" +#line 6363 "PhotoPage.c" } else { #line 849 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = FALSE; -#line 6365 "PhotoPage.c" +#line 6367 "PhotoPage.c" } #line 849 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp0_) { -#line 6369 "PhotoPage.c" +#line 6371 "PhotoPage.c" Photo* _tmp3_ = NULL; Photo* _tmp4_ = NULL; #line 850 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -6380,7 +6382,7 @@ static void editing_host_page_real_switched_to (Page* base) { editing_host_page_replace_photo (self, _tmp4_); #line 850 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp4_); -#line 6380 "PhotoPage.c" +#line 6382 "PhotoPage.c" } } @@ -6408,21 +6410,21 @@ static void editing_host_page_real_switching_from (Page* base) { _tmp2_ = editing_host_page_has_photo (self); #line 866 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp2_) { -#line 6408 "PhotoPage.c" +#line 6410 "PhotoPage.c" ViewCollection* _tmp3_ = NULL; #line 866 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = self->priv->parent_view; #line 866 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = _tmp3_ != NULL; -#line 6414 "PhotoPage.c" +#line 6416 "PhotoPage.c" } else { #line 866 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = FALSE; -#line 6418 "PhotoPage.c" +#line 6420 "PhotoPage.c" } #line 866 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp1_) { -#line 6422 "PhotoPage.c" +#line 6424 "PhotoPage.c" ViewCollection* _tmp4_ = NULL; ViewCollection* _tmp5_ = NULL; ViewCollection* _tmp6_ = NULL; @@ -6458,7 +6460,7 @@ static void editing_host_page_real_switching_from (Page* base) { _g_object_unref0 (_tmp10_); #line 867 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp8_); -#line 6458 "PhotoPage.c" +#line 6460 "PhotoPage.c" } #line 870 "/home/jens/Source/shotwell/src/PhotoPage.vala" _data_collection_unref0 (self->priv->parent_view); @@ -6472,14 +6474,14 @@ static void editing_host_page_real_switching_from (Page* base) { data_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_DATA_COLLECTION, DataCollection)); #line 871 "/home/jens/Source/shotwell/src/PhotoPage.vala" _data_collection_unref0 (_tmp14_); -#line 6472 "PhotoPage.c" +#line 6474 "PhotoPage.c" } static void _editing_host_page_on_selection_changed_view_collection_items_selected (ViewCollection* _sender, GeeIterable* selected, gpointer self) { #line 884 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_on_selection_changed ((EditingHostPage*) self, selected); -#line 6479 "PhotoPage.c" +#line 6481 "PhotoPage.c" } @@ -6517,7 +6519,7 @@ static void editing_host_page_real_switching_to_fullscreen (Page* base, Fullscre _tmp4_ = page; #line 883 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp4_ != NULL) { -#line 6517 "PhotoPage.c" +#line 6519 "PhotoPage.c" Page* _tmp5_ = NULL; ViewCollection* _tmp6_ = NULL; ViewCollection* _tmp7_ = NULL; @@ -6531,11 +6533,11 @@ static void editing_host_page_real_switching_to_fullscreen (Page* base, Fullscre g_signal_connect_object (_tmp7_, "items-selected", (GCallback) _editing_host_page_on_selection_changed_view_collection_items_selected, self, 0); #line 884 "/home/jens/Source/shotwell/src/PhotoPage.vala" _data_collection_unref0 (_tmp7_); -#line 6531 "PhotoPage.c" +#line 6533 "PhotoPage.c" } #line 874 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (page); -#line 6535 "PhotoPage.c" +#line 6537 "PhotoPage.c" } @@ -6566,7 +6568,7 @@ static void editing_host_page_real_returning_from_fullscreen (Page* base, Fullsc _tmp3_ = page; #line 893 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp3_ != NULL) { -#line 6566 "PhotoPage.c" +#line 6568 "PhotoPage.c" Page* _tmp4_ = NULL; ViewCollection* _tmp5_ = NULL; ViewCollection* _tmp6_ = NULL; @@ -6583,11 +6585,11 @@ static void editing_host_page_real_returning_from_fullscreen (Page* base, Fullsc g_signal_handlers_disconnect_matched (_tmp6_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp7_, 0, NULL, (GCallback) _editing_host_page_on_selection_changed_view_collection_items_selected, self); #line 894 "/home/jens/Source/shotwell/src/PhotoPage.vala" _data_collection_unref0 (_tmp6_); -#line 6583 "PhotoPage.c" +#line 6585 "PhotoPage.c" } #line 887 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (page); -#line 6587 "PhotoPage.c" +#line 6589 "PhotoPage.c" } @@ -6596,7 +6598,7 @@ static void editing_host_page_on_selection_changed (EditingHostPage* self, GeeIt g_return_if_fail (IS_EDITING_HOST_PAGE (self)); #line 897 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (GEE_IS_ITERABLE (selected)); -#line 6596 "PhotoPage.c" +#line 6598 "PhotoPage.c" { GeeIterator* _view_it = NULL; GeeIterable* _tmp0_ = NULL; @@ -6609,7 +6611,7 @@ static void editing_host_page_on_selection_changed (EditingHostPage* self, GeeIt _view_it = _tmp1_; #line 898 "/home/jens/Source/shotwell/src/PhotoPage.vala" while (TRUE) { -#line 6609 "PhotoPage.c" +#line 6611 "PhotoPage.c" gboolean _tmp2_ = FALSE; DataView* view = NULL; gpointer _tmp3_ = NULL; @@ -6622,7 +6624,7 @@ static void editing_host_page_on_selection_changed (EditingHostPage* self, GeeIt if (!_tmp2_) { #line 898 "/home/jens/Source/shotwell/src/PhotoPage.vala" break; -#line 6622 "PhotoPage.c" +#line 6624 "PhotoPage.c" } #line 898 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = gee_iterator_get (_view_it); @@ -6642,11 +6644,11 @@ static void editing_host_page_on_selection_changed (EditingHostPage* self, GeeIt _g_object_unref0 (view); #line 900 "/home/jens/Source/shotwell/src/PhotoPage.vala" break; -#line 6642 "PhotoPage.c" +#line 6644 "PhotoPage.c" } #line 898 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_view_it); -#line 6646 "PhotoPage.c" +#line 6648 "PhotoPage.c" } } @@ -6662,14 +6664,14 @@ void editing_host_page_enable_rotate (EditingHostPage* self, gboolean should_ena _tmp1_ = should_enable; #line 905 "/home/jens/Source/shotwell/src/PhotoPage.vala" gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), _tmp1_); -#line 6662 "PhotoPage.c" +#line 6664 "PhotoPage.c" } static void _editing_host_page_on_pixbuf_fetched_pixbuf_cache_fetched (PixbufCache* _sender, Photo* photo, GdkPixbuf* pixbuf, GError* err, gpointer self) { #line 923 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_on_pixbuf_fetched ((EditingHostPage*) self, photo, pixbuf, err); -#line 6669 "PhotoPage.c" +#line 6671 "PhotoPage.c" } @@ -6678,7 +6680,7 @@ static gboolean _editing_host_page_master_cache_filter_pixbuf_cache_cache_filter result = editing_host_page_master_cache_filter ((EditingHostPage*) self, photo); #line 930 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 6678 "PhotoPage.c" +#line 6680 "PhotoPage.c" } @@ -6711,7 +6713,7 @@ static void editing_host_page_rebuild_caches (EditingHostPage* self, const gchar _tmp2_ = self->priv->cache; #line 915 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp2_ != NULL) { -#line 6711 "PhotoPage.c" +#line 6713 "PhotoPage.c" PixbufCache* _tmp3_ = NULL; Scaling _tmp4_ = {0}; Scaling _tmp5_ = {0}; @@ -6726,17 +6728,17 @@ static void editing_host_page_rebuild_caches (EditingHostPage* self, const gchar _tmp6_ = scaling_equals (&_tmp4_, &_tmp5_); #line 915 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = _tmp6_; -#line 6726 "PhotoPage.c" +#line 6728 "PhotoPage.c" } else { #line 915 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = FALSE; -#line 6730 "PhotoPage.c" +#line 6732 "PhotoPage.c" } #line 915 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp1_) { #line 916 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 6736 "PhotoPage.c" +#line 6738 "PhotoPage.c" } #line 918 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp7_ = caller; @@ -6752,7 +6754,7 @@ static void editing_host_page_rebuild_caches (EditingHostPage* self, const gchar _tmp10_ = self->priv->cache; #line 922 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp10_ != NULL) { -#line 6752 "PhotoPage.c" +#line 6754 "PhotoPage.c" PixbufCache* _tmp11_ = NULL; guint _tmp12_ = 0U; PixbufCache* _tmp13_ = NULL; @@ -6766,7 +6768,7 @@ static void editing_host_page_rebuild_caches (EditingHostPage* self, const gchar _tmp13_ = self->priv->cache; #line 924 "/home/jens/Source/shotwell/src/PhotoPage.vala" pixbuf_cache_cancel_all (_tmp13_); -#line 6766 "PhotoPage.c" +#line 6768 "PhotoPage.c" } #line 927 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp14_ = self->priv->sources; @@ -6796,7 +6798,7 @@ static void editing_host_page_rebuild_caches (EditingHostPage* self, const gchar _tmp21_ = caller; #line 933 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_refresh_caches (self, _tmp21_); -#line 6796 "PhotoPage.c" +#line 6798 "PhotoPage.c" } @@ -6810,7 +6812,7 @@ static void editing_host_page_refresh_caches (EditingHostPage* self, const gchar _tmp0_ = editing_host_page_has_photo (self); #line 938 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp0_) { -#line 6810 "PhotoPage.c" +#line 6812 "PhotoPage.c" const gchar* _tmp1_ = NULL; Photo* _tmp2_ = NULL; Photo* _tmp3_ = NULL; @@ -6851,14 +6853,14 @@ static void editing_host_page_refresh_caches (EditingHostPage* self, const gchar _g_object_unref0 (_tmp9_); #line 941 "/home/jens/Source/shotwell/src/PhotoPage.vala" _data_collection_unref0 (_tmp7_); -#line 6850 "PhotoPage.c" +#line 6852 "PhotoPage.c" } else { const gchar* _tmp10_ = NULL; #line 943 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp10_ = caller; #line 943 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_debug ("PhotoPage.vala:943: Refresh pixbuf caches (%s): (no photo)", _tmp10_); -#line 6857 "PhotoPage.c" +#line 6859 "PhotoPage.c" } } @@ -6880,7 +6882,7 @@ static gboolean editing_host_page_master_cache_filter (EditingHostPage* self, Ph if (_tmp2_) { #line 948 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = TRUE; -#line 6879 "PhotoPage.c" +#line 6881 "PhotoPage.c" } else { Photo* _tmp3_ = NULL; gboolean _tmp4_ = FALSE; @@ -6890,13 +6892,13 @@ static gboolean editing_host_page_master_cache_filter (EditingHostPage* self, Ph _tmp4_ = photo_has_editable (_tmp3_); #line 948 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = _tmp4_; -#line 6889 "PhotoPage.c" +#line 6891 "PhotoPage.c" } #line 948 "/home/jens/Source/shotwell/src/PhotoPage.vala" result = _tmp0_; #line 948 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 6895 "PhotoPage.c" +#line 6897 "PhotoPage.c" } @@ -6930,13 +6932,13 @@ static void editing_host_page_on_pixbuf_fetched (EditingHostPage* self, Photo* p if (_tmp4_) { #line 954 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 6929 "PhotoPage.c" +#line 6931 "PhotoPage.c" } #line 956 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp5_ = pixbuf; #line 956 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp5_ != NULL) { -#line 6935 "PhotoPage.c" +#line 6937 "PhotoPage.c" gboolean _tmp6_ = FALSE; ZoomBuffer* _tmp7_ = NULL; Dimensions max_dim = {0}; @@ -6950,7 +6952,7 @@ static void editing_host_page_on_pixbuf_fetched (EditingHostPage* self, Photo* p _tmp7_ = self->priv->zoom_buffer; #line 958 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp7_ != NULL) { -#line 6949 "PhotoPage.c" +#line 6951 "PhotoPage.c" ZoomBuffer* _tmp8_ = NULL; Photo* _tmp9_ = NULL; Photo* _tmp10_ = NULL; @@ -6967,15 +6969,15 @@ static void editing_host_page_on_pixbuf_fetched (EditingHostPage* self, Photo* p _tmp6_ = _tmp10_ == _tmp11_; #line 958 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp10_); -#line 6966 "PhotoPage.c" +#line 6968 "PhotoPage.c" } else { #line 958 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp6_ = FALSE; -#line 6970 "PhotoPage.c" +#line 6972 "PhotoPage.c" } #line 958 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp6_) { -#line 6974 "PhotoPage.c" +#line 6976 "PhotoPage.c" Photo* _tmp12_ = NULL; GdkPixbuf* _tmp13_ = NULL; ZoomBuffer* _tmp14_ = NULL; @@ -6989,7 +6991,7 @@ static void editing_host_page_on_pixbuf_fetched (EditingHostPage* self, Photo* p _g_object_unref0 (self->priv->zoom_buffer); #line 959 "/home/jens/Source/shotwell/src/PhotoPage.vala" self->priv->zoom_buffer = _tmp14_; -#line 6988 "PhotoPage.c" +#line 6990 "PhotoPage.c" } #line 963 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp15_ = photo; @@ -7001,7 +7003,7 @@ static void editing_host_page_on_pixbuf_fetched (EditingHostPage* self, Photo* p _tmp17_ = self->priv->current_tool; #line 964 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp17_ != NULL) { -#line 7000 "PhotoPage.c" +#line 7002 "PhotoPage.c" { Dimensions tool_pixbuf_dim = {0}; GdkPixbuf* tool_pixbuf = NULL; @@ -7025,14 +7027,14 @@ static void editing_host_page_on_pixbuf_fetched (EditingHostPage* self, Photo* p tool_pixbuf = _tmp22_; #line 967 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 7024 "PhotoPage.c" - goto __catch241_g_error; +#line 7026 "PhotoPage.c" + goto __catch243_g_error; } #line 970 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp23_ = tool_pixbuf; #line 970 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp23_ != NULL) { -#line 7031 "PhotoPage.c" +#line 7033 "PhotoPage.c" GdkPixbuf* _tmp24_ = NULL; Dimensions _tmp25_ = {0}; #line 971 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -7043,14 +7045,14 @@ static void editing_host_page_on_pixbuf_fetched (EditingHostPage* self, Photo* p _tmp25_ = tool_pixbuf_dim; #line 972 "/home/jens/Source/shotwell/src/PhotoPage.vala" max_dim = _tmp25_; -#line 7042 "PhotoPage.c" +#line 7044 "PhotoPage.c" } #line 965 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (tool_pixbuf); -#line 7046 "PhotoPage.c" +#line 7048 "PhotoPage.c" } - goto __finally241; - __catch241_g_error: + goto __finally243; + __catch243_g_error: { GError* err = NULL; Photo* _tmp26_ = NULL; @@ -7082,9 +7084,9 @@ static void editing_host_page_on_pixbuf_fetched (EditingHostPage* self, Photo* p _g_error_free0 (err); #line 978 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 7081 "PhotoPage.c" +#line 7083 "PhotoPage.c" } - __finally241: + __finally243: #line 965 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 965 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -7093,7 +7095,7 @@ static void editing_host_page_on_pixbuf_fetched (EditingHostPage* self, Photo* p g_clear_error (&_inner_error_); #line 965 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 7092 "PhotoPage.c" +#line 7094 "PhotoPage.c" } } #line 982 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -7108,14 +7110,14 @@ static void editing_host_page_on_pixbuf_fetched (EditingHostPage* self, Photo* p _tmp33_ = photo; #line 985 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_notify_photo_backing_missing (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, TYPE_PHOTO, Photo), FALSE); -#line 7107 "PhotoPage.c" +#line 7109 "PhotoPage.c" } else { GError* _tmp34_ = NULL; #line 986 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp34_ = err; #line 986 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp34_ != NULL) { -#line 7114 "PhotoPage.c" +#line 7116 "PhotoPage.c" Photo* _tmp35_ = NULL; #line 989 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_set_photo_missing (self, TRUE); @@ -7123,7 +7125,7 @@ static void editing_host_page_on_pixbuf_fetched (EditingHostPage* self, Photo* p _tmp35_ = photo; #line 992 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_notify_photo_backing_missing (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, TYPE_PHOTO, Photo), TRUE); -#line 7122 "PhotoPage.c" +#line 7124 "PhotoPage.c" } } } @@ -7207,7 +7209,7 @@ static void editing_host_page_prefetch_neighbors (EditingHostPage* self, ViewCol _g_object_unref0 (normal_batch); #line 1005 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 7206 "PhotoPage.c" +#line 7208 "PhotoPage.c" } #line 1007 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp11_ = next_source; @@ -7221,7 +7223,7 @@ static void editing_host_page_prefetch_neighbors (EditingHostPage* self, ViewCol _tmp14_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_PHOTO, Photo)); #line 1008 "/home/jens/Source/shotwell/src/PhotoPage.vala" prev = _tmp14_; -#line 7220 "PhotoPage.c" +#line 7222 "PhotoPage.c" { GeeIterator* _neighbor_source_it = NULL; ViewCollection* _tmp15_ = NULL; @@ -7248,7 +7250,7 @@ static void editing_host_page_prefetch_neighbors (EditingHostPage* self, ViewCol _neighbor_source_it = _tmp20_; #line 1011 "/home/jens/Source/shotwell/src/PhotoPage.vala" while (TRUE) { -#line 7247 "PhotoPage.c" +#line 7249 "PhotoPage.c" GeeIterator* _tmp21_ = NULL; gboolean _tmp22_ = FALSE; DataSource* neighbor_source = NULL; @@ -7275,7 +7277,7 @@ static void editing_host_page_prefetch_neighbors (EditingHostPage* self, ViewCol if (!_tmp22_) { #line 1011 "/home/jens/Source/shotwell/src/PhotoPage.vala" break; -#line 7274 "PhotoPage.c" +#line 7276 "PhotoPage.c" } #line 1011 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp23_ = _neighbor_source_it; @@ -7301,7 +7303,7 @@ static void editing_host_page_prefetch_neighbors (EditingHostPage* self, ViewCol if (_tmp30_) { #line 1015 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp27_ = TRUE; -#line 7300 "PhotoPage.c" +#line 7302 "PhotoPage.c" } else { Photo* _tmp31_ = NULL; Photo* _tmp32_ = NULL; @@ -7314,13 +7316,13 @@ static void editing_host_page_prefetch_neighbors (EditingHostPage* self, ViewCol _tmp33_ = data_source_equals (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, TYPE_DATA_SOURCE, DataSource)); #line 1015 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp27_ = _tmp33_; -#line 7313 "PhotoPage.c" +#line 7315 "PhotoPage.c" } #line 1015 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp27_) { #line 1016 "/home/jens/Source/shotwell/src/PhotoPage.vala" priority = BACKGROUND_JOB_JOB_PRIORITY_HIGH; -#line 7319 "PhotoPage.c" +#line 7321 "PhotoPage.c" } #line 1018 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp34_ = normal_batch; @@ -7340,11 +7342,11 @@ static void editing_host_page_prefetch_neighbors (EditingHostPage* self, ViewCol _g_object_unref0 (neighbor); #line 1011 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (neighbor_source); -#line 7339 "PhotoPage.c" +#line 7341 "PhotoPage.c" } #line 1011 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_neighbor_source_it); -#line 7343 "PhotoPage.c" +#line 7345 "PhotoPage.c" } #line 1022 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp39_ = self->priv->cache; @@ -7370,7 +7372,7 @@ static void editing_host_page_prefetch_neighbors (EditingHostPage* self, ViewCol _g_object_unref0 (master_batch); #line 996 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (normal_batch); -#line 7369 "PhotoPage.c" +#line 7371 "PhotoPage.c" } @@ -7413,7 +7415,7 @@ static void editing_host_page_cancel_prefetch_neighbors (EditingHostPage* self, _tmp5_ = view_collection_get_extended_neighbors (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_SOURCE, DataSource), PHOTO_TYPENAME); #line 1032 "/home/jens/Source/shotwell/src/PhotoPage.vala" new_neighbors = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_SET, GeeSet); -#line 7412 "PhotoPage.c" +#line 7414 "PhotoPage.c" { GeeIterator* _old_neighbor_it = NULL; GeeSet* _tmp6_ = NULL; @@ -7426,7 +7428,7 @@ static void editing_host_page_cancel_prefetch_neighbors (EditingHostPage* self, _old_neighbor_it = _tmp7_; #line 1035 "/home/jens/Source/shotwell/src/PhotoPage.vala" while (TRUE) { -#line 7425 "PhotoPage.c" +#line 7427 "PhotoPage.c" GeeIterator* _tmp8_ = NULL; gboolean _tmp9_ = FALSE; Photo* old_neighbor = NULL; @@ -7444,7 +7446,7 @@ static void editing_host_page_cancel_prefetch_neighbors (EditingHostPage* self, if (!_tmp9_) { #line 1035 "/home/jens/Source/shotwell/src/PhotoPage.vala" break; -#line 7443 "PhotoPage.c" +#line 7445 "PhotoPage.c" } #line 1035 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp10_ = _old_neighbor_it; @@ -7460,7 +7462,7 @@ static void editing_host_page_cancel_prefetch_neighbors (EditingHostPage* self, _tmp15_ = gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_COLLECTION, GeeCollection), _tmp14_); #line 1038 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (!_tmp15_) { -#line 7459 "PhotoPage.c" +#line 7461 "PhotoPage.c" Photo* _tmp16_ = NULL; Photo* _tmp17_ = NULL; gboolean _tmp18_ = FALSE; @@ -7472,15 +7474,15 @@ static void editing_host_page_cancel_prefetch_neighbors (EditingHostPage* self, _tmp18_ = data_source_equals (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_DATA_SOURCE, DataSource)); #line 1038 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp12_ = !_tmp18_; -#line 7471 "PhotoPage.c" +#line 7473 "PhotoPage.c" } else { #line 1038 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp12_ = FALSE; -#line 7475 "PhotoPage.c" +#line 7477 "PhotoPage.c" } #line 1038 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp12_) { -#line 7479 "PhotoPage.c" +#line 7481 "PhotoPage.c" PixbufCache* _tmp19_ = NULL; Photo* _tmp20_ = NULL; PixbufCache* _tmp21_ = NULL; @@ -7497,15 +7499,15 @@ static void editing_host_page_cancel_prefetch_neighbors (EditingHostPage* self, _tmp22_ = old_neighbor; #line 1040 "/home/jens/Source/shotwell/src/PhotoPage.vala" pixbuf_cache_drop (_tmp21_, _tmp22_); -#line 7496 "PhotoPage.c" +#line 7498 "PhotoPage.c" } #line 1035 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (old_neighbor); -#line 7500 "PhotoPage.c" +#line 7502 "PhotoPage.c" } #line 1035 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_old_neighbor_it); -#line 7504 "PhotoPage.c" +#line 7506 "PhotoPage.c" } #line 1045 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp24_ = new_neighbors; @@ -7515,7 +7517,7 @@ static void editing_host_page_cancel_prefetch_neighbors (EditingHostPage* self, _tmp26_ = gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_COLLECTION, GeeCollection), _tmp25_); #line 1045 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (!_tmp26_) { -#line 7514 "PhotoPage.c" +#line 7516 "PhotoPage.c" Photo* _tmp27_ = NULL; Photo* _tmp28_ = NULL; gboolean _tmp29_ = FALSE; @@ -7527,15 +7529,15 @@ static void editing_host_page_cancel_prefetch_neighbors (EditingHostPage* self, _tmp29_ = data_source_equals (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, TYPE_DATA_SOURCE, DataSource)); #line 1045 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp23_ = !_tmp29_; -#line 7526 "PhotoPage.c" +#line 7528 "PhotoPage.c" } else { #line 1045 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp23_ = FALSE; -#line 7530 "PhotoPage.c" +#line 7532 "PhotoPage.c" } #line 1045 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp23_) { -#line 7534 "PhotoPage.c" +#line 7536 "PhotoPage.c" PixbufCache* _tmp30_ = NULL; Photo* _tmp31_ = NULL; PixbufCache* _tmp32_ = NULL; @@ -7552,13 +7554,13 @@ static void editing_host_page_cancel_prefetch_neighbors (EditingHostPage* self, _tmp33_ = old_photo; #line 1047 "/home/jens/Source/shotwell/src/PhotoPage.vala" pixbuf_cache_drop (_tmp32_, _tmp33_); -#line 7551 "PhotoPage.c" +#line 7553 "PhotoPage.c" } #line 1028 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (new_neighbors); #line 1028 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (old_neighbors); -#line 7557 "PhotoPage.c" +#line 7559 "PhotoPage.c" } @@ -7576,7 +7578,7 @@ static DataView* editing_host_page_real_create_photo_view (EditingHostPage* self result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_VIEW, DataView); #line 1052 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 7575 "PhotoPage.c" +#line 7577 "PhotoPage.c" } @@ -7585,7 +7587,7 @@ DataView* editing_host_page_create_photo_view (EditingHostPage* self, DataSource g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), NULL); #line 1051 "/home/jens/Source/shotwell/src/PhotoPage.vala" return EDITING_HOST_PAGE_GET_CLASS (self)->create_photo_view (self, source); -#line 7584 "PhotoPage.c" +#line 7586 "PhotoPage.c" } @@ -7602,7 +7604,7 @@ static gboolean editing_host_page_is_photo (EditingHostPage* self, DataSource* s result = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_PHOTO_SOURCE); #line 1056 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 7601 "PhotoPage.c" +#line 7603 "PhotoPage.c" } @@ -7611,7 +7613,7 @@ static DataView* _editing_host_page_create_photo_view_create_view (DataSource* s result = editing_host_page_create_photo_view ((EditingHostPage*) self, source); #line 1064 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 7610 "PhotoPage.c" +#line 7612 "PhotoPage.c" } @@ -7620,7 +7622,7 @@ static gboolean _editing_host_page_is_photo_create_view_predicate (DataSource* s result = editing_host_page_is_photo ((EditingHostPage*) self, source); #line 1064 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 7619 "PhotoPage.c" +#line 7621 "PhotoPage.c" } @@ -7665,7 +7667,7 @@ void editing_host_page_display_copy_of (EditingHostPage* self, ViewCollection* c _data_collection_unref0 (_tmp7_); #line 1062 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp8_) { -#line 7664 "PhotoPage.c" +#line 7666 "PhotoPage.c" ViewCollection* _tmp9_ = NULL; ViewCollection* _tmp10_ = NULL; #line 1062 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -7674,15 +7676,15 @@ void editing_host_page_display_copy_of (EditingHostPage* self, ViewCollection* c _tmp10_ = self->priv->parent_view; #line 1062 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = _tmp9_ != _tmp10_; -#line 7673 "PhotoPage.c" +#line 7675 "PhotoPage.c" } else { #line 1062 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = FALSE; -#line 7677 "PhotoPage.c" +#line 7679 "PhotoPage.c" } #line 1062 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp4_) { -#line 7681 "PhotoPage.c" +#line 7683 "PhotoPage.c" ViewCollection* _tmp11_ = NULL; ViewCollection* _tmp12_ = NULL; ViewCollection* _tmp13_ = NULL; @@ -7716,13 +7718,13 @@ void editing_host_page_display_copy_of (EditingHostPage* self, ViewCollection* c _data_collection_unref0 (self->priv->parent_view); #line 1065 "/home/jens/Source/shotwell/src/PhotoPage.vala" self->priv->parent_view = _tmp17_; -#line 7715 "PhotoPage.c" +#line 7717 "PhotoPage.c" } #line 1068 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp18_ = starting_photo; #line 1068 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_replace_photo (self, _tmp18_); -#line 7721 "PhotoPage.c" +#line 7723 "PhotoPage.c" } @@ -7767,7 +7769,7 @@ void editing_host_page_display_mirror_of (EditingHostPage* self, ViewCollection* _data_collection_unref0 (_tmp7_); #line 1074 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp8_) { -#line 7766 "PhotoPage.c" +#line 7768 "PhotoPage.c" ViewCollection* _tmp9_ = NULL; ViewCollection* _tmp10_ = NULL; #line 1074 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -7776,15 +7778,15 @@ void editing_host_page_display_mirror_of (EditingHostPage* self, ViewCollection* _tmp10_ = self->priv->parent_view; #line 1074 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = _tmp9_ != _tmp10_; -#line 7775 "PhotoPage.c" +#line 7777 "PhotoPage.c" } else { #line 1074 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = FALSE; -#line 7779 "PhotoPage.c" +#line 7781 "PhotoPage.c" } #line 1074 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp4_) { -#line 7783 "PhotoPage.c" +#line 7785 "PhotoPage.c" ViewCollection* _tmp11_ = NULL; ViewCollection* _tmp12_ = NULL; ViewCollection* _tmp13_ = NULL; @@ -7818,13 +7820,13 @@ void editing_host_page_display_mirror_of (EditingHostPage* self, ViewCollection* _data_collection_unref0 (self->priv->parent_view); #line 1077 "/home/jens/Source/shotwell/src/PhotoPage.vala" self->priv->parent_view = _tmp17_; -#line 7817 "PhotoPage.c" +#line 7819 "PhotoPage.c" } #line 1080 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp18_ = starting_photo; #line 1080 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_replace_photo (self, _tmp18_); -#line 7823 "PhotoPage.c" +#line 7825 "PhotoPage.c" } @@ -7875,7 +7877,7 @@ static void editing_host_page_real_update_ui (EditingHostPage* self, gboolean mi dimensions_init (&_tmp8_, 0, 0); #line 1094 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_deactivate_tool (self, NULL, NULL, &_tmp8_, FALSE); -#line 7874 "PhotoPage.c" +#line 7876 "PhotoPage.c" } @@ -7884,14 +7886,14 @@ void editing_host_page_update_ui (EditingHostPage* self, gboolean missing) { g_return_if_fail (IS_EDITING_HOST_PAGE (self)); #line 1083 "/home/jens/Source/shotwell/src/PhotoPage.vala" EDITING_HOST_PAGE_GET_CLASS (self)->update_ui (self, missing); -#line 7883 "PhotoPage.c" +#line 7885 "PhotoPage.c" } static void editing_host_page_real_notify_photo_backing_missing (EditingHostPage* self, Photo* photo, gboolean missing) { #line 1098 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (IS_PHOTO (photo)); -#line 7890 "PhotoPage.c" +#line 7892 "PhotoPage.c" } @@ -7900,7 +7902,7 @@ void editing_host_page_notify_photo_backing_missing (EditingHostPage* self, Phot g_return_if_fail (IS_EDITING_HOST_PAGE (self)); #line 1098 "/home/jens/Source/shotwell/src/PhotoPage.vala" EDITING_HOST_PAGE_GET_CLASS (self)->notify_photo_backing_missing (self, photo, missing); -#line 7899 "PhotoPage.c" +#line 7901 "PhotoPage.c" } @@ -7964,17 +7966,17 @@ static void editing_host_page_draw_message (EditingHostPage* self, const gchar* _tmp10_ = x; #line 1111 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp10_ > 0) { -#line 7963 "PhotoPage.c" +#line 7965 "PhotoPage.c" gint _tmp11_ = 0; #line 1111 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp11_ = x; #line 1111 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp9_ = _tmp11_ / 2; -#line 7969 "PhotoPage.c" +#line 7971 "PhotoPage.c" } else { #line 1111 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp9_ = 0; -#line 7973 "PhotoPage.c" +#line 7975 "PhotoPage.c" } #line 1111 "/home/jens/Source/shotwell/src/PhotoPage.vala" x = _tmp9_; @@ -7990,17 +7992,17 @@ static void editing_host_page_draw_message (EditingHostPage* self, const gchar* _tmp16_ = y; #line 1114 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp16_ > 0) { -#line 7989 "PhotoPage.c" +#line 7991 "PhotoPage.c" gint _tmp17_ = 0; #line 1114 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp17_ = y; #line 1114 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp15_ = _tmp17_ / 2; -#line 7995 "PhotoPage.c" +#line 7997 "PhotoPage.c" } else { #line 1114 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp15_ = 0; -#line 7999 "PhotoPage.c" +#line 8001 "PhotoPage.c" } #line 1114 "/home/jens/Source/shotwell/src/PhotoPage.vala" y = _tmp15_; @@ -8014,7 +8016,7 @@ static void editing_host_page_draw_message (EditingHostPage* self, const gchar* single_photo_page_paint_text (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), _tmp18_, _tmp19_, _tmp20_); #line 1101 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (pango_layout); -#line 8013 "PhotoPage.c" +#line 8015 "PhotoPage.c" } @@ -8038,7 +8040,7 @@ void editing_host_page_set_photo_missing (EditingHostPage* self, gboolean missin if (_tmp0_ == _tmp1_) { #line 1122 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 8037 "PhotoPage.c" +#line 8039 "PhotoPage.c" } #line 1124 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = missing; @@ -8056,7 +8058,7 @@ void editing_host_page_set_photo_missing (EditingHostPage* self, gboolean missin _g_object_unref0 (photo); #line 1128 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 8055 "PhotoPage.c" +#line 8057 "PhotoPage.c" } #line 1130 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp5_ = missing; @@ -8066,7 +8068,7 @@ void editing_host_page_set_photo_missing (EditingHostPage* self, gboolean missin _tmp6_ = self->priv->photo_missing; #line 1132 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp6_) { -#line 8065 "PhotoPage.c" +#line 8067 "PhotoPage.c" { GdkPixbuf* pixbuf = NULL; Photo* _tmp7_ = NULL; @@ -8091,8 +8093,8 @@ void editing_host_page_set_photo_missing (EditingHostPage* self, gboolean missin pixbuf = _tmp9_; #line 1134 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 8090 "PhotoPage.c" - goto __catch242_g_error; +#line 8092 "PhotoPage.c" + goto __catch244_g_error; } #line 1136 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp10_ = pixbuf; @@ -8120,10 +8122,10 @@ void editing_host_page_set_photo_missing (EditingHostPage* self, gboolean missin single_photo_page_set_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), _tmp16_, &_tmp18_, NULL); #line 1133 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (pixbuf); -#line 8119 "PhotoPage.c" +#line 8121 "PhotoPage.c" } - goto __finally242; - __catch242_g_error: + goto __finally244; + __catch244_g_error: { GError* err = NULL; GdkPixbuf* _tmp19_ = NULL; @@ -8156,9 +8158,9 @@ void editing_host_page_set_photo_missing (EditingHostPage* self, gboolean missin g_warning ("PhotoPage.vala:1142: %s", _tmp24_); #line 1133 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_error_free0 (err); -#line 8155 "PhotoPage.c" +#line 8157 "PhotoPage.c" } - __finally242: + __finally244: #line 1133 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1133 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -8169,12 +8171,12 @@ void editing_host_page_set_photo_missing (EditingHostPage* self, gboolean missin g_clear_error (&_inner_error_); #line 1133 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 8168 "PhotoPage.c" +#line 8170 "PhotoPage.c" } } #line 1120 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (photo); -#line 8173 "PhotoPage.c" +#line 8175 "PhotoPage.c" } @@ -8189,7 +8191,7 @@ gboolean editing_host_page_get_photo_missing (EditingHostPage* self) { result = _tmp0_; #line 1148 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 8188 "PhotoPage.c" +#line 8190 "PhotoPage.c" } @@ -8203,7 +8205,7 @@ static gboolean editing_host_page_real_confirm_replace_photo (EditingHostPage* s result = TRUE; #line 1152 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 8202 "PhotoPage.c" +#line 8204 "PhotoPage.c" } @@ -8212,7 +8214,7 @@ gboolean editing_host_page_confirm_replace_photo (EditingHostPage* self, Photo* g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), FALSE); #line 1151 "/home/jens/Source/shotwell/src/PhotoPage.vala" return EDITING_HOST_PAGE_GET_CLASS (self)->confirm_replace_photo (self, old_photo, new_photo); -#line 8211 "PhotoPage.c" +#line 8213 "PhotoPage.c" } @@ -8241,7 +8243,7 @@ static GdkPixbuf* editing_host_page_get_zoom_pixbuf (EditingHostPage* self, Phot _tmp3_ = pixbuf; #line 1157 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp3_ == NULL) { -#line 8240 "PhotoPage.c" +#line 8242 "PhotoPage.c" { GdkPixbuf* _tmp4_ = NULL; Photo* _tmp5_ = NULL; @@ -8258,8 +8260,8 @@ static GdkPixbuf* editing_host_page_get_zoom_pixbuf (EditingHostPage* self, Phot _tmp4_ = _tmp7_; #line 1159 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 8257 "PhotoPage.c" - goto __catch243_g_error; +#line 8259 "PhotoPage.c" + goto __catch245_g_error; } #line 1159 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp8_ = _tmp4_; @@ -8271,10 +8273,10 @@ static GdkPixbuf* editing_host_page_get_zoom_pixbuf (EditingHostPage* self, Phot pixbuf = _tmp8_; #line 1158 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp4_); -#line 8270 "PhotoPage.c" +#line 8272 "PhotoPage.c" } - goto __finally243; - __catch243_g_error: + goto __finally245; + __catch245_g_error: { GError* err = NULL; GError* _tmp9_ = NULL; @@ -8291,9 +8293,9 @@ static GdkPixbuf* editing_host_page_get_zoom_pixbuf (EditingHostPage* self, Phot g_warning ("PhotoPage.vala:1161: %s", _tmp10_); #line 1158 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_error_free0 (err); -#line 8290 "PhotoPage.c" +#line 8292 "PhotoPage.c" } - __finally243: + __finally245: #line 1158 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1158 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -8304,14 +8306,14 @@ static GdkPixbuf* editing_host_page_get_zoom_pixbuf (EditingHostPage* self, Phot g_clear_error (&_inner_error_); #line 1158 "/home/jens/Source/shotwell/src/PhotoPage.vala" return NULL; -#line 8303 "PhotoPage.c" +#line 8305 "PhotoPage.c" } } #line 1164 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp11_ = pixbuf; #line 1164 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp11_ == NULL) { -#line 8310 "PhotoPage.c" +#line 8312 "PhotoPage.c" GdkPixbuf* _tmp12_ = NULL; Scaling _tmp13_ = {0}; GdkPixbuf* _tmp14_ = NULL; @@ -8333,13 +8335,13 @@ static GdkPixbuf* editing_host_page_get_zoom_pixbuf (EditingHostPage* self, Phot _tmp16_ = _tmp15_; #line 1166 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp16_); -#line 8332 "PhotoPage.c" +#line 8334 "PhotoPage.c" } #line 1168 "/home/jens/Source/shotwell/src/PhotoPage.vala" result = pixbuf; #line 1168 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 8338 "PhotoPage.c" +#line 8340 "PhotoPage.c" } @@ -8389,35 +8391,35 @@ static void editing_host_page_replace_photo (EditingHostPage* self, Photo* new_p _g_object_unref0 (_tmp4_); #line 1176 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp6_) { -#line 8388 "PhotoPage.c" +#line 8390 "PhotoPage.c" gboolean _tmp7_ = FALSE; #line 1176 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp7_ = self->priv->pixbuf_dirty; #line 1176 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = !_tmp7_; -#line 8394 "PhotoPage.c" +#line 8396 "PhotoPage.c" } else { #line 1176 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = FALSE; -#line 8398 "PhotoPage.c" +#line 8400 "PhotoPage.c" } #line 1176 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp1_) { -#line 8402 "PhotoPage.c" +#line 8404 "PhotoPage.c" gboolean _tmp8_ = FALSE; #line 1176 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp8_ = self->priv->photo_missing; #line 1176 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = !_tmp8_; -#line 8408 "PhotoPage.c" +#line 8410 "PhotoPage.c" } else { #line 1176 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = FALSE; -#line 8412 "PhotoPage.c" +#line 8414 "PhotoPage.c" } #line 1176 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp0_) { -#line 8416 "PhotoPage.c" +#line 8418 "PhotoPage.c" Photo* _tmp9_ = NULL; Photo* _tmp10_ = NULL; GdkPixbuf* _tmp11_ = NULL; @@ -8441,13 +8443,13 @@ static void editing_host_page_replace_photo (EditingHostPage* self, Photo* new_p _g_object_unref0 (_tmp12_); #line 1178 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 8440 "PhotoPage.c" +#line 8442 "PhotoPage.c" } #line 1182 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp16_ = editing_host_page_has_photo (self); #line 1182 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp16_) { -#line 8446 "PhotoPage.c" +#line 8448 "PhotoPage.c" Photo* _tmp17_ = NULL; Photo* _tmp18_ = NULL; Photo* _tmp19_ = NULL; @@ -8464,25 +8466,25 @@ static void editing_host_page_replace_photo (EditingHostPage* self, Photo* new_p _tmp15_ = !_tmp20_; #line 1182 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp19_); -#line 8463 "PhotoPage.c" +#line 8465 "PhotoPage.c" } else { #line 1182 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp15_ = FALSE; -#line 8467 "PhotoPage.c" +#line 8469 "PhotoPage.c" } #line 1182 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp15_) { #line 1182 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp14_ = editing_host_page_confirm_replace_photo != NULL; -#line 8473 "PhotoPage.c" +#line 8475 "PhotoPage.c" } else { #line 1182 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp14_ = FALSE; -#line 8477 "PhotoPage.c" +#line 8479 "PhotoPage.c" } #line 1182 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp14_) { -#line 8481 "PhotoPage.c" +#line 8483 "PhotoPage.c" Photo* _tmp21_ = NULL; Photo* _tmp22_ = NULL; Photo* _tmp23_ = NULL; @@ -8504,7 +8506,7 @@ static void editing_host_page_replace_photo (EditingHostPage* self, Photo* new_p if (_tmp25_) { #line 1184 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 8503 "PhotoPage.c" +#line 8505 "PhotoPage.c" } } #line 1187 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -8553,7 +8555,7 @@ static void editing_host_page_replace_photo (EditingHostPage* self, Photo* new_p _tmp36_ = old_photo; #line 1205 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp36_ != NULL) { -#line 8552 "PhotoPage.c" +#line 8554 "PhotoPage.c" ViewCollection* _tmp37_ = NULL; ViewCollection* _tmp38_ = NULL; Photo* _tmp39_ = NULL; @@ -8578,7 +8580,7 @@ static void editing_host_page_replace_photo (EditingHostPage* self, Photo* new_p _data_collection_unref0 (_tmp41_); #line 1206 "/home/jens/Source/shotwell/src/PhotoPage.vala" _data_collection_unref0 (_tmp38_); -#line 8577 "PhotoPage.c" +#line 8579 "PhotoPage.c" } #line 1208 "/home/jens/Source/shotwell/src/PhotoPage.vala" single_photo_page_cancel_zoom (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)); @@ -8604,7 +8606,7 @@ static void editing_host_page_replace_photo (EditingHostPage* self, Photo* new_p editing_host_page_refresh_caches (self, "replace_photo"); #line 1171 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (old_photo); -#line 8603 "PhotoPage.c" +#line 8605 "PhotoPage.c" } @@ -8647,7 +8649,7 @@ static void editing_host_page_real_cancel_zoom (SinglePhotoPage* base) { _g_object_unref0 (_tmp5_); #line 1225 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp6_) { -#line 8646 "PhotoPage.c" +#line 8648 "PhotoPage.c" Photo* _tmp7_ = NULL; Photo* _tmp8_ = NULL; Dimensions _tmp9_ = {0}; @@ -8667,13 +8669,13 @@ static void editing_host_page_real_cancel_zoom (SinglePhotoPage* base) { single_photo_page_set_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp11_); #line 1226 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp8_); -#line 8666 "PhotoPage.c" +#line 8668 "PhotoPage.c" } #line 1232 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp13_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)->canvas; #line 1232 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp13_ != NULL) { -#line 8672 "PhotoPage.c" +#line 8674 "PhotoPage.c" GtkDrawingArea* _tmp14_ = NULL; GdkWindow* _tmp15_ = NULL; #line 1232 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -8682,21 +8684,21 @@ static void editing_host_page_real_cancel_zoom (SinglePhotoPage* base) { _tmp15_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_widget_get_type (), GtkWidget)); #line 1232 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp12_ = _tmp15_ != NULL; -#line 8681 "PhotoPage.c" +#line 8683 "PhotoPage.c" } else { #line 1232 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp12_ = FALSE; -#line 8685 "PhotoPage.c" +#line 8687 "PhotoPage.c" } #line 1232 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp12_) { #line 1233 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_page_cursor (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), GDK_LEFT_PTR); -#line 8691 "PhotoPage.c" +#line 8693 "PhotoPage.c" } #line 1235 "/home/jens/Source/shotwell/src/PhotoPage.vala" single_photo_page_repaint (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), NULL); -#line 8695 "PhotoPage.c" +#line 8697 "PhotoPage.c" } @@ -8740,7 +8742,7 @@ static void editing_host_page_quick_update_pixbuf (EditingHostPage* self) { _tmp5_ = pixbuf; #line 1240 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp5_ != NULL) { -#line 8739 "PhotoPage.c" +#line 8741 "PhotoPage.c" GdkPixbuf* _tmp6_ = NULL; Photo* _tmp7_ = NULL; Photo* _tmp8_ = NULL; @@ -8763,7 +8765,7 @@ static void editing_host_page_quick_update_pixbuf (EditingHostPage* self) { _g_object_unref0 (pixbuf); #line 1244 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 8762 "PhotoPage.c" +#line 8764 "PhotoPage.c" } #line 1247 "/home/jens/Source/shotwell/src/PhotoPage.vala" single_photo_page_get_canvas_scaling (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp10_); @@ -8789,7 +8791,7 @@ static void editing_host_page_quick_update_pixbuf (EditingHostPage* self) { _g_free0 (_tmp14_); #line 1249 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp12_); -#line 8788 "PhotoPage.c" +#line 8790 "PhotoPage.c" { GdkPixbuf* _tmp17_ = NULL; Photo* _tmp18_ = NULL; @@ -8816,8 +8818,8 @@ static void editing_host_page_quick_update_pixbuf (EditingHostPage* self) { _tmp17_ = _tmp22_; #line 1254 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 8815 "PhotoPage.c" - goto __catch244_g_error; +#line 8817 "PhotoPage.c" + goto __catch246_g_error; } #line 1254 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp23_ = editing_host_page_get_photo (self); @@ -8831,10 +8833,10 @@ static void editing_host_page_quick_update_pixbuf (EditingHostPage* self) { _g_object_unref0 (_tmp24_); #line 1253 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp17_); -#line 8830 "PhotoPage.c" +#line 8832 "PhotoPage.c" } - goto __finally244; - __catch244_g_error: + goto __finally246; + __catch246_g_error: { GError* err = NULL; GError* _tmp26_ = NULL; @@ -8851,9 +8853,9 @@ static void editing_host_page_quick_update_pixbuf (EditingHostPage* self) { g_warning ("PhotoPage.vala:1256: %s", _tmp27_); #line 1253 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_error_free0 (err); -#line 8850 "PhotoPage.c" +#line 8852 "PhotoPage.c" } - __finally244: + __finally246: #line 1253 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1253 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -8864,7 +8866,7 @@ static void editing_host_page_quick_update_pixbuf (EditingHostPage* self) { g_clear_error (&_inner_error_); #line 1253 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 8863 "PhotoPage.c" +#line 8865 "PhotoPage.c" } #line 1259 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp28_ = self->priv->cache; @@ -8880,7 +8882,7 @@ static void editing_host_page_quick_update_pixbuf (EditingHostPage* self) { self->priv->pixbuf_dirty = FALSE; #line 1238 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (pixbuf); -#line 8879 "PhotoPage.c" +#line 8881 "PhotoPage.c" } @@ -8913,7 +8915,7 @@ static gboolean editing_host_page_update_pixbuf (EditingHostPage* self) { _g_object_unref0 (photo); #line 1273 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 8912 "PhotoPage.c" +#line 8914 "PhotoPage.c" } #line 1275 "/home/jens/Source/shotwell/src/PhotoPage.vala" pixbuf = NULL; @@ -8923,7 +8925,7 @@ static gboolean editing_host_page_update_pixbuf (EditingHostPage* self) { media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp3_); #line 1276 "/home/jens/Source/shotwell/src/PhotoPage.vala" max_dim = _tmp3_; -#line 8922 "PhotoPage.c" +#line 8924 "PhotoPage.c" { Dimensions tool_pixbuf_dim = {0}; Dimensions _tmp4_ = {0}; @@ -8937,7 +8939,7 @@ static gboolean editing_host_page_update_pixbuf (EditingHostPage* self) { _tmp5_ = self->priv->current_tool; #line 1280 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp5_ != NULL) { -#line 8936 "PhotoPage.c" +#line 8938 "PhotoPage.c" GdkPixbuf* _tmp6_ = NULL; EditingToolsEditingTool* _tmp7_ = NULL; Scaling _tmp8_ = {0}; @@ -8959,8 +8961,8 @@ static gboolean editing_host_page_update_pixbuf (EditingHostPage* self) { _tmp6_ = _tmp11_; #line 1281 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 8958 "PhotoPage.c" - goto __catch245_g_error; +#line 8960 "PhotoPage.c" + goto __catch247_g_error; } #line 1281 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp12_ = _tmp6_; @@ -8972,23 +8974,23 @@ static gboolean editing_host_page_update_pixbuf (EditingHostPage* self) { pixbuf = _tmp12_; #line 1280 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp6_); -#line 8971 "PhotoPage.c" +#line 8973 "PhotoPage.c" } #line 1283 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp13_ = pixbuf; #line 1283 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp13_ != NULL) { -#line 8977 "PhotoPage.c" +#line 8979 "PhotoPage.c" Dimensions _tmp14_ = {0}; #line 1284 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp14_ = tool_pixbuf_dim; #line 1284 "/home/jens/Source/shotwell/src/PhotoPage.vala" max_dim = _tmp14_; -#line 8983 "PhotoPage.c" +#line 8985 "PhotoPage.c" } } - goto __finally245; - __catch245_g_error: + goto __finally247; + __catch247_g_error: { GError* err = NULL; GError* _tmp15_ = NULL; @@ -9007,9 +9009,9 @@ static gboolean editing_host_page_update_pixbuf (EditingHostPage* self) { editing_host_page_set_photo_missing (self, TRUE); #line 1278 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_error_free0 (err); -#line 9006 "PhotoPage.c" +#line 9008 "PhotoPage.c" } - __finally245: + __finally247: #line 1278 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1278 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -9022,20 +9024,20 @@ static gboolean editing_host_page_update_pixbuf (EditingHostPage* self) { g_clear_error (&_inner_error_); #line 1278 "/home/jens/Source/shotwell/src/PhotoPage.vala" return FALSE; -#line 9021 "PhotoPage.c" +#line 9023 "PhotoPage.c" } #line 1290 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp17_ = self->priv->photo_missing; #line 1290 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (!_tmp17_) { -#line 9027 "PhotoPage.c" +#line 9029 "PhotoPage.c" GdkPixbuf* _tmp18_ = NULL; GdkPixbuf* _tmp22_ = NULL; #line 1292 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp18_ = pixbuf; #line 1292 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp18_ == NULL) { -#line 9034 "PhotoPage.c" +#line 9036 "PhotoPage.c" PixbufCache* _tmp19_ = NULL; Photo* _tmp20_ = NULL; GdkPixbuf* _tmp21_ = NULL; @@ -9049,13 +9051,13 @@ static gboolean editing_host_page_update_pixbuf (EditingHostPage* self) { _g_object_unref0 (pixbuf); #line 1293 "/home/jens/Source/shotwell/src/PhotoPage.vala" pixbuf = _tmp21_; -#line 9048 "PhotoPage.c" +#line 9050 "PhotoPage.c" } #line 1296 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp22_ = pixbuf; #line 1296 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp22_ == NULL) { -#line 9054 "PhotoPage.c" +#line 9056 "PhotoPage.c" PixbufCache* _tmp23_ = NULL; Photo* _tmp24_ = NULL; #line 1297 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -9064,28 +9066,28 @@ static gboolean editing_host_page_update_pixbuf (EditingHostPage* self) { _tmp24_ = photo; #line 1297 "/home/jens/Source/shotwell/src/PhotoPage.vala" pixbuf_cache_prefetch (_tmp23_, _tmp24_, BACKGROUND_JOB_JOB_PRIORITY_NORMAL, FALSE); -#line 9063 "PhotoPage.c" +#line 9065 "PhotoPage.c" } } #line 1300 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp26_ = self->priv->photo_missing; #line 1300 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (!_tmp26_) { -#line 9070 "PhotoPage.c" +#line 9072 "PhotoPage.c" GdkPixbuf* _tmp27_ = NULL; #line 1300 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp27_ = pixbuf; #line 1300 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp25_ = _tmp27_ != NULL; -#line 9076 "PhotoPage.c" +#line 9078 "PhotoPage.c" } else { #line 1300 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp25_ = FALSE; -#line 9080 "PhotoPage.c" +#line 9082 "PhotoPage.c" } #line 1300 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp25_) { -#line 9084 "PhotoPage.c" +#line 9086 "PhotoPage.c" GdkPixbuf* _tmp28_ = NULL; Dimensions _tmp29_ = {0}; #line 1301 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -9096,7 +9098,7 @@ static gboolean editing_host_page_update_pixbuf (EditingHostPage* self) { single_photo_page_set_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), _tmp28_, &_tmp29_, NULL); #line 1302 "/home/jens/Source/shotwell/src/PhotoPage.vala" self->priv->pixbuf_dirty = FALSE; -#line 9095 "PhotoPage.c" +#line 9097 "PhotoPage.c" } #line 1309 "/home/jens/Source/shotwell/src/PhotoPage.vala" result = FALSE; @@ -9106,7 +9108,7 @@ static gboolean editing_host_page_update_pixbuf (EditingHostPage* self) { _g_object_unref0 (photo); #line 1309 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 9105 "PhotoPage.c" +#line 9107 "PhotoPage.c" } @@ -9123,7 +9125,7 @@ static void editing_host_page_real_on_resize (Page* base, GdkRectangle* rect) { PAGE_CLASS (editing_host_page_parent_class)->on_resize (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page), &_tmp0_); #line 1315 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_track_tool_window (self); -#line 9122 "PhotoPage.c" +#line 9124 "PhotoPage.c" } @@ -9139,7 +9141,7 @@ static void editing_host_page_real_on_resize_finished (Page* base, GdkRectangle* self->priv->pixbuf_dirty = TRUE; #line 1325 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_update_pixbuf (self); -#line 9138 "PhotoPage.c" +#line 9140 "PhotoPage.c" } @@ -9152,7 +9154,7 @@ static void editing_host_page_on_viewport_resized (EditingHostPage* self) { self->priv->pixbuf_dirty = TRUE; #line 1334 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_update_pixbuf (self); -#line 9151 "PhotoPage.c" +#line 9153 "PhotoPage.c" } @@ -9236,21 +9238,21 @@ static void editing_host_page_real_update_actions (Page* base, gint selected_cou _tmp13_ = photo; #line 1346 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp13_ != NULL) { -#line 9235 "PhotoPage.c" +#line 9237 "PhotoPage.c" gboolean _tmp14_ = FALSE; #line 1346 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp14_ = self->priv->photo_missing; #line 1346 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp12_ = !_tmp14_; -#line 9241 "PhotoPage.c" +#line 9243 "PhotoPage.c" } else { #line 1346 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp12_ = FALSE; -#line 9245 "PhotoPage.c" +#line 9247 "PhotoPage.c" } #line 1346 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp12_) { -#line 9249 "PhotoPage.c" +#line 9251 "PhotoPage.c" Photo* _tmp15_ = NULL; gboolean _tmp16_ = FALSE; #line 1346 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -9259,15 +9261,15 @@ static void editing_host_page_real_update_actions (Page* base, gint selected_cou _tmp16_ = photo_check_can_rotate (_tmp15_); #line 1346 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp11_ = _tmp16_; -#line 9258 "PhotoPage.c" +#line 9260 "PhotoPage.c" } else { #line 1346 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp11_ = FALSE; -#line 9262 "PhotoPage.c" +#line 9264 "PhotoPage.c" } #line 1346 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp11_) { -#line 9266 "PhotoPage.c" +#line 9268 "PhotoPage.c" Photo* _tmp17_ = NULL; gboolean _tmp18_ = FALSE; #line 1347 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -9276,11 +9278,11 @@ static void editing_host_page_real_update_actions (Page* base, gint selected_cou _tmp18_ = editing_host_page_is_rotate_available (self, _tmp17_); #line 1347 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp10_ = _tmp18_; -#line 9275 "PhotoPage.c" +#line 9277 "PhotoPage.c" } else { #line 1347 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp10_ = FALSE; -#line 9279 "PhotoPage.c" +#line 9281 "PhotoPage.c" } #line 1346 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp19_ = self->priv->rotate_button; @@ -9290,21 +9292,21 @@ static void editing_host_page_real_update_actions (Page* base, gint selected_cou _tmp22_ = photo; #line 1348 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp22_ != NULL) { -#line 9289 "PhotoPage.c" +#line 9291 "PhotoPage.c" gboolean _tmp23_ = FALSE; #line 1348 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp23_ = self->priv->photo_missing; #line 1348 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp21_ = !_tmp23_; -#line 9295 "PhotoPage.c" +#line 9297 "PhotoPage.c" } else { #line 1348 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp21_ = FALSE; -#line 9299 "PhotoPage.c" +#line 9301 "PhotoPage.c" } #line 1348 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp21_) { -#line 9303 "PhotoPage.c" +#line 9305 "PhotoPage.c" Photo* _tmp24_ = NULL; Scaling _tmp25_ = {0}; gboolean _tmp26_ = FALSE; @@ -9316,11 +9318,11 @@ static void editing_host_page_real_update_actions (Page* base, gint selected_cou _tmp26_ = editing_tools_crop_tool_is_available (_tmp24_, &_tmp25_); #line 1349 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp20_ = _tmp26_; -#line 9315 "PhotoPage.c" +#line 9317 "PhotoPage.c" } else { #line 1349 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp20_ = FALSE; -#line 9319 "PhotoPage.c" +#line 9321 "PhotoPage.c" } #line 1348 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp27_ = self->priv->crop_button; @@ -9330,21 +9332,21 @@ static void editing_host_page_real_update_actions (Page* base, gint selected_cou _tmp30_ = photo; #line 1350 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp30_ != NULL) { -#line 9329 "PhotoPage.c" +#line 9331 "PhotoPage.c" gboolean _tmp31_ = FALSE; #line 1350 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp31_ = self->priv->photo_missing; #line 1350 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp29_ = !_tmp31_; -#line 9335 "PhotoPage.c" +#line 9337 "PhotoPage.c" } else { #line 1350 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp29_ = FALSE; -#line 9339 "PhotoPage.c" +#line 9341 "PhotoPage.c" } #line 1350 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp29_) { -#line 9343 "PhotoPage.c" +#line 9345 "PhotoPage.c" Photo* _tmp32_ = NULL; Scaling _tmp33_ = {0}; gboolean _tmp34_ = FALSE; @@ -9356,11 +9358,11 @@ static void editing_host_page_real_update_actions (Page* base, gint selected_cou _tmp34_ = editing_tools_redeye_tool_is_available (_tmp32_, &_tmp33_); #line 1351 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp28_ = _tmp34_; -#line 9355 "PhotoPage.c" +#line 9357 "PhotoPage.c" } else { #line 1351 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp28_ = FALSE; -#line 9359 "PhotoPage.c" +#line 9361 "PhotoPage.c" } #line 1350 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp35_ = self->priv->redeye_button; @@ -9370,21 +9372,21 @@ static void editing_host_page_real_update_actions (Page* base, gint selected_cou _tmp38_ = photo; #line 1352 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp38_ != NULL) { -#line 9369 "PhotoPage.c" +#line 9371 "PhotoPage.c" gboolean _tmp39_ = FALSE; #line 1352 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp39_ = self->priv->photo_missing; #line 1352 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp37_ = !_tmp39_; -#line 9375 "PhotoPage.c" +#line 9377 "PhotoPage.c" } else { #line 1352 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp37_ = FALSE; -#line 9379 "PhotoPage.c" +#line 9381 "PhotoPage.c" } #line 1352 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp37_) { -#line 9383 "PhotoPage.c" +#line 9385 "PhotoPage.c" Photo* _tmp40_ = NULL; Scaling _tmp41_ = {0}; gboolean _tmp42_ = FALSE; @@ -9396,11 +9398,11 @@ static void editing_host_page_real_update_actions (Page* base, gint selected_cou _tmp42_ = editing_tools_adjust_tool_is_available (_tmp40_, &_tmp41_); #line 1353 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp36_ = _tmp42_; -#line 9395 "PhotoPage.c" +#line 9397 "PhotoPage.c" } else { #line 1353 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp36_ = FALSE; -#line 9399 "PhotoPage.c" +#line 9401 "PhotoPage.c" } #line 1352 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp43_ = self->priv->adjust_button; @@ -9410,21 +9412,21 @@ static void editing_host_page_real_update_actions (Page* base, gint selected_cou _tmp46_ = photo; #line 1354 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp46_ != NULL) { -#line 9409 "PhotoPage.c" +#line 9411 "PhotoPage.c" gboolean _tmp47_ = FALSE; #line 1354 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp47_ = self->priv->photo_missing; #line 1354 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp45_ = !_tmp47_; -#line 9415 "PhotoPage.c" +#line 9417 "PhotoPage.c" } else { #line 1354 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp45_ = FALSE; -#line 9419 "PhotoPage.c" +#line 9421 "PhotoPage.c" } #line 1354 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp45_) { -#line 9423 "PhotoPage.c" +#line 9425 "PhotoPage.c" Photo* _tmp48_ = NULL; gboolean _tmp49_ = FALSE; #line 1355 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -9433,11 +9435,11 @@ static void editing_host_page_real_update_actions (Page* base, gint selected_cou _tmp49_ = editing_host_page_is_enhance_available (self, _tmp48_); #line 1355 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp44_ = _tmp49_; -#line 9432 "PhotoPage.c" +#line 9434 "PhotoPage.c" } else { #line 1355 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp44_ = FALSE; -#line 9436 "PhotoPage.c" +#line 9438 "PhotoPage.c" } #line 1354 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp50_ = self->priv->enhance_button; @@ -9447,21 +9449,21 @@ static void editing_host_page_real_update_actions (Page* base, gint selected_cou _tmp53_ = photo; #line 1356 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp53_ != NULL) { -#line 9446 "PhotoPage.c" +#line 9448 "PhotoPage.c" gboolean _tmp54_ = FALSE; #line 1356 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp54_ = self->priv->photo_missing; #line 1356 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp52_ = !_tmp54_; -#line 9452 "PhotoPage.c" +#line 9454 "PhotoPage.c" } else { #line 1356 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp52_ = FALSE; -#line 9456 "PhotoPage.c" +#line 9458 "PhotoPage.c" } #line 1356 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp52_) { -#line 9460 "PhotoPage.c" +#line 9462 "PhotoPage.c" Photo* _tmp55_ = NULL; Scaling _tmp56_ = {0}; gboolean _tmp57_ = FALSE; @@ -9473,11 +9475,11 @@ static void editing_host_page_real_update_actions (Page* base, gint selected_cou _tmp57_ = editing_tools_straighten_tool_is_available (_tmp55_, &_tmp56_); #line 1357 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp51_ = _tmp57_; -#line 9472 "PhotoPage.c" +#line 9474 "PhotoPage.c" } else { #line 1357 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp51_ = FALSE; -#line 9476 "PhotoPage.c" +#line 9478 "PhotoPage.c" } #line 1356 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp58_ = self->priv->straighten_button; @@ -9491,7 +9493,7 @@ static void editing_host_page_real_update_actions (Page* base, gint selected_cou PAGE_CLASS (editing_host_page_parent_class)->update_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page), _tmp59_, _tmp60_); #line 1337 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (photo); -#line 9490 "PhotoPage.c" +#line 9492 "PhotoPage.c" } @@ -9510,51 +9512,51 @@ static gboolean editing_host_page_real_on_shift_pressed (Page* base, GdkEventKey _tmp3_ = self->priv->current_tool; #line 1364 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp3_ == NULL) { -#line 9509 "PhotoPage.c" +#line 9511 "PhotoPage.c" gboolean _tmp4_ = FALSE; #line 1364 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = page_get_ctrl_pressed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 1364 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = !_tmp4_; -#line 9515 "PhotoPage.c" +#line 9517 "PhotoPage.c" } else { #line 1364 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = FALSE; -#line 9519 "PhotoPage.c" +#line 9521 "PhotoPage.c" } #line 1364 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp2_) { -#line 9523 "PhotoPage.c" +#line 9525 "PhotoPage.c" gboolean _tmp5_ = FALSE; #line 1364 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp5_ = page_get_alt_pressed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 1364 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = !_tmp5_; -#line 9529 "PhotoPage.c" +#line 9531 "PhotoPage.c" } else { #line 1364 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = FALSE; -#line 9533 "PhotoPage.c" +#line 9535 "PhotoPage.c" } #line 1364 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp1_) { -#line 9537 "PhotoPage.c" +#line 9539 "PhotoPage.c" gboolean _tmp6_ = FALSE; #line 1364 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp6_ = editing_host_page_has_photo (self); #line 1364 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = _tmp6_; -#line 9543 "PhotoPage.c" +#line 9545 "PhotoPage.c" } else { #line 1364 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = FALSE; -#line 9547 "PhotoPage.c" +#line 9549 "PhotoPage.c" } #line 1364 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp0_) { #line 1365 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_swap_in_original (self); -#line 9553 "PhotoPage.c" +#line 9555 "PhotoPage.c" } #line 1367 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp7_ = event; @@ -9564,7 +9566,7 @@ static gboolean editing_host_page_real_on_shift_pressed (Page* base, GdkEventKey result = _tmp8_; #line 1367 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 9563 "PhotoPage.c" +#line 9565 "PhotoPage.c" } @@ -9582,7 +9584,7 @@ static gboolean editing_host_page_real_on_shift_released (Page* base, GdkEventKe if (_tmp0_ == NULL) { #line 1372 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_swap_out_original (self); -#line 9581 "PhotoPage.c" +#line 9583 "PhotoPage.c" } #line 1374 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = event; @@ -9592,7 +9594,7 @@ static gboolean editing_host_page_real_on_shift_released (Page* base, GdkEventKe result = _tmp2_; #line 1374 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 9591 "PhotoPage.c" +#line 9593 "PhotoPage.c" } @@ -9610,7 +9612,7 @@ static gboolean editing_host_page_real_on_alt_pressed (Page* base, GdkEventKey* if (_tmp0_ == NULL) { #line 1379 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_swap_out_original (self); -#line 9609 "PhotoPage.c" +#line 9611 "PhotoPage.c" } #line 1381 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = event; @@ -9620,7 +9622,7 @@ static gboolean editing_host_page_real_on_alt_pressed (Page* base, GdkEventKey* result = _tmp2_; #line 1381 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 9619 "PhotoPage.c" +#line 9621 "PhotoPage.c" } @@ -9638,37 +9640,37 @@ static gboolean editing_host_page_real_on_alt_released (Page* base, GdkEventKey* _tmp2_ = self->priv->current_tool; #line 1385 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp2_ == NULL) { -#line 9637 "PhotoPage.c" +#line 9639 "PhotoPage.c" gboolean _tmp3_ = FALSE; #line 1385 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = page_get_shift_pressed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 1385 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = _tmp3_; -#line 9643 "PhotoPage.c" +#line 9645 "PhotoPage.c" } else { #line 1385 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = FALSE; -#line 9647 "PhotoPage.c" +#line 9649 "PhotoPage.c" } #line 1385 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp1_) { -#line 9651 "PhotoPage.c" +#line 9653 "PhotoPage.c" gboolean _tmp4_ = FALSE; #line 1385 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = page_get_ctrl_pressed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 1385 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = !_tmp4_; -#line 9657 "PhotoPage.c" +#line 9659 "PhotoPage.c" } else { #line 1385 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = FALSE; -#line 9661 "PhotoPage.c" +#line 9663 "PhotoPage.c" } #line 1385 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp0_) { #line 1386 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_swap_in_original (self); -#line 9667 "PhotoPage.c" +#line 9669 "PhotoPage.c" } #line 1388 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp5_ = event; @@ -9678,7 +9680,7 @@ static gboolean editing_host_page_real_on_alt_released (Page* base, GdkEventKey* result = _tmp6_; #line 1388 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 9677 "PhotoPage.c" +#line 9679 "PhotoPage.c" } @@ -9694,7 +9696,7 @@ static void editing_host_page_swap_in_original (EditingHostPage* self) { GError * _inner_error_ = NULL; #line 1391 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 9693 "PhotoPage.c" +#line 9695 "PhotoPage.c" { GdkPixbuf* _tmp0_ = NULL; Photo* _tmp1_ = NULL; @@ -9719,8 +9721,8 @@ static void editing_host_page_swap_in_original (EditingHostPage* self) { _tmp0_ = _tmp4_; #line 1395 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 9718 "PhotoPage.c" - goto __catch246_g_error; +#line 9720 "PhotoPage.c" + goto __catch248_g_error; } #line 1394 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp5_ = editing_host_page_get_photo (self); @@ -9738,10 +9740,10 @@ static void editing_host_page_swap_in_original (EditingHostPage* self) { _g_object_unref0 (_tmp6_); #line 1393 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp0_); -#line 9737 "PhotoPage.c" +#line 9739 "PhotoPage.c" } - goto __finally246; - __catch246_g_error: + goto __finally248; + __catch248_g_error: { GError* err = NULL; #line 1393 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -9754,9 +9756,9 @@ static void editing_host_page_swap_in_original (EditingHostPage* self) { _g_object_unref0 (original); #line 1397 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 9753 "PhotoPage.c" +#line 9755 "PhotoPage.c" } - __finally246: + __finally248: #line 1393 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1393 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -9767,7 +9769,7 @@ static void editing_host_page_swap_in_original (EditingHostPage* self) { g_clear_error (&_inner_error_); #line 1393 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 9766 "PhotoPage.c" +#line 9768 "PhotoPage.c" } #line 1401 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp9_ = single_photo_page_get_unscaled_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)); @@ -9785,7 +9787,7 @@ static void editing_host_page_swap_in_original (EditingHostPage* self) { single_photo_page_save_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)); #line 1407 "/home/jens/Source/shotwell/src/PhotoPage.vala" single_photo_page_cancel_zoom (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)); -#line 9784 "PhotoPage.c" +#line 9786 "PhotoPage.c" } #line 1410 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp12_ = original; @@ -9801,7 +9803,7 @@ static void editing_host_page_swap_in_original (EditingHostPage* self) { _g_object_unref0 (_tmp14_); #line 1391 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (original); -#line 9800 "PhotoPage.c" +#line 9802 "PhotoPage.c" } @@ -9813,7 +9815,7 @@ static void editing_host_page_swap_out_original (EditingHostPage* self) { _tmp0_ = self->priv->swapped; #line 1414 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp0_ != NULL) { -#line 9812 "PhotoPage.c" +#line 9814 "PhotoPage.c" GdkPixbuf* _tmp1_ = NULL; Photo* _tmp2_ = NULL; Photo* _tmp3_ = NULL; @@ -9838,7 +9840,7 @@ static void editing_host_page_swap_out_original (EditingHostPage* self) { _g_object_unref0 (self->priv->swapped); #line 1421 "/home/jens/Source/shotwell/src/PhotoPage.vala" self->priv->swapped = NULL; -#line 9837 "PhotoPage.c" +#line 9839 "PhotoPage.c" } } @@ -9846,7 +9848,7 @@ static void editing_host_page_swap_out_original (EditingHostPage* self) { static gpointer _editing_tools_editing_tool_ref0 (gpointer self) { #line 1465 "/home/jens/Source/shotwell/src/PhotoPage.vala" return self ? editing_tools_editing_tool_ref (self) : NULL; -#line 9845 "PhotoPage.c" +#line 9847 "PhotoPage.c" } @@ -9897,7 +9899,7 @@ static void editing_host_page_activate_tool (EditingHostPage* self, EditingTools _g_object_unref0 (_tmp3_); #line 1440 "/home/jens/Source/shotwell/src/PhotoPage.vala" max_dim = _tmp5_; -#line 9896 "PhotoPage.c" +#line 9898 "PhotoPage.c" { Dimensions tool_pixbuf_dim = {0}; Dimensions _tmp6_ = {0}; @@ -9935,8 +9937,8 @@ static void editing_host_page_activate_tool (EditingHostPage* self, EditingTools _tmp7_ = _tmp14_; #line 1443 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 9934 "PhotoPage.c" - goto __catch247_g_error; +#line 9936 "PhotoPage.c" + goto __catch249_g_error; } #line 1443 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp15_ = _tmp7_; @@ -9950,20 +9952,20 @@ static void editing_host_page_activate_tool (EditingHostPage* self, EditingTools _tmp16_ = unscaled; #line 1445 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp16_ != NULL) { -#line 9949 "PhotoPage.c" +#line 9951 "PhotoPage.c" Dimensions _tmp17_ = {0}; #line 1446 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp17_ = tool_pixbuf_dim; #line 1446 "/home/jens/Source/shotwell/src/PhotoPage.vala" max_dim = _tmp17_; -#line 9955 "PhotoPage.c" +#line 9957 "PhotoPage.c" } #line 1441 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp7_); -#line 9959 "PhotoPage.c" +#line 9961 "PhotoPage.c" } - goto __finally247; - __catch247_g_error: + goto __finally249; + __catch249_g_error: { GError* err = NULL; GError* _tmp18_ = NULL; @@ -9996,9 +9998,9 @@ static void editing_host_page_activate_tool (EditingHostPage* self, EditingTools _g_object_unref0 (unscaled); #line 1455 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 9995 "PhotoPage.c" +#line 9997 "PhotoPage.c" } - __finally247: + __finally249: #line 1441 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1441 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -10009,13 +10011,13 @@ static void editing_host_page_activate_tool (EditingHostPage* self, EditingTools g_clear_error (&_inner_error_); #line 1441 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 10008 "PhotoPage.c" +#line 10010 "PhotoPage.c" } #line 1458 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp22_ = unscaled; #line 1458 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp22_ != NULL) { -#line 10014 "PhotoPage.c" +#line 10016 "PhotoPage.c" GdkPixbuf* _tmp23_ = NULL; Dimensions _tmp24_ = {0}; #line 1459 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -10024,7 +10026,7 @@ static void editing_host_page_activate_tool (EditingHostPage* self, EditingTools _tmp24_ = max_dim; #line 1459 "/home/jens/Source/shotwell/src/PhotoPage.vala" single_photo_page_set_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), _tmp23_, &_tmp24_, NULL); -#line 10023 "PhotoPage.c" +#line 10025 "PhotoPage.c" } #line 1462 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp25_ = editing_host_page_editing_host_canvas_new (self); @@ -10052,42 +10054,42 @@ static void editing_host_page_activate_tool (EditingHostPage* self, EditingTools _editing_tools_photo_canvas_unref0 (photo_canvas); #line 1425 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (unscaled); -#line 10051 "PhotoPage.c" +#line 10053 "PhotoPage.c" } static void _editing_host_page_on_tool_activated_editing_tools_editing_tool_activated (EditingToolsEditingTool* _sender, gpointer self) { #line 1496 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_on_tool_activated ((EditingHostPage*) self); -#line 10058 "PhotoPage.c" +#line 10060 "PhotoPage.c" } static void _editing_host_page_on_tool_deactivated_editing_tools_editing_tool_deactivated (EditingToolsEditingTool* _sender, gpointer self) { #line 1497 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_on_tool_deactivated ((EditingHostPage*) self); -#line 10065 "PhotoPage.c" +#line 10067 "PhotoPage.c" } static void _editing_host_page_on_tool_applied_editing_tools_editing_tool_applied (EditingToolsEditingTool* _sender, Command* command, GdkPixbuf* new_pixbuf, Dimensions* new_max_dim, gboolean needs_improvement, gpointer self) { #line 1498 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_on_tool_applied ((EditingHostPage*) self, command, new_pixbuf, new_max_dim, needs_improvement); -#line 10072 "PhotoPage.c" +#line 10074 "PhotoPage.c" } static void _editing_host_page_on_tool_cancelled_editing_tools_editing_tool_cancelled (EditingToolsEditingTool* _sender, gpointer self) { #line 1499 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_on_tool_cancelled ((EditingHostPage*) self); -#line 10079 "PhotoPage.c" +#line 10081 "PhotoPage.c" } static void _editing_host_page_on_tool_aborted_editing_tools_editing_tool_aborted (EditingToolsEditingTool* _sender, gpointer self) { #line 1500 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_on_tool_aborted ((EditingHostPage*) self); -#line 10086 "PhotoPage.c" +#line 10088 "PhotoPage.c" } @@ -10096,7 +10098,7 @@ static gboolean _editing_host_page_update_pixbuf_gsource_func (gpointer self) { result = editing_host_page_update_pixbuf ((EditingHostPage*) self); #line 1527 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 10095 "PhotoPage.c" +#line 10097 "PhotoPage.c" } @@ -10140,7 +10142,7 @@ static void editing_host_page_deactivate_tool (EditingHostPage* self, Command* c if (_tmp0_ == NULL) { #line 1478 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 10139 "PhotoPage.c" +#line 10141 "PhotoPage.c" } #line 1480 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = self->priv->current_tool; @@ -10162,7 +10164,7 @@ static void editing_host_page_deactivate_tool (EditingHostPage* self, Command* c _tmp6_ = tool_window; #line 1485 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp6_ != NULL) { -#line 10161 "PhotoPage.c" +#line 10163 "PhotoPage.c" EditingToolsEditingToolWindow* _tmp7_ = NULL; gboolean _tmp8_ = FALSE; #line 1485 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -10171,15 +10173,15 @@ static void editing_host_page_deactivate_tool (EditingHostPage* self, Command* c _tmp8_ = editing_tools_editing_tool_window_has_user_moved (_tmp7_); #line 1485 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp5_ = _tmp8_; -#line 10170 "PhotoPage.c" +#line 10172 "PhotoPage.c" } else { #line 1485 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp5_ = FALSE; -#line 10174 "PhotoPage.c" +#line 10176 "PhotoPage.c" } #line 1485 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp5_) { -#line 10178 "PhotoPage.c" +#line 10180 "PhotoPage.c" gint last_location_x = 0; gint last_location_y = 0; EditingToolsEditingToolWindow* _tmp9_ = NULL; @@ -10237,7 +10239,7 @@ static void editing_host_page_deactivate_tool (EditingHostPage* self, Command* c gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp22_, (gpointer) ((gintptr) _tmp23_)); #line 1489 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_free0 (_tmp22_); -#line 10236 "PhotoPage.c" +#line 10238 "PhotoPage.c" } #line 1494 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp24_ = tool; @@ -10287,7 +10289,7 @@ static void editing_host_page_deactivate_tool (EditingHostPage* self, Command* c _tmp35_ = new_pixbuf; #line 1510 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp35_ != NULL) { -#line 10286 "PhotoPage.c" +#line 10288 "PhotoPage.c" GdkPixbuf* _tmp36_ = NULL; GdkPixbuf* _tmp37_ = NULL; #line 1511 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -10298,14 +10300,14 @@ static void editing_host_page_deactivate_tool (EditingHostPage* self, Command* c _g_object_unref0 (replacement); #line 1511 "/home/jens/Source/shotwell/src/PhotoPage.vala" replacement = _tmp37_; -#line 10297 "PhotoPage.c" +#line 10299 "PhotoPage.c" } else { GdkPixbuf* _tmp38_ = NULL; #line 1512 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp38_ = self->priv->cancel_editing_pixbuf; #line 1512 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp38_ != NULL) { -#line 10304 "PhotoPage.c" +#line 10306 "PhotoPage.c" GdkPixbuf* _tmp39_ = NULL; GdkPixbuf* _tmp40_ = NULL; GdkPixbuf* _tmp41_ = NULL; @@ -10326,18 +10328,18 @@ static void editing_host_page_deactivate_tool (EditingHostPage* self, Command* c *new_max_dim = _tmp42_; #line 1515 "/home/jens/Source/shotwell/src/PhotoPage.vala" needs_improvement = FALSE; -#line 10325 "PhotoPage.c" +#line 10327 "PhotoPage.c" } else { #line 1517 "/home/jens/Source/shotwell/src/PhotoPage.vala" needs_improvement = TRUE; -#line 10329 "PhotoPage.c" +#line 10331 "PhotoPage.c" } } #line 1520 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp43_ = replacement; #line 1520 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp43_ != NULL) { -#line 10336 "PhotoPage.c" +#line 10338 "PhotoPage.c" GdkPixbuf* _tmp44_ = NULL; Dimensions _tmp45_ = {0}; #line 1521 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -10346,7 +10348,7 @@ static void editing_host_page_deactivate_tool (EditingHostPage* self, Command* c _tmp45_ = *new_max_dim; #line 1521 "/home/jens/Source/shotwell/src/PhotoPage.vala" single_photo_page_set_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), _tmp44_, &_tmp45_, NULL); -#line 10345 "PhotoPage.c" +#line 10347 "PhotoPage.c" } #line 1522 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (self->priv->cancel_editing_pixbuf); @@ -10360,13 +10362,13 @@ static void editing_host_page_deactivate_tool (EditingHostPage* self, Command* c self->priv->pixbuf_dirty = TRUE; #line 1527 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, _editing_host_page_update_pixbuf_gsource_func, g_object_ref (self), g_object_unref); -#line 10359 "PhotoPage.c" +#line 10361 "PhotoPage.c" } #line 1531 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp47_ = command; #line 1531 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp47_ != NULL) { -#line 10365 "PhotoPage.c" +#line 10367 "PhotoPage.c" CommandManager* _tmp48_ = NULL; CommandManager* _tmp49_ = NULL; Command* _tmp50_ = NULL; @@ -10380,7 +10382,7 @@ static void editing_host_page_deactivate_tool (EditingHostPage* self, Command* c command_manager_execute (_tmp49_, _tmp50_); #line 1532 "/home/jens/Source/shotwell/src/PhotoPage.vala" _command_manager_unref0 (_tmp49_); -#line 10379 "PhotoPage.c" +#line 10381 "PhotoPage.c" } #line 1475 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (replacement); @@ -10388,7 +10390,7 @@ static void editing_host_page_deactivate_tool (EditingHostPage* self, Command* c _g_object_unref0 (tool_window); #line 1475 "/home/jens/Source/shotwell/src/PhotoPage.vala" _editing_tools_editing_tool_unref0 (tool); -#line 10387 "PhotoPage.c" +#line 10389 "PhotoPage.c" } @@ -10400,7 +10402,7 @@ static gboolean editing_host_page_real_on_double_click (EditingHostPage* self, G result = FALSE; #line 1538 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 10399 "PhotoPage.c" +#line 10401 "PhotoPage.c" } @@ -10409,7 +10411,7 @@ gboolean editing_host_page_on_double_click (EditingHostPage* self, GdkEventButto g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), FALSE); #line 1537 "/home/jens/Source/shotwell/src/PhotoPage.vala" return EDITING_HOST_PAGE_GET_CLASS (self)->on_double_click (self, event); -#line 10408 "PhotoPage.c" +#line 10410 "PhotoPage.c" } @@ -10443,14 +10445,14 @@ static gboolean editing_host_page_real_on_left_click (Page* base, GdkEventButton _tmp1_ = _tmp0_->type; #line 1544 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp1_ == GDK_2BUTTON_PRESS) { -#line 10442 "PhotoPage.c" +#line 10444 "PhotoPage.c" gboolean _tmp2_ = FALSE; EditingToolsEditingTool* _tmp3_ = NULL; #line 1545 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = self->priv->current_tool; #line 1545 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp3_ == NULL) { -#line 10449 "PhotoPage.c" +#line 10451 "PhotoPage.c" GdkEventButton* _tmp4_ = NULL; gboolean _tmp5_ = FALSE; #line 1545 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -10459,17 +10461,17 @@ static gboolean editing_host_page_real_on_left_click (Page* base, GdkEventButton _tmp5_ = editing_host_page_on_double_click (self, _tmp4_); #line 1545 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = _tmp5_; -#line 10458 "PhotoPage.c" +#line 10460 "PhotoPage.c" } else { #line 1545 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = FALSE; -#line 10462 "PhotoPage.c" +#line 10464 "PhotoPage.c" } #line 1545 "/home/jens/Source/shotwell/src/PhotoPage.vala" result = _tmp2_; #line 1545 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 10468 "PhotoPage.c" +#line 10470 "PhotoPage.c" } #line 1547 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp6_ = event; @@ -10487,7 +10489,7 @@ static gboolean editing_host_page_real_on_left_click (Page* base, GdkEventButton _tmp11_ = self->priv->current_tool; #line 1552 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp11_ == NULL) { -#line 10486 "PhotoPage.c" +#line 10488 "PhotoPage.c" GtkScale* _tmp12_ = NULL; gdouble _tmp13_ = 0.0; #line 1552 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -10496,15 +10498,15 @@ static gboolean editing_host_page_real_on_left_click (Page* base, GdkEventButton _tmp13_ = gtk_range_get_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_range_get_type (), GtkRange)); #line 1552 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp10_ = _tmp13_ != 0.0; -#line 10495 "PhotoPage.c" +#line 10497 "PhotoPage.c" } else { #line 1552 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp10_ = FALSE; -#line 10499 "PhotoPage.c" +#line 10501 "PhotoPage.c" } #line 1552 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp10_) { -#line 10503 "PhotoPage.c" +#line 10505 "PhotoPage.c" GdkEventButton* _tmp14_ = NULL; gdouble _tmp15_ = 0.0; GdkEventButton* _tmp16_ = NULL; @@ -10529,7 +10531,7 @@ static gboolean editing_host_page_real_on_left_click (Page* base, GdkEventButton result = TRUE; #line 1558 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 10528 "PhotoPage.c" +#line 10530 "PhotoPage.c" } #line 1562 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp18_ = self->priv->current_tool; @@ -10539,7 +10541,7 @@ static gboolean editing_host_page_real_on_left_click (Page* base, GdkEventButton result = FALSE; #line 1563 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 10538 "PhotoPage.c" +#line 10540 "PhotoPage.c" } #line 1568 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp19_ = x; @@ -10553,7 +10555,7 @@ static gboolean editing_host_page_real_on_left_click (Page* base, GdkEventButton result = TRUE; #line 1569 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 10552 "PhotoPage.c" +#line 10554 "PhotoPage.c" } #line 1571 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp22_ = self->priv->current_tool; @@ -10567,7 +10569,7 @@ static gboolean editing_host_page_real_on_left_click (Page* base, GdkEventButton result = TRUE; #line 1574 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 10566 "PhotoPage.c" +#line 10568 "PhotoPage.c" } @@ -10593,7 +10595,7 @@ static gboolean editing_host_page_real_on_left_released (Page* base, GdkEventBut _tmp0_ = self->priv->is_pan_in_progress; #line 1578 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp0_) { -#line 10592 "PhotoPage.c" +#line 10594 "PhotoPage.c" GdkPoint viewport_center = {0}; ZoomState _tmp1_ = {0}; GdkPoint _tmp2_ = {0}; @@ -10680,7 +10682,7 @@ static gboolean editing_host_page_real_on_left_released (Page* base, GdkEventBut self->priv->is_pan_in_progress = FALSE; #line 1590 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_restore_cursor_hiding (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 10679 "PhotoPage.c" +#line 10681 "PhotoPage.c" } #line 1595 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp21_ = self->priv->current_tool; @@ -10690,7 +10692,7 @@ static gboolean editing_host_page_real_on_left_released (Page* base, GdkEventBut result = FALSE; #line 1596 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 10689 "PhotoPage.c" +#line 10691 "PhotoPage.c" } #line 1598 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp22_ = self->priv->current_tool; @@ -10716,7 +10718,7 @@ static gboolean editing_host_page_real_on_left_released (Page* base, GdkEventBut _g_object_unref0 (_tmp29_); #line 1600 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp30_) { -#line 10715 "PhotoPage.c" +#line 10717 "PhotoPage.c" EditingToolsEditingTool* _tmp31_ = NULL; EditingToolsEditingToolWindow* _tmp32_ = NULL; EditingToolsEditingToolWindow* _tmp33_ = NULL; @@ -10730,13 +10732,13 @@ static gboolean editing_host_page_real_on_left_released (Page* base, GdkEventBut gtk_window_present (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, gtk_window_get_type (), GtkWindow)); #line 1601 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp33_); -#line 10729 "PhotoPage.c" +#line 10731 "PhotoPage.c" } #line 1603 "/home/jens/Source/shotwell/src/PhotoPage.vala" result = FALSE; #line 1603 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 10735 "PhotoPage.c" +#line 10737 "PhotoPage.c" } @@ -10757,7 +10759,7 @@ static gboolean editing_host_page_real_on_right_click (Page* base, GdkEventButto result = _tmp1_; #line 1607 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 10756 "PhotoPage.c" +#line 10758 "PhotoPage.c" } @@ -10766,7 +10768,7 @@ static gboolean _editing_host_page_on_fetch_original_gsource_func (gpointer self result = editing_host_page_on_fetch_original ((EditingHostPage*) self); #line 1619 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 10765 "PhotoPage.c" +#line 10767 "PhotoPage.c" } @@ -10806,7 +10808,7 @@ static void editing_host_page_on_photos_altered (EditingHostPage* self, GeeMap* if (_tmp4_) { #line 1612 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 10805 "PhotoPage.c" +#line 10807 "PhotoPage.c" } #line 1614 "/home/jens/Source/shotwell/src/PhotoPage.vala" self->priv->pixbuf_dirty = TRUE; @@ -10824,7 +10826,7 @@ static void editing_host_page_on_photos_altered (EditingHostPage* self, GeeMap* if (_tmp8_) { #line 1619 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, _editing_host_page_on_fetch_original_gsource_func, g_object_ref (self), g_object_unref); -#line 10823 "PhotoPage.c" +#line 10825 "PhotoPage.c" } #line 1621 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp9_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); @@ -10844,7 +10846,7 @@ static void editing_host_page_on_photos_altered (EditingHostPage* self, GeeMap* _data_collection_unref0 (_tmp13_); #line 1621 "/home/jens/Source/shotwell/src/PhotoPage.vala" _data_collection_unref0 (_tmp10_); -#line 10843 "PhotoPage.c" +#line 10845 "PhotoPage.c" } @@ -10853,7 +10855,7 @@ static void editing_host_page_on_view_contents_ordering_altered (EditingHostPage g_return_if_fail (IS_EDITING_HOST_PAGE (self)); #line 1625 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_refresh_caches (self, "on_view_contents_ordering_altered"); -#line 10852 "PhotoPage.c" +#line 10854 "PhotoPage.c" } @@ -10866,7 +10868,7 @@ static gboolean editing_host_page_on_fetch_original (EditingHostPage* self) { _tmp0_ = editing_host_page_has_photo (self); #line 1629 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp0_) { -#line 10865 "PhotoPage.c" +#line 10867 "PhotoPage.c" PixbufCache* _tmp1_ = NULL; Photo* _tmp2_ = NULL; Photo* _tmp3_ = NULL; @@ -10880,13 +10882,13 @@ static gboolean editing_host_page_on_fetch_original (EditingHostPage* self) { pixbuf_cache_prefetch (_tmp1_, _tmp3_, BACKGROUND_JOB_JOB_PRIORITY_LOW, FALSE); #line 1630 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp3_); -#line 10879 "PhotoPage.c" +#line 10881 "PhotoPage.c" } #line 1632 "/home/jens/Source/shotwell/src/PhotoPage.vala" result = FALSE; #line 1632 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 10885 "PhotoPage.c" +#line 10887 "PhotoPage.c" } @@ -10937,7 +10939,7 @@ static gboolean editing_host_page_is_panning_possible (EditingHostPage* self) { _tmp10_ = _tmp9_.width; #line 1643 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp8_ >= _tmp10_) { -#line 10936 "PhotoPage.c" +#line 10938 "PhotoPage.c" Dimensions _tmp11_ = {0}; gint _tmp12_ = 0; Dimensions _tmp13_ = {0}; @@ -10952,17 +10954,17 @@ static gboolean editing_host_page_is_panning_possible (EditingHostPage* self) { _tmp14_ = _tmp13_.height; #line 1643 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp6_ = _tmp12_ >= _tmp14_; -#line 10951 "PhotoPage.c" +#line 10953 "PhotoPage.c" } else { #line 1643 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp6_ = FALSE; -#line 10955 "PhotoPage.c" +#line 10957 "PhotoPage.c" } #line 1643 "/home/jens/Source/shotwell/src/PhotoPage.vala" result = !_tmp6_; #line 1643 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 10961 "PhotoPage.c" +#line 10963 "PhotoPage.c" } @@ -10976,11 +10978,11 @@ static void editing_host_page_update_cursor_for_zoom_context (EditingHostPage* s if (_tmp0_) { #line 1648 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_page_cursor (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), GDK_FLEUR); -#line 10975 "PhotoPage.c" +#line 10977 "PhotoPage.c" } else { #line 1650 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_page_cursor (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), GDK_LEFT_PTR); -#line 10979 "PhotoPage.c" +#line 10981 "PhotoPage.c" } } @@ -11003,7 +11005,7 @@ static gboolean editing_host_page_real_on_motion (Page* base, GdkEventMotion* ev _tmp0_ = self->priv->current_tool; #line 1655 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp0_ != NULL) { -#line 11002 "PhotoPage.c" +#line 11004 "PhotoPage.c" EditingToolsEditingTool* _tmp1_ = NULL; gint _tmp2_ = 0; gint _tmp3_ = 0; @@ -11027,7 +11029,7 @@ static gboolean editing_host_page_real_on_motion (Page* base, GdkEventMotion* ev result = TRUE; #line 1661 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 11026 "PhotoPage.c" +#line 11028 "PhotoPage.c" } #line 1664 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_update_cursor_for_zoom_context (self); @@ -11035,7 +11037,7 @@ static gboolean editing_host_page_real_on_motion (Page* base, GdkEventMotion* ev _tmp6_ = self->priv->is_pan_in_progress; #line 1666 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp6_) { -#line 11034 "PhotoPage.c" +#line 11036 "PhotoPage.c" gint delta_x = 0; GdkEventMotion* _tmp7_ = NULL; gdouble _tmp8_ = 0.0; @@ -11109,7 +11111,7 @@ static gboolean editing_host_page_real_on_motion (Page* base, GdkEventMotion* ev result = TRUE; #line 1677 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 11108 "PhotoPage.c" +#line 11110 "PhotoPage.c" } #line 1680 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp24_ = event; @@ -11125,7 +11127,7 @@ static gboolean editing_host_page_real_on_motion (Page* base, GdkEventMotion* ev result = _tmp28_; #line 1680 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 11124 "PhotoPage.c" +#line 11126 "PhotoPage.c" } @@ -11140,7 +11142,7 @@ static gboolean editing_host_page_real_on_leave_notify_event (Page* base) { _tmp0_ = self->priv->current_tool; #line 1684 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp0_ != NULL) { -#line 11139 "PhotoPage.c" +#line 11141 "PhotoPage.c" EditingToolsEditingTool* _tmp1_ = NULL; gboolean _tmp2_ = FALSE; #line 1685 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -11151,7 +11153,7 @@ static gboolean editing_host_page_real_on_leave_notify_event (Page* base) { result = _tmp2_; #line 1685 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 11150 "PhotoPage.c" +#line 11152 "PhotoPage.c" } #line 1687 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = PAGE_CLASS (editing_host_page_parent_class)->on_leave_notify_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page)); @@ -11159,7 +11161,7 @@ static gboolean editing_host_page_real_on_leave_notify_event (Page* base) { result = _tmp3_; #line 1687 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 11158 "PhotoPage.c" +#line 11160 "PhotoPage.c" } @@ -11171,7 +11173,7 @@ static void editing_host_page_track_tool_window (EditingHostPage* self) { _tmp0_ = self->priv->current_tool; #line 1692 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp0_ != NULL) { -#line 11170 "PhotoPage.c" +#line 11172 "PhotoPage.c" EditingToolsEditingToolWindow* tool_window = NULL; EditingToolsEditingTool* _tmp1_ = NULL; EditingToolsEditingToolWindow* _tmp2_ = NULL; @@ -11187,7 +11189,7 @@ static void editing_host_page_track_tool_window (EditingHostPage* self) { _tmp4_ = tool_window; #line 1694 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp4_ != NULL) { -#line 11186 "PhotoPage.c" +#line 11188 "PhotoPage.c" EditingToolsEditingToolWindow* _tmp5_ = NULL; gboolean _tmp6_ = FALSE; #line 1694 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -11196,21 +11198,21 @@ static void editing_host_page_track_tool_window (EditingHostPage* self) { _tmp6_ = editing_tools_editing_tool_window_has_user_moved (_tmp5_); #line 1694 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = !_tmp6_; -#line 11195 "PhotoPage.c" +#line 11197 "PhotoPage.c" } else { #line 1694 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = FALSE; -#line 11199 "PhotoPage.c" +#line 11201 "PhotoPage.c" } #line 1694 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp3_) { #line 1695 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_place_tool_window (self); -#line 11205 "PhotoPage.c" +#line 11207 "PhotoPage.c" } #line 1692 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (tool_window); -#line 11209 "PhotoPage.c" +#line 11211 "PhotoPage.c" } } @@ -11228,7 +11230,7 @@ static void editing_host_page_real_on_move (Page* base, GdkRectangle* rect) { _tmp0_ = *rect; #line 1702 "/home/jens/Source/shotwell/src/PhotoPage.vala" PAGE_CLASS (editing_host_page_parent_class)->on_move (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page), &_tmp0_); -#line 11227 "PhotoPage.c" +#line 11229 "PhotoPage.c" } @@ -11248,7 +11250,7 @@ static void editing_host_page_real_on_move_finished (Page* base, GdkRectangle* r _tmp1_ = *rect; #line 1708 "/home/jens/Source/shotwell/src/PhotoPage.vala" PAGE_CLASS (editing_host_page_parent_class)->on_move_finished (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page), &_tmp1_); -#line 11247 "PhotoPage.c" +#line 11249 "PhotoPage.c" } @@ -11287,7 +11289,7 @@ static gboolean editing_host_page_on_keyboard_pan_event (EditingHostPage* self, static GQuark _tmp6_label10 = 0; #line 1715 "/home/jens/Source/shotwell/src/PhotoPage.vala" static GQuark _tmp6_label11 = 0; -#line 11286 "PhotoPage.c" +#line 11288 "PhotoPage.c" ZoomState new_zoom_state = {0}; ZoomState _tmp12_ = {0}; GdkPoint _tmp13_ = {0}; @@ -11318,7 +11320,7 @@ static gboolean editing_host_page_on_keyboard_pan_event (EditingHostPage* self, if (((_tmp7_ == ((0 != _tmp6_label0) ? _tmp6_label0 : (_tmp6_label0 = g_quark_from_static_string ("Left")))) || (_tmp7_ == ((0 != _tmp6_label1) ? _tmp6_label1 : (_tmp6_label1 = g_quark_from_static_string ("KP_Left"))))) || (_tmp7_ == ((0 != _tmp6_label2) ? _tmp6_label2 : (_tmp6_label2 = g_quark_from_static_string ("KP_4"))))) { #line 1715 "/home/jens/Source/shotwell/src/PhotoPage.vala" switch (0) { -#line 11317 "PhotoPage.c" +#line 11319 "PhotoPage.c" default: { gint _tmp8_ = 0; @@ -11328,13 +11330,13 @@ static gboolean editing_host_page_on_keyboard_pan_event (EditingHostPage* self, viewport_center.x = _tmp8_ - EDITING_HOST_PAGE_PAN_INCREMENT_SIZE; #line 1720 "/home/jens/Source/shotwell/src/PhotoPage.vala" break; -#line 11327 "PhotoPage.c" +#line 11329 "PhotoPage.c" } } } else if (((_tmp7_ == ((0 != _tmp6_label3) ? _tmp6_label3 : (_tmp6_label3 = g_quark_from_static_string ("Right")))) || (_tmp7_ == ((0 != _tmp6_label4) ? _tmp6_label4 : (_tmp6_label4 = g_quark_from_static_string ("KP_Right"))))) || (_tmp7_ == ((0 != _tmp6_label5) ? _tmp6_label5 : (_tmp6_label5 = g_quark_from_static_string ("KP_6"))))) { #line 1715 "/home/jens/Source/shotwell/src/PhotoPage.vala" switch (0) { -#line 11333 "PhotoPage.c" +#line 11335 "PhotoPage.c" default: { gint _tmp9_ = 0; @@ -11344,13 +11346,13 @@ static gboolean editing_host_page_on_keyboard_pan_event (EditingHostPage* self, viewport_center.x = _tmp9_ + EDITING_HOST_PAGE_PAN_INCREMENT_SIZE; #line 1726 "/home/jens/Source/shotwell/src/PhotoPage.vala" break; -#line 11343 "PhotoPage.c" +#line 11345 "PhotoPage.c" } } } else if (((_tmp7_ == ((0 != _tmp6_label6) ? _tmp6_label6 : (_tmp6_label6 = g_quark_from_static_string ("Down")))) || (_tmp7_ == ((0 != _tmp6_label7) ? _tmp6_label7 : (_tmp6_label7 = g_quark_from_static_string ("KP_Down"))))) || (_tmp7_ == ((0 != _tmp6_label8) ? _tmp6_label8 : (_tmp6_label8 = g_quark_from_static_string ("KP_2"))))) { #line 1715 "/home/jens/Source/shotwell/src/PhotoPage.vala" switch (0) { -#line 11349 "PhotoPage.c" +#line 11351 "PhotoPage.c" default: { gint _tmp10_ = 0; @@ -11360,13 +11362,13 @@ static gboolean editing_host_page_on_keyboard_pan_event (EditingHostPage* self, viewport_center.y = _tmp10_ + EDITING_HOST_PAGE_PAN_INCREMENT_SIZE; #line 1732 "/home/jens/Source/shotwell/src/PhotoPage.vala" break; -#line 11359 "PhotoPage.c" +#line 11361 "PhotoPage.c" } } } else if (((_tmp7_ == ((0 != _tmp6_label9) ? _tmp6_label9 : (_tmp6_label9 = g_quark_from_static_string ("Up")))) || (_tmp7_ == ((0 != _tmp6_label10) ? _tmp6_label10 : (_tmp6_label10 = g_quark_from_static_string ("KP_Up"))))) || (_tmp7_ == ((0 != _tmp6_label11) ? _tmp6_label11 : (_tmp6_label11 = g_quark_from_static_string ("KP_8"))))) { #line 1715 "/home/jens/Source/shotwell/src/PhotoPage.vala" switch (0) { -#line 11365 "PhotoPage.c" +#line 11367 "PhotoPage.c" default: { gint _tmp11_ = 0; @@ -11376,20 +11378,20 @@ static gboolean editing_host_page_on_keyboard_pan_event (EditingHostPage* self, viewport_center.y = _tmp11_ - EDITING_HOST_PAGE_PAN_INCREMENT_SIZE; #line 1738 "/home/jens/Source/shotwell/src/PhotoPage.vala" break; -#line 11375 "PhotoPage.c" +#line 11377 "PhotoPage.c" } } } else { #line 1715 "/home/jens/Source/shotwell/src/PhotoPage.vala" switch (0) { -#line 11381 "PhotoPage.c" +#line 11383 "PhotoPage.c" default: { #line 1741 "/home/jens/Source/shotwell/src/PhotoPage.vala" result = FALSE; #line 1741 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 11388 "PhotoPage.c" +#line 11390 "PhotoPage.c" } } } @@ -11409,7 +11411,7 @@ static gboolean editing_host_page_on_keyboard_pan_event (EditingHostPage* self, result = TRUE; #line 1748 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 11408 "PhotoPage.c" +#line 11410 "PhotoPage.c" } @@ -11442,7 +11444,7 @@ static gboolean editing_host_page_real_key_press_event (GtkWidget* base, GdkEven static GQuark _tmp13_label6 = 0; #line 1772 "/home/jens/Source/shotwell/src/PhotoPage.vala" static GQuark _tmp13_label7 = 0; -#line 11441 "PhotoPage.c" +#line 11443 "PhotoPage.c" gboolean _tmp15_ = FALSE; gboolean _tmp16_ = FALSE; #line 1751 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -11453,7 +11455,7 @@ static gboolean editing_host_page_real_key_press_event (GtkWidget* base, GdkEven _tmp0_ = self->priv->current_tool; #line 1753 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp0_ != NULL) { -#line 11452 "PhotoPage.c" +#line 11454 "PhotoPage.c" EditingToolsEditingTool* _tmp1_ = NULL; GdkEventKey* _tmp2_ = NULL; gboolean _tmp3_ = FALSE; @@ -11469,14 +11471,14 @@ static gboolean editing_host_page_real_key_press_event (GtkWidget* base, GdkEven result = TRUE; #line 1755 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 11468 "PhotoPage.c" +#line 11470 "PhotoPage.c" } } #line 1759 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = editing_host_page_is_panning_possible (self); #line 1759 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp4_) { -#line 11475 "PhotoPage.c" +#line 11477 "PhotoPage.c" GdkEventKey* _tmp5_ = NULL; gboolean _tmp6_ = FALSE; #line 1760 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -11489,7 +11491,7 @@ static gboolean editing_host_page_real_key_press_event (GtkWidget* base, GdkEven result = TRUE; #line 1761 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 11488 "PhotoPage.c" +#line 11490 "PhotoPage.c" } } #line 1767 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -11502,7 +11504,7 @@ static gboolean editing_host_page_real_key_press_event (GtkWidget* base, GdkEven result = TRUE; #line 1768 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 11501 "PhotoPage.c" +#line 11503 "PhotoPage.c" } #line 1770 "/home/jens/Source/shotwell/src/PhotoPage.vala" handled = TRUE; @@ -11520,51 +11522,51 @@ static gboolean editing_host_page_real_key_press_event (GtkWidget* base, GdkEven if ((_tmp14_ == ((0 != _tmp13_label0) ? _tmp13_label0 : (_tmp13_label0 = g_quark_from_static_string ("Down")))) || (_tmp14_ == ((0 != _tmp13_label1) ? _tmp13_label1 : (_tmp13_label1 = g_quark_from_static_string ("KP_Down"))))) { #line 1772 "/home/jens/Source/shotwell/src/PhotoPage.vala" switch (0) { -#line 11519 "PhotoPage.c" +#line 11521 "PhotoPage.c" default: { #line 1777 "/home/jens/Source/shotwell/src/PhotoPage.vala" break; -#line 11524 "PhotoPage.c" +#line 11526 "PhotoPage.c" } } } else if (((_tmp14_ == ((0 != _tmp13_label2) ? _tmp13_label2 : (_tmp13_label2 = g_quark_from_static_string ("equal")))) || (_tmp14_ == ((0 != _tmp13_label3) ? _tmp13_label3 : (_tmp13_label3 = g_quark_from_static_string ("plus"))))) || (_tmp14_ == ((0 != _tmp13_label4) ? _tmp13_label4 : (_tmp13_label4 = g_quark_from_static_string ("KP_Add"))))) { #line 1772 "/home/jens/Source/shotwell/src/PhotoPage.vala" switch (0) { -#line 11530 "PhotoPage.c" +#line 11532 "PhotoPage.c" default: { #line 1782 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "IncreaseSize"); #line 1783 "/home/jens/Source/shotwell/src/PhotoPage.vala" break; -#line 11537 "PhotoPage.c" +#line 11539 "PhotoPage.c" } } } else if (((_tmp14_ == ((0 != _tmp13_label5) ? _tmp13_label5 : (_tmp13_label5 = g_quark_from_static_string ("minus")))) || (_tmp14_ == ((0 != _tmp13_label6) ? _tmp13_label6 : (_tmp13_label6 = g_quark_from_static_string ("underscore"))))) || (_tmp14_ == ((0 != _tmp13_label7) ? _tmp13_label7 : (_tmp13_label7 = g_quark_from_static_string ("KP_Subtract"))))) { #line 1772 "/home/jens/Source/shotwell/src/PhotoPage.vala" switch (0) { -#line 11543 "PhotoPage.c" +#line 11545 "PhotoPage.c" default: { #line 1789 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DecreaseSize"); #line 1790 "/home/jens/Source/shotwell/src/PhotoPage.vala" break; -#line 11550 "PhotoPage.c" +#line 11552 "PhotoPage.c" } } } else { #line 1772 "/home/jens/Source/shotwell/src/PhotoPage.vala" switch (0) { -#line 11556 "PhotoPage.c" +#line 11558 "PhotoPage.c" default: { #line 1793 "/home/jens/Source/shotwell/src/PhotoPage.vala" handled = FALSE; #line 1794 "/home/jens/Source/shotwell/src/PhotoPage.vala" break; -#line 11563 "PhotoPage.c" +#line 11565 "PhotoPage.c" } } } @@ -11576,11 +11578,11 @@ static gboolean editing_host_page_real_key_press_event (GtkWidget* base, GdkEven result = TRUE; #line 1798 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 11575 "PhotoPage.c" +#line 11577 "PhotoPage.c" } #line 1800 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (GTK_WIDGET_CLASS (editing_host_page_parent_class)->key_press_event != NULL) { -#line 11579 "PhotoPage.c" +#line 11581 "PhotoPage.c" GdkEventKey* _tmp17_ = NULL; gboolean _tmp18_ = FALSE; #line 1800 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -11589,17 +11591,17 @@ static gboolean editing_host_page_real_key_press_event (GtkWidget* base, GdkEven _tmp18_ = GTK_WIDGET_CLASS (editing_host_page_parent_class)->key_press_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), gtk_widget_get_type (), GtkWidget), _tmp17_); #line 1800 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp16_ = _tmp18_; -#line 11588 "PhotoPage.c" +#line 11590 "PhotoPage.c" } else { #line 1800 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp16_ = TRUE; -#line 11592 "PhotoPage.c" +#line 11594 "PhotoPage.c" } #line 1800 "/home/jens/Source/shotwell/src/PhotoPage.vala" result = _tmp16_; #line 1800 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 11598 "PhotoPage.c" +#line 11600 "PhotoPage.c" } @@ -11616,7 +11618,7 @@ static void editing_host_page_real_new_surface (SinglePhotoPage* base, cairo_t* _tmp0_ = self->priv->current_tool; #line 1805 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp0_ != NULL) { -#line 11615 "PhotoPage.c" +#line 11617 "PhotoPage.c" EditingToolsEditingTool* _tmp1_ = NULL; EditingToolsPhotoCanvas* _tmp2_ = NULL; cairo_t* _tmp3_ = NULL; @@ -11631,7 +11633,7 @@ static void editing_host_page_real_new_surface (SinglePhotoPage* base, cairo_t* _tmp4_ = *dim; #line 1806 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_tools_photo_canvas_set_surface (_tmp2_, _tmp3_, &_tmp4_); -#line 11630 "PhotoPage.c" +#line 11632 "PhotoPage.c" } } @@ -11650,21 +11652,21 @@ static void editing_host_page_real_updated_pixbuf (SinglePhotoPage* base, GdkPix _tmp1_ = self->priv->current_tool; #line 1813 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp1_ != NULL) { -#line 11649 "PhotoPage.c" +#line 11651 "PhotoPage.c" SinglePhotoPageUpdateReason _tmp2_ = 0; #line 1813 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = reason; #line 1813 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = _tmp2_ != SINGLE_PHOTO_PAGE_UPDATE_REASON_QUALITY_IMPROVEMENT; -#line 11655 "PhotoPage.c" +#line 11657 "PhotoPage.c" } else { #line 1813 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = FALSE; -#line 11659 "PhotoPage.c" +#line 11661 "PhotoPage.c" } #line 1813 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp0_) { -#line 11663 "PhotoPage.c" +#line 11665 "PhotoPage.c" EditingToolsEditingTool* _tmp3_ = NULL; EditingToolsPhotoCanvas* _tmp4_ = NULL; Dimensions _tmp5_ = {0}; @@ -11686,7 +11688,7 @@ static void editing_host_page_real_updated_pixbuf (SinglePhotoPage* base, GdkPix _g_object_unref0 (self->priv->cancel_editing_pixbuf); #line 1815 "/home/jens/Source/shotwell/src/PhotoPage.vala" self->priv->cancel_editing_pixbuf = NULL; -#line 11685 "PhotoPage.c" +#line 11687 "PhotoPage.c" } } @@ -11697,7 +11699,7 @@ static GdkPixbuf* editing_host_page_real_get_bottom_left_trinket (EditingHostPag result = NULL; #line 1820 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 11696 "PhotoPage.c" +#line 11698 "PhotoPage.c" } @@ -11706,7 +11708,7 @@ GdkPixbuf* editing_host_page_get_bottom_left_trinket (EditingHostPage* self, gin g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), NULL); #line 1819 "/home/jens/Source/shotwell/src/PhotoPage.vala" return EDITING_HOST_PAGE_GET_CLASS (self)->get_bottom_left_trinket (self, scale); -#line 11705 "PhotoPage.c" +#line 11707 "PhotoPage.c" } @@ -11716,7 +11718,7 @@ static GdkPixbuf* editing_host_page_real_get_top_left_trinket (EditingHostPage* result = NULL; #line 1824 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 11715 "PhotoPage.c" +#line 11717 "PhotoPage.c" } @@ -11725,7 +11727,7 @@ GdkPixbuf* editing_host_page_get_top_left_trinket (EditingHostPage* self, gint s g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), NULL); #line 1823 "/home/jens/Source/shotwell/src/PhotoPage.vala" return EDITING_HOST_PAGE_GET_CLASS (self)->get_top_left_trinket (self, scale); -#line 11724 "PhotoPage.c" +#line 11726 "PhotoPage.c" } @@ -11735,7 +11737,7 @@ static GdkPixbuf* editing_host_page_real_get_top_right_trinket (EditingHostPage* result = NULL; #line 1828 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 11734 "PhotoPage.c" +#line 11736 "PhotoPage.c" } @@ -11744,7 +11746,7 @@ GdkPixbuf* editing_host_page_get_top_right_trinket (EditingHostPage* self, gint g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), NULL); #line 1827 "/home/jens/Source/shotwell/src/PhotoPage.vala" return EDITING_HOST_PAGE_GET_CLASS (self)->get_top_right_trinket (self, scale); -#line 11743 "PhotoPage.c" +#line 11745 "PhotoPage.c" } @@ -11754,7 +11756,7 @@ static GdkPixbuf* editing_host_page_real_get_bottom_right_trinket (EditingHostPa result = NULL; #line 1832 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 11753 "PhotoPage.c" +#line 11755 "PhotoPage.c" } @@ -11763,7 +11765,7 @@ GdkPixbuf* editing_host_page_get_bottom_right_trinket (EditingHostPage* self, gi g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), NULL); #line 1831 "/home/jens/Source/shotwell/src/PhotoPage.vala" return EDITING_HOST_PAGE_GET_CLASS (self)->get_bottom_right_trinket (self, scale); -#line 11762 "PhotoPage.c" +#line 11764 "PhotoPage.c" } @@ -11797,7 +11799,7 @@ static void editing_host_page_real_paint (SinglePhotoPage* base, cairo_t* ctx, D _tmp0_ = self->priv->current_tool; #line 1836 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp0_ != NULL) { -#line 11796 "PhotoPage.c" +#line 11798 "PhotoPage.c" EditingToolsEditingTool* _tmp1_ = NULL; cairo_t* _tmp2_ = NULL; #line 1837 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -11808,27 +11810,27 @@ static void editing_host_page_real_paint (SinglePhotoPage* base, cairo_t* ctx, D editing_tools_editing_tool_paint (_tmp1_, _tmp2_); #line 1839 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 11807 "PhotoPage.c" +#line 11809 "PhotoPage.c" } #line 1842 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = self->priv->photo_missing; #line 1842 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp4_) { -#line 11813 "PhotoPage.c" +#line 11815 "PhotoPage.c" gboolean _tmp5_ = FALSE; #line 1842 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp5_ = editing_host_page_has_photo (self); #line 1842 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = _tmp5_; -#line 11819 "PhotoPage.c" +#line 11821 "PhotoPage.c" } else { #line 1842 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = FALSE; -#line 11823 "PhotoPage.c" +#line 11825 "PhotoPage.c" } #line 1842 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp3_) { -#line 11827 "PhotoPage.c" +#line 11829 "PhotoPage.c" cairo_t* _tmp6_ = NULL; cairo_t* _tmp7_ = NULL; Dimensions _tmp8_ = {0}; @@ -11900,7 +11902,7 @@ static void editing_host_page_real_paint (SinglePhotoPage* base, cairo_t* ctx, D _g_object_unref0 (_tmp16_); #line 1848 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 11899 "PhotoPage.c" +#line 11901 "PhotoPage.c" } #line 1851 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp23_ = ctx; @@ -11916,7 +11918,7 @@ static void editing_host_page_real_paint (SinglePhotoPage* base, cairo_t* ctx, D if (!_tmp26_) { #line 1854 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 11915 "PhotoPage.c" +#line 11917 "PhotoPage.c" } #line 1857 "/home/jens/Source/shotwell/src/PhotoPage.vala" single_photo_page_get_scaled_pixbuf_position (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp27_); @@ -11930,7 +11932,7 @@ static void editing_host_page_real_paint (SinglePhotoPage* base, cairo_t* ctx, D _tmp29_ = trinket; #line 1860 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp29_ != NULL) { -#line 11929 "PhotoPage.c" +#line 11931 "PhotoPage.c" gint x = 0; GdkRectangle _tmp30_ = {0}; gint _tmp31_ = 0; @@ -12012,7 +12014,7 @@ static void editing_host_page_real_paint (SinglePhotoPage* base, cairo_t* ctx, D _tmp52_ = ctx; #line 1865 "/home/jens/Source/shotwell/src/PhotoPage.vala" cairo_fill (_tmp52_); -#line 12011 "PhotoPage.c" +#line 12013 "PhotoPage.c" } #line 1868 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp53_ = editing_host_page_get_top_left_trinket (self, EDITING_HOST_PAGE_TRINKET_SCALE); @@ -12024,7 +12026,7 @@ static void editing_host_page_real_paint (SinglePhotoPage* base, cairo_t* ctx, D _tmp54_ = trinket; #line 1869 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp54_ != NULL) { -#line 12023 "PhotoPage.c" +#line 12025 "PhotoPage.c" gint x = 0; GdkRectangle _tmp55_ = {0}; gint _tmp56_ = 0; @@ -12091,7 +12093,7 @@ static void editing_host_page_real_paint (SinglePhotoPage* base, cairo_t* ctx, D _tmp72_ = ctx; #line 1874 "/home/jens/Source/shotwell/src/PhotoPage.vala" cairo_fill (_tmp72_); -#line 12090 "PhotoPage.c" +#line 12092 "PhotoPage.c" } #line 1877 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp73_ = editing_host_page_get_top_right_trinket (self, EDITING_HOST_PAGE_TRINKET_SCALE); @@ -12103,7 +12105,7 @@ static void editing_host_page_real_paint (SinglePhotoPage* base, cairo_t* ctx, D _tmp74_ = trinket; #line 1878 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp74_ != NULL) { -#line 12102 "PhotoPage.c" +#line 12104 "PhotoPage.c" gint x = 0; GdkRectangle _tmp75_ = {0}; gint _tmp76_ = 0; @@ -12185,7 +12187,7 @@ static void editing_host_page_real_paint (SinglePhotoPage* base, cairo_t* ctx, D _tmp97_ = ctx; #line 1883 "/home/jens/Source/shotwell/src/PhotoPage.vala" cairo_fill (_tmp97_); -#line 12184 "PhotoPage.c" +#line 12186 "PhotoPage.c" } #line 1886 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp98_ = editing_host_page_get_bottom_right_trinket (self, EDITING_HOST_PAGE_TRINKET_SCALE); @@ -12197,7 +12199,7 @@ static void editing_host_page_real_paint (SinglePhotoPage* base, cairo_t* ctx, D _tmp99_ = trinket; #line 1887 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp99_ != NULL) { -#line 12196 "PhotoPage.c" +#line 12198 "PhotoPage.c" gint x = 0; GdkRectangle _tmp100_ = {0}; gint _tmp101_ = 0; @@ -12294,11 +12296,11 @@ static void editing_host_page_real_paint (SinglePhotoPage* base, cairo_t* ctx, D _tmp127_ = ctx; #line 1892 "/home/jens/Source/shotwell/src/PhotoPage.vala" cairo_fill (_tmp127_); -#line 12293 "PhotoPage.c" +#line 12295 "PhotoPage.c" } #line 1835 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (trinket); -#line 12297 "PhotoPage.c" +#line 12299 "PhotoPage.c" } @@ -12315,7 +12317,7 @@ gboolean editing_host_page_is_rotate_available (EditingHostPage* self, Photo* ph result = !_tmp0_; #line 1897 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 12314 "PhotoPage.c" +#line 12316 "PhotoPage.c" } @@ -12351,7 +12353,7 @@ static void editing_host_page_rotate (EditingHostPage* self, Rotation rotation, if (!_tmp1_) { #line 1906 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 12350 "PhotoPage.c" +#line 12352 "PhotoPage.c" } #line 1908 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = editing_host_page_get_photo (self); @@ -12383,7 +12385,7 @@ static void editing_host_page_rotate (EditingHostPage* self, Rotation rotation, _command_manager_unref0 (_tmp10_); #line 1900 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (command); -#line 12382 "PhotoPage.c" +#line 12384 "PhotoPage.c" } @@ -12392,7 +12394,7 @@ void editing_host_page_on_rotate_clockwise (EditingHostPage* self) { g_return_if_fail (IS_EDITING_HOST_PAGE (self)); #line 1914 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_rotate (self, ROTATION_CLOCKWISE, RESOURCES_ROTATE_CW_FULL_LABEL, RESOURCES_ROTATE_CW_TOOLTIP); -#line 12391 "PhotoPage.c" +#line 12393 "PhotoPage.c" } @@ -12401,7 +12403,7 @@ void editing_host_page_on_rotate_counterclockwise (EditingHostPage* self) { g_return_if_fail (IS_EDITING_HOST_PAGE (self)); #line 1918 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_rotate (self, ROTATION_COUNTERCLOCKWISE, RESOURCES_ROTATE_CCW_FULL_LABEL, RESOURCES_ROTATE_CCW_TOOLTIP); -#line 12400 "PhotoPage.c" +#line 12402 "PhotoPage.c" } @@ -12410,7 +12412,7 @@ void editing_host_page_on_flip_horizontally (EditingHostPage* self) { g_return_if_fail (IS_EDITING_HOST_PAGE (self)); #line 1922 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_rotate (self, ROTATION_MIRROR, RESOURCES_HFLIP_LABEL, ""); -#line 12409 "PhotoPage.c" +#line 12411 "PhotoPage.c" } @@ -12419,7 +12421,7 @@ void editing_host_page_on_flip_vertically (EditingHostPage* self) { g_return_if_fail (IS_EDITING_HOST_PAGE (self)); #line 1926 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_rotate (self, ROTATION_UPSIDE_DOWN, RESOURCES_VFLIP_LABEL, ""); -#line 12418 "PhotoPage.c" +#line 12420 "PhotoPage.c" } @@ -12447,7 +12449,7 @@ void editing_host_page_on_revert (EditingHostPage* self) { if (_tmp0_) { #line 1931 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 12446 "PhotoPage.c" +#line 12448 "PhotoPage.c" } #line 1933 "/home/jens/Source/shotwell/src/PhotoPage.vala" dimensions_init (&_tmp1_, 0, 0); @@ -12459,7 +12461,7 @@ void editing_host_page_on_revert (EditingHostPage* self) { if (!_tmp2_) { #line 1936 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 12458 "PhotoPage.c" +#line 12460 "PhotoPage.c" } #line 1938 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = editing_host_page_get_photo (self); @@ -12473,7 +12475,7 @@ void editing_host_page_on_revert (EditingHostPage* self) { _g_object_unref0 (_tmp4_); #line 1938 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp6_) { -#line 12472 "PhotoPage.c" +#line 12474 "PhotoPage.c" AppWindow* _tmp7_ = NULL; AppWindow* _tmp8_ = NULL; ViewCollection* _tmp9_ = NULL; @@ -12510,7 +12512,7 @@ void editing_host_page_on_revert (EditingHostPage* self) { if (_tmp14_) { #line 1941 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 12509 "PhotoPage.c" +#line 12511 "PhotoPage.c" } #line 1944 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp15_ = editing_host_page_get_photo (self); @@ -12520,7 +12522,7 @@ void editing_host_page_on_revert (EditingHostPage* self) { photo_revert_to_master (_tmp16_, TRUE); #line 1944 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp16_); -#line 12519 "PhotoPage.c" +#line 12521 "PhotoPage.c" } #line 1947 "/home/jens/Source/shotwell/src/PhotoPage.vala" single_photo_page_cancel_zoom (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)); @@ -12550,7 +12552,7 @@ void editing_host_page_on_revert (EditingHostPage* self) { _command_manager_unref0 (_tmp22_); #line 1929 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (command); -#line 12549 "PhotoPage.c" +#line 12551 "PhotoPage.c" } @@ -12588,7 +12590,7 @@ void editing_host_page_on_edit_title (EditingHostPage* self) { _g_object_unref0 (_tmp1_); #line 1957 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp2_) { -#line 12587 "PhotoPage.c" +#line 12589 "PhotoPage.c" Photo* _tmp3_ = NULL; LibraryPhoto* _tmp4_ = NULL; #line 1958 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -12599,19 +12601,19 @@ void editing_host_page_on_edit_title (EditingHostPage* self) { if (_tmp4_ == NULL) { #line 1958 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp3_); -#line 12598 "PhotoPage.c" +#line 12600 "PhotoPage.c" } #line 1958 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (item); #line 1958 "/home/jens/Source/shotwell/src/PhotoPage.vala" item = _tmp4_; -#line 12604 "PhotoPage.c" +#line 12606 "PhotoPage.c" } else { #line 1960 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (item); #line 1960 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 12610 "PhotoPage.c" +#line 12612 "PhotoPage.c" } #line 1962 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp5_ = item; @@ -12645,7 +12647,7 @@ void editing_host_page_on_edit_title (EditingHostPage* self) { _g_object_unref0 (item); #line 1965 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 12644 "PhotoPage.c" +#line 12646 "PhotoPage.c" } #line 1967 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp13_ = item; @@ -12673,7 +12675,7 @@ void editing_host_page_on_edit_title (EditingHostPage* self) { _text_entry_dialog_mediator_unref0 (edit_title_dialog); #line 1955 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (item); -#line 12672 "PhotoPage.c" +#line 12674 "PhotoPage.c" } @@ -12711,7 +12713,7 @@ void editing_host_page_on_edit_comment (EditingHostPage* self) { _g_object_unref0 (_tmp1_); #line 1973 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp2_) { -#line 12710 "PhotoPage.c" +#line 12712 "PhotoPage.c" Photo* _tmp3_ = NULL; LibraryPhoto* _tmp4_ = NULL; #line 1974 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -12722,19 +12724,19 @@ void editing_host_page_on_edit_comment (EditingHostPage* self) { if (_tmp4_ == NULL) { #line 1974 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp3_); -#line 12721 "PhotoPage.c" +#line 12723 "PhotoPage.c" } #line 1974 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (item); #line 1974 "/home/jens/Source/shotwell/src/PhotoPage.vala" item = _tmp4_; -#line 12727 "PhotoPage.c" +#line 12729 "PhotoPage.c" } else { #line 1976 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (item); #line 1976 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 12733 "PhotoPage.c" +#line 12735 "PhotoPage.c" } #line 1978 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp5_ = item; @@ -12768,7 +12770,7 @@ void editing_host_page_on_edit_comment (EditingHostPage* self) { _g_object_unref0 (item); #line 1981 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 12767 "PhotoPage.c" +#line 12769 "PhotoPage.c" } #line 1983 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp13_ = item; @@ -12796,7 +12798,7 @@ void editing_host_page_on_edit_comment (EditingHostPage* self) { _multi_text_entry_dialog_mediator_unref0 (edit_comment_dialog); #line 1971 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (item); -#line 12795 "PhotoPage.c" +#line 12797 "PhotoPage.c" } @@ -12823,7 +12825,7 @@ void editing_host_page_on_adjust_date_time (EditingHostPage* self) { if (!_tmp0_) { #line 1989 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 12822 "PhotoPage.c" +#line 12824 "PhotoPage.c" } #line 1991 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = editing_host_page_get_photo (self); @@ -12851,7 +12853,7 @@ void editing_host_page_on_adjust_date_time (EditingHostPage* self) { modify_originals = _tmp8_; #line 1995 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp9_) { -#line 12850 "PhotoPage.c" +#line 12852 "PhotoPage.c" ViewCollection* _tmp10_ = NULL; ViewCollection* _tmp11_ = NULL; GeeList* _tmp12_ = NULL; @@ -12906,11 +12908,11 @@ void editing_host_page_on_adjust_date_time (EditingHostPage* self) { _command_manager_unref0 (_tmp21_); #line 1995 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (command); -#line 12905 "PhotoPage.c" +#line 12907 "PhotoPage.c" } #line 1987 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (dialog); -#line 12909 "PhotoPage.c" +#line 12911 "PhotoPage.c" } @@ -12922,7 +12924,7 @@ void editing_host_page_on_set_background (EditingHostPage* self) { _tmp0_ = editing_host_page_has_photo (self); #line 2005 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp0_) { -#line 12921 "PhotoPage.c" +#line 12923 "PhotoPage.c" SetBackgroundPhotoDialog* dialog = NULL; SetBackgroundPhotoDialog* _tmp1_ = NULL; gboolean desktop = FALSE; @@ -12947,7 +12949,7 @@ void editing_host_page_on_set_background (EditingHostPage* self) { screensaver = _tmp4_; #line 2008 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp5_) { -#line 12946 "PhotoPage.c" +#line 12948 "PhotoPage.c" AppWindow* _tmp6_ = NULL; AppWindow* _tmp7_ = NULL; Photo* _tmp8_ = NULL; @@ -12984,11 +12986,11 @@ void editing_host_page_on_set_background (EditingHostPage* self) { page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_PAGE_WINDOW, PageWindow)); #line 2011 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp13_); -#line 12983 "PhotoPage.c" +#line 12985 "PhotoPage.c" } #line 2005 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (dialog); -#line 12987 "PhotoPage.c" +#line 12989 "PhotoPage.c" } } @@ -12996,7 +12998,7 @@ void editing_host_page_on_set_background (EditingHostPage* self) { static void _editing_host_page_on_rotate_counterclockwise_gtk_tool_button_clicked (GtkToolButton* _sender, gpointer self) { #line 2021 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_on_rotate_counterclockwise ((EditingHostPage*) self); -#line 12995 "PhotoPage.c" +#line 12997 "PhotoPage.c" } @@ -13042,7 +13044,7 @@ static gboolean editing_host_page_real_on_ctrl_pressed (Page* base, GdkEventKey* if (_tmp6_ == NULL) { #line 2024 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_swap_out_original (self); -#line 13041 "PhotoPage.c" +#line 13043 "PhotoPage.c" } #line 2026 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp7_ = event; @@ -13052,7 +13054,7 @@ static gboolean editing_host_page_real_on_ctrl_pressed (Page* base, GdkEventKey* result = _tmp8_; #line 2026 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 13051 "PhotoPage.c" +#line 13053 "PhotoPage.c" } @@ -13098,37 +13100,37 @@ static gboolean editing_host_page_real_on_ctrl_released (Page* base, GdkEventKey _tmp8_ = self->priv->current_tool; #line 2036 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp8_ == NULL) { -#line 13097 "PhotoPage.c" +#line 13099 "PhotoPage.c" gboolean _tmp9_ = FALSE; #line 2036 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp9_ = page_get_shift_pressed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 2036 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp7_ = _tmp9_; -#line 13103 "PhotoPage.c" +#line 13105 "PhotoPage.c" } else { #line 2036 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp7_ = FALSE; -#line 13107 "PhotoPage.c" +#line 13109 "PhotoPage.c" } #line 2036 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp7_) { -#line 13111 "PhotoPage.c" +#line 13113 "PhotoPage.c" gboolean _tmp10_ = FALSE; #line 2036 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp10_ = page_get_alt_pressed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 2036 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp6_ = !_tmp10_; -#line 13117 "PhotoPage.c" +#line 13119 "PhotoPage.c" } else { #line 2036 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp6_ = FALSE; -#line 13121 "PhotoPage.c" +#line 13123 "PhotoPage.c" } #line 2036 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp6_) { #line 2037 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_swap_in_original (self); -#line 13127 "PhotoPage.c" +#line 13129 "PhotoPage.c" } #line 2039 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp11_ = event; @@ -13138,7 +13140,7 @@ static gboolean editing_host_page_real_on_ctrl_released (Page* base, GdkEventKey result = _tmp12_; #line 2039 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 13137 "PhotoPage.c" +#line 13139 "PhotoPage.c" } @@ -13173,7 +13175,7 @@ void editing_host_page_on_tool_button_toggled (EditingHostPage* self, GtkToggleT _tmp3_ = _tmp2_; #line 2045 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (!_tmp3_) { -#line 13172 "PhotoPage.c" +#line 13174 "PhotoPage.c" GtkToggleToolButton* _tmp4_ = NULL; GtkToggleToolButton* _tmp5_ = NULL; #line 2045 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -13182,11 +13184,11 @@ void editing_host_page_on_tool_button_toggled (EditingHostPage* self, GtkToggleT _tmp5_ = toggle; #line 2045 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = _tmp4_ == _tmp5_; -#line 13181 "PhotoPage.c" +#line 13183 "PhotoPage.c" } else { #line 2045 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = FALSE; -#line 13185 "PhotoPage.c" +#line 13187 "PhotoPage.c" } #line 2045 "/home/jens/Source/shotwell/src/PhotoPage.vala" deactivating_only = _tmp0_; @@ -13202,7 +13204,7 @@ void editing_host_page_on_tool_button_toggled (EditingHostPage* self, GtkToggleT page_restore_cursor_hiding (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); #line 2050 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 13201 "PhotoPage.c" +#line 13203 "PhotoPage.c" } #line 2053 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_suspend_cursor_hiding (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); @@ -13246,7 +13248,7 @@ void editing_host_page_on_tool_button_toggled (EditingHostPage* self, GtkToggleT editing_host_page_activate_tool (self, _tmp17_); #line 2042 "/home/jens/Source/shotwell/src/PhotoPage.vala" _editing_tools_editing_tool_unref0 (tool); -#line 13245 "PhotoPage.c" +#line 13247 "PhotoPage.c" } @@ -13268,7 +13270,7 @@ static void editing_host_page_on_tool_activated (EditingHostPage* self) { _tmp2_ = self->priv->current_editing_toggle; #line 2071 "/home/jens/Source/shotwell/src/PhotoPage.vala" gtk_toggle_tool_button_set_active (_tmp2_, TRUE); -#line 13267 "PhotoPage.c" +#line 13269 "PhotoPage.c" } @@ -13290,7 +13292,7 @@ static void editing_host_page_on_tool_deactivated (EditingHostPage* self) { _tmp2_ = self->priv->current_editing_toggle; #line 2077 "/home/jens/Source/shotwell/src/PhotoPage.vala" gtk_toggle_tool_button_set_active (_tmp2_, FALSE); -#line 13289 "PhotoPage.c" +#line 13291 "PhotoPage.c" } @@ -13317,7 +13319,7 @@ static void editing_host_page_on_tool_applied (EditingHostPage* self, Command* c _tmp3_ = needs_improvement; #line 2082 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_deactivate_tool (self, _tmp0_, _tmp1_, &_tmp2_, _tmp3_); -#line 13316 "PhotoPage.c" +#line 13318 "PhotoPage.c" } @@ -13333,7 +13335,7 @@ static void editing_host_page_on_tool_cancelled (EditingHostPage* self) { single_photo_page_restore_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)); #line 2089 "/home/jens/Source/shotwell/src/PhotoPage.vala" single_photo_page_repaint (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), NULL); -#line 13332 "PhotoPage.c" +#line 13334 "PhotoPage.c" } @@ -13347,7 +13349,7 @@ static void editing_host_page_on_tool_aborted (EditingHostPage* self) { editing_host_page_deactivate_tool (self, NULL, NULL, &_tmp0_, FALSE); #line 2094 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_set_photo_missing (self, TRUE); -#line 13346 "PhotoPage.c" +#line 13348 "PhotoPage.c" } @@ -13365,7 +13367,7 @@ void editing_host_page_toggle_crop (EditingHostPage* self) { _tmp2_ = gtk_toggle_tool_button_get_active (_tmp1_); #line 2098 "/home/jens/Source/shotwell/src/PhotoPage.vala" gtk_toggle_tool_button_set_active (_tmp0_, !_tmp2_); -#line 13364 "PhotoPage.c" +#line 13366 "PhotoPage.c" } @@ -13383,7 +13385,7 @@ void editing_host_page_toggle_straighten (EditingHostPage* self) { _tmp2_ = gtk_toggle_tool_button_get_active (_tmp1_); #line 2102 "/home/jens/Source/shotwell/src/PhotoPage.vala" gtk_toggle_tool_button_set_active (_tmp0_, !_tmp2_); -#line 13382 "PhotoPage.c" +#line 13384 "PhotoPage.c" } @@ -13401,7 +13403,7 @@ void editing_host_page_toggle_redeye (EditingHostPage* self) { _tmp2_ = gtk_toggle_tool_button_get_active (_tmp1_); #line 2106 "/home/jens/Source/shotwell/src/PhotoPage.vala" gtk_toggle_tool_button_set_active (_tmp0_, !_tmp2_); -#line 13400 "PhotoPage.c" +#line 13402 "PhotoPage.c" } @@ -13419,7 +13421,7 @@ void editing_host_page_toggle_adjust (EditingHostPage* self) { _tmp2_ = gtk_toggle_tool_button_get_active (_tmp1_); #line 2110 "/home/jens/Source/shotwell/src/PhotoPage.vala" gtk_toggle_tool_button_set_active (_tmp0_, !_tmp2_); -#line 13418 "PhotoPage.c" +#line 13420 "PhotoPage.c" } @@ -13428,7 +13430,7 @@ static EditingToolsEditingTool* _editing_tools_straighten_tool_factory_editing_t result = editing_tools_straighten_tool_factory (); #line 2114 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 13427 "PhotoPage.c" +#line 13429 "PhotoPage.c" } @@ -13440,7 +13442,7 @@ static void editing_host_page_on_straighten_toggled (EditingHostPage* self) { _tmp0_ = self->priv->straighten_button; #line 2114 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_on_tool_button_toggled (self, _tmp0_, _editing_tools_straighten_tool_factory_editing_tools_editing_tool_factory); -#line 13439 "PhotoPage.c" +#line 13441 "PhotoPage.c" } @@ -13449,7 +13451,7 @@ static EditingToolsEditingTool* _editing_tools_crop_tool_factory_editing_tools_e result = editing_tools_crop_tool_factory (); #line 2118 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 13448 "PhotoPage.c" +#line 13450 "PhotoPage.c" } @@ -13461,7 +13463,7 @@ static void editing_host_page_on_crop_toggled (EditingHostPage* self) { _tmp0_ = self->priv->crop_button; #line 2118 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_on_tool_button_toggled (self, _tmp0_, _editing_tools_crop_tool_factory_editing_tools_editing_tool_factory); -#line 13460 "PhotoPage.c" +#line 13462 "PhotoPage.c" } @@ -13470,7 +13472,7 @@ static EditingToolsEditingTool* _editing_tools_redeye_tool_factory_editing_tools result = editing_tools_redeye_tool_factory (); #line 2122 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 13469 "PhotoPage.c" +#line 13471 "PhotoPage.c" } @@ -13482,7 +13484,7 @@ static void editing_host_page_on_redeye_toggled (EditingHostPage* self) { _tmp0_ = self->priv->redeye_button; #line 2122 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_on_tool_button_toggled (self, _tmp0_, _editing_tools_redeye_tool_factory_editing_tools_editing_tool_factory); -#line 13481 "PhotoPage.c" +#line 13483 "PhotoPage.c" } @@ -13491,7 +13493,7 @@ static EditingToolsEditingTool* _editing_tools_adjust_tool_factory_editing_tools result = editing_tools_adjust_tool_factory (); #line 2126 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 13490 "PhotoPage.c" +#line 13492 "PhotoPage.c" } @@ -13503,7 +13505,7 @@ static void editing_host_page_on_adjust_toggled (EditingHostPage* self) { _tmp0_ = self->priv->adjust_button; #line 2126 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_on_tool_button_toggled (self, _tmp0_, _editing_tools_adjust_tool_factory_editing_tools_editing_tool_factory); -#line 13502 "PhotoPage.c" +#line 13504 "PhotoPage.c" } @@ -13520,7 +13522,7 @@ gboolean editing_host_page_is_enhance_available (EditingHostPage* self, Photo* p result = !_tmp0_; #line 2130 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 13519 "PhotoPage.c" +#line 13521 "PhotoPage.c" } @@ -13545,7 +13547,7 @@ void editing_host_page_on_enhance (EditingHostPage* self) { _tmp0_ = self->priv->current_tool; #line 2137 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (!G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, EDITING_TOOLS_TYPE_ADJUST_TOOL)) { -#line 13544 "PhotoPage.c" +#line 13546 "PhotoPage.c" Dimensions _tmp1_ = {0}; #line 2138 "/home/jens/Source/shotwell/src/PhotoPage.vala" dimensions_init (&_tmp1_, 0, 0); @@ -13553,7 +13555,7 @@ void editing_host_page_on_enhance (EditingHostPage* self) { editing_host_page_deactivate_tool (self, NULL, NULL, &_tmp1_, FALSE); #line 2140 "/home/jens/Source/shotwell/src/PhotoPage.vala" single_photo_page_cancel_zoom (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)); -#line 13552 "PhotoPage.c" +#line 13554 "PhotoPage.c" } #line 2143 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = editing_host_page_has_photo (self); @@ -13561,7 +13563,7 @@ void editing_host_page_on_enhance (EditingHostPage* self) { if (!_tmp2_) { #line 2144 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 13560 "PhotoPage.c" +#line 13562 "PhotoPage.c" } #line 2146 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = self->priv->current_tool; @@ -13573,7 +13575,7 @@ void editing_host_page_on_enhance (EditingHostPage* self) { _tmp5_ = adjust_tool; #line 2147 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp5_ != NULL) { -#line 13572 "PhotoPage.c" +#line 13574 "PhotoPage.c" EditingToolsAdjustTool* _tmp6_ = NULL; #line 2148 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp6_ = adjust_tool; @@ -13583,7 +13585,7 @@ void editing_host_page_on_enhance (EditingHostPage* self) { _editing_tools_editing_tool_unref0 (adjust_tool); #line 2150 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 13582 "PhotoPage.c" +#line 13584 "PhotoPage.c" } #line 2153 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp7_ = editing_host_page_get_photo (self); @@ -13611,7 +13613,7 @@ void editing_host_page_on_enhance (EditingHostPage* self) { _g_object_unref0 (command); #line 2133 "/home/jens/Source/shotwell/src/PhotoPage.vala" _editing_tools_editing_tool_unref0 (adjust_tool); -#line 13610 "PhotoPage.c" +#line 13612 "PhotoPage.c" } @@ -13629,7 +13631,7 @@ void editing_host_page_on_copy_adjustments (EditingHostPage* self) { if (!_tmp0_) { #line 2159 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 13628 "PhotoPage.c" +#line 13630 "PhotoPage.c" } #line 2160 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = editing_host_page_get_photo (self); @@ -13647,7 +13649,7 @@ void editing_host_page_on_copy_adjustments (EditingHostPage* self) { _g_object_unref0 (_tmp2_); #line 2161 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "PasteColorAdjustments", TRUE); -#line 13646 "PhotoPage.c" +#line 13648 "PhotoPage.c" } @@ -13677,14 +13679,14 @@ void editing_host_page_on_paste_adjustments (EditingHostPage* self) { if (!_tmp2_) { #line 2166 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = TRUE; -#line 13676 "PhotoPage.c" +#line 13678 "PhotoPage.c" } else { PixelTransformationBundle* _tmp3_ = NULL; #line 2166 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = copied_adjustments; #line 2166 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = _tmp3_ == NULL; -#line 13683 "PhotoPage.c" +#line 13685 "PhotoPage.c" } #line 2166 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp1_) { @@ -13692,7 +13694,7 @@ void editing_host_page_on_paste_adjustments (EditingHostPage* self) { _pixel_transformation_bundle_unref0 (copied_adjustments); #line 2167 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 13691 "PhotoPage.c" +#line 13693 "PhotoPage.c" } #line 2169 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = editing_host_page_get_photo (self); @@ -13722,7 +13724,7 @@ void editing_host_page_on_paste_adjustments (EditingHostPage* self) { _g_object_unref0 (command); #line 2164 "/home/jens/Source/shotwell/src/PhotoPage.vala" _pixel_transformation_bundle_unref0 (copied_adjustments); -#line 13721 "PhotoPage.c" +#line 13723 "PhotoPage.c" } @@ -13777,7 +13779,7 @@ static void editing_host_page_place_tool_window (EditingHostPage* self) { if (_tmp0_ == NULL) { #line 2176 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 13776 "PhotoPage.c" +#line 13778 "PhotoPage.c" } #line 2178 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = self->priv->current_tool; @@ -13793,7 +13795,7 @@ static void editing_host_page_place_tool_window (EditingHostPage* self) { _g_object_unref0 (tool_window); #line 2180 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 13792 "PhotoPage.c" +#line 13794 "PhotoPage.c" } #line 2183 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = tool_window; @@ -13827,7 +13829,7 @@ static void editing_host_page_place_tool_window (EditingHostPage* self) { _g_free0 (_tmp12_); #line 2191 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp14_) { -#line 13826 "PhotoPage.c" +#line 13828 "PhotoPage.c" GeeHashMap* _tmp15_ = NULL; EditingToolsEditingTool* _tmp16_ = NULL; const gchar* _tmp17_ = NULL; @@ -13872,7 +13874,7 @@ static void editing_host_page_place_tool_window (EditingHostPage* self) { y = (gint) ((gintptr) _tmp26_); #line 2193 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_free0 (_tmp25_); -#line 13871 "PhotoPage.c" +#line 13873 "PhotoPage.c" } else { GtkWindow* _tmp27_ = NULL; GtkWindow* _tmp28_ = NULL; @@ -13895,7 +13897,7 @@ static void editing_host_page_place_tool_window (EditingHostPage* self) { _g_object_unref0 (_tmp28_); #line 2196 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp31_) { -#line 13894 "PhotoPage.c" +#line 13896 "PhotoPage.c" gint rx = 0; gint ry = 0; GtkWindow* _tmp32_ = NULL; @@ -13970,7 +13972,7 @@ static void editing_host_page_place_tool_window (EditingHostPage* self) { cheight = _tmp46_; #line 2214 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (G_TYPE_CHECK_INSTANCE_TYPE (self, TYPE_DIRECT_PHOTO_PAGE)) { -#line 13969 "PhotoPage.c" +#line 13971 "PhotoPage.c" gint _tmp48_ = 0; gint _tmp49_ = 0; gint _tmp50_ = 0; @@ -13988,7 +13990,7 @@ static void editing_host_page_place_tool_window (EditingHostPage* self) { _tmp52_ = _tmp51_.width; #line 2214 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp47_ = ((_tmp48_ + _tmp49_) + (_tmp50_ / 2)) - (_tmp52_ / 2); -#line 13987 "PhotoPage.c" +#line 13989 "PhotoPage.c" } else { gint _tmp53_ = 0; gint _tmp54_ = 0; @@ -14001,7 +14003,7 @@ static void editing_host_page_place_tool_window (EditingHostPage* self) { _tmp55_ = cwidth; #line 2215 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp47_ = (_tmp53_ + _tmp54_) + (_tmp55_ / 2); -#line 14000 "PhotoPage.c" +#line 14002 "PhotoPage.c" } #line 2214 "/home/jens/Source/shotwell/src/PhotoPage.vala" x = _tmp47_; @@ -14017,7 +14019,7 @@ static void editing_host_page_place_tool_window (EditingHostPage* self) { _tmp60_ = _tmp59_.height; #line 2216 "/home/jens/Source/shotwell/src/PhotoPage.vala" y = ((_tmp56_ + _tmp57_) + _tmp58_) - ((_tmp60_ / 4) * 3); -#line 14016 "PhotoPage.c" +#line 14018 "PhotoPage.c" } else { GtkWindow* _tmp61_ = NULL; GtkWindow* _tmp62_ = NULL; @@ -14096,13 +14098,13 @@ static void editing_host_page_place_tool_window (EditingHostPage* self) { _tmp79_ = self->priv->current_tool; #line 2231 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp79_, EDITING_TOOLS_TYPE_ADJUST_TOOL)) { -#line 14095 "PhotoPage.c" +#line 14097 "PhotoPage.c" gint _tmp80_ = 0; #line 2232 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp80_ = x; #line 2232 "/home/jens/Source/shotwell/src/PhotoPage.vala" x = (_tmp80_ * 3) / 4; -#line 14101 "PhotoPage.c" +#line 14103 "PhotoPage.c" } else { gint _tmp81_ = 0; GtkAllocation _tmp82_ = {0}; @@ -14115,11 +14117,11 @@ static void editing_host_page_place_tool_window (EditingHostPage* self) { _tmp83_ = _tmp82_.width; #line 2234 "/home/jens/Source/shotwell/src/PhotoPage.vala" x = (_tmp81_ - _tmp83_) / 2; -#line 14114 "PhotoPage.c" +#line 14116 "PhotoPage.c" } #line 2196 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (screen); -#line 14118 "PhotoPage.c" +#line 14120 "PhotoPage.c" } } #line 2240 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -14184,7 +14186,7 @@ static void editing_host_page_place_tool_window (EditingHostPage* self) { _g_object_unref0 (screen); #line 2174 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (tool_window); -#line 14183 "PhotoPage.c" +#line 14185 "PhotoPage.c" } @@ -14218,7 +14220,7 @@ static void editing_host_page_real_on_next_photo (SinglePhotoPage* base) { if (!_tmp1_) { #line 2253 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 14217 "PhotoPage.c" +#line 14219 "PhotoPage.c" } #line 2255 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = editing_host_page_get_photo (self); @@ -14256,7 +14258,7 @@ static void editing_host_page_real_on_next_photo (SinglePhotoPage* base) { _g_object_unref0 (current_photo); #line 2260 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 14255 "PhotoPage.c" +#line 14257 "PhotoPage.c" } #line 2263 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp11_ = current; @@ -14264,14 +14266,14 @@ static void editing_host_page_real_on_next_photo (SinglePhotoPage* base) { _tmp12_ = _g_object_ref0 (_tmp11_); #line 2263 "/home/jens/Source/shotwell/src/PhotoPage.vala" next = _tmp12_; -#line 14263 "PhotoPage.c" +#line 14265 "PhotoPage.c" { gboolean _tmp13_ = FALSE; #line 2264 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp13_ = TRUE; #line 2264 "/home/jens/Source/shotwell/src/PhotoPage.vala" while (TRUE) { -#line 14270 "PhotoPage.c" +#line 14272 "PhotoPage.c" ViewCollection* _tmp14_ = NULL; ViewCollection* _tmp15_ = NULL; DataView* _tmp16_ = NULL; @@ -14287,7 +14289,7 @@ static void editing_host_page_real_on_next_photo (SinglePhotoPage* base) { Photo* _tmp25_ = NULL; #line 2264 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (!_tmp13_) { -#line 14286 "PhotoPage.c" +#line 14288 "PhotoPage.c" } #line 2264 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp13_ = FALSE; @@ -14311,7 +14313,7 @@ static void editing_host_page_real_on_next_photo (SinglePhotoPage* base) { if (_tmp18_ == NULL) { #line 2267 "/home/jens/Source/shotwell/src/PhotoPage.vala" break; -#line 14310 "PhotoPage.c" +#line 14312 "PhotoPage.c" } #line 2269 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp19_ = next; @@ -14323,7 +14325,7 @@ static void editing_host_page_real_on_next_photo (SinglePhotoPage* base) { if (_tmp21_ == NULL) { #line 2269 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp20_); -#line 14322 "PhotoPage.c" +#line 14324 "PhotoPage.c" } #line 2269 "/home/jens/Source/shotwell/src/PhotoPage.vala" next_photo = _tmp21_; @@ -14335,7 +14337,7 @@ static void editing_host_page_real_on_next_photo (SinglePhotoPage* base) { _g_object_unref0 (next_photo); #line 2271 "/home/jens/Source/shotwell/src/PhotoPage.vala" continue; -#line 14334 "PhotoPage.c" +#line 14336 "PhotoPage.c" } #line 2273 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp23_ = next_photo; @@ -14347,7 +14349,7 @@ static void editing_host_page_real_on_next_photo (SinglePhotoPage* base) { _g_object_unref0 (next_photo); #line 2274 "/home/jens/Source/shotwell/src/PhotoPage.vala" break; -#line 14346 "PhotoPage.c" +#line 14348 "PhotoPage.c" } #line 2276 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp25_ = next_photo; @@ -14357,7 +14359,7 @@ static void editing_host_page_real_on_next_photo (SinglePhotoPage* base) { _g_object_unref0 (next_photo); #line 2278 "/home/jens/Source/shotwell/src/PhotoPage.vala" break; -#line 14356 "PhotoPage.c" +#line 14358 "PhotoPage.c" } } #line 2249 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -14366,7 +14368,7 @@ static void editing_host_page_real_on_next_photo (SinglePhotoPage* base) { _g_object_unref0 (current); #line 2249 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (current_photo); -#line 14365 "PhotoPage.c" +#line 14367 "PhotoPage.c" } @@ -14400,7 +14402,7 @@ static void editing_host_page_real_on_previous_photo (SinglePhotoPage* base) { if (!_tmp1_) { #line 2286 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 14399 "PhotoPage.c" +#line 14401 "PhotoPage.c" } #line 2288 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = editing_host_page_get_photo (self); @@ -14438,7 +14440,7 @@ static void editing_host_page_real_on_previous_photo (SinglePhotoPage* base) { _g_object_unref0 (current_photo); #line 2293 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 14437 "PhotoPage.c" +#line 14439 "PhotoPage.c" } #line 2296 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp11_ = current; @@ -14446,14 +14448,14 @@ static void editing_host_page_real_on_previous_photo (SinglePhotoPage* base) { _tmp12_ = _g_object_ref0 (_tmp11_); #line 2296 "/home/jens/Source/shotwell/src/PhotoPage.vala" previous = _tmp12_; -#line 14445 "PhotoPage.c" +#line 14447 "PhotoPage.c" { gboolean _tmp13_ = FALSE; #line 2297 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp13_ = TRUE; #line 2297 "/home/jens/Source/shotwell/src/PhotoPage.vala" while (TRUE) { -#line 14452 "PhotoPage.c" +#line 14454 "PhotoPage.c" ViewCollection* _tmp14_ = NULL; ViewCollection* _tmp15_ = NULL; DataView* _tmp16_ = NULL; @@ -14469,7 +14471,7 @@ static void editing_host_page_real_on_previous_photo (SinglePhotoPage* base) { Photo* _tmp25_ = NULL; #line 2297 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (!_tmp13_) { -#line 14468 "PhotoPage.c" +#line 14470 "PhotoPage.c" } #line 2297 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp13_ = FALSE; @@ -14493,7 +14495,7 @@ static void editing_host_page_real_on_previous_photo (SinglePhotoPage* base) { if (_tmp18_ == NULL) { #line 2300 "/home/jens/Source/shotwell/src/PhotoPage.vala" break; -#line 14492 "PhotoPage.c" +#line 14494 "PhotoPage.c" } #line 2302 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp19_ = previous; @@ -14505,7 +14507,7 @@ static void editing_host_page_real_on_previous_photo (SinglePhotoPage* base) { if (_tmp21_ == NULL) { #line 2302 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp20_); -#line 14504 "PhotoPage.c" +#line 14506 "PhotoPage.c" } #line 2302 "/home/jens/Source/shotwell/src/PhotoPage.vala" previous_photo = _tmp21_; @@ -14517,7 +14519,7 @@ static void editing_host_page_real_on_previous_photo (SinglePhotoPage* base) { _g_object_unref0 (previous_photo); #line 2304 "/home/jens/Source/shotwell/src/PhotoPage.vala" continue; -#line 14516 "PhotoPage.c" +#line 14518 "PhotoPage.c" } #line 2306 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp23_ = previous_photo; @@ -14529,7 +14531,7 @@ static void editing_host_page_real_on_previous_photo (SinglePhotoPage* base) { _g_object_unref0 (previous_photo); #line 2307 "/home/jens/Source/shotwell/src/PhotoPage.vala" break; -#line 14528 "PhotoPage.c" +#line 14530 "PhotoPage.c" } #line 2309 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp25_ = previous_photo; @@ -14539,7 +14541,7 @@ static void editing_host_page_real_on_previous_photo (SinglePhotoPage* base) { _g_object_unref0 (previous_photo); #line 2311 "/home/jens/Source/shotwell/src/PhotoPage.vala" break; -#line 14538 "PhotoPage.c" +#line 14540 "PhotoPage.c" } } #line 2282 "/home/jens/Source/shotwell/src/PhotoPage.vala" @@ -14548,7 +14550,7 @@ static void editing_host_page_real_on_previous_photo (SinglePhotoPage* base) { _g_object_unref0 (current); #line 2282 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (current_photo); -#line 14547 "PhotoPage.c" +#line 14549 "PhotoPage.c" } @@ -14563,7 +14565,7 @@ gboolean editing_host_page_has_current_tool (EditingHostPage* self) { result = _tmp0_ != NULL; #line 2316 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 14562 "PhotoPage.c" +#line 14564 "PhotoPage.c" } @@ -14574,7 +14576,7 @@ void editing_host_page_unset_view_collection (EditingHostPage* self) { _data_collection_unref0 (self->priv->parent_view); #line 2320 "/home/jens/Source/shotwell/src/PhotoPage.vala" self->priv->parent_view = NULL; -#line 14573 "PhotoPage.c" +#line 14575 "PhotoPage.c" } @@ -14661,14 +14663,14 @@ static EditingHostPageEditingHostCanvas* editing_host_page_editing_host_canvas_c self->priv->host_page = _tmp20_; #line 377 "/home/jens/Source/shotwell/src/PhotoPage.vala" return self; -#line 14660 "PhotoPage.c" +#line 14662 "PhotoPage.c" } static EditingHostPageEditingHostCanvas* editing_host_page_editing_host_canvas_new (EditingHostPage* host_page) { #line 377 "/home/jens/Source/shotwell/src/PhotoPage.vala" return editing_host_page_editing_host_canvas_construct (EDITING_HOST_PAGE_TYPE_EDITING_HOST_CANVAS, host_page); -#line 14667 "PhotoPage.c" +#line 14669 "PhotoPage.c" } @@ -14681,7 +14683,7 @@ static void editing_host_page_editing_host_canvas_real_repaint (EditingToolsPhot _tmp0_ = self->priv->host_page; #line 386 "/home/jens/Source/shotwell/src/PhotoPage.vala" single_photo_page_repaint (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), NULL); -#line 14680 "PhotoPage.c" +#line 14682 "PhotoPage.c" } @@ -14694,14 +14696,14 @@ static void editing_host_page_editing_host_canvas_class_init (EditingHostPageEdi g_type_class_add_private (klass, sizeof (EditingHostPageEditingHostCanvasPrivate)); #line 374 "/home/jens/Source/shotwell/src/PhotoPage.vala" ((EditingToolsPhotoCanvasClass *) klass)->repaint = editing_host_page_editing_host_canvas_real_repaint; -#line 14693 "PhotoPage.c" +#line 14695 "PhotoPage.c" } static void editing_host_page_editing_host_canvas_instance_init (EditingHostPageEditingHostCanvas * self) { #line 374 "/home/jens/Source/shotwell/src/PhotoPage.vala" self->priv = EDITING_HOST_PAGE_EDITING_HOST_CANVAS_GET_PRIVATE (self); -#line 14700 "PhotoPage.c" +#line 14702 "PhotoPage.c" } @@ -14713,7 +14715,7 @@ static void editing_host_page_editing_host_canvas_finalize (EditingToolsPhotoCan _g_object_unref0 (self->priv->host_page); #line 374 "/home/jens/Source/shotwell/src/PhotoPage.vala" EDITING_TOOLS_PHOTO_CANVAS_CLASS (editing_host_page_editing_host_canvas_parent_class)->finalize (obj); -#line 14712 "PhotoPage.c" +#line 14714 "PhotoPage.c" } @@ -14832,7 +14834,7 @@ static void editing_host_page_class_init (EditingHostPageClass * klass) { ((SinglePhotoPageClass *) klass)->on_previous_photo = editing_host_page_real_on_previous_photo; #line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" G_OBJECT_CLASS (klass)->finalize = editing_host_page_finalize; -#line 14831 "PhotoPage.c" +#line 14833 "PhotoPage.c" } @@ -14900,7 +14902,7 @@ static void editing_host_page_instance_init (EditingHostPage * self) { _tmp2_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, G_TYPE_INT, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); #line 415 "/home/jens/Source/shotwell/src/PhotoPage.vala" self->priv->last_locations = _tmp2_; -#line 14899 "PhotoPage.c" +#line 14901 "PhotoPage.c" } @@ -14984,7 +14986,7 @@ static void editing_host_page_finalize (GObject* obj) { _g_object_unref0 (self->priv->last_locations); #line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" G_OBJECT_CLASS (editing_host_page_parent_class)->finalize (obj); -#line 14983 "PhotoPage.c" +#line 14985 "PhotoPage.c" } @@ -15003,378 +15005,364 @@ GType editing_host_page_get_type (void) { static void _library_photo_page_on_photo_destroyed_source_collection_item_destroyed (SourceCollection* _sender, DataSource* source, gpointer self) { #line 2360 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_on_photo_destroyed ((LibraryPhotoPage*) self, source); -#line 15002 "PhotoPage.c" +#line 15004 "PhotoPage.c" } static void _library_photo_page_on_metadata_altered_data_collection_items_altered (DataCollection* _sender, GeeMap* items, gpointer self) { #line 2361 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_on_metadata_altered ((LibraryPhotoPage*) self, items); -#line 15009 "PhotoPage.c" +#line 15011 "PhotoPage.c" } static void _library_photo_page_on_external_app_changed_configuration_facade_external_app_changed (ConfigurationFacade* _sender, gpointer self) { #line 2362 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_on_external_app_changed ((LibraryPhotoPage*) self); -#line 15016 "PhotoPage.c" +#line 15018 "PhotoPage.c" } static void _library_photo_page_on_export_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_on_export ((LibraryPhotoPage*) self); -#line 15023 "PhotoPage.c" +#line 15025 "PhotoPage.c" } static void _library_photo_page_on_print_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_on_print ((LibraryPhotoPage*) self); -#line 15030 "PhotoPage.c" +#line 15032 "PhotoPage.c" } static void _library_photo_page_on_publish_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_on_publish ((LibraryPhotoPage*) self); -#line 15037 "PhotoPage.c" +#line 15039 "PhotoPage.c" } static void _library_photo_page_on_remove_from_library_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_on_remove_from_library ((LibraryPhotoPage*) self); -#line 15044 "PhotoPage.c" +#line 15046 "PhotoPage.c" } static void _library_photo_page_on_move_to_trash_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_on_move_to_trash ((LibraryPhotoPage*) self); -#line 15051 "PhotoPage.c" +#line 15053 "PhotoPage.c" } static void _single_photo_page_on_previous_photo_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" single_photo_page_on_previous_photo ((SinglePhotoPage*) self); -#line 15058 "PhotoPage.c" +#line 15060 "PhotoPage.c" } static void _single_photo_page_on_next_photo_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" single_photo_page_on_next_photo ((SinglePhotoPage*) self); -#line 15065 "PhotoPage.c" +#line 15067 "PhotoPage.c" } static void _editing_host_page_on_rotate_clockwise_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_on_rotate_clockwise ((EditingHostPage*) self); -#line 15072 "PhotoPage.c" +#line 15074 "PhotoPage.c" } static void _editing_host_page_on_rotate_counterclockwise_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_on_rotate_counterclockwise ((EditingHostPage*) self); -#line 15079 "PhotoPage.c" +#line 15081 "PhotoPage.c" } static void _editing_host_page_on_flip_horizontally_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_on_flip_horizontally ((EditingHostPage*) self); -#line 15086 "PhotoPage.c" +#line 15088 "PhotoPage.c" } static void _editing_host_page_on_flip_vertically_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_on_flip_vertically ((EditingHostPage*) self); -#line 15093 "PhotoPage.c" +#line 15095 "PhotoPage.c" } static void _editing_host_page_on_enhance_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_on_enhance ((EditingHostPage*) self); -#line 15100 "PhotoPage.c" +#line 15102 "PhotoPage.c" } static void _editing_host_page_on_copy_adjustments_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_on_copy_adjustments ((EditingHostPage*) self); -#line 15107 "PhotoPage.c" +#line 15109 "PhotoPage.c" } static void _editing_host_page_on_paste_adjustments_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_on_paste_adjustments ((EditingHostPage*) self); -#line 15114 "PhotoPage.c" +#line 15116 "PhotoPage.c" } static void _editing_host_page_toggle_crop_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_toggle_crop ((EditingHostPage*) self); -#line 15121 "PhotoPage.c" +#line 15123 "PhotoPage.c" } static void _editing_host_page_toggle_straighten_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_toggle_straighten ((EditingHostPage*) self); -#line 15128 "PhotoPage.c" +#line 15130 "PhotoPage.c" } static void _editing_host_page_toggle_redeye_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_toggle_redeye ((EditingHostPage*) self); -#line 15135 "PhotoPage.c" +#line 15137 "PhotoPage.c" } static void _editing_host_page_toggle_adjust_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_toggle_adjust ((EditingHostPage*) self); -#line 15142 "PhotoPage.c" +#line 15144 "PhotoPage.c" } static void _editing_host_page_on_revert_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_on_revert ((EditingHostPage*) self); -#line 15149 "PhotoPage.c" +#line 15151 "PhotoPage.c" } static void _editing_host_page_on_edit_title_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_on_edit_title ((EditingHostPage*) self); -#line 15156 "PhotoPage.c" +#line 15158 "PhotoPage.c" } static void _editing_host_page_on_edit_comment_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_on_edit_comment ((EditingHostPage*) self); -#line 15163 "PhotoPage.c" +#line 15165 "PhotoPage.c" } static void _editing_host_page_on_adjust_date_time_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_on_adjust_date_time ((EditingHostPage*) self); -#line 15170 "PhotoPage.c" +#line 15172 "PhotoPage.c" } static void _library_photo_page_on_external_edit_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_on_external_edit ((LibraryPhotoPage*) self); -#line 15177 "PhotoPage.c" +#line 15179 "PhotoPage.c" } static void _library_photo_page_on_external_edit_raw_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_on_external_edit_raw ((LibraryPhotoPage*) self); -#line 15184 "PhotoPage.c" +#line 15186 "PhotoPage.c" } static void _library_photo_page_on_send_to_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_on_send_to ((LibraryPhotoPage*) self); -#line 15191 "PhotoPage.c" +#line 15193 "PhotoPage.c" } static void _editing_host_page_on_set_background_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_on_set_background ((EditingHostPage*) self); -#line 15198 "PhotoPage.c" +#line 15200 "PhotoPage.c" } static void _library_photo_page_on_flag_unflag_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_on_flag_unflag ((LibraryPhotoPage*) self); -#line 15205 "PhotoPage.c" +#line 15207 "PhotoPage.c" } static void _library_photo_page_on_increase_rating_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_on_increase_rating ((LibraryPhotoPage*) self); -#line 15212 "PhotoPage.c" +#line 15214 "PhotoPage.c" } static void _library_photo_page_on_decrease_rating_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_on_decrease_rating ((LibraryPhotoPage*) self); -#line 15219 "PhotoPage.c" +#line 15221 "PhotoPage.c" } static void _library_photo_page_on_rate_rejected_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_on_rate_rejected ((LibraryPhotoPage*) self); -#line 15226 "PhotoPage.c" +#line 15228 "PhotoPage.c" } static void _library_photo_page_on_rate_unrated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_on_rate_unrated ((LibraryPhotoPage*) self); -#line 15233 "PhotoPage.c" +#line 15235 "PhotoPage.c" } static void _library_photo_page_on_rate_one_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_on_rate_one ((LibraryPhotoPage*) self); -#line 15240 "PhotoPage.c" +#line 15242 "PhotoPage.c" } static void _library_photo_page_on_rate_two_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_on_rate_two ((LibraryPhotoPage*) self); -#line 15247 "PhotoPage.c" +#line 15249 "PhotoPage.c" } static void _library_photo_page_on_rate_three_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_on_rate_three ((LibraryPhotoPage*) self); -#line 15254 "PhotoPage.c" +#line 15256 "PhotoPage.c" } static void _library_photo_page_on_rate_four_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_on_rate_four ((LibraryPhotoPage*) self); -#line 15261 "PhotoPage.c" +#line 15263 "PhotoPage.c" } static void _library_photo_page_on_rate_five_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_on_rate_five ((LibraryPhotoPage*) self); -#line 15268 "PhotoPage.c" +#line 15270 "PhotoPage.c" } static void _editing_host_page_on_increase_size_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_on_increase_size ((EditingHostPage*) self); -#line 15275 "PhotoPage.c" +#line 15277 "PhotoPage.c" } static void _editing_host_page_on_decrease_size_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_on_decrease_size ((EditingHostPage*) self); -#line 15282 "PhotoPage.c" +#line 15284 "PhotoPage.c" } static void _editing_host_page_snap_zoom_to_min_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_snap_zoom_to_min ((EditingHostPage*) self); -#line 15289 "PhotoPage.c" +#line 15291 "PhotoPage.c" } static void _editing_host_page_snap_zoom_to_isomorphic_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_snap_zoom_to_isomorphic ((EditingHostPage*) self); -#line 15296 "PhotoPage.c" +#line 15298 "PhotoPage.c" } static void _editing_host_page_snap_zoom_to_max_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_snap_zoom_to_max ((EditingHostPage*) self); -#line 15303 "PhotoPage.c" +#line 15305 "PhotoPage.c" } static void _library_photo_page_on_add_tags_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_on_add_tags ((LibraryPhotoPage*) self); -#line 15310 "PhotoPage.c" +#line 15312 "PhotoPage.c" } static void _library_photo_page_on_modify_tags_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_on_modify_tags ((LibraryPhotoPage*) self); -#line 15317 "PhotoPage.c" +#line 15319 "PhotoPage.c" } static void _library_photo_page_on_slideshow_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_on_slideshow ((LibraryPhotoPage*) self); -#line 15324 "PhotoPage.c" +#line 15326 "PhotoPage.c" } static void _page_on_action_toggle_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_on_action_toggle ((Page*) self, action, parameter); -#line 15331 "PhotoPage.c" +#line 15333 "PhotoPage.c" } static void _library_photo_page_on_display_ratings_gsimple_action_change_state_callback (GSimpleAction* action, GVariant* value, gpointer self) { #line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_on_display_ratings ((LibraryPhotoPage*) self, action, value); -#line 15338 "PhotoPage.c" -} - - -static void _page_on_action_radio_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { -#line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_on_action_radio ((Page*) self, action, parameter); -#line 15345 "PhotoPage.c" -} - - -static void _library_photo_page_on_raw_developer_changed_gsimple_action_change_state_callback (GSimpleAction* action, GVariant* value, gpointer self) { -#line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_on_raw_developer_changed ((LibraryPhotoPage*) self, action, value); -#line 15352 "PhotoPage.c" +#line 15340 "PhotoPage.c" } static void _library_photo_page_on_photos_altered_data_collection_items_altered (DataCollection* _sender, GeeMap* items, gpointer self) { #line 2344 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_on_photos_altered ((LibraryPhotoPage*) self); -#line 15359 "PhotoPage.c" +#line 15347 "PhotoPage.c" } static void _library_photo_page_on_photo_unlinking_source_collection_items_unlinking (SourceCollection* _sender, GeeCollection* unlinking, gpointer self) { #line 2355 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_on_photo_unlinking ((LibraryPhotoPage*) self, unlinking); -#line 15366 "PhotoPage.c" +#line 15354 "PhotoPage.c" } static void _library_photo_page_on_photo_relinked_source_collection_items_relinked (SourceCollection* _sender, GeeCollection* relinked, gpointer self) { #line 2356 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_on_photo_relinked ((LibraryPhotoPage*) self, relinked); -#line 15373 "PhotoPage.c" +#line 15361 "PhotoPage.c" } @@ -15440,14 +15428,14 @@ LibraryPhotoPage* library_photo_page_construct (GType object_type) { g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_SOURCE_COLLECTION, SourceCollection), "items-relinked", (GCallback) _library_photo_page_on_photo_relinked_source_collection_items_relinked, self, 0); #line 2340 "/home/jens/Source/shotwell/src/PhotoPage.vala" return self; -#line 15439 "PhotoPage.c" +#line 15427 "PhotoPage.c" } LibraryPhotoPage* library_photo_page_new (void) { #line 2340 "/home/jens/Source/shotwell/src/PhotoPage.vala" return library_photo_page_construct (TYPE_LIBRARY_PHOTO_PAGE); -#line 15446 "PhotoPage.c" +#line 15434 "PhotoPage.c" } @@ -15478,7 +15466,7 @@ gboolean library_photo_page_not_trashed_view_filter (LibraryPhotoPage* self, Dat result = _tmp4_; #line 2366 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 15477 "PhotoPage.c" +#line 15465 "PhotoPage.c" } @@ -15492,7 +15480,7 @@ static void library_photo_page_on_photo_unlinking (LibraryPhotoPage* self, GeeCo _tmp0_ = self->priv->filter; #line 2370 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_VIEW_FILTER, ViewFilter), "refresh"); -#line 15491 "PhotoPage.c" +#line 15479 "PhotoPage.c" } @@ -15506,7 +15494,7 @@ static void library_photo_page_on_photo_relinked (LibraryPhotoPage* self, GeeCol _tmp0_ = self->priv->filter; #line 2374 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_VIEW_FILTER, ViewFilter), "refresh"); -#line 15505 "PhotoPage.c" +#line 15493 "PhotoPage.c" } @@ -15531,28 +15519,35 @@ static void library_photo_page_real_init_collect_ui_filenames (Page* base, GeeLi _tmp2_ = ui_filenames; #line 2381 "/home/jens/Source/shotwell/src/PhotoPage.vala" gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection), "photo.ui"); -#line 15530 "PhotoPage.c" +#line 15518 "PhotoPage.c" } static GVariant* _variant_new16 (gboolean value) { -#line 2441 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2440 "/home/jens/Source/shotwell/src/PhotoPage.vala" return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 15537 "PhotoPage.c" +#line 15525 "PhotoPage.c" } static GVariant* _variant_new17 (const gchar* value) { -#line 2444 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2442 "/home/jens/Source/shotwell/src/PhotoPage.vala" return g_variant_ref_sink (g_variant_new_string (value)); -#line 15544 "PhotoPage.c" +#line 15532 "PhotoPage.c" +} + + +static void _library_photo_page_on_raw_developer_changed_g_simple_action_change_state (GSimpleAction* _sender, GVariant* value, gpointer self) { +#line 2444 "/home/jens/Source/shotwell/src/PhotoPage.vala" + library_photo_page_on_raw_developer_changed ((LibraryPhotoPage*) self, _sender, value); +#line 15539 "PhotoPage.c" } -static void library_photo_page_real_add_actions (Page* base) { +static void library_photo_page_real_add_actions (Page* base, GActionMap* map) { LibraryPhotoPage * self; - AppWindow* _tmp0_ = NULL; - AppWindow* _tmp1_ = NULL; + GActionMap* _tmp0_ = NULL; + GActionMap* _tmp1_ = NULL; GAction* _tmp2_ = NULL; GSimpleAction* _tmp3_ = NULL; GSimpleAction* _tmp4_ = NULL; @@ -15565,158 +15560,206 @@ static void library_photo_page_real_add_actions (Page* base) { ConfigFacade* _tmp10_ = NULL; RawDeveloper _tmp11_ = 0; RawDeveloper _tmp12_ = 0; + const gchar* _tmp13_ = NULL; + RawDeveloper _tmp14_ = 0; GSimpleAction* action = NULL; - GAction* _tmp13_ = NULL; - GSimpleAction* _tmp14_ = NULL; - const gchar* _tmp15_ = NULL; - RawDeveloper _tmp16_ = 0; + const GVariantType* _tmp15_ = NULL; + GVariant* _tmp16_ = NULL; GSimpleAction* _tmp17_ = NULL; - GVariant* _tmp18_ = NULL; -#line 2437 "/home/jens/Source/shotwell/src/PhotoPage.vala" + GSimpleAction* _tmp18_ = NULL; + GActionMap* _tmp19_ = NULL; +#line 2436 "/home/jens/Source/shotwell/src/PhotoPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage); -#line 2438 "/home/jens/Source/shotwell/src/PhotoPage.vala" - PAGE_CLASS (library_photo_page_parent_class)->add_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), TYPE_PAGE, Page)); -#line 2440 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = app_window_get_instance (); -#line 2440 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = _tmp0_; -#line 2440 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_action_map_add_action_entries (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, g_action_map_get_type (), GActionMap), LIBRARY_PHOTO_PAGE_entries, G_N_ELEMENTS (LIBRARY_PHOTO_PAGE_entries), self); +#line 2436 "/home/jens/Source/shotwell/src/PhotoPage.vala" + g_return_if_fail (G_IS_ACTION_MAP (map)); +#line 2437 "/home/jens/Source/shotwell/src/PhotoPage.vala" + _tmp0_ = map; +#line 2437 "/home/jens/Source/shotwell/src/PhotoPage.vala" + PAGE_CLASS (library_photo_page_parent_class)->add_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), TYPE_PAGE, Page), _tmp0_); +#line 2439 "/home/jens/Source/shotwell/src/PhotoPage.vala" + _tmp1_ = map; +#line 2439 "/home/jens/Source/shotwell/src/PhotoPage.vala" + g_action_map_add_action_entries (_tmp1_, LIBRARY_PHOTO_PAGE_entries, G_N_ELEMENTS (LIBRARY_PHOTO_PAGE_entries), self); #line 2440 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp1_); -#line 2441 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ViewRatings"); -#line 2441 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2440 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp2_) : NULL; -#line 2441 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2440 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp3_ == NULL) { -#line 2441 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2440 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp2_); -#line 15591 "PhotoPage.c" +#line 15587 "PhotoPage.c" } -#line 2441 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2440 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = _tmp3_; -#line 2441 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2440 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp5_ = config_facade_get_instance (); -#line 2441 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2440 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp6_ = _tmp5_; -#line 2441 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2440 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp7_ = configuration_facade_get_display_photo_ratings (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 2441 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2440 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp8_ = _variant_new16 (_tmp7_); -#line 2441 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2440 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_signal_emit_by_name (_tmp4_, "change-state", _tmp8_); -#line 2441 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2440 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_variant_unref0 (_tmp8_); -#line 2441 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2440 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp6_); -#line 2441 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2440 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp4_); -#line 2442 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2441 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp9_ = config_facade_get_instance (); -#line 2442 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2441 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp10_ = _tmp9_; -#line 2442 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2441 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp11_ = configuration_facade_get_default_raw_developer (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 2442 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2441 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp12_ = _tmp11_; -#line 2442 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2441 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp10_); -#line 2442 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2441 "/home/jens/Source/shotwell/src/PhotoPage.vala" d = _tmp12_; #line 2443 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp13_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RawDeveloper"); + _tmp14_ = d; #line 2443 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp14_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp13_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp13_) : NULL; + if (_tmp14_ == RAW_DEVELOPER_SHOTWELL) { #line 2443 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp14_ == NULL) { -#line 2443 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp13_); -#line 15631 "PhotoPage.c" - } -#line 2443 "/home/jens/Source/shotwell/src/PhotoPage.vala" - action = _tmp14_; -#line 2444 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp16_ = d; -#line 2444 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp16_ == RAW_DEVELOPER_SHOTWELL) { -#line 2444 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp15_ = "Shotwell"; -#line 15641 "PhotoPage.c" + _tmp13_ = "Shotwell"; +#line 15625 "PhotoPage.c" } else { -#line 2444 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp15_ = "Camera"; -#line 15645 "PhotoPage.c" +#line 2443 "/home/jens/Source/shotwell/src/PhotoPage.vala" + _tmp13_ = "Camera"; +#line 15629 "PhotoPage.c" } +#line 2442 "/home/jens/Source/shotwell/src/PhotoPage.vala" + _tmp15_ = G_VARIANT_TYPE_STRING; +#line 2442 "/home/jens/Source/shotwell/src/PhotoPage.vala" + _tmp16_ = _variant_new17 (_tmp13_); +#line 2442 "/home/jens/Source/shotwell/src/PhotoPage.vala" + _tmp17_ = g_simple_action_new_stateful ("RawDeveloper", _tmp15_, _tmp16_); +#line 2442 "/home/jens/Source/shotwell/src/PhotoPage.vala" + _tmp18_ = _tmp17_; +#line 2442 "/home/jens/Source/shotwell/src/PhotoPage.vala" + _g_variant_unref0 (_tmp16_); +#line 2442 "/home/jens/Source/shotwell/src/PhotoPage.vala" + action = _tmp18_; #line 2444 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp17_ = action; -#line 2444 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp18_ = _variant_new17 (_tmp15_); -#line 2444 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_emit_by_name (_tmp17_, "change-state", _tmp18_); -#line 2444 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_variant_unref0 (_tmp18_); -#line 2437 "/home/jens/Source/shotwell/src/PhotoPage.vala" + g_signal_connect_object (action, "change-state", (GCallback) _library_photo_page_on_raw_developer_changed_g_simple_action_change_state, self, 0); +#line 2445 "/home/jens/Source/shotwell/src/PhotoPage.vala" + g_simple_action_set_enabled (action, TRUE); +#line 2446 "/home/jens/Source/shotwell/src/PhotoPage.vala" + _tmp19_ = map; +#line 2446 "/home/jens/Source/shotwell/src/PhotoPage.vala" + g_action_map_add_action (_tmp19_, G_TYPE_CHECK_INSTANCE_CAST (action, g_action_get_type (), GAction)); +#line 2436 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (action); -#line 15657 "PhotoPage.c" +#line 15653 "PhotoPage.c" +} + + +static void library_photo_page_real_remove_actions (Page* base, GActionMap* map) { + LibraryPhotoPage * self; + GActionMap* _tmp0_ = NULL; +#line 2449 "/home/jens/Source/shotwell/src/PhotoPage.vala" + self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage); +#line 2449 "/home/jens/Source/shotwell/src/PhotoPage.vala" + g_return_if_fail (G_IS_ACTION_MAP (map)); +#line 2450 "/home/jens/Source/shotwell/src/PhotoPage.vala" + _tmp0_ = map; +#line 2450 "/home/jens/Source/shotwell/src/PhotoPage.vala" + PAGE_CLASS (library_photo_page_parent_class)->remove_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), TYPE_PAGE, Page), _tmp0_); +#line 15668 "PhotoPage.c" + { + GActionEntry* entry_collection = NULL; + gint entry_collection_length1 = 0; + gint _entry_collection_size_ = 0; + gint entry_it = 0; +#line 2451 "/home/jens/Source/shotwell/src/PhotoPage.vala" + entry_collection = LIBRARY_PHOTO_PAGE_entries; +#line 2451 "/home/jens/Source/shotwell/src/PhotoPage.vala" + entry_collection_length1 = G_N_ELEMENTS (LIBRARY_PHOTO_PAGE_entries); +#line 2451 "/home/jens/Source/shotwell/src/PhotoPage.vala" + for (entry_it = 0; entry_it < G_N_ELEMENTS (LIBRARY_PHOTO_PAGE_entries); entry_it = entry_it + 1) { +#line 15680 "PhotoPage.c" + GActionEntry entry = {0}; +#line 2451 "/home/jens/Source/shotwell/src/PhotoPage.vala" + entry = entry_collection[entry_it]; +#line 15684 "PhotoPage.c" + { + GActionMap* _tmp1_ = NULL; + GActionEntry _tmp2_ = {0}; + const gchar* _tmp3_ = NULL; +#line 2452 "/home/jens/Source/shotwell/src/PhotoPage.vala" + _tmp1_ = map; +#line 2452 "/home/jens/Source/shotwell/src/PhotoPage.vala" + _tmp2_ = entry; +#line 2452 "/home/jens/Source/shotwell/src/PhotoPage.vala" + _tmp3_ = _tmp2_.name; +#line 2452 "/home/jens/Source/shotwell/src/PhotoPage.vala" + g_action_map_remove_action (_tmp1_, _tmp3_); +#line 15697 "PhotoPage.c" + } + } + } } static gpointer _injection_group_ref0 (gpointer self) { -#line 2453 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2462 "/home/jens/Source/shotwell/src/PhotoPage.vala" return self ? injection_group_ref (self) : NULL; -#line 15664 "PhotoPage.c" +#line 15707 "PhotoPage.c" } static void _vala_array_add82 (InjectionGroup*** array, int* length, int* size, InjectionGroup* value) { -#line 2453 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2462 "/home/jens/Source/shotwell/src/PhotoPage.vala" if ((*length) == (*size)) { -#line 2453 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2462 "/home/jens/Source/shotwell/src/PhotoPage.vala" *size = (*size) ? (2 * (*size)) : 4; -#line 2453 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2462 "/home/jens/Source/shotwell/src/PhotoPage.vala" *array = g_renew (InjectionGroup*, *array, (*size) + 1); -#line 15675 "PhotoPage.c" +#line 15718 "PhotoPage.c" } -#line 2453 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2462 "/home/jens/Source/shotwell/src/PhotoPage.vala" (*array)[(*length)++] = value; -#line 2453 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2462 "/home/jens/Source/shotwell/src/PhotoPage.vala" (*array)[*length] = NULL; -#line 15681 "PhotoPage.c" +#line 15724 "PhotoPage.c" } static void _vala_array_add83 (InjectionGroup*** array, int* length, int* size, InjectionGroup* value) { -#line 2458 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2467 "/home/jens/Source/shotwell/src/PhotoPage.vala" if ((*length) == (*size)) { -#line 2458 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2467 "/home/jens/Source/shotwell/src/PhotoPage.vala" *size = (*size) ? (2 * (*size)) : 4; -#line 2458 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2467 "/home/jens/Source/shotwell/src/PhotoPage.vala" *array = g_renew (InjectionGroup*, *array, (*size) + 1); -#line 15692 "PhotoPage.c" +#line 15735 "PhotoPage.c" } -#line 2458 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2467 "/home/jens/Source/shotwell/src/PhotoPage.vala" (*array)[(*length)++] = value; -#line 2458 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2467 "/home/jens/Source/shotwell/src/PhotoPage.vala" (*array)[*length] = NULL; -#line 15698 "PhotoPage.c" +#line 15741 "PhotoPage.c" } static void _vala_array_add84 (InjectionGroup*** array, int* length, int* size, InjectionGroup* value) { -#line 2463 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2472 "/home/jens/Source/shotwell/src/PhotoPage.vala" if ((*length) == (*size)) { -#line 2463 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2472 "/home/jens/Source/shotwell/src/PhotoPage.vala" *size = (*size) ? (2 * (*size)) : 4; -#line 2463 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2472 "/home/jens/Source/shotwell/src/PhotoPage.vala" *array = g_renew (InjectionGroup*, *array, (*size) + 1); -#line 15709 "PhotoPage.c" +#line 15752 "PhotoPage.c" } -#line 2463 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2472 "/home/jens/Source/shotwell/src/PhotoPage.vala" (*array)[(*length)++] = value; -#line 2463 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2472 "/home/jens/Source/shotwell/src/PhotoPage.vala" (*array)[*length] = NULL; -#line 15715 "PhotoPage.c" +#line 15758 "PhotoPage.c" } @@ -15748,85 +15791,85 @@ static InjectionGroup** library_photo_page_real_init_collect_injection_groups (P InjectionGroup* _tmp13_ = NULL; InjectionGroup** _tmp14_ = NULL; gint _tmp14__length1 = 0; -#line 2447 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2456 "/home/jens/Source/shotwell/src/PhotoPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage); -#line 2448 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2457 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = PAGE_CLASS (library_photo_page_parent_class)->init_collect_injection_groups (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), TYPE_PAGE, Page), &_tmp0_); -#line 2448 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2457 "/home/jens/Source/shotwell/src/PhotoPage.vala" groups = _tmp1_; -#line 2448 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2457 "/home/jens/Source/shotwell/src/PhotoPage.vala" groups_length1 = _tmp0_; -#line 2448 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2457 "/home/jens/Source/shotwell/src/PhotoPage.vala" _groups_size_ = groups_length1; -#line 2450 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2459 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = injection_group_new ("PrintPlaceholder"); -#line 2450 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2459 "/home/jens/Source/shotwell/src/PhotoPage.vala" print_group = _tmp2_; -#line 2451 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2460 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = _ ("_Print"); -#line 2451 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2460 "/home/jens/Source/shotwell/src/PhotoPage.vala" injection_group_add_menu_item (print_group, _tmp3_, "Print", "<Primary>p"); -#line 2453 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2462 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = groups; -#line 2453 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2462 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4__length1 = groups_length1; -#line 2453 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2462 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp5_ = _injection_group_ref0 (print_group); -#line 2453 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2462 "/home/jens/Source/shotwell/src/PhotoPage.vala" _vala_array_add82 (&groups, &groups_length1, &_groups_size_, _tmp5_); -#line 2455 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2464 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp6_ = injection_group_new ("PublishPlaceholder"); -#line 2455 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2464 "/home/jens/Source/shotwell/src/PhotoPage.vala" publish_group = _tmp6_; -#line 2456 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2465 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp7_ = _ ("_Publish"); -#line 2456 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2465 "/home/jens/Source/shotwell/src/PhotoPage.vala" injection_group_add_menu_item (publish_group, _tmp7_, "Publish", "<Primary><Shift>p"); -#line 2458 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2467 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp8_ = groups; -#line 2458 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2467 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp8__length1 = groups_length1; -#line 2458 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2467 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp9_ = _injection_group_ref0 (publish_group); -#line 2458 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2467 "/home/jens/Source/shotwell/src/PhotoPage.vala" _vala_array_add83 (&groups, &groups_length1, &_groups_size_, _tmp9_); -#line 2460 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2469 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp10_ = injection_group_new ("SetBackgroundPlaceholder"); -#line 2460 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2469 "/home/jens/Source/shotwell/src/PhotoPage.vala" bg_group = _tmp10_; -#line 2461 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2470 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp11_ = _ ("Set as _Desktop Background"); -#line 2461 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2470 "/home/jens/Source/shotwell/src/PhotoPage.vala" injection_group_add_menu_item (bg_group, _tmp11_, "SetBackground", "<Primary>b"); -#line 2463 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2472 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp12_ = groups; -#line 2463 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2472 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp12__length1 = groups_length1; -#line 2463 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2472 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp13_ = _injection_group_ref0 (bg_group); -#line 2463 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2472 "/home/jens/Source/shotwell/src/PhotoPage.vala" _vala_array_add84 (&groups, &groups_length1, &_groups_size_, _tmp13_); -#line 2465 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2474 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp14_ = groups; -#line 2465 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2474 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp14__length1 = groups_length1; -#line 2465 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2474 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (result_length1) { -#line 2465 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2474 "/home/jens/Source/shotwell/src/PhotoPage.vala" *result_length1 = _tmp14__length1; -#line 15813 "PhotoPage.c" +#line 15856 "PhotoPage.c" } -#line 2465 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2474 "/home/jens/Source/shotwell/src/PhotoPage.vala" result = _tmp14_; -#line 2465 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2474 "/home/jens/Source/shotwell/src/PhotoPage.vala" _injection_group_unref0 (bg_group); -#line 2465 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2474 "/home/jens/Source/shotwell/src/PhotoPage.vala" _injection_group_unref0 (publish_group); -#line 2465 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2474 "/home/jens/Source/shotwell/src/PhotoPage.vala" _injection_group_unref0 (print_group); -#line 2465 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2474 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 15825 "PhotoPage.c" +#line 15868 "PhotoPage.c" } @@ -15838,33 +15881,33 @@ static void library_photo_page_on_display_ratings (LibraryPhotoPage* self, GSimp ConfigFacade* _tmp3_ = NULL; GSimpleAction* _tmp4_ = NULL; GVariant* _tmp5_ = NULL; -#line 2468 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2477 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 2468 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2477 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (G_IS_SIMPLE_ACTION (action)); -#line 2469 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2478 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = value; -#line 2469 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2478 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = g_variant_get_boolean (_tmp0_); -#line 2469 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2478 "/home/jens/Source/shotwell/src/PhotoPage.vala" display = _tmp1_; -#line 2471 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2480 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_set_display_ratings (self, display); -#line 2473 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2482 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = config_facade_get_instance (); -#line 2473 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2482 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = _tmp2_; -#line 2473 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2482 "/home/jens/Source/shotwell/src/PhotoPage.vala" configuration_facade_set_display_photo_ratings (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), display); -#line 2473 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2482 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp3_); -#line 2474 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2483 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = action; -#line 2474 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2483 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp5_ = value; -#line 2474 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2483 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_simple_action_set_state (_tmp4_, _tmp5_); -#line 15863 "PhotoPage.c" +#line 15906 "PhotoPage.c" } @@ -15873,38 +15916,38 @@ static void library_photo_page_set_display_ratings (LibraryPhotoPage* self, gboo GAction* _tmp0_ = NULL; GSimpleAction* _tmp1_ = NULL; GSimpleAction* _tmp2_ = NULL; -#line 2478 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2487 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 2479 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2488 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ViewRatings"); -#line 2479 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2488 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp0_) : NULL; -#line 2479 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2488 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp1_ == NULL) { -#line 2479 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2488 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp0_); -#line 15882 "PhotoPage.c" +#line 15925 "PhotoPage.c" } -#line 2479 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2488 "/home/jens/Source/shotwell/src/PhotoPage.vala" action = _tmp1_; -#line 2480 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2489 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = action; -#line 2480 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2489 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp2_ != NULL) { -#line 15890 "PhotoPage.c" +#line 15933 "PhotoPage.c" GSimpleAction* _tmp3_ = NULL; gboolean _tmp4_ = FALSE; -#line 2481 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2490 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = action; -#line 2481 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2490 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = display; -#line 2481 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2490 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_simple_action_set_enabled (_tmp3_, _tmp4_); -#line 15899 "PhotoPage.c" +#line 15942 "PhotoPage.c" } -#line 2478 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2487 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (action); -#line 15903 "PhotoPage.c" +#line 15946 "PhotoPage.c" } @@ -15942,241 +15985,241 @@ static void library_photo_page_real_update_actions (Page* base, gint selected_co gboolean _tmp56_ = FALSE; gint _tmp61_ = 0; gint _tmp62_ = 0; -#line 2484 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2493 "/home/jens/Source/shotwell/src/PhotoPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage); -#line 2485 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2494 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2485 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2494 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = _tmp0_; -#line 2485 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2494 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection)); -#line 2485 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2494 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = _tmp2_ > 1; -#line 2485 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2494 "/home/jens/Source/shotwell/src/PhotoPage.vala" _data_collection_unref0 (_tmp1_); -#line 2485 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2494 "/home/jens/Source/shotwell/src/PhotoPage.vala" multiple = _tmp3_; -#line 2486 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2495 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp5_ = editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2486 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2495 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp5_) { -#line 15959 "PhotoPage.c" +#line 16002 "PhotoPage.c" Photo* _tmp6_ = NULL; Photo* _tmp7_ = NULL; gboolean _tmp8_ = FALSE; -#line 2486 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2495 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp6_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2486 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2495 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp7_ = _tmp6_; -#line 2486 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2495 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp8_ = editing_host_page_is_rotate_available (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), _tmp7_); -#line 2486 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2495 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = _tmp8_; -#line 2486 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2495 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp7_); -#line 15973 "PhotoPage.c" +#line 16016 "PhotoPage.c" } else { -#line 2486 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2495 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = FALSE; -#line 15977 "PhotoPage.c" +#line 16020 "PhotoPage.c" } -#line 2486 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2495 "/home/jens/Source/shotwell/src/PhotoPage.vala" rotate_possible = _tmp4_; -#line 2487 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2496 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp10_ = editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2487 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2496 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp10_) { -#line 15985 "PhotoPage.c" +#line 16028 "PhotoPage.c" Photo* _tmp11_ = NULL; Photo* _tmp12_ = NULL; PhotoFileFormat _tmp13_ = 0; -#line 2487 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2496 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp11_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2487 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2496 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp12_ = _tmp11_; -#line 2487 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2496 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp13_ = photo_get_master_file_format (_tmp12_); -#line 2487 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2496 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp9_ = _tmp13_ == PHOTO_FILE_FORMAT_RAW; -#line 2487 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2496 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp12_); -#line 15999 "PhotoPage.c" +#line 16042 "PhotoPage.c" } else { -#line 2487 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2496 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp9_ = FALSE; -#line 16003 "PhotoPage.c" +#line 16046 "PhotoPage.c" } -#line 2487 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2496 "/home/jens/Source/shotwell/src/PhotoPage.vala" is_raw = _tmp9_; -#line 2490 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2499 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp15_ = editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2490 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2499 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp15_) { -#line 16011 "PhotoPage.c" +#line 16054 "PhotoPage.c" ConfigFacade* _tmp16_ = NULL; ConfigFacade* _tmp17_ = NULL; gchar* _tmp18_ = NULL; gchar* _tmp19_ = NULL; -#line 2490 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2499 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp16_ = config_facade_get_instance (); -#line 2490 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2499 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp17_ = _tmp16_; -#line 2490 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2499 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp18_ = configuration_facade_get_external_photo_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 2490 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2499 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp19_ = _tmp18_; -#line 2490 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2499 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp14_ = g_strcmp0 (_tmp19_, "") != 0; -#line 2490 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2499 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_free0 (_tmp19_); -#line 2490 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2499 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp17_); -#line 16030 "PhotoPage.c" +#line 16073 "PhotoPage.c" } else { -#line 2490 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2499 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp14_ = FALSE; -#line 16034 "PhotoPage.c" +#line 16077 "PhotoPage.c" } -#line 2489 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2498 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ExternalEdit", _tmp14_); -#line 2492 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2501 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp21_ = editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2492 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2501 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp21_) { -#line 16042 "PhotoPage.c" +#line 16085 "PhotoPage.c" gboolean _tmp22_ = FALSE; Photo* _tmp23_ = NULL; Photo* _tmp24_ = NULL; gboolean _tmp25_ = FALSE; gboolean _tmp26_ = FALSE; -#line 2493 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2502 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp23_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2493 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2502 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp24_ = _tmp23_; -#line 2493 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2502 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp25_ = photo_has_transformations (_tmp24_); -#line 2493 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2502 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp26_ = _tmp25_; -#line 2493 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2502 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp24_); -#line 2493 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2502 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp26_) { -#line 2493 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2502 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp22_ = TRUE; -#line 16062 "PhotoPage.c" +#line 16105 "PhotoPage.c" } else { Photo* _tmp27_ = NULL; Photo* _tmp28_ = NULL; gboolean _tmp29_ = FALSE; -#line 2493 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2502 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp27_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2493 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2502 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp28_ = _tmp27_; -#line 2493 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2502 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp29_ = photo_has_editable (_tmp28_); -#line 2493 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2502 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp22_ = _tmp29_; -#line 2493 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2502 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp28_); -#line 16077 "PhotoPage.c" +#line 16120 "PhotoPage.c" } -#line 2493 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2502 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp20_ = _tmp22_; -#line 16081 "PhotoPage.c" +#line 16124 "PhotoPage.c" } else { -#line 2493 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2502 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp20_ = FALSE; -#line 16085 "PhotoPage.c" +#line 16128 "PhotoPage.c" } -#line 2492 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2501 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Revert", _tmp20_); -#line 2495 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2504 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp31_ = editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2495 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2504 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp31_) { -#line 16093 "PhotoPage.c" +#line 16136 "PhotoPage.c" gboolean _tmp32_ = FALSE; -#line 2495 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2504 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp32_ = editing_host_page_get_photo_missing (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2495 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2504 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp30_ = !_tmp32_; -#line 16099 "PhotoPage.c" +#line 16142 "PhotoPage.c" } else { -#line 2495 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2504 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp30_ = FALSE; -#line 16103 "PhotoPage.c" +#line 16146 "PhotoPage.c" } -#line 2495 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2504 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp30_) { -#line 2496 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2505 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_update_rating_menu_item_sensitivity (self); -#line 2497 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2506 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_update_development_menu_item_sensitivity (self); -#line 16111 "PhotoPage.c" +#line 16154 "PhotoPage.c" } -#line 2500 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2509 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp33_ = editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2500 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2509 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SetBackground", _tmp33_); -#line 2502 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2511 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp35_ = editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2502 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2511 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp35_) { -#line 16121 "PhotoPage.c" +#line 16164 "PhotoPage.c" Photo* _tmp36_ = NULL; Photo* _tmp37_ = NULL; gboolean _tmp38_ = FALSE; -#line 2502 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2511 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp36_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2502 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2511 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp37_ = _tmp36_; -#line 2502 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2511 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp38_ = photo_has_color_adjustments (_tmp37_); -#line 2502 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2511 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp34_ = _tmp38_; -#line 2502 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2511 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp37_); -#line 16135 "PhotoPage.c" +#line 16178 "PhotoPage.c" } else { -#line 2502 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2511 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp34_ = FALSE; -#line 16139 "PhotoPage.c" +#line 16182 "PhotoPage.c" } -#line 2502 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2511 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CopyColorAdjustments", _tmp34_); -#line 2503 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2512 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp39_ = pixel_transformation_bundle_has_copied_color_adjustments (); -#line 2503 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2512 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "PasteColorAdjustments", _tmp39_); -#line 2505 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2514 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp40_ = multiple; -#line 2505 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2514 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "PrevPhoto", _tmp40_); -#line 2506 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2515 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp41_ = multiple; -#line 2506 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2515 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "NextPhoto", _tmp41_); -#line 2507 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2516 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp42_ = rotate_possible; -#line 2507 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2516 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateClockwise", _tmp42_); -#line 2508 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2517 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp43_ = rotate_possible; -#line 2508 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2517 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateCounterclockwise", _tmp43_); -#line 2509 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2518 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp44_ = rotate_possible; -#line 2509 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2518 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "FlipHorizontally", _tmp44_); -#line 2510 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2519 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp45_ = rotate_possible; -#line 2510 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2519 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "FlipVertically", _tmp45_); -#line 2512 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2521 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp46_ = editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2512 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2521 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp46_) { -#line 16175 "PhotoPage.c" +#line 16218 "PhotoPage.c" Photo* _tmp47_ = NULL; Photo* _tmp48_ = NULL; Scaling _tmp49_ = {0}; @@ -16185,134 +16228,134 @@ static void library_photo_page_real_update_actions (Page* base, gint selected_co Photo* _tmp52_ = NULL; Scaling _tmp53_ = {0}; gboolean _tmp54_ = FALSE; -#line 2513 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2522 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp47_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2513 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2522 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp48_ = _tmp47_; -#line 2513 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2522 "/home/jens/Source/shotwell/src/PhotoPage.vala" scaling_for_original (&_tmp49_); -#line 2513 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2522 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp50_ = editing_tools_crop_tool_is_available (_tmp48_, &_tmp49_); -#line 2513 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2522 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Crop", _tmp50_); -#line 2513 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2522 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp48_); -#line 2514 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2523 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp51_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2514 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2523 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp52_ = _tmp51_; -#line 2514 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2523 "/home/jens/Source/shotwell/src/PhotoPage.vala" scaling_for_original (&_tmp53_); -#line 2514 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2523 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp54_ = editing_tools_redeye_tool_is_available (_tmp52_, &_tmp53_); -#line 2514 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2523 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RedEye", _tmp54_); -#line 2514 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2523 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp52_); -#line 16208 "PhotoPage.c" +#line 16251 "PhotoPage.c" } -#line 2518 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2527 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_update_flag_action (self); -#line 2521 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2530 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp56_ = is_raw; -#line 2521 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2530 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp56_) { -#line 16216 "PhotoPage.c" +#line 16259 "PhotoPage.c" ConfigFacade* _tmp57_ = NULL; ConfigFacade* _tmp58_ = NULL; gchar* _tmp59_ = NULL; gchar* _tmp60_ = NULL; -#line 2521 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2530 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp57_ = config_facade_get_instance (); -#line 2521 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2530 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp58_ = _tmp57_; -#line 2521 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2530 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp59_ = configuration_facade_get_external_raw_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 2521 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2530 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp60_ = _tmp59_; -#line 2521 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2530 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp55_ = g_strcmp0 (_tmp60_, "") != 0; -#line 2521 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2530 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_free0 (_tmp60_); -#line 2521 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2530 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp58_); -#line 16235 "PhotoPage.c" +#line 16278 "PhotoPage.c" } else { -#line 2521 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2530 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp55_ = FALSE; -#line 16239 "PhotoPage.c" +#line 16282 "PhotoPage.c" } -#line 2520 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2529 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_visible (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ExternalEditRAW", _tmp55_); -#line 2523 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2532 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp61_ = selected_count; -#line 2523 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2532 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp62_ = count; -#line 2523 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2532 "/home/jens/Source/shotwell/src/PhotoPage.vala" PAGE_CLASS (library_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), _tmp61_, _tmp62_); -#line 16249 "PhotoPage.c" +#line 16292 "PhotoPage.c" } static void library_photo_page_on_photos_altered (LibraryPhotoPage* self) { gboolean _tmp0_ = FALSE; gboolean _tmp1_ = FALSE; -#line 2526 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2535 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 2527 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2536 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2527 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2536 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp1_) { -#line 16262 "PhotoPage.c" +#line 16305 "PhotoPage.c" gboolean _tmp2_ = FALSE; Photo* _tmp3_ = NULL; Photo* _tmp4_ = NULL; gboolean _tmp5_ = FALSE; gboolean _tmp6_ = FALSE; -#line 2528 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2537 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2528 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2537 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = _tmp3_; -#line 2528 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2537 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp5_ = photo_has_transformations (_tmp4_); -#line 2528 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2537 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp6_ = _tmp5_; -#line 2528 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2537 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp4_); -#line 2528 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2537 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp6_) { -#line 2528 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2537 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = TRUE; -#line 16282 "PhotoPage.c" +#line 16325 "PhotoPage.c" } else { Photo* _tmp7_ = NULL; Photo* _tmp8_ = NULL; gboolean _tmp9_ = FALSE; -#line 2528 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2537 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp7_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2528 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2537 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp8_ = _tmp7_; -#line 2528 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2537 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp9_ = photo_has_editable (_tmp8_); -#line 2528 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2537 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = _tmp9_; -#line 2528 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2537 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp8_); -#line 16297 "PhotoPage.c" +#line 16340 "PhotoPage.c" } -#line 2528 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2537 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = _tmp2_; -#line 16301 "PhotoPage.c" +#line 16344 "PhotoPage.c" } else { -#line 2528 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2537 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = FALSE; -#line 16305 "PhotoPage.c" +#line 16348 "PhotoPage.c" } -#line 2527 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2536 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Revert", _tmp0_); -#line 2529 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2538 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_update_flag_action (self); -#line 16311 "PhotoPage.c" +#line 16354 "PhotoPage.c" } @@ -16322,78 +16365,78 @@ static void library_photo_page_on_raw_developer_changed (LibraryPhotoPage* self, const gchar* _tmp1_ = NULL; const gchar* _tmp2_ = NULL; GQuark _tmp4_ = 0U; -#line 2536 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2545 "/home/jens/Source/shotwell/src/PhotoPage.vala" static GQuark _tmp3_label0 = 0; -#line 2536 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2545 "/home/jens/Source/shotwell/src/PhotoPage.vala" static GQuark _tmp3_label1 = 0; -#line 16325 "PhotoPage.c" +#line 16368 "PhotoPage.c" RawDeveloper _tmp5_ = 0; GSimpleAction* _tmp6_ = NULL; GVariant* _tmp7_ = NULL; -#line 2532 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2541 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 2532 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2541 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (G_IS_SIMPLE_ACTION (action)); -#line 2534 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2543 "/home/jens/Source/shotwell/src/PhotoPage.vala" developer = RAW_DEVELOPER_SHOTWELL; -#line 2536 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2545 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = value; -#line 2536 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2545 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = g_variant_get_string (_tmp0_, NULL); -#line 2536 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2545 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = _tmp1_; -#line 2536 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2545 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = (NULL == _tmp2_) ? 0 : g_quark_from_string (_tmp2_); -#line 2536 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2545 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp4_ == ((0 != _tmp3_label0) ? _tmp3_label0 : (_tmp3_label0 = g_quark_from_static_string ("Shotwell")))) { -#line 2536 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2545 "/home/jens/Source/shotwell/src/PhotoPage.vala" switch (0) { -#line 16347 "PhotoPage.c" +#line 16390 "PhotoPage.c" default: { -#line 2538 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2547 "/home/jens/Source/shotwell/src/PhotoPage.vala" developer = RAW_DEVELOPER_SHOTWELL; -#line 2539 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2548 "/home/jens/Source/shotwell/src/PhotoPage.vala" break; -#line 16354 "PhotoPage.c" +#line 16397 "PhotoPage.c" } } } else if (_tmp4_ == ((0 != _tmp3_label1) ? _tmp3_label1 : (_tmp3_label1 = g_quark_from_static_string ("Camera")))) { -#line 2536 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2545 "/home/jens/Source/shotwell/src/PhotoPage.vala" switch (0) { -#line 16360 "PhotoPage.c" +#line 16403 "PhotoPage.c" default: { -#line 2541 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2550 "/home/jens/Source/shotwell/src/PhotoPage.vala" developer = RAW_DEVELOPER_CAMERA; -#line 2542 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2551 "/home/jens/Source/shotwell/src/PhotoPage.vala" break; -#line 16367 "PhotoPage.c" +#line 16410 "PhotoPage.c" } } } else { -#line 2536 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2545 "/home/jens/Source/shotwell/src/PhotoPage.vala" switch (0) { -#line 16373 "PhotoPage.c" +#line 16416 "PhotoPage.c" default: { -#line 2544 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2553 "/home/jens/Source/shotwell/src/PhotoPage.vala" break; -#line 16378 "PhotoPage.c" +#line 16421 "PhotoPage.c" } } } -#line 2547 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2556 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp5_ = developer; -#line 2547 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2556 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_developer_changed (self, _tmp5_); -#line 2549 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2558 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp6_ = action; -#line 2549 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2558 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp7_ = value; -#line 2549 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2558 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_simple_action_set_state (_tmp6_, _tmp7_); -#line 16392 "PhotoPage.c" +#line 16435 "PhotoPage.c" } @@ -16417,106 +16460,106 @@ static void library_photo_page_real_developer_changed (LibraryPhotoPage* self, R gboolean _tmp19_ = FALSE; Photo* _tmp20_ = NULL; gboolean _tmp21_ = FALSE; -#line 2553 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2562 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2553 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2562 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = _tmp0_; -#line 2553 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2562 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = view_collection_get_selected_count (_tmp1_); -#line 2553 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2562 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = _tmp2_ != 1; -#line 2553 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2562 "/home/jens/Source/shotwell/src/PhotoPage.vala" _data_collection_unref0 (_tmp1_); -#line 2553 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2562 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp3_) { -#line 2554 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2563 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 16430 "PhotoPage.c" +#line 16473 "PhotoPage.c" } -#line 2556 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2565 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2556 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2565 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp5_ = _tmp4_; -#line 2556 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2565 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp6_ = view_collection_get_selected (_tmp5_); -#line 2556 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2565 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp7_ = _tmp6_; -#line 2556 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2565 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp8_ = gee_list_get (_tmp7_, 0); -#line 2556 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2565 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp9_ = (DataView*) _tmp8_; -#line 2556 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2565 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp10_ = data_view_get_source (_tmp9_); -#line 2556 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2565 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp11_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp10_, TYPE_PHOTO) ? ((Photo*) _tmp10_) : NULL; -#line 2556 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2565 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp11_ == NULL) { -#line 2556 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2565 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp10_); -#line 16452 "PhotoPage.c" +#line 16495 "PhotoPage.c" } -#line 2556 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2565 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp12_ = _tmp11_; -#line 2556 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2565 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp9_); -#line 2556 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2565 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp7_); -#line 2556 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2565 "/home/jens/Source/shotwell/src/PhotoPage.vala" _data_collection_unref0 (_tmp5_); -#line 2556 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2565 "/home/jens/Source/shotwell/src/PhotoPage.vala" photo = _tmp12_; -#line 2557 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2566 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp14_ = photo; -#line 2557 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2566 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp14_ == NULL) { -#line 2557 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2566 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp13_ = TRUE; -#line 16470 "PhotoPage.c" +#line 16513 "PhotoPage.c" } else { RawDeveloper _tmp15_ = 0; Photo* _tmp16_ = NULL; RawDeveloper _tmp17_ = 0; gboolean _tmp18_ = FALSE; -#line 2557 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2566 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp15_ = rd; -#line 2557 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2566 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp16_ = photo; -#line 2557 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2566 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp17_ = photo_get_raw_developer (_tmp16_); -#line 2557 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2566 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp18_ = raw_developer_is_equivalent (_tmp15_, _tmp17_); -#line 2557 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2566 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp13_ = _tmp18_; -#line 16486 "PhotoPage.c" +#line 16529 "PhotoPage.c" } -#line 2557 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2566 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp13_) { -#line 2558 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2567 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (photo); -#line 2558 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2567 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 16494 "PhotoPage.c" +#line 16537 "PhotoPage.c" } -#line 2562 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2571 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp20_ = photo; -#line 2562 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2571 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp21_ = photo_has_transformations (_tmp20_); -#line 2562 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2571 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (!_tmp21_) { -#line 2562 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2571 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp19_ = TRUE; -#line 16504 "PhotoPage.c" +#line 16547 "PhotoPage.c" } else { gboolean _tmp22_ = FALSE; -#line 2562 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2571 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp22_ = dialogs_confirm_warn_developer_changed (1); -#line 2562 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2571 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp19_ = _tmp22_; -#line 16511 "PhotoPage.c" +#line 16554 "PhotoPage.c" } -#line 2562 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2571 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp19_) { -#line 16515 "PhotoPage.c" +#line 16558 "PhotoPage.c" SetRawDeveloperCommand* command = NULL; ViewCollection* _tmp23_ = NULL; ViewCollection* _tmp24_ = NULL; @@ -16528,73 +16571,73 @@ static void library_photo_page_real_developer_changed (LibraryPhotoPage* self, R CommandManager* _tmp30_ = NULL; CommandManager* _tmp31_ = NULL; SetRawDeveloperCommand* _tmp32_ = NULL; -#line 2563 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2572 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp23_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2563 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2572 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp24_ = _tmp23_; -#line 2563 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2572 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp25_ = view_collection_get_selected (_tmp24_); -#line 2563 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2572 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp26_ = _tmp25_; -#line 2563 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2572 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp27_ = rd; -#line 2563 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2572 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp28_ = set_raw_developer_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_ITERABLE, GeeIterable), _tmp27_); -#line 2563 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2572 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp29_ = _tmp28_; -#line 2563 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2572 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp26_); -#line 2563 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2572 "/home/jens/Source/shotwell/src/PhotoPage.vala" _data_collection_unref0 (_tmp24_); -#line 2563 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2572 "/home/jens/Source/shotwell/src/PhotoPage.vala" command = _tmp29_; -#line 2565 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2574 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp30_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2565 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2574 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp31_ = _tmp30_; -#line 2565 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2574 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp32_ = command; -#line 2565 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2574 "/home/jens/Source/shotwell/src/PhotoPage.vala" command_manager_execute (_tmp31_, G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, TYPE_COMMAND, Command)); -#line 2565 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2574 "/home/jens/Source/shotwell/src/PhotoPage.vala" _command_manager_unref0 (_tmp31_); -#line 2567 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2576 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_update_development_menu_item_sensitivity (self); -#line 2562 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2571 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (command); -#line 16561 "PhotoPage.c" +#line 16604 "PhotoPage.c" } -#line 2552 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2561 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (photo); -#line 16565 "PhotoPage.c" +#line 16608 "PhotoPage.c" } void library_photo_page_developer_changed (LibraryPhotoPage* self, RawDeveloper rd) { -#line 2552 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2561 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 2552 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2561 "/home/jens/Source/shotwell/src/PhotoPage.vala" LIBRARY_PHOTO_PAGE_GET_CLASS (self)->developer_changed (self, rd); -#line 16574 "PhotoPage.c" +#line 16617 "PhotoPage.c" } static void library_photo_page_update_flag_action (LibraryPhotoPage* self) { gboolean _tmp0_ = FALSE; -#line 2571 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2580 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 2572 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2581 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2572 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2581 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Flag", _tmp0_); -#line 16586 "PhotoPage.c" +#line 16629 "PhotoPage.c" } static void _library_photo_page_on_page_destroyed_gtk_widget_destroy (GtkWidget* _sender, gpointer self) { -#line 2582 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2591 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_on_page_destroyed ((LibraryPhotoPage*) self); -#line 16593 "PhotoPage.c" +#line 16636 "PhotoPage.c" } @@ -16605,75 +16648,75 @@ void library_photo_page_display_for_collection (LibraryPhotoPage* self, Collecti ViewCollection* _tmp3_ = NULL; ViewCollection* _tmp4_ = NULL; Photo* _tmp9_ = NULL; -#line 2579 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2588 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 2579 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2588 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (IS_COLLECTION_PAGE (return_page)); -#line 2579 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2588 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (IS_PHOTO (photo)); -#line 2579 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2588 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail ((view == NULL) || IS_VIEW_COLLECTION (view)); -#line 2581 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2590 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = return_page; -#line 2581 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2590 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = _g_object_ref0 (_tmp0_); -#line 2581 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2590 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (self->priv->return_page); -#line 2581 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2590 "/home/jens/Source/shotwell/src/PhotoPage.vala" self->priv->return_page = _tmp1_; -#line 2582 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2591 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = return_page; -#line 2582 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2591 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), "destroy", (GCallback) _library_photo_page_on_page_destroyed_gtk_widget_destroy, self, 0); -#line 2584 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2593 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = view; -#line 2584 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2593 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp4_ != NULL) { -#line 16628 "PhotoPage.c" +#line 16671 "PhotoPage.c" ViewCollection* _tmp5_ = NULL; ViewCollection* _tmp6_ = NULL; -#line 2584 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2593 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp5_ = view; -#line 2584 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2593 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp6_ = _data_collection_ref0 (_tmp5_); -#line 2584 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2593 "/home/jens/Source/shotwell/src/PhotoPage.vala" _data_collection_unref0 (_tmp3_); -#line 2584 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2593 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = _tmp6_; -#line 16639 "PhotoPage.c" +#line 16682 "PhotoPage.c" } else { CollectionPage* _tmp7_ = NULL; ViewCollection* _tmp8_ = NULL; -#line 2584 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2593 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp7_ = return_page; -#line 2584 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2593 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp8_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_PAGE, Page)); -#line 2584 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2593 "/home/jens/Source/shotwell/src/PhotoPage.vala" _data_collection_unref0 (_tmp3_); -#line 2584 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2593 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = _tmp8_; -#line 16651 "PhotoPage.c" +#line 16694 "PhotoPage.c" } -#line 2584 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2593 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp9_ = photo; -#line 2584 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2593 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_display_copy_of (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), _tmp3_, _tmp9_); -#line 2579 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2588 "/home/jens/Source/shotwell/src/PhotoPage.vala" _data_collection_unref0 (_tmp3_); -#line 16659 "PhotoPage.c" +#line 16702 "PhotoPage.c" } void library_photo_page_on_page_destroyed (LibraryPhotoPage* self) { -#line 2587 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2596 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 2590 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2599 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (self->priv->return_page); -#line 2590 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2599 "/home/jens/Source/shotwell/src/PhotoPage.vala" self->priv->return_page = NULL; -#line 2591 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2600 "/home/jens/Source/shotwell/src/PhotoPage.vala" editing_host_page_unset_view_collection (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 16672 "PhotoPage.c" +#line 16715 "PhotoPage.c" } @@ -16681,17 +16724,17 @@ CollectionPage* library_photo_page_get_controller_page (LibraryPhotoPage* self) CollectionPage* result = NULL; CollectionPage* _tmp0_ = NULL; CollectionPage* _tmp1_ = NULL; -#line 2594 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2603 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_val_if_fail (IS_LIBRARY_PHOTO_PAGE (self), NULL); -#line 2595 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2604 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = self->priv->return_page; -#line 2595 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2604 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = _g_object_ref0 (_tmp0_); -#line 2595 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2604 "/home/jens/Source/shotwell/src/PhotoPage.vala" result = _tmp1_; -#line 2595 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2604 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 16690 "PhotoPage.c" +#line 16733 "PhotoPage.c" } @@ -16702,33 +16745,80 @@ static void library_photo_page_real_switched_to (Page* base) { ConfigFacade* _tmp2_ = NULL; ConfigFacade* _tmp3_ = NULL; gboolean _tmp4_ = FALSE; -#line 2598 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2607 "/home/jens/Source/shotwell/src/PhotoPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage); -#line 2602 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2611 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2602 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2611 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = _tmp0_; -#line 2602 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2611 "/home/jens/Source/shotwell/src/PhotoPage.vala" _vala_assert (_tmp1_ != NULL, "get_photo() != null"); -#line 2602 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2611 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp1_); -#line 2604 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2613 "/home/jens/Source/shotwell/src/PhotoPage.vala" PAGE_CLASS (library_photo_page_parent_class)->switched_to (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), TYPE_PAGE, Page)); -#line 2606 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2615 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_update_zoom_menu_item_sensitivity (self); -#line 2607 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2616 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_update_rating_menu_item_sensitivity (self); -#line 2609 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2618 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = config_facade_get_instance (); -#line 2609 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2618 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = _tmp2_; -#line 2609 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2618 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = configuration_facade_get_display_photo_ratings (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 2609 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2618 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_set_display_ratings (self, _tmp4_); -#line 2609 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2618 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp3_); -#line 16727 "PhotoPage.c" +#line 16770 "PhotoPage.c" +} + + +static void library_photo_page_real_switching_from (Page* base) { + LibraryPhotoPage * self; +#line 2622 "/home/jens/Source/shotwell/src/PhotoPage.vala" + self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage); +#line 2623 "/home/jens/Source/shotwell/src/PhotoPage.vala" + PAGE_CLASS (library_photo_page_parent_class)->switching_from (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), TYPE_PAGE, Page)); +#line 16780 "PhotoPage.c" + { + GActionEntry* entry_collection = NULL; + gint entry_collection_length1 = 0; + gint _entry_collection_size_ = 0; + gint entry_it = 0; +#line 2624 "/home/jens/Source/shotwell/src/PhotoPage.vala" + entry_collection = LIBRARY_PHOTO_PAGE_entries; +#line 2624 "/home/jens/Source/shotwell/src/PhotoPage.vala" + entry_collection_length1 = G_N_ELEMENTS (LIBRARY_PHOTO_PAGE_entries); +#line 2624 "/home/jens/Source/shotwell/src/PhotoPage.vala" + for (entry_it = 0; entry_it < G_N_ELEMENTS (LIBRARY_PHOTO_PAGE_entries); entry_it = entry_it + 1) { +#line 16792 "PhotoPage.c" + GActionEntry entry = {0}; +#line 2624 "/home/jens/Source/shotwell/src/PhotoPage.vala" + entry = entry_collection[entry_it]; +#line 16796 "PhotoPage.c" + { + AppWindow* _tmp0_ = NULL; + AppWindow* _tmp1_ = NULL; + GActionEntry _tmp2_ = {0}; + const gchar* _tmp3_ = NULL; +#line 2625 "/home/jens/Source/shotwell/src/PhotoPage.vala" + _tmp0_ = app_window_get_instance (); +#line 2625 "/home/jens/Source/shotwell/src/PhotoPage.vala" + _tmp1_ = _tmp0_; +#line 2625 "/home/jens/Source/shotwell/src/PhotoPage.vala" + _tmp2_ = entry; +#line 2625 "/home/jens/Source/shotwell/src/PhotoPage.vala" + _tmp3_ = _tmp2_.name; +#line 2625 "/home/jens/Source/shotwell/src/PhotoPage.vala" + g_action_map_remove_action (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, g_action_map_get_type (), GActionMap), _tmp3_); +#line 2625 "/home/jens/Source/shotwell/src/PhotoPage.vala" + _g_object_unref0 (_tmp1_); +#line 16814 "PhotoPage.c" + } + } + } } @@ -16743,58 +16833,58 @@ static GdkPixbuf* library_photo_page_real_get_bottom_left_trinket (EditingHostPa gint _tmp8_ = 0; GdkPixbuf* _tmp9_ = NULL; GdkPixbuf* _tmp10_ = NULL; -#line 2612 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2629 "/home/jens/Source/shotwell/src/PhotoPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage); -#line 2613 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2630 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2613 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2630 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (!_tmp1_) { -#line 2613 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2630 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = TRUE; -#line 16750 "PhotoPage.c" +#line 16840 "PhotoPage.c" } else { ConfigFacade* _tmp2_ = NULL; ConfigFacade* _tmp3_ = NULL; gboolean _tmp4_ = FALSE; -#line 2613 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2630 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = config_facade_get_instance (); -#line 2613 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2630 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = _tmp2_; -#line 2613 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2630 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = configuration_facade_get_display_photo_ratings (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 2613 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2630 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = !_tmp4_; -#line 2613 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2630 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp3_); -#line 16765 "PhotoPage.c" +#line 16855 "PhotoPage.c" } -#line 2613 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2630 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp0_) { -#line 2614 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2631 "/home/jens/Source/shotwell/src/PhotoPage.vala" result = NULL; -#line 2614 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2631 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 16773 "PhotoPage.c" +#line 16863 "PhotoPage.c" } -#line 2616 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2633 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp5_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2616 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2633 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_LIBRARY_PHOTO, LibraryPhoto); -#line 2616 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2633 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp7_ = media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 2616 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2633 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp8_ = scale; -#line 2616 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2633 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp9_ = resources_get_rating_trinket (_tmp7_, _tmp8_); -#line 2616 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2633 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp10_ = _tmp9_; -#line 2616 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2633 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp6_); -#line 2616 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2633 "/home/jens/Source/shotwell/src/PhotoPage.vala" result = _tmp10_; -#line 2616 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2633 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 16793 "PhotoPage.c" +#line 16883 "PhotoPage.c" } @@ -16804,46 +16894,46 @@ static GdkPixbuf* library_photo_page_real_get_top_right_trinket (EditingHostPage gboolean _tmp0_ = FALSE; gboolean _tmp1_ = FALSE; GdkPixbuf* _tmp5_ = NULL; -#line 2619 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2636 "/home/jens/Source/shotwell/src/PhotoPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage); -#line 2620 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2637 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2620 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2637 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (!_tmp1_) { -#line 2620 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2637 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = TRUE; -#line 16811 "PhotoPage.c" +#line 16901 "PhotoPage.c" } else { Photo* _tmp2_ = NULL; LibraryPhoto* _tmp3_ = NULL; gboolean _tmp4_ = FALSE; -#line 2620 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2637 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2620 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2637 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_LIBRARY_PHOTO, LibraryPhoto); -#line 2620 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2637 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = flaggable_is_flagged (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_FLAGGABLE, Flaggable)); -#line 2620 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2637 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = !_tmp4_; -#line 2620 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2637 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp3_); -#line 16826 "PhotoPage.c" +#line 16916 "PhotoPage.c" } -#line 2620 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2637 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp0_) { -#line 2621 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2638 "/home/jens/Source/shotwell/src/PhotoPage.vala" result = NULL; -#line 2621 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2638 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 16834 "PhotoPage.c" +#line 16924 "PhotoPage.c" } -#line 2623 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2640 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp5_ = resources_get_icon (RESOURCES_ICON_FLAGGED_TRINKET, RESOURCES_DEFAULT_ICON_SCALE); -#line 2623 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2640 "/home/jens/Source/shotwell/src/PhotoPage.vala" result = _tmp5_; -#line 2623 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2640 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 16842 "PhotoPage.c" +#line 16932 "PhotoPage.c" } @@ -16859,51 +16949,51 @@ static void library_photo_page_on_slideshow (LibraryPhotoPage* self) { LibraryPhoto* _tmp7_ = NULL; SlideshowPage* _tmp8_ = NULL; SlideshowPage* _tmp9_ = NULL; -#line 2626 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2643 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 2627 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2644 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2627 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2644 "/home/jens/Source/shotwell/src/PhotoPage.vala" photo = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_LIBRARY_PHOTO, LibraryPhoto); -#line 2628 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2645 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = photo; -#line 2628 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2645 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp1_ == NULL) { -#line 2629 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2646 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (photo); -#line 2629 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2646 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 16872 "PhotoPage.c" +#line 16962 "PhotoPage.c" } -#line 2631 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2648 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = app_window_get_instance (); -#line 2631 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2648 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = _tmp2_; -#line 2631 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2648 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = library_photo_global; -#line 2631 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2648 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2631 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2648 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp6_ = _tmp5_; -#line 2631 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2648 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp7_ = photo; -#line 2631 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2648 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp8_ = slideshow_page_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp6_, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_PHOTO, Photo)); -#line 2631 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2648 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_object_ref_sink (_tmp8_); -#line 2631 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2648 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp9_ = _tmp8_; -#line 2631 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2648 "/home/jens/Source/shotwell/src/PhotoPage.vala" app_window_go_fullscreen (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_PAGE, Page)); -#line 2631 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2648 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp9_); -#line 2631 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2648 "/home/jens/Source/shotwell/src/PhotoPage.vala" _data_collection_unref0 (_tmp6_); -#line 2631 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2648 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp3_); -#line 2626 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2643 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (photo); -#line 16902 "PhotoPage.c" +#line 16992 "PhotoPage.c" } @@ -16914,73 +17004,73 @@ static void library_photo_page_update_zoom_menu_item_sensitivity (LibraryPhotoPa gboolean _tmp4_ = FALSE; ZoomState _tmp5_ = {0}; gboolean _tmp6_ = FALSE; -#line 2635 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2652 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 2636 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2653 "/home/jens/Source/shotwell/src/PhotoPage.vala" single_photo_page_get_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp1_); -#line 2636 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2653 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = zoom_state_is_max (&_tmp1_); -#line 2636 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2653 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (!_tmp2_) { -#line 16921 "PhotoPage.c" +#line 17011 "PhotoPage.c" gboolean _tmp3_ = FALSE; -#line 2636 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2653 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = editing_host_page_get_photo_missing (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2636 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2653 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = !_tmp3_; -#line 16927 "PhotoPage.c" +#line 17017 "PhotoPage.c" } else { -#line 2636 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2653 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = FALSE; -#line 16931 "PhotoPage.c" +#line 17021 "PhotoPage.c" } -#line 2636 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2653 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "IncreaseSize", _tmp0_); -#line 2637 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2654 "/home/jens/Source/shotwell/src/PhotoPage.vala" single_photo_page_get_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp5_); -#line 2637 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2654 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp6_ = zoom_state_is_default (&_tmp5_); -#line 2637 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2654 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (!_tmp6_) { -#line 16941 "PhotoPage.c" +#line 17031 "PhotoPage.c" gboolean _tmp7_ = FALSE; -#line 2637 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2654 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp7_ = editing_host_page_get_photo_missing (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2637 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2654 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = !_tmp7_; -#line 16947 "PhotoPage.c" +#line 17037 "PhotoPage.c" } else { -#line 2637 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2654 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = FALSE; -#line 16951 "PhotoPage.c" +#line 17041 "PhotoPage.c" } -#line 2637 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2654 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DecreaseSize", _tmp4_); -#line 16955 "PhotoPage.c" +#line 17045 "PhotoPage.c" } static void library_photo_page_real_on_increase_size (EditingHostPage* base) { LibraryPhotoPage * self; -#line 2640 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2657 "/home/jens/Source/shotwell/src/PhotoPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage); -#line 2641 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2658 "/home/jens/Source/shotwell/src/PhotoPage.vala" EDITING_HOST_PAGE_CLASS (library_photo_page_parent_class)->on_increase_size (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2643 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2660 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_update_zoom_menu_item_sensitivity (self); -#line 16967 "PhotoPage.c" +#line 17057 "PhotoPage.c" } static void library_photo_page_real_on_decrease_size (EditingHostPage* base) { LibraryPhotoPage * self; -#line 2646 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2663 "/home/jens/Source/shotwell/src/PhotoPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage); -#line 2647 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2664 "/home/jens/Source/shotwell/src/PhotoPage.vala" EDITING_HOST_PAGE_CLASS (library_photo_page_parent_class)->on_decrease_size (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2649 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2666 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_update_zoom_menu_item_sensitivity (self); -#line 16979 "PhotoPage.c" +#line 17069 "PhotoPage.c" } @@ -16992,43 +17082,43 @@ static gboolean library_photo_page_real_on_zoom_slider_key_press (EditingHostPag GdkEventKey* _tmp2_ = NULL; guint _tmp3_ = 0U; const gchar* _tmp4_ = NULL; -#line 2652 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2669 "/home/jens/Source/shotwell/src/PhotoPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage); -#line 2652 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2669 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 2653 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2670 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = event; -#line 2653 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2670 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = EDITING_HOST_PAGE_CLASS (library_photo_page_parent_class)->on_zoom_slider_key_press (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), _tmp0_); -#line 2653 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2670 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp1_) { -#line 2654 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2671 "/home/jens/Source/shotwell/src/PhotoPage.vala" result = TRUE; -#line 2654 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2671 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 17005 "PhotoPage.c" +#line 17095 "PhotoPage.c" } -#line 2656 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2673 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = event; -#line 2656 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2673 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = _tmp2_->keyval; -#line 2656 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2673 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = gdk_keyval_name (_tmp3_); -#line 2656 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2673 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (g_strcmp0 (_tmp4_, "Escape") == 0) { -#line 2657 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2674 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_return_to_collection (self); -#line 2658 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2675 "/home/jens/Source/shotwell/src/PhotoPage.vala" result = TRUE; -#line 2658 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2675 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 17021 "PhotoPage.c" +#line 17111 "PhotoPage.c" } else { -#line 2660 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2677 "/home/jens/Source/shotwell/src/PhotoPage.vala" result = FALSE; -#line 2660 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2677 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 17027 "PhotoPage.c" +#line 17117 "PhotoPage.c" } } @@ -17038,77 +17128,77 @@ static void library_photo_page_real_update_ui (EditingHostPage* base, gboolean m gboolean sensitivity = FALSE; gboolean _tmp0_ = FALSE; gboolean _tmp1_ = FALSE; -#line 2664 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2681 "/home/jens/Source/shotwell/src/PhotoPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage); -#line 2665 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2682 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = missing; -#line 2665 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2682 "/home/jens/Source/shotwell/src/PhotoPage.vala" sensitivity = !_tmp0_; -#line 2667 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2684 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SendTo", sensitivity); -#line 2668 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2685 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Publish", sensitivity); -#line 2669 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2686 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Print", sensitivity); -#line 2670 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2687 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CommonJumpToFile", sensitivity); -#line 2672 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2689 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CommonUndo", sensitivity); -#line 2673 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2690 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CommonRedo", sensitivity); -#line 2675 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2692 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "IncreaseSize", sensitivity); -#line 2676 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2693 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DecreaseSize", sensitivity); -#line 2677 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2694 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ZoomFit", sensitivity); -#line 2678 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2695 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Zoom100", sensitivity); -#line 2679 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2696 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Zoom200", sensitivity); -#line 2680 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2697 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Slideshow", sensitivity); -#line 2682 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2699 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateClockwise", sensitivity); -#line 2683 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2700 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateCounterclockwise", sensitivity); -#line 2684 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2701 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "FlipHorizontally", sensitivity); -#line 2685 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2702 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "FlipVertically", sensitivity); -#line 2686 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2703 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Enhance", sensitivity); -#line 2687 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2704 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Crop", sensitivity); -#line 2688 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2705 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RedEye", sensitivity); -#line 2689 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2706 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Adjust", sensitivity); -#line 2690 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2707 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "EditTitle", sensitivity); -#line 2691 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2708 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "AdjustDateTime", sensitivity); -#line 2692 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2709 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ExternalEdit", sensitivity); -#line 2693 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2710 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ExternalEditRAW", sensitivity); -#line 2694 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2711 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Revert", sensitivity); -#line 2696 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2713 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Rate", sensitivity); -#line 2697 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2714 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Flag", sensitivity); -#line 2698 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2715 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "AddTags", sensitivity); -#line 2699 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2716 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ModifyTags", sensitivity); -#line 2701 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2718 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SetBackground", sensitivity); -#line 2703 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2720 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = missing; -#line 2703 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2720 "/home/jens/Source/shotwell/src/PhotoPage.vala" EDITING_HOST_PAGE_CLASS (library_photo_page_parent_class)->update_ui (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), _tmp1_); -#line 17107 "PhotoPage.c" +#line 17197 "PhotoPage.c" } @@ -17117,36 +17207,36 @@ static void library_photo_page_real_notify_photo_backing_missing (EditingHostPag gboolean _tmp0_ = FALSE; Photo* _tmp3_ = NULL; gboolean _tmp4_ = FALSE; -#line 2706 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2723 "/home/jens/Source/shotwell/src/PhotoPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage); -#line 2706 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2723 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (IS_PHOTO (photo)); -#line 2707 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2724 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = missing; -#line 2707 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2724 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp0_) { -#line 17124 "PhotoPage.c" +#line 17214 "PhotoPage.c" Photo* _tmp1_ = NULL; -#line 2708 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2725 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = photo; -#line 2708 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2725 "/home/jens/Source/shotwell/src/PhotoPage.vala" media_source_mark_offline (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_LIBRARY_PHOTO, LibraryPhoto), TYPE_MEDIA_SOURCE, MediaSource)); -#line 17130 "PhotoPage.c" +#line 17220 "PhotoPage.c" } else { Photo* _tmp2_ = NULL; -#line 2710 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2727 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = photo; -#line 2710 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2727 "/home/jens/Source/shotwell/src/PhotoPage.vala" media_source_mark_online (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_LIBRARY_PHOTO, LibraryPhoto), TYPE_MEDIA_SOURCE, MediaSource)); -#line 17137 "PhotoPage.c" +#line 17227 "PhotoPage.c" } -#line 2712 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2729 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = photo; -#line 2712 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2729 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = missing; -#line 2712 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2729 "/home/jens/Source/shotwell/src/PhotoPage.vala" EDITING_HOST_PAGE_CLASS (library_photo_page_parent_class)->notify_photo_backing_missing (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), _tmp3_, _tmp4_); -#line 17145 "PhotoPage.c" +#line 17235 "PhotoPage.c" } @@ -17160,300 +17250,300 @@ static gboolean library_photo_page_real_key_press_event (GtkWidget* base, GdkEve const gchar* _tmp5_ = NULL; const gchar* _tmp6_ = NULL; GQuark _tmp8_ = 0U; -#line 2720 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala" static GQuark _tmp7_label0 = 0; -#line 2720 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala" static GQuark _tmp7_label1 = 0; -#line 2720 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala" static GQuark _tmp7_label2 = 0; -#line 2720 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala" static GQuark _tmp7_label3 = 0; -#line 2720 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala" static GQuark _tmp7_label4 = 0; -#line 2720 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala" static GQuark _tmp7_label5 = 0; -#line 2720 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala" static GQuark _tmp7_label6 = 0; -#line 2720 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala" static GQuark _tmp7_label7 = 0; -#line 2720 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala" static GQuark _tmp7_label8 = 0; -#line 2720 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala" static GQuark _tmp7_label9 = 0; -#line 2720 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala" static GQuark _tmp7_label10 = 0; -#line 2720 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala" static GQuark _tmp7_label11 = 0; -#line 2720 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala" static GQuark _tmp7_label12 = 0; -#line 2720 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala" static GQuark _tmp7_label13 = 0; -#line 2720 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala" static GQuark _tmp7_label14 = 0; -#line 2720 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala" static GQuark _tmp7_label15 = 0; -#line 2720 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala" static GQuark _tmp7_label16 = 0; -#line 2720 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala" static GQuark _tmp7_label17 = 0; -#line 2715 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2732 "/home/jens/Source/shotwell/src/PhotoPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage); -#line 2715 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2732 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 2716 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2733 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (GTK_WIDGET_CLASS (library_photo_page_parent_class)->key_press_event != NULL) { -#line 17201 "PhotoPage.c" +#line 17291 "PhotoPage.c" GdkEventKey* _tmp1_ = NULL; gboolean _tmp2_ = FALSE; -#line 2716 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2733 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = event; -#line 2716 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2733 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = GTK_WIDGET_CLASS (library_photo_page_parent_class)->key_press_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), gtk_widget_get_type (), GtkWidget), _tmp1_); -#line 2716 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2733 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = _tmp2_ == TRUE; -#line 17210 "PhotoPage.c" +#line 17300 "PhotoPage.c" } else { -#line 2716 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2733 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = FALSE; -#line 17214 "PhotoPage.c" +#line 17304 "PhotoPage.c" } -#line 2716 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2733 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp0_) { -#line 2717 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2734 "/home/jens/Source/shotwell/src/PhotoPage.vala" result = TRUE; -#line 2717 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2734 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 17222 "PhotoPage.c" +#line 17312 "PhotoPage.c" } -#line 2719 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2736 "/home/jens/Source/shotwell/src/PhotoPage.vala" handled = TRUE; -#line 2720 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = event; -#line 2720 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = _tmp3_->keyval; -#line 2720 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp5_ = gdk_keyval_name (_tmp4_); -#line 2720 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp6_ = _tmp5_; -#line 2720 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp8_ = (NULL == _tmp6_) ? 0 : g_quark_from_string (_tmp6_); -#line 2720 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (((_tmp8_ == ((0 != _tmp7_label0) ? _tmp7_label0 : (_tmp7_label0 = g_quark_from_static_string ("Escape")))) || (_tmp8_ == ((0 != _tmp7_label1) ? _tmp7_label1 : (_tmp7_label1 = g_quark_from_static_string ("Return"))))) || (_tmp8_ == ((0 != _tmp7_label2) ? _tmp7_label2 : (_tmp7_label2 = g_quark_from_static_string ("KP_Enter"))))) { -#line 2720 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala" switch (0) { -#line 17240 "PhotoPage.c" +#line 17330 "PhotoPage.c" default: { GtkWindow* _tmp9_ = NULL; GtkWindow* _tmp10_ = NULL; gboolean _tmp11_ = FALSE; -#line 2724 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp9_ = page_get_container (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2724 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp10_ = _tmp9_; -#line 2724 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp11_ = !G_TYPE_CHECK_INSTANCE_TYPE (_tmp10_, TYPE_FULLSCREEN_WINDOW); -#line 2724 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp10_); -#line 2724 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp11_) { -#line 2725 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2742 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_return_to_collection (self); -#line 17258 "PhotoPage.c" +#line 17348 "PhotoPage.c" } -#line 2726 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2743 "/home/jens/Source/shotwell/src/PhotoPage.vala" break; -#line 17262 "PhotoPage.c" +#line 17352 "PhotoPage.c" } } } else if (_tmp8_ == ((0 != _tmp7_label3) ? _tmp7_label3 : (_tmp7_label3 = g_quark_from_static_string ("Delete")))) { -#line 2720 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala" switch (0) { -#line 17268 "PhotoPage.c" +#line 17358 "PhotoPage.c" default: { -#line 2732 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2749 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "MoveToTrash"); -#line 2733 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2750 "/home/jens/Source/shotwell/src/PhotoPage.vala" break; -#line 17275 "PhotoPage.c" +#line 17365 "PhotoPage.c" } } } else if ((_tmp8_ == ((0 != _tmp7_label4) ? _tmp7_label4 : (_tmp7_label4 = g_quark_from_static_string ("period")))) || (_tmp8_ == ((0 != _tmp7_label5) ? _tmp7_label5 : (_tmp7_label5 = g_quark_from_static_string ("greater"))))) { -#line 2720 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala" switch (0) { -#line 17281 "PhotoPage.c" +#line 17371 "PhotoPage.c" default: { -#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2754 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "IncreaseRating"); -#line 2738 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2755 "/home/jens/Source/shotwell/src/PhotoPage.vala" break; -#line 17288 "PhotoPage.c" +#line 17378 "PhotoPage.c" } } } else if ((_tmp8_ == ((0 != _tmp7_label6) ? _tmp7_label6 : (_tmp7_label6 = g_quark_from_static_string ("comma")))) || (_tmp8_ == ((0 != _tmp7_label7) ? _tmp7_label7 : (_tmp7_label7 = g_quark_from_static_string ("less"))))) { -#line 2720 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala" switch (0) { -#line 17294 "PhotoPage.c" +#line 17384 "PhotoPage.c" default: { -#line 2742 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2759 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DecreaseRating"); -#line 2743 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2760 "/home/jens/Source/shotwell/src/PhotoPage.vala" break; -#line 17301 "PhotoPage.c" +#line 17391 "PhotoPage.c" } } } else if (_tmp8_ == ((0 != _tmp7_label8) ? _tmp7_label8 : (_tmp7_label8 = g_quark_from_static_string ("KP_1")))) { -#line 2720 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala" switch (0) { -#line 17307 "PhotoPage.c" +#line 17397 "PhotoPage.c" default: { -#line 2746 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2763 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateOne"); -#line 2747 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2764 "/home/jens/Source/shotwell/src/PhotoPage.vala" break; -#line 17314 "PhotoPage.c" +#line 17404 "PhotoPage.c" } } } else if (_tmp8_ == ((0 != _tmp7_label9) ? _tmp7_label9 : (_tmp7_label9 = g_quark_from_static_string ("KP_2")))) { -#line 2720 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala" switch (0) { -#line 17320 "PhotoPage.c" +#line 17410 "PhotoPage.c" default: { -#line 2750 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2767 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateTwo"); -#line 2751 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2768 "/home/jens/Source/shotwell/src/PhotoPage.vala" break; -#line 17327 "PhotoPage.c" +#line 17417 "PhotoPage.c" } } } else if (_tmp8_ == ((0 != _tmp7_label10) ? _tmp7_label10 : (_tmp7_label10 = g_quark_from_static_string ("KP_3")))) { -#line 2720 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala" switch (0) { -#line 17333 "PhotoPage.c" +#line 17423 "PhotoPage.c" default: { -#line 2754 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2771 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateThree"); -#line 2755 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2772 "/home/jens/Source/shotwell/src/PhotoPage.vala" break; -#line 17340 "PhotoPage.c" +#line 17430 "PhotoPage.c" } } } else if (_tmp8_ == ((0 != _tmp7_label11) ? _tmp7_label11 : (_tmp7_label11 = g_quark_from_static_string ("KP_4")))) { -#line 2720 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala" switch (0) { -#line 17346 "PhotoPage.c" +#line 17436 "PhotoPage.c" default: { -#line 2758 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2775 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateFour"); -#line 2759 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2776 "/home/jens/Source/shotwell/src/PhotoPage.vala" break; -#line 17353 "PhotoPage.c" +#line 17443 "PhotoPage.c" } } } else if (_tmp8_ == ((0 != _tmp7_label12) ? _tmp7_label12 : (_tmp7_label12 = g_quark_from_static_string ("KP_5")))) { -#line 2720 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala" switch (0) { -#line 17359 "PhotoPage.c" +#line 17449 "PhotoPage.c" default: { -#line 2762 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2779 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateFive"); -#line 2763 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2780 "/home/jens/Source/shotwell/src/PhotoPage.vala" break; -#line 17366 "PhotoPage.c" +#line 17456 "PhotoPage.c" } } } else if (_tmp8_ == ((0 != _tmp7_label13) ? _tmp7_label13 : (_tmp7_label13 = g_quark_from_static_string ("KP_0")))) { -#line 2720 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala" switch (0) { -#line 17372 "PhotoPage.c" +#line 17462 "PhotoPage.c" default: { -#line 2766 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2783 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateUnrated"); -#line 2767 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2784 "/home/jens/Source/shotwell/src/PhotoPage.vala" break; -#line 17379 "PhotoPage.c" +#line 17469 "PhotoPage.c" } } } else if (_tmp8_ == ((0 != _tmp7_label14) ? _tmp7_label14 : (_tmp7_label14 = g_quark_from_static_string ("KP_9")))) { -#line 2720 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala" switch (0) { -#line 17385 "PhotoPage.c" +#line 17475 "PhotoPage.c" default: { -#line 2770 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2787 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateRejected"); -#line 2771 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2788 "/home/jens/Source/shotwell/src/PhotoPage.vala" break; -#line 17392 "PhotoPage.c" +#line 17482 "PhotoPage.c" } } } else if (_tmp8_ == ((0 != _tmp7_label15) ? _tmp7_label15 : (_tmp7_label15 = g_quark_from_static_string ("bracketright")))) { -#line 2720 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala" switch (0) { -#line 17398 "PhotoPage.c" +#line 17488 "PhotoPage.c" default: { -#line 2774 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2791 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateClockwise"); -#line 2775 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2792 "/home/jens/Source/shotwell/src/PhotoPage.vala" break; -#line 17405 "PhotoPage.c" +#line 17495 "PhotoPage.c" } } } else if (_tmp8_ == ((0 != _tmp7_label16) ? _tmp7_label16 : (_tmp7_label16 = g_quark_from_static_string ("bracketleft")))) { -#line 2720 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala" switch (0) { -#line 17411 "PhotoPage.c" +#line 17501 "PhotoPage.c" default: { -#line 2778 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2795 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateCounterclockwise"); -#line 2779 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2796 "/home/jens/Source/shotwell/src/PhotoPage.vala" break; -#line 17418 "PhotoPage.c" +#line 17508 "PhotoPage.c" } } } else if (_tmp8_ == ((0 != _tmp7_label17) ? _tmp7_label17 : (_tmp7_label17 = g_quark_from_static_string ("slash")))) { -#line 2720 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala" switch (0) { -#line 17424 "PhotoPage.c" +#line 17514 "PhotoPage.c" default: { -#line 2782 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2799 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Flag"); -#line 2783 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2800 "/home/jens/Source/shotwell/src/PhotoPage.vala" break; -#line 17431 "PhotoPage.c" +#line 17521 "PhotoPage.c" } } } else { -#line 2720 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala" switch (0) { -#line 17437 "PhotoPage.c" +#line 17527 "PhotoPage.c" default: { -#line 2786 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2803 "/home/jens/Source/shotwell/src/PhotoPage.vala" handled = FALSE; -#line 2787 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2804 "/home/jens/Source/shotwell/src/PhotoPage.vala" break; -#line 17444 "PhotoPage.c" +#line 17534 "PhotoPage.c" } } } -#line 2790 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2807 "/home/jens/Source/shotwell/src/PhotoPage.vala" result = handled; -#line 2790 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2807 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 17452 "PhotoPage.c" +#line 17542 "PhotoPage.c" } @@ -17464,44 +17554,44 @@ static gboolean library_photo_page_real_on_double_click (EditingHostPage* base, GtkWindow* _tmp0_ = NULL; FullscreenWindow* _tmp1_ = NULL; FullscreenWindow* _tmp2_ = NULL; -#line 2793 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2810 "/home/jens/Source/shotwell/src/PhotoPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage); -#line 2793 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2810 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 2794 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2811 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = page_get_container (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2794 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2811 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_FULLSCREEN_WINDOW) ? ((FullscreenWindow*) _tmp0_) : NULL; -#line 2794 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2811 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp1_ == NULL) { -#line 2794 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2811 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp0_); -#line 17475 "PhotoPage.c" +#line 17565 "PhotoPage.c" } -#line 2794 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2811 "/home/jens/Source/shotwell/src/PhotoPage.vala" fs = _tmp1_; -#line 2795 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2812 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = fs; -#line 2795 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2812 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp2_ == NULL) { -#line 2796 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2813 "/home/jens/Source/shotwell/src/PhotoPage.vala" self->priv->return_to_collection_on_release = TRUE; -#line 17485 "PhotoPage.c" +#line 17575 "PhotoPage.c" } else { FullscreenWindow* _tmp3_ = NULL; -#line 2798 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2815 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = fs; -#line 2798 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2815 "/home/jens/Source/shotwell/src/PhotoPage.vala" fullscreen_window_close (_tmp3_); -#line 17492 "PhotoPage.c" +#line 17582 "PhotoPage.c" } -#line 2800 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2817 "/home/jens/Source/shotwell/src/PhotoPage.vala" result = TRUE; -#line 2800 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2817 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (fs); -#line 2800 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2817 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 17500 "PhotoPage.c" +#line 17590 "PhotoPage.c" } @@ -17511,33 +17601,33 @@ static gboolean library_photo_page_real_on_left_released (Page* base, GdkEventBu gboolean _tmp0_ = FALSE; GdkEventButton* _tmp1_ = NULL; gboolean _tmp2_ = FALSE; -#line 2803 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2820 "/home/jens/Source/shotwell/src/PhotoPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage); -#line 2803 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2820 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 2804 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2821 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = self->priv->return_to_collection_on_release; -#line 2804 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2821 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp0_) { -#line 2805 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2822 "/home/jens/Source/shotwell/src/PhotoPage.vala" self->priv->return_to_collection_on_release = FALSE; -#line 2806 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2823 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_return_to_collection (self); -#line 2808 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2825 "/home/jens/Source/shotwell/src/PhotoPage.vala" result = TRUE; -#line 2808 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2825 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 17526 "PhotoPage.c" +#line 17616 "PhotoPage.c" } -#line 2811 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2828 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = event; -#line 2811 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2828 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = PAGE_CLASS (library_photo_page_parent_class)->on_left_released (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), TYPE_PAGE, Page), _tmp1_); -#line 2811 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2828 "/home/jens/Source/shotwell/src/PhotoPage.vala" result = _tmp2_; -#line 2811 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2828 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 17536 "PhotoPage.c" +#line 17626 "PhotoPage.c" } @@ -17546,13 +17636,13 @@ static GtkMenu* library_photo_page_get_context_menu (LibraryPhotoPage* self) { GtkMenu* _tmp0_ = NULL; GtkMenu* _tmp7_ = NULL; GtkMenu* _tmp8_ = NULL; -#line 2816 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2833 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_val_if_fail (IS_LIBRARY_PHOTO_PAGE (self), NULL); -#line 2817 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2834 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = self->priv->context_menu; -#line 2817 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2834 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp0_ == NULL) { -#line 17551 "PhotoPage.c" +#line 17641 "PhotoPage.c" GMenuModel* model = NULL; GtkBuilder* _tmp1_ = NULL; GObject* _tmp2_ = NULL; @@ -17560,41 +17650,41 @@ static GtkMenu* library_photo_page_get_context_menu (LibraryPhotoPage* self) { GMenuModel* _tmp4_ = NULL; GtkMenu* _tmp5_ = NULL; GtkMenu* _tmp6_ = NULL; -#line 2818 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2835 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->builder; -#line 2818 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2835 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = gtk_builder_get_object (_tmp1_, "PhotoContextMenu"); -#line 2818 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2835 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, g_menu_model_get_type ()) ? ((GMenuModel*) _tmp2_) : NULL); -#line 2818 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2835 "/home/jens/Source/shotwell/src/PhotoPage.vala" model = _tmp3_; -#line 2820 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2837 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = model; -#line 2820 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2837 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp5_ = (GtkMenu*) gtk_menu_new_from_model (_tmp4_); -#line 2820 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2837 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_object_ref_sink (_tmp5_); -#line 2820 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2837 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (self->priv->context_menu); -#line 2820 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2837 "/home/jens/Source/shotwell/src/PhotoPage.vala" self->priv->context_menu = _tmp5_; -#line 2821 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2838 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp6_ = self->priv->context_menu; -#line 2821 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2838 "/home/jens/Source/shotwell/src/PhotoPage.vala" gtk_menu_attach_to_widget (_tmp6_, G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), NULL); -#line 2817 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2834 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (model); -#line 17583 "PhotoPage.c" +#line 17673 "PhotoPage.c" } -#line 2824 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2841 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp7_ = self->priv->context_menu; -#line 2824 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2841 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp8_ = _g_object_ref0 (_tmp7_); -#line 2824 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2841 "/home/jens/Source/shotwell/src/PhotoPage.vala" result = _tmp8_; -#line 2824 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2841 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 17593 "PhotoPage.c" +#line 17683 "PhotoPage.c" } @@ -17604,25 +17694,25 @@ static gboolean library_photo_page_real_on_context_buttonpress (Page* base, GdkE GtkMenu* _tmp0_ = NULL; GtkMenu* _tmp1_ = NULL; GdkEventButton* _tmp2_ = NULL; -#line 2827 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2844 "/home/jens/Source/shotwell/src/PhotoPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage); -#line 2827 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2844 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 2828 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2845 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = library_photo_page_get_context_menu (self); -#line 2828 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2845 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = _tmp0_; -#line 2828 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2845 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = event; -#line 2828 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2845 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_popup_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), _tmp1_, _tmp2_); -#line 2828 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2845 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp1_); -#line 2830 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2847 "/home/jens/Source/shotwell/src/PhotoPage.vala" result = TRUE; -#line 2830 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2847 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 17621 "PhotoPage.c" +#line 17711 "PhotoPage.c" } @@ -17631,59 +17721,59 @@ static gboolean library_photo_page_real_on_context_keypress (Page* base) { gboolean result = FALSE; GtkMenu* _tmp0_ = NULL; GtkMenu* _tmp1_ = NULL; -#line 2833 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2850 "/home/jens/Source/shotwell/src/PhotoPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage); -#line 2834 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2851 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = library_photo_page_get_context_menu (self); -#line 2834 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2851 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = _tmp0_; -#line 2834 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2851 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_popup_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), _tmp1_, NULL); -#line 2834 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2851 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp1_); -#line 2836 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2853 "/home/jens/Source/shotwell/src/PhotoPage.vala" result = TRUE; -#line 2836 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2853 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 17644 "PhotoPage.c" +#line 17734 "PhotoPage.c" } static void library_photo_page_return_to_collection (LibraryPhotoPage* self) { CollectionPage* _tmp0_ = NULL; -#line 2839 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2856 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 2841 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2858 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = self->priv->return_page; -#line 2841 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2858 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (NULL != _tmp0_) { -#line 17656 "PhotoPage.c" +#line 17746 "PhotoPage.c" LibraryWindow* _tmp1_ = NULL; LibraryWindow* _tmp2_ = NULL; CollectionPage* _tmp3_ = NULL; -#line 2842 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2859 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = library_window_get_app (); -#line 2842 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2859 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = _tmp1_; -#line 2842 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2859 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = self->priv->return_page; -#line 2842 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2859 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_window_switch_to_page (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_PAGE, Page)); -#line 2842 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2859 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp2_); -#line 17670 "PhotoPage.c" +#line 17760 "PhotoPage.c" } else { LibraryWindow* _tmp4_ = NULL; LibraryWindow* _tmp5_ = NULL; -#line 2844 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2861 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = library_window_get_app (); -#line 2844 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2861 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp5_ = _tmp4_; -#line 2844 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2861 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_window_switch_to_library_page (_tmp5_); -#line 2844 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2861 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp5_); -#line 17682 "PhotoPage.c" +#line 17772 "PhotoPage.c" } } @@ -17695,29 +17785,29 @@ static void library_photo_page_on_remove_from_library (LibraryPhotoPage* self) { GeeArrayList* _tmp1_ = NULL; const gchar* _tmp2_ = NULL; const gchar* _tmp3_ = NULL; -#line 2847 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2864 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 2848 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2865 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2848 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2865 "/home/jens/Source/shotwell/src/PhotoPage.vala" photo = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_LIBRARY_PHOTO, LibraryPhoto); -#line 2850 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2867 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL); -#line 2850 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2867 "/home/jens/Source/shotwell/src/PhotoPage.vala" photos = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection); -#line 2851 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2868 "/home/jens/Source/shotwell/src/PhotoPage.vala" gee_collection_add (photos, photo); -#line 2853 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2870 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = _ ("Remove From Library"); -#line 2853 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2870 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = _ ("Removing Photo From Library"); -#line 2853 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2870 "/home/jens/Source/shotwell/src/PhotoPage.vala" remove_from_app (photos, _tmp2_, _tmp3_); -#line 2847 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2864 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (photos); -#line 2847 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2864 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (photo); -#line 17716 "PhotoPage.c" +#line 17806 "PhotoPage.c" } @@ -17742,64 +17832,64 @@ static void library_photo_page_on_move_to_trash (LibraryPhotoPage* self) { TrashUntrashPhotosCommand* _tmp26_ = NULL; LibraryWindow* _tmp27_ = NULL; LibraryWindow* _tmp28_ = NULL; -#line 2856 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2873 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 2857 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2874 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2857 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2874 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (!_tmp0_) { -#line 2858 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2875 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 17749 "PhotoPage.c" +#line 17839 "PhotoPage.c" } -#line 2865 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2882 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = self->priv->return_page; -#line 2865 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2882 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, TYPE_EVENT_PAGE)) { -#line 17755 "PhotoPage.c" +#line 17845 "PhotoPage.c" LibraryWindow* _tmp2_ = NULL; LibraryWindow* _tmp3_ = NULL; -#line 2866 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2883 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = library_window_get_app (); -#line 2866 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2883 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = _tmp2_; -#line 2866 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2883 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_window_set_page_switching_enabled (_tmp3_, FALSE); -#line 2866 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2883 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp3_); -#line 17766 "PhotoPage.c" +#line 17856 "PhotoPage.c" } -#line 2869 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2886 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2869 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2886 "/home/jens/Source/shotwell/src/PhotoPage.vala" photo = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_LIBRARY_PHOTO, LibraryPhoto); -#line 2871 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2888 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp5_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL); -#line 2871 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2888 "/home/jens/Source/shotwell/src/PhotoPage.vala" photos = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection); -#line 2872 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2889 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp6_ = photos; -#line 2872 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2889 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp7_ = photo; -#line 2872 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2889 "/home/jens/Source/shotwell/src/PhotoPage.vala" gee_collection_add (_tmp6_, _tmp7_); -#line 2875 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2892 "/home/jens/Source/shotwell/src/PhotoPage.vala" single_photo_page_on_next_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)); -#line 2879 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2896 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp8_ = photo; -#line 2879 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2896 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp9_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2879 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2896 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp10_ = _tmp9_; -#line 2879 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2896 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp11_ = data_source_equals (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_DATA_SOURCE, DataSource)); -#line 2879 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2896 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp12_ = _tmp11_; -#line 2879 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2896 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp10_); -#line 2879 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2896 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp12_) { -#line 17798 "PhotoPage.c" +#line 17888 "PhotoPage.c" LibraryWindow* _tmp13_ = NULL; LibraryWindow* _tmp14_ = NULL; GtkWindow* _tmp15_ = NULL; @@ -17807,88 +17897,88 @@ static void library_photo_page_on_move_to_trash (LibraryPhotoPage* self) { gboolean _tmp17_ = FALSE; LibraryWindow* _tmp20_ = NULL; LibraryWindow* _tmp21_ = NULL; -#line 2882 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2899 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp13_ = library_window_get_app (); -#line 2882 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2899 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp14_ = _tmp13_; -#line 2882 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2899 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_window_set_page_switching_enabled (_tmp14_, TRUE); -#line 2882 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2899 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp14_); -#line 2884 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2901 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp15_ = page_get_container (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2884 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2901 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp16_ = _tmp15_; -#line 2884 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2901 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp17_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp16_, TYPE_FULLSCREEN_WINDOW); -#line 2884 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2901 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp16_); -#line 2884 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2901 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp17_) { -#line 17824 "PhotoPage.c" +#line 17914 "PhotoPage.c" GtkWindow* _tmp18_ = NULL; FullscreenWindow* _tmp19_ = NULL; -#line 2885 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2902 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp18_ = page_get_container (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2885 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2902 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp19_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_FULLSCREEN_WINDOW, FullscreenWindow); -#line 2885 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2902 "/home/jens/Source/shotwell/src/PhotoPage.vala" fullscreen_window_close (_tmp19_); -#line 2885 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2902 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp19_); -#line 17835 "PhotoPage.c" +#line 17925 "PhotoPage.c" } -#line 2887 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2904 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp20_ = library_window_get_app (); -#line 2887 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2904 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp21_ = _tmp20_; -#line 2887 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2904 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_window_switch_to_library_page (_tmp21_); -#line 2887 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2904 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp21_); -#line 17845 "PhotoPage.c" +#line 17935 "PhotoPage.c" } -#line 2890 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2907 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp22_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2890 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2907 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp23_ = _tmp22_; -#line 2890 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2907 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp24_ = photos; -#line 2890 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2907 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp25_ = trash_untrash_photos_command_new (_tmp24_, TRUE); -#line 2890 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2907 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp26_ = _tmp25_; -#line 2890 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2907 "/home/jens/Source/shotwell/src/PhotoPage.vala" command_manager_execute (_tmp23_, G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_COMMAND, Command)); -#line 2890 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2907 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp26_); -#line 2890 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2907 "/home/jens/Source/shotwell/src/PhotoPage.vala" _command_manager_unref0 (_tmp23_); -#line 2891 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2908 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp27_ = library_window_get_app (); -#line 2891 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2908 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp28_ = _tmp27_; -#line 2891 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2908 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_window_set_page_switching_enabled (_tmp28_, TRUE); -#line 2891 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2908 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp28_); -#line 2856 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2873 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (photos); -#line 2856 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2873 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (photo); -#line 17875 "PhotoPage.c" +#line 17965 "PhotoPage.c" } static void library_photo_page_on_flag_unflag (LibraryPhotoPage* self) { gboolean _tmp0_ = FALSE; -#line 2894 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2911 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 2895 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2912 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2895 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2912 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp0_) { -#line 17887 "PhotoPage.c" +#line 17977 "PhotoPage.c" GeeArrayList* photo_list = NULL; GeeArrayList* _tmp1_ = NULL; GeeArrayList* _tmp2_ = NULL; @@ -17902,62 +17992,62 @@ static void library_photo_page_on_flag_unflag (LibraryPhotoPage* self) { gboolean _tmp10_ = FALSE; FlagUnflagCommand* _tmp11_ = NULL; FlagUnflagCommand* _tmp12_ = NULL; -#line 2896 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2913 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = gee_array_list_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL); -#line 2896 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2913 "/home/jens/Source/shotwell/src/PhotoPage.vala" photo_list = _tmp1_; -#line 2897 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2914 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = photo_list; -#line 2897 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2914 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2897 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2914 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = _tmp3_; -#line 2897 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2914 "/home/jens/Source/shotwell/src/PhotoPage.vala" gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 2897 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2914 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp4_); -#line 2898 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2915 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp5_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2898 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2915 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp6_ = _tmp5_; -#line 2898 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2915 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp7_ = photo_list; -#line 2898 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2915 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp8_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2898 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2915 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_LIBRARY_PHOTO, LibraryPhoto); -#line 2898 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2915 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp10_ = flaggable_is_flagged (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_FLAGGABLE, Flaggable)); -#line 2898 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2915 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp11_ = flag_unflag_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection), !_tmp10_); -#line 2898 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2915 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp12_ = _tmp11_; -#line 2898 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2915 "/home/jens/Source/shotwell/src/PhotoPage.vala" command_manager_execute (_tmp6_, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_COMMAND, Command)); -#line 2898 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2915 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp12_); -#line 2898 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2915 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp9_); -#line 2898 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2915 "/home/jens/Source/shotwell/src/PhotoPage.vala" _command_manager_unref0 (_tmp6_); -#line 2895 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2912 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (photo_list); -#line 17941 "PhotoPage.c" +#line 18031 "PhotoPage.c" } } static void library_photo_page_on_photo_destroyed (LibraryPhotoPage* self, DataSource* source) { DataSource* _tmp0_ = NULL; -#line 2903 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2920 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 2903 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2920 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (IS_DATA_SOURCE (source)); -#line 2904 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2921 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = source; -#line 2904 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2921 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_on_photo_removed (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_LIBRARY_PHOTO, LibraryPhoto)); -#line 17956 "PhotoPage.c" +#line 18046 "PhotoPage.c" } @@ -17979,100 +18069,100 @@ static void library_photo_page_on_photo_removed (LibraryPhotoPage* self, Library Photo* _tmp17_ = NULL; gboolean _tmp18_ = FALSE; gboolean _tmp19_ = FALSE; -#line 2907 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2924 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 2907 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2924 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (IS_LIBRARY_PHOTO (photo)); -#line 2909 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2926 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = photo; -#line 2909 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2926 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp1_ == NULL) { -#line 2909 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2926 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = TRUE; -#line 17988 "PhotoPage.c" +#line 18078 "PhotoPage.c" } else { LibraryPhoto* _tmp2_ = NULL; Photo* _tmp3_ = NULL; Photo* _tmp4_ = NULL; gboolean _tmp5_ = FALSE; -#line 2909 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2926 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = photo; -#line 2909 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2926 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2909 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2926 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = _tmp3_; -#line 2909 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2926 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp5_ = data_source_equals (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_SOURCE, DataSource)); -#line 2909 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2926 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = !_tmp5_; -#line 2909 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2926 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp4_); -#line 18006 "PhotoPage.c" +#line 18096 "PhotoPage.c" } -#line 2909 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2926 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp0_) { -#line 2910 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2927 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 18012 "PhotoPage.c" +#line 18102 "PhotoPage.c" } -#line 2913 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2930 "/home/jens/Source/shotwell/src/PhotoPage.vala" single_photo_page_on_next_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)); -#line 2915 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2932 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp6_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2915 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2932 "/home/jens/Source/shotwell/src/PhotoPage.vala" view = _tmp6_; -#line 2916 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2933 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp7_ = view; -#line 2916 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2933 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp8_ = view; -#line 2916 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2933 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp9_ = view; -#line 2916 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2933 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp10_ = photo; -#line 2916 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2933 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp11_ = view_collection_get_view_for_source (_tmp9_, G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_DATA_SOURCE, DataSource)); -#line 2916 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2933 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp12_ = _tmp11_; -#line 2916 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2933 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp13_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_DATA_OBJECT, DataObject)); -#line 2916 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2933 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp14_ = _tmp13_; -#line 2916 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2933 "/home/jens/Source/shotwell/src/PhotoPage.vala" data_collection_remove_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_COLLECTION, DataCollection), _tmp14_); -#line 2916 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2933 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp14_); -#line 2916 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2933 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp12_); -#line 2917 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2934 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp15_ = photo; -#line 2917 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2934 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp16_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2917 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2934 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp17_ = _tmp16_; -#line 2917 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2934 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp18_ = data_source_equals (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_DATA_SOURCE, DataSource)); -#line 2917 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2934 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp19_ = _tmp18_; -#line 2917 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2934 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp17_); -#line 2917 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2934 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp19_) { -#line 18056 "PhotoPage.c" +#line 18146 "PhotoPage.c" LibraryWindow* _tmp20_ = NULL; LibraryWindow* _tmp21_ = NULL; -#line 2920 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2937 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp20_ = library_window_get_app (); -#line 2920 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2937 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp21_ = _tmp20_; -#line 2920 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2937 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_window_switch_to_library_page (_tmp21_); -#line 2920 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2937 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp21_); -#line 18067 "PhotoPage.c" +#line 18157 "PhotoPage.c" } -#line 2907 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2924 "/home/jens/Source/shotwell/src/PhotoPage.vala" _data_collection_unref0 (view); -#line 18071 "PhotoPage.c" +#line 18161 "PhotoPage.c" } @@ -18081,48 +18171,48 @@ static void library_photo_page_on_print (LibraryPhotoPage* self) { ViewCollection* _tmp1_ = NULL; gint _tmp2_ = 0; gboolean _tmp3_ = FALSE; -#line 2924 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2941 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 2925 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2942 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2925 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2942 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = _tmp0_; -#line 2925 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2942 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = view_collection_get_selected_count (_tmp1_); -#line 2925 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2942 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = _tmp2_ > 0; -#line 2925 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2942 "/home/jens/Source/shotwell/src/PhotoPage.vala" _data_collection_unref0 (_tmp1_); -#line 2925 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2942 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp3_) { -#line 18094 "PhotoPage.c" +#line 18184 "PhotoPage.c" PrintManager* _tmp4_ = NULL; PrintManager* _tmp5_ = NULL; ViewCollection* _tmp6_ = NULL; ViewCollection* _tmp7_ = NULL; GeeList* _tmp8_ = NULL; GeeCollection* _tmp9_ = NULL; -#line 2926 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2943 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = print_manager_get_instance (); -#line 2926 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2943 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp5_ = _tmp4_; -#line 2926 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2943 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp6_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2926 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2943 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp7_ = _tmp6_; -#line 2926 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2943 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp8_ = view_collection_get_selected_sources_of_type (_tmp7_, TYPE_PHOTO); -#line 2926 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2943 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection); -#line 2926 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2943 "/home/jens/Source/shotwell/src/PhotoPage.vala" print_manager_spool_photo (_tmp5_, _tmp9_); -#line 2926 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2943 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp9_); -#line 2926 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2943 "/home/jens/Source/shotwell/src/PhotoPage.vala" _data_collection_unref0 (_tmp7_); -#line 2926 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2943 "/home/jens/Source/shotwell/src/PhotoPage.vala" _print_manager_unref0 (_tmp5_); -#line 18121 "PhotoPage.c" +#line 18211 "PhotoPage.c" } } @@ -18130,55 +18220,55 @@ static void library_photo_page_on_print (LibraryPhotoPage* self) { static void library_photo_page_on_external_app_changed (LibraryPhotoPage* self) { gboolean _tmp0_ = FALSE; gboolean _tmp1_ = FALSE; -#line 2931 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2948 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 2932 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2949 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2932 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2949 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp1_) { -#line 18135 "PhotoPage.c" +#line 18225 "PhotoPage.c" ConfigFacade* _tmp2_ = NULL; ConfigFacade* _tmp3_ = NULL; gchar* _tmp4_ = NULL; gchar* _tmp5_ = NULL; -#line 2933 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2950 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = config_facade_get_instance (); -#line 2933 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2950 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = _tmp2_; -#line 2933 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2950 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = configuration_facade_get_external_photo_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 2933 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2950 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp5_ = _tmp4_; -#line 2933 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2950 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = g_strcmp0 (_tmp5_, "") != 0; -#line 2933 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2950 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_free0 (_tmp5_); -#line 2933 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2950 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp3_); -#line 18154 "PhotoPage.c" +#line 18244 "PhotoPage.c" } else { -#line 2932 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2949 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = FALSE; -#line 18158 "PhotoPage.c" +#line 18248 "PhotoPage.c" } -#line 2932 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2949 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ExternalEdit", _tmp0_); -#line 18162 "PhotoPage.c" +#line 18252 "PhotoPage.c" } static void library_photo_page_on_external_edit (LibraryPhotoPage* self) { gboolean _tmp0_ = FALSE; GError * _inner_error_ = NULL; -#line 2936 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2953 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 2937 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2954 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2937 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2954 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (!_tmp0_) { -#line 2938 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2955 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 18177 "PhotoPage.c" +#line 18267 "PhotoPage.c" } { AppWindow* _tmp1_ = NULL; @@ -18187,39 +18277,39 @@ static void library_photo_page_on_external_edit (LibraryPhotoPage* self) { Photo* _tmp4_ = NULL; AppWindow* _tmp5_ = NULL; AppWindow* _tmp6_ = NULL; -#line 2941 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2958 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = app_window_get_instance (); -#line 2941 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2958 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = _tmp1_; -#line 2941 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2958 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_PAGE_WINDOW, PageWindow)); -#line 2941 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2958 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp2_); -#line 2942 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2959 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2942 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2959 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = _tmp3_; -#line 2942 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2959 "/home/jens/Source/shotwell/src/PhotoPage.vala" photo_open_with_external_editor (_tmp4_, &_inner_error_); -#line 2942 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2959 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp4_); -#line 2942 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2959 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 18204 "PhotoPage.c" - goto __catch248_g_error; +#line 18294 "PhotoPage.c" + goto __catch250_g_error; } -#line 2943 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2960 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp5_ = app_window_get_instance (); -#line 2943 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2960 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp6_ = _tmp5_; -#line 2943 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2960 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_PAGE_WINDOW, PageWindow)); -#line 2943 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2960 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp6_); -#line 18215 "PhotoPage.c" +#line 18305 "PhotoPage.c" } - goto __finally248; - __catch248_g_error: + goto __finally250; + __catch250_g_error: { GError* err = NULL; AppWindow* _tmp7_ = NULL; @@ -18227,42 +18317,42 @@ static void library_photo_page_on_external_edit (LibraryPhotoPage* self) { GError* _tmp9_ = NULL; Photo* _tmp10_ = NULL; Photo* _tmp11_ = NULL; -#line 2940 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2957 "/home/jens/Source/shotwell/src/PhotoPage.vala" err = _inner_error_; -#line 2940 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2957 "/home/jens/Source/shotwell/src/PhotoPage.vala" _inner_error_ = NULL; -#line 2945 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2962 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp7_ = app_window_get_instance (); -#line 2945 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2962 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp8_ = _tmp7_; -#line 2945 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2962 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_PAGE_WINDOW, PageWindow)); -#line 2945 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2962 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp8_); -#line 2946 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2963 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp9_ = err; -#line 2946 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2963 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp10_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2946 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2963 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp11_ = _tmp10_; -#line 2946 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2963 "/home/jens/Source/shotwell/src/PhotoPage.vala" open_external_editor_error_dialog (_tmp9_, _tmp11_); -#line 2946 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2963 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp11_); -#line 2940 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2957 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_error_free0 (err); -#line 18250 "PhotoPage.c" +#line 18340 "PhotoPage.c" } - __finally248: -#line 2940 "/home/jens/Source/shotwell/src/PhotoPage.vala" + __finally250: +#line 2957 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2940 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2957 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2940 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2957 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_clear_error (&_inner_error_); -#line 2940 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2957 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 18261 "PhotoPage.c" +#line 18351 "PhotoPage.c" } } @@ -18274,31 +18364,31 @@ static void library_photo_page_on_external_edit_raw (LibraryPhotoPage* self) { PhotoFileFormat _tmp3_ = 0; gboolean _tmp4_ = FALSE; GError * _inner_error_ = NULL; -#line 2951 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2968 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 2952 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2969 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2952 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2969 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (!_tmp0_) { -#line 2953 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2970 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 18281 "PhotoPage.c" +#line 18371 "PhotoPage.c" } -#line 2955 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2972 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2955 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2972 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = _tmp1_; -#line 2955 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2972 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = photo_get_master_file_format (_tmp2_); -#line 2955 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2972 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = _tmp3_ != PHOTO_FILE_FORMAT_RAW; -#line 2955 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2972 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp2_); -#line 2955 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2972 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp4_) { -#line 2956 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2973 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 18297 "PhotoPage.c" +#line 18387 "PhotoPage.c" } { AppWindow* _tmp5_ = NULL; @@ -18307,39 +18397,39 @@ static void library_photo_page_on_external_edit_raw (LibraryPhotoPage* self) { Photo* _tmp8_ = NULL; AppWindow* _tmp9_ = NULL; AppWindow* _tmp10_ = NULL; -#line 2959 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2976 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp5_ = app_window_get_instance (); -#line 2959 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2976 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp6_ = _tmp5_; -#line 2959 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2976 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_PAGE_WINDOW, PageWindow)); -#line 2959 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2976 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp6_); -#line 2960 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2977 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp7_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2960 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2977 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp8_ = _tmp7_; -#line 2960 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2977 "/home/jens/Source/shotwell/src/PhotoPage.vala" photo_open_with_raw_external_editor (_tmp8_, &_inner_error_); -#line 2960 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2977 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp8_); -#line 2960 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2977 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 18324 "PhotoPage.c" - goto __catch249_g_error; +#line 18414 "PhotoPage.c" + goto __catch251_g_error; } -#line 2961 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2978 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp9_ = app_window_get_instance (); -#line 2961 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2978 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp10_ = _tmp9_; -#line 2961 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2978 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_PAGE_WINDOW, PageWindow)); -#line 2961 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2978 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp10_); -#line 18335 "PhotoPage.c" +#line 18425 "PhotoPage.c" } - goto __finally249; - __catch249_g_error: + goto __finally251; + __catch251_g_error: { GError* err = NULL; AppWindow* _tmp11_ = NULL; @@ -18347,74 +18437,74 @@ static void library_photo_page_on_external_edit_raw (LibraryPhotoPage* self) { GError* _tmp13_ = NULL; gchar* _tmp14_ = NULL; gchar* _tmp15_ = NULL; -#line 2958 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2975 "/home/jens/Source/shotwell/src/PhotoPage.vala" err = _inner_error_; -#line 2958 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2975 "/home/jens/Source/shotwell/src/PhotoPage.vala" _inner_error_ = NULL; -#line 2963 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2980 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp11_ = app_window_get_instance (); -#line 2963 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2980 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp12_ = _tmp11_; -#line 2963 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2980 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_PAGE_WINDOW, PageWindow)); -#line 2963 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2980 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp12_); -#line 2964 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2981 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp13_ = err; -#line 2964 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2981 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp14_ = resources_launch_editor_failed (_tmp13_); -#line 2964 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2981 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp15_ = _tmp14_; -#line 2964 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2981 "/home/jens/Source/shotwell/src/PhotoPage.vala" app_window_error_message (_tmp15_, NULL); -#line 2964 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2981 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_free0 (_tmp15_); -#line 2958 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2975 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_error_free0 (err); -#line 18370 "PhotoPage.c" +#line 18460 "PhotoPage.c" } - __finally249: -#line 2958 "/home/jens/Source/shotwell/src/PhotoPage.vala" + __finally251: +#line 2975 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2958 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2975 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2958 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2975 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_clear_error (&_inner_error_); -#line 2958 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2975 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 18381 "PhotoPage.c" +#line 18471 "PhotoPage.c" } } static void library_photo_page_on_send_to (LibraryPhotoPage* self) { gboolean _tmp0_ = FALSE; -#line 2968 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2985 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 2969 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2986 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2969 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2986 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp0_) { -#line 18394 "PhotoPage.c" +#line 18484 "PhotoPage.c" ViewCollection* _tmp1_ = NULL; ViewCollection* _tmp2_ = NULL; GeeList* _tmp3_ = NULL; GeeCollection* _tmp4_ = NULL; -#line 2970 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2987 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2970 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2987 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = _tmp1_; -#line 2970 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2987 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = view_collection_get_selected_sources (_tmp2_); -#line 2970 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2987 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection); -#line 2970 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2987 "/home/jens/Source/shotwell/src/PhotoPage.vala" desktop_integration_send_to (_tmp4_); -#line 2970 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2987 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp4_); -#line 2970 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2987 "/home/jens/Source/shotwell/src/PhotoPage.vala" _data_collection_unref0 (_tmp2_); -#line 18413 "PhotoPage.c" +#line 18503 "PhotoPage.c" } } @@ -18446,85 +18536,85 @@ static void library_photo_page_on_export (LibraryPhotoPage* self) { gint _tmp17_ = 0; Scaling _tmp18_ = {0}; GError * _inner_error_ = NULL; -#line 2973 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2990 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 2974 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2991 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2974 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2991 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (!_tmp0_) { -#line 2975 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2992 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 18453 "PhotoPage.c" +#line 18543 "PhotoPage.c" } -#line 2977 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2994 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = _ ("Export Photo"); -#line 2977 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2994 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = export_dialog_new (_tmp1_); -#line 2977 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2994 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_object_ref_sink (_tmp2_); -#line 2977 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2994 "/home/jens/Source/shotwell/src/PhotoPage.vala" export_dialog = _tmp2_; -#line 2981 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2998 "/home/jens/Source/shotwell/src/PhotoPage.vala" export_format_parameters_last (&_tmp3_); -#line 2981 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2998 "/home/jens/Source/shotwell/src/PhotoPage.vala" export_params = _tmp3_; -#line 2982 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2999 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = export_dialog; -#line 2982 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2999 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp7_ = export_dialog_execute (_tmp4_, &_tmp5_, &_tmp6_, &export_params); -#line 2982 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2999 "/home/jens/Source/shotwell/src/PhotoPage.vala" scale = _tmp5_; -#line 2982 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2999 "/home/jens/Source/shotwell/src/PhotoPage.vala" constraint = _tmp6_; -#line 2982 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2999 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (!_tmp7_) { -#line 2983 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3000 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (export_dialog); -#line 2983 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3000 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 18481 "PhotoPage.c" +#line 18571 "PhotoPage.c" } -#line 2985 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3002 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp8_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2985 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3002 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp9_ = _tmp8_; -#line 2985 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3002 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp10_ = export_params; -#line 2985 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3002 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp11_ = photo_get_export_basename_for_parameters (_tmp9_, &_tmp10_); -#line 2985 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3002 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp12_ = _tmp11_; -#line 2985 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3002 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp13_ = export_ui_choose_file (_tmp12_); -#line 2985 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3002 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp14_ = _tmp13_; -#line 2985 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3002 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_free0 (_tmp12_); -#line 2985 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3002 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp9_); -#line 2985 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3002 "/home/jens/Source/shotwell/src/PhotoPage.vala" save_as = _tmp14_; -#line 2987 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3004 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp15_ = save_as; -#line 2987 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3004 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp15_ == NULL) { -#line 2988 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3005 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (save_as); -#line 2988 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3005 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (export_dialog); -#line 2988 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3005 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 18513 "PhotoPage.c" +#line 18603 "PhotoPage.c" } -#line 2990 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3007 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp16_ = constraint; -#line 2990 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3007 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp17_ = scale; -#line 2990 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3007 "/home/jens/Source/shotwell/src/PhotoPage.vala" scaling_for_constraint (_tmp16_, _tmp17_, FALSE, &_tmp18_); -#line 2990 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3007 "/home/jens/Source/shotwell/src/PhotoPage.vala" scaling = _tmp18_; -#line 18523 "PhotoPage.c" +#line 18613 "PhotoPage.c" { Photo* _tmp19_ = NULL; Photo* _tmp20_ = NULL; @@ -18540,48 +18630,48 @@ static void library_photo_page_on_export (LibraryPhotoPage* self) { ExportFormatMode _tmp30_ = 0; ExportFormatParameters _tmp31_ = {0}; gboolean _tmp32_ = FALSE; -#line 2993 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3010 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp19_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2993 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3010 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp20_ = _tmp19_; -#line 2993 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3010 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp21_ = save_as; -#line 2993 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3010 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp22_ = scaling; -#line 2993 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3010 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp23_ = export_params; -#line 2993 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3010 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp24_ = _tmp23_.quality; -#line 2993 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3010 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp25_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2993 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3010 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp26_ = _tmp25_; -#line 2993 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3010 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp27_ = export_params; -#line 2993 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3010 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp28_ = photo_get_export_format_for_parameters (_tmp26_, &_tmp27_); -#line 2993 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3010 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp29_ = export_params; -#line 2993 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3010 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp30_ = _tmp29_.mode; -#line 2993 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3010 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp31_ = export_params; -#line 2993 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3010 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp32_ = _tmp31_.export_metadata; -#line 2993 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3010 "/home/jens/Source/shotwell/src/PhotoPage.vala" photo_export (_tmp20_, _tmp21_, &_tmp22_, _tmp24_, _tmp28_, _tmp30_ == EXPORT_FORMAT_MODE_UNMODIFIED, _tmp32_, &_inner_error_); -#line 2993 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3010 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp26_); -#line 2993 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3010 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp20_); -#line 2993 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3010 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 18575 "PhotoPage.c" - goto __catch250_g_error; +#line 18665 "PhotoPage.c" + goto __catch252_g_error; } } - goto __finally250; - __catch250_g_error: + goto __finally252; + __catch252_g_error: { GError* err = NULL; const gchar* _tmp33_ = NULL; @@ -18592,56 +18682,56 @@ static void library_photo_page_on_export (LibraryPhotoPage* self) { const gchar* _tmp38_ = NULL; gchar* _tmp39_ = NULL; gchar* _tmp40_ = NULL; -#line 2992 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3009 "/home/jens/Source/shotwell/src/PhotoPage.vala" err = _inner_error_; -#line 2992 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3009 "/home/jens/Source/shotwell/src/PhotoPage.vala" _inner_error_ = NULL; -#line 2997 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3014 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp33_ = _ ("Unable to export %s: %s"); -#line 2997 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3014 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp34_ = save_as; -#line 2997 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3014 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp35_ = g_file_get_path (_tmp34_); -#line 2997 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3014 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp36_ = _tmp35_; -#line 2997 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3014 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp37_ = err; -#line 2997 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3014 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp38_ = _tmp37_->message; -#line 2997 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3014 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp39_ = g_strdup_printf (_tmp33_, _tmp36_, _tmp38_); -#line 2997 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3014 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp40_ = _tmp39_; -#line 2997 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3014 "/home/jens/Source/shotwell/src/PhotoPage.vala" app_window_error_message (_tmp40_, NULL); -#line 2997 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3014 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_free0 (_tmp40_); -#line 2997 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3014 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_free0 (_tmp36_); -#line 2992 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3009 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_error_free0 (err); -#line 18619 "PhotoPage.c" +#line 18709 "PhotoPage.c" } - __finally250: -#line 2992 "/home/jens/Source/shotwell/src/PhotoPage.vala" + __finally252: +#line 3009 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2992 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3009 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (save_as); -#line 2992 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3009 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (export_dialog); -#line 2992 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3009 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2992 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3009 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_clear_error (&_inner_error_); -#line 2992 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3009 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 18634 "PhotoPage.c" +#line 18724 "PhotoPage.c" } -#line 2973 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2990 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (save_as); -#line 2973 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2990 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (export_dialog); -#line 18640 "PhotoPage.c" +#line 18730 "PhotoPage.c" } @@ -18650,40 +18740,40 @@ static void library_photo_page_on_publish (LibraryPhotoPage* self) { ViewCollection* _tmp1_ = NULL; gint _tmp2_ = 0; gboolean _tmp3_ = FALSE; -#line 3001 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3018 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 3002 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3019 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 3002 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3019 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = _tmp0_; -#line 3002 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3019 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection)); -#line 3002 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3019 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = _tmp2_ > 0; -#line 3002 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3019 "/home/jens/Source/shotwell/src/PhotoPage.vala" _data_collection_unref0 (_tmp1_); -#line 3002 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3019 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp3_) { -#line 18663 "PhotoPage.c" +#line 18753 "PhotoPage.c" ViewCollection* _tmp4_ = NULL; ViewCollection* _tmp5_ = NULL; GeeList* _tmp6_ = NULL; GeeCollection* _tmp7_ = NULL; -#line 3003 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3020 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 3003 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3020 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp5_ = _tmp4_; -#line 3003 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3020 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp6_ = view_collection_get_selected_sources (_tmp5_); -#line 3003 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3020 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp7_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection); -#line 3003 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3020 "/home/jens/Source/shotwell/src/PhotoPage.vala" publishing_ui_publishing_dialog_go (_tmp7_); -#line 3003 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3020 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp7_); -#line 3003 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3020 "/home/jens/Source/shotwell/src/PhotoPage.vala" _data_collection_unref0 (_tmp5_); -#line 18682 "PhotoPage.c" +#line 18772 "PhotoPage.c" } } @@ -18699,56 +18789,56 @@ static void library_photo_page_on_increase_rating (LibraryPhotoPage* self) { CommandManager* _tmp7_ = NULL; CommandManager* _tmp8_ = NULL; SetRatingSingleCommand* _tmp9_ = NULL; -#line 3007 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3024 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 3008 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3025 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 3008 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3025 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (!_tmp1_) { -#line 3008 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3025 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = TRUE; -#line 18706 "PhotoPage.c" +#line 18796 "PhotoPage.c" } else { gboolean _tmp2_ = FALSE; -#line 3008 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3025 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = editing_host_page_get_photo_missing (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 3008 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3025 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = _tmp2_; -#line 18713 "PhotoPage.c" +#line 18803 "PhotoPage.c" } -#line 3008 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3025 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp0_) { -#line 3009 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3026 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 18719 "PhotoPage.c" +#line 18809 "PhotoPage.c" } -#line 3011 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3028 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 3011 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3028 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = _tmp3_; -#line 3011 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3028 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp5_ = set_rating_single_command_new_inc_dec (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_SOURCE, DataSource), TRUE); -#line 3011 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3028 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp6_ = _tmp5_; -#line 3011 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3028 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp4_); -#line 3011 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3028 "/home/jens/Source/shotwell/src/PhotoPage.vala" command = _tmp6_; -#line 3012 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3029 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp7_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 3012 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3029 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp8_ = _tmp7_; -#line 3012 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3029 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp9_ = command; -#line 3012 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3029 "/home/jens/Source/shotwell/src/PhotoPage.vala" command_manager_execute (_tmp8_, G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_COMMAND, Command)); -#line 3012 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3029 "/home/jens/Source/shotwell/src/PhotoPage.vala" _command_manager_unref0 (_tmp8_); -#line 3014 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3031 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_update_rating_menu_item_sensitivity (self); -#line 3007 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3024 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (command); -#line 18747 "PhotoPage.c" +#line 18837 "PhotoPage.c" } @@ -18763,56 +18853,56 @@ static void library_photo_page_on_decrease_rating (LibraryPhotoPage* self) { CommandManager* _tmp7_ = NULL; CommandManager* _tmp8_ = NULL; SetRatingSingleCommand* _tmp9_ = NULL; -#line 3017 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3034 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 3018 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3035 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 3018 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3035 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (!_tmp1_) { -#line 3018 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3035 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = TRUE; -#line 18770 "PhotoPage.c" +#line 18860 "PhotoPage.c" } else { gboolean _tmp2_ = FALSE; -#line 3018 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3035 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = editing_host_page_get_photo_missing (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 3018 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3035 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = _tmp2_; -#line 18777 "PhotoPage.c" +#line 18867 "PhotoPage.c" } -#line 3018 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3035 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp0_) { -#line 3019 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3036 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 18783 "PhotoPage.c" +#line 18873 "PhotoPage.c" } -#line 3021 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3038 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 3021 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3038 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = _tmp3_; -#line 3021 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3038 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp5_ = set_rating_single_command_new_inc_dec (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_SOURCE, DataSource), FALSE); -#line 3021 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3038 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp6_ = _tmp5_; -#line 3021 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3038 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp4_); -#line 3021 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3038 "/home/jens/Source/shotwell/src/PhotoPage.vala" command = _tmp6_; -#line 3022 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3039 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp7_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 3022 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3039 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp8_ = _tmp7_; -#line 3022 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3039 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp9_ = command; -#line 3022 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3039 "/home/jens/Source/shotwell/src/PhotoPage.vala" command_manager_execute (_tmp8_, G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_COMMAND, Command)); -#line 3022 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3039 "/home/jens/Source/shotwell/src/PhotoPage.vala" _command_manager_unref0 (_tmp8_); -#line 3024 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3041 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_update_rating_menu_item_sensitivity (self); -#line 3017 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3034 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (command); -#line 18811 "PhotoPage.c" +#line 18901 "PhotoPage.c" } @@ -18828,121 +18918,121 @@ static void library_photo_page_on_set_rating (LibraryPhotoPage* self, Rating rat CommandManager* _tmp8_ = NULL; CommandManager* _tmp9_ = NULL; SetRatingSingleCommand* _tmp10_ = NULL; -#line 3027 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3044 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 3028 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3045 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 3028 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3045 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (!_tmp1_) { -#line 3028 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3045 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = TRUE; -#line 18835 "PhotoPage.c" +#line 18925 "PhotoPage.c" } else { gboolean _tmp2_ = FALSE; -#line 3028 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3045 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = editing_host_page_get_photo_missing (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 3028 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3045 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = _tmp2_; -#line 18842 "PhotoPage.c" +#line 18932 "PhotoPage.c" } -#line 3028 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3045 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp0_) { -#line 3029 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3046 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 18848 "PhotoPage.c" +#line 18938 "PhotoPage.c" } -#line 3031 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3048 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 3031 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3048 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = _tmp3_; -#line 3031 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3048 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp5_ = rating; -#line 3031 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3048 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp6_ = set_rating_single_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_SOURCE, DataSource), _tmp5_); -#line 3031 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3048 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp7_ = _tmp6_; -#line 3031 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3048 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp4_); -#line 3031 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3048 "/home/jens/Source/shotwell/src/PhotoPage.vala" command = _tmp7_; -#line 3032 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3049 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp8_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 3032 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3049 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp9_ = _tmp8_; -#line 3032 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3049 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp10_ = command; -#line 3032 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3049 "/home/jens/Source/shotwell/src/PhotoPage.vala" command_manager_execute (_tmp9_, G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_COMMAND, Command)); -#line 3032 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3049 "/home/jens/Source/shotwell/src/PhotoPage.vala" _command_manager_unref0 (_tmp9_); -#line 3034 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3051 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_update_rating_menu_item_sensitivity (self); -#line 3027 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3044 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (command); -#line 18878 "PhotoPage.c" +#line 18968 "PhotoPage.c" } static void library_photo_page_on_rate_rejected (LibraryPhotoPage* self) { -#line 3037 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3054 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 3038 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3055 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_on_set_rating (self, RATING_REJECTED); -#line 18887 "PhotoPage.c" +#line 18977 "PhotoPage.c" } static void library_photo_page_on_rate_unrated (LibraryPhotoPage* self) { -#line 3041 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3058 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 3042 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3059 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_on_set_rating (self, RATING_UNRATED); -#line 18896 "PhotoPage.c" +#line 18986 "PhotoPage.c" } static void library_photo_page_on_rate_one (LibraryPhotoPage* self) { -#line 3045 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3062 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 3046 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3063 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_on_set_rating (self, RATING_ONE); -#line 18905 "PhotoPage.c" +#line 18995 "PhotoPage.c" } static void library_photo_page_on_rate_two (LibraryPhotoPage* self) { -#line 3049 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3066 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 3050 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3067 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_on_set_rating (self, RATING_TWO); -#line 18914 "PhotoPage.c" +#line 19004 "PhotoPage.c" } static void library_photo_page_on_rate_three (LibraryPhotoPage* self) { -#line 3053 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3070 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 3054 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3071 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_on_set_rating (self, RATING_THREE); -#line 18923 "PhotoPage.c" +#line 19013 "PhotoPage.c" } static void library_photo_page_on_rate_four (LibraryPhotoPage* self) { -#line 3057 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3074 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 3058 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3075 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_on_set_rating (self, RATING_FOUR); -#line 18932 "PhotoPage.c" +#line 19022 "PhotoPage.c" } static void library_photo_page_on_rate_five (LibraryPhotoPage* self) { -#line 3061 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3078 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 3062 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3079 "/home/jens/Source/shotwell/src/PhotoPage.vala" library_photo_page_on_set_rating (self, RATING_FIVE); -#line 18941 "PhotoPage.c" +#line 19031 "PhotoPage.c" } @@ -18976,117 +19066,117 @@ static void library_photo_page_update_rating_menu_item_sensitivity (LibraryPhoto Photo* _tmp26_ = NULL; Rating _tmp27_ = 0; gboolean _tmp28_ = FALSE; -#line 3065 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3082 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 3066 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3083 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 3066 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3083 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = _tmp0_; -#line 3066 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3083 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 3066 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3083 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateRejected", _tmp2_ != RATING_REJECTED); -#line 3066 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3083 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp1_); -#line 3067 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3084 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 3067 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3084 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = _tmp3_; -#line 3067 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3084 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp5_ = media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 3067 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3084 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateUnrated", _tmp5_ != RATING_UNRATED); -#line 3067 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3084 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp4_); -#line 3068 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3085 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp6_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 3068 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3085 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp7_ = _tmp6_; -#line 3068 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3085 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp8_ = media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 3068 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3085 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateOne", _tmp8_ != RATING_ONE); -#line 3068 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3085 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp7_); -#line 3069 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3086 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp9_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 3069 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3086 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp10_ = _tmp9_; -#line 3069 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3086 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp11_ = media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 3069 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3086 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateTwo", _tmp11_ != RATING_TWO); -#line 3069 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3086 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp10_); -#line 3070 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3087 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp12_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 3070 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3087 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp13_ = _tmp12_; -#line 3070 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3087 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp14_ = media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 3070 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3087 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateThree", _tmp14_ != RATING_THREE); -#line 3070 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3087 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp13_); -#line 3071 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3088 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp15_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 3071 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3088 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp16_ = _tmp15_; -#line 3071 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3088 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp17_ = media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 3071 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3088 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateFour", _tmp17_ != RATING_FOUR); -#line 3071 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3088 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp16_); -#line 3072 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3089 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp18_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 3072 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3089 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp19_ = _tmp18_; -#line 3072 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3089 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp20_ = media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 3072 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3089 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateFive", _tmp20_ != RATING_FIVE); -#line 3072 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3089 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp19_); -#line 3073 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3090 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp21_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 3073 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3090 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp22_ = _tmp21_; -#line 3073 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3090 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp23_ = media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 3073 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3090 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp24_ = rating_can_increase (_tmp23_); -#line 3073 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3090 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "IncreaseRating", _tmp24_); -#line 3073 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3090 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp22_); -#line 3074 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3091 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp25_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 3074 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3091 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp26_ = _tmp25_; -#line 3074 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3091 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp27_ = media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 3074 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3091 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp28_ = rating_can_decrease (_tmp27_); -#line 3074 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3091 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DecreaseRating", _tmp28_); -#line 3074 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3091 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp26_); -#line 19071 "PhotoPage.c" +#line 19161 "PhotoPage.c" } static GVariant* _variant_new18 (const gchar* value) { -#line 3086 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3103 "/home/jens/Source/shotwell/src/PhotoPage.vala" return g_variant_ref_sink (g_variant_new_string (value)); -#line 19078 "PhotoPage.c" +#line 19168 "PhotoPage.c" } static GVariant* _variant_new19 (const gchar* value) { -#line 3091 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3108 "/home/jens/Source/shotwell/src/PhotoPage.vala" return g_variant_ref_sink (g_variant_new_string (value)); -#line 19085 "PhotoPage.c" +#line 19175 "PhotoPage.c" } @@ -19098,98 +19188,98 @@ static void library_photo_page_update_development_menu_item_sensitivity (Library PhotoFileFormat _tmp3_ = 0; PhotoFileFormat _tmp4_ = 0; PhotoFileFormat _tmp5_ = 0; -#line 3077 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3094 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 3078 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3095 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 3078 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3095 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = _tmp0_; -#line 3078 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3095 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = photo_get_master_file_format (_tmp1_); -#line 3078 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3095 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = _tmp2_; -#line 3078 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3095 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp1_); -#line 3078 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3095 "/home/jens/Source/shotwell/src/PhotoPage.vala" format = _tmp3_; -#line 3079 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3096 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = format; -#line 3079 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3096 "/home/jens/Source/shotwell/src/PhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RawDeveloper", _tmp4_ == PHOTO_FILE_FORMAT_RAW); -#line 3081 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3098 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp5_ = format; -#line 3081 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3098 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp5_ == PHOTO_FILE_FORMAT_RAW) { -#line 19119 "PhotoPage.c" +#line 19209 "PhotoPage.c" Photo* _tmp6_ = NULL; Photo* _tmp7_ = NULL; RawDeveloper _tmp8_ = 0; RawDeveloper _tmp9_ = 0; -#line 3084 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3101 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp6_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 3084 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3101 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp7_ = _tmp6_; -#line 3084 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3101 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp8_ = photo_get_raw_developer (_tmp7_); -#line 3084 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3101 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp9_ = _tmp8_; -#line 3084 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3101 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp7_); -#line 3084 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3101 "/home/jens/Source/shotwell/src/PhotoPage.vala" switch (_tmp9_) { -#line 3084 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3101 "/home/jens/Source/shotwell/src/PhotoPage.vala" case RAW_DEVELOPER_SHOTWELL: -#line 19138 "PhotoPage.c" +#line 19228 "PhotoPage.c" { GAction* _tmp10_ = NULL; GAction* _tmp11_ = NULL; GVariant* _tmp12_ = NULL; -#line 3086 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3103 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp10_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RawDeveloper"); -#line 3086 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3103 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp11_ = _tmp10_; -#line 3086 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3103 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp12_ = _variant_new18 ("Shotwell"); -#line 3086 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3103 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_action_change_state (_tmp11_, _tmp12_); -#line 3086 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3103 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_variant_unref0 (_tmp12_); -#line 3086 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3103 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp11_); -#line 3087 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3104 "/home/jens/Source/shotwell/src/PhotoPage.vala" break; -#line 19157 "PhotoPage.c" +#line 19247 "PhotoPage.c" } -#line 3084 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3101 "/home/jens/Source/shotwell/src/PhotoPage.vala" case RAW_DEVELOPER_CAMERA: -#line 3084 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3101 "/home/jens/Source/shotwell/src/PhotoPage.vala" case RAW_DEVELOPER_EMBEDDED: -#line 19163 "PhotoPage.c" +#line 19253 "PhotoPage.c" { GAction* _tmp13_ = NULL; GAction* _tmp14_ = NULL; GVariant* _tmp15_ = NULL; -#line 3091 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3108 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp13_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RawDeveloper"); -#line 3091 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3108 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp14_ = _tmp13_; -#line 3091 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3108 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp15_ = _variant_new19 ("Camera"); -#line 3091 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3108 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_action_change_state (_tmp14_, _tmp15_); -#line 3091 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3108 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_variant_unref0 (_tmp15_); -#line 3091 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3108 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp14_); -#line 3092 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3109 "/home/jens/Source/shotwell/src/PhotoPage.vala" break; -#line 19182 "PhotoPage.c" +#line 19272 "PhotoPage.c" } default: { -#line 3095 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3112 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_assert_not_reached (); -#line 19188 "PhotoPage.c" +#line 19278 "PhotoPage.c" } } } @@ -19203,60 +19293,60 @@ static void library_photo_page_on_metadata_altered (LibraryPhotoPage* self, GeeM Photo* _tmp3_ = NULL; gboolean _tmp4_ = FALSE; gboolean _tmp5_ = FALSE; -#line 3100 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3117 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 3100 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3117 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (GEE_IS_MAP (map)); -#line 3101 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3118 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = map; -#line 3101 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3118 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 3101 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3118 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = _tmp2_; -#line 3101 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3118 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = gee_map_has_key (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_OBJECT, DataObject)); -#line 3101 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3118 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp5_ = _tmp4_; -#line 3101 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3118 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp3_); -#line 3101 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3118 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp5_) { -#line 19220 "PhotoPage.c" +#line 19310 "PhotoPage.c" GeeMap* _tmp6_ = NULL; Photo* _tmp7_ = NULL; Photo* _tmp8_ = NULL; gpointer _tmp9_ = NULL; Alteration* _tmp10_ = NULL; gboolean _tmp11_ = FALSE; -#line 3101 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3118 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp6_ = map; -#line 3101 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3118 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp7_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 3101 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3118 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp8_ = _tmp7_; -#line 3101 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3118 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp9_ = gee_map_get (_tmp6_, G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_OBJECT, DataObject)); -#line 3101 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3118 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp10_ = (Alteration*) _tmp9_; -#line 3101 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3118 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp11_ = alteration_has_subject (_tmp10_, "metadata"); -#line 3101 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3118 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = _tmp11_; -#line 3101 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3118 "/home/jens/Source/shotwell/src/PhotoPage.vala" _alteration_unref0 (_tmp10_); -#line 3101 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3118 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp8_); -#line 19245 "PhotoPage.c" +#line 19335 "PhotoPage.c" } else { -#line 3101 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3118 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = FALSE; -#line 19249 "PhotoPage.c" +#line 19339 "PhotoPage.c" } -#line 3101 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3118 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp0_) { -#line 3102 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3119 "/home/jens/Source/shotwell/src/PhotoPage.vala" single_photo_page_repaint (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), NULL); -#line 19255 "PhotoPage.c" +#line 19345 "PhotoPage.c" } } @@ -19272,29 +19362,29 @@ static void library_photo_page_on_add_tags (LibraryPhotoPage* self) { gint _names_size_ = 0; gchar** _tmp4_ = NULL; gint _tmp4__length1 = 0; -#line 3105 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3122 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 3106 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3123 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = add_tags_dialog_new (); -#line 3106 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3123 "/home/jens/Source/shotwell/src/PhotoPage.vala" dialog = _tmp0_; -#line 3107 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3124 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = dialog; -#line 3107 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3124 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = add_tags_dialog_execute (_tmp1_, &_tmp2_); -#line 3107 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3124 "/home/jens/Source/shotwell/src/PhotoPage.vala" names = _tmp3_; -#line 3107 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3124 "/home/jens/Source/shotwell/src/PhotoPage.vala" names_length1 = _tmp2_; -#line 3107 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3124 "/home/jens/Source/shotwell/src/PhotoPage.vala" _names_size_ = names_length1; -#line 3108 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3125 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = names; -#line 3108 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3125 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4__length1 = names_length1; -#line 3108 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3125 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp4_ != NULL) { -#line 19293 "PhotoPage.c" +#line 19383 "PhotoPage.c" CommandManager* _tmp5_ = NULL; CommandManager* _tmp6_ = NULL; HierarchicalTagIndex* _tmp7_ = NULL; @@ -19311,57 +19401,57 @@ static void library_photo_page_on_add_tags (LibraryPhotoPage* self) { GeeCollection* _tmp16_ = NULL; AddTagsCommand* _tmp17_ = NULL; AddTagsCommand* _tmp18_ = NULL; -#line 3109 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3126 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp5_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 3109 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3126 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp6_ = _tmp5_; -#line 3109 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3126 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp7_ = hierarchical_tag_index_get_global_index (); -#line 3109 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3126 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp8_ = _tmp7_; -#line 3109 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3126 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp9_ = names; -#line 3109 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3126 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp9__length1 = names_length1; -#line 3109 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3126 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp11_ = hierarchical_tag_index_get_paths_for_names_array (_tmp8_, _tmp9_, _tmp9__length1, &_tmp10_); -#line 3109 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3126 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp12_ = _tmp11_; -#line 3109 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3126 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp12__length1 = _tmp10_; -#line 3109 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3126 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp13_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 3109 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3126 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp14_ = _tmp13_; -#line 3109 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3126 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp15_ = view_collection_get_selected_sources (_tmp14_); -#line 3109 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3126 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp16_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_COLLECTION, GeeCollection); -#line 3109 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3126 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp17_ = add_tags_command_new (_tmp12_, _tmp10_, _tmp16_); -#line 3109 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3126 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp18_ = _tmp17_; -#line 3109 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3126 "/home/jens/Source/shotwell/src/PhotoPage.vala" command_manager_execute (_tmp6_, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_COMMAND, Command)); -#line 3109 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3126 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp18_); -#line 3109 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3126 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp16_); -#line 3109 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3126 "/home/jens/Source/shotwell/src/PhotoPage.vala" _data_collection_unref0 (_tmp14_); -#line 3109 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3126 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp12_ = (_vala_array_free (_tmp12_, _tmp12__length1, (GDestroyNotify) g_free), NULL); -#line 3109 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3126 "/home/jens/Source/shotwell/src/PhotoPage.vala" _hierarchical_tag_index_unref0 (_tmp8_); -#line 3109 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3126 "/home/jens/Source/shotwell/src/PhotoPage.vala" _command_manager_unref0 (_tmp6_); -#line 19354 "PhotoPage.c" +#line 19444 "PhotoPage.c" } -#line 3105 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3122 "/home/jens/Source/shotwell/src/PhotoPage.vala" names = (_vala_array_free (names, names_length1, (GDestroyNotify) g_free), NULL); -#line 3105 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3122 "/home/jens/Source/shotwell/src/PhotoPage.vala" _text_entry_dialog_mediator_unref0 (dialog); -#line 19360 "PhotoPage.c" +#line 19450 "PhotoPage.c" } @@ -19386,77 +19476,77 @@ static void library_photo_page_on_modify_tags (LibraryPhotoPage* self) { GeeArrayList* _tmp14_ = NULL; ModifyTagsCommand* _tmp15_ = NULL; ModifyTagsCommand* _tmp16_ = NULL; -#line 3115 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3132 "/home/jens/Source/shotwell/src/PhotoPage.vala" g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 3116 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3133 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 3116 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3133 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp1_ = _tmp0_; -#line 3116 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3133 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp2_ = view_collection_get_selected_at (_tmp1_, 0); -#line 3116 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3133 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp3_ = _tmp2_; -#line 3116 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3133 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp4_ = data_view_get_source (_tmp3_); -#line 3116 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3133 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_LIBRARY_PHOTO, LibraryPhoto); -#line 3116 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3133 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp3_); -#line 3116 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3133 "/home/jens/Source/shotwell/src/PhotoPage.vala" _data_collection_unref0 (_tmp1_); -#line 3116 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3133 "/home/jens/Source/shotwell/src/PhotoPage.vala" photo = _tmp5_; -#line 3118 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3135 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp6_ = photo; -#line 3118 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3135 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp7_ = modify_tags_dialog_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 3118 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3135 "/home/jens/Source/shotwell/src/PhotoPage.vala" dialog = _tmp7_; -#line 3119 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3136 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp8_ = dialog; -#line 3119 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3136 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp9_ = modify_tags_dialog_execute (_tmp8_); -#line 3119 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3136 "/home/jens/Source/shotwell/src/PhotoPage.vala" new_tags = _tmp9_; -#line 3121 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3138 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp10_ = new_tags; -#line 3121 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3138 "/home/jens/Source/shotwell/src/PhotoPage.vala" if (_tmp10_ == NULL) { -#line 3122 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3139 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (new_tags); -#line 3122 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3139 "/home/jens/Source/shotwell/src/PhotoPage.vala" _text_entry_dialog_mediator_unref0 (dialog); -#line 3122 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3139 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (photo); -#line 3122 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3139 "/home/jens/Source/shotwell/src/PhotoPage.vala" return; -#line 19429 "PhotoPage.c" +#line 19519 "PhotoPage.c" } -#line 3124 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3141 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp11_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 3124 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3141 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp12_ = _tmp11_; -#line 3124 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3141 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp13_ = photo; -#line 3124 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3141 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp14_ = new_tags; -#line 3124 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3141 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp15_ = modify_tags_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_MEDIA_SOURCE, MediaSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 3124 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3141 "/home/jens/Source/shotwell/src/PhotoPage.vala" _tmp16_ = _tmp15_; -#line 3124 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3141 "/home/jens/Source/shotwell/src/PhotoPage.vala" command_manager_execute (_tmp12_, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_COMMAND, Command)); -#line 3124 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3141 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (_tmp16_); -#line 3124 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3141 "/home/jens/Source/shotwell/src/PhotoPage.vala" _command_manager_unref0 (_tmp12_); -#line 3115 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3132 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (new_tags); -#line 3115 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3132 "/home/jens/Source/shotwell/src/PhotoPage.vala" _text_entry_dialog_mediator_unref0 (dialog); -#line 3115 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 3132 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (photo); -#line 19455 "PhotoPage.c" +#line 19545 "PhotoPage.c" } @@ -19488,7 +19578,7 @@ static gboolean library_photo_page_library_photo_page_view_filter_real_predicate result = _tmp4_; #line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala" return result; -#line 19487 "PhotoPage.c" +#line 19577 "PhotoPage.c" } @@ -19498,14 +19588,14 @@ static LibraryPhotoPageLibraryPhotoPageViewFilter* library_photo_page_library_ph self = (LibraryPhotoPageLibraryPhotoPageViewFilter*) view_filter_construct (object_type); #line 2330 "/home/jens/Source/shotwell/src/PhotoPage.vala" return self; -#line 19497 "PhotoPage.c" +#line 19587 "PhotoPage.c" } static LibraryPhotoPageLibraryPhotoPageViewFilter* library_photo_page_library_photo_page_view_filter_new (void) { #line 2330 "/home/jens/Source/shotwell/src/PhotoPage.vala" return library_photo_page_library_photo_page_view_filter_construct (LIBRARY_PHOTO_PAGE_TYPE_LIBRARY_PHOTO_PAGE_VIEW_FILTER); -#line 19504 "PhotoPage.c" +#line 19594 "PhotoPage.c" } @@ -19514,7 +19604,7 @@ static void library_photo_page_library_photo_page_view_filter_class_init (Librar library_photo_page_library_photo_page_view_filter_parent_class = g_type_class_peek_parent (klass); #line 2330 "/home/jens/Source/shotwell/src/PhotoPage.vala" ((ViewFilterClass *) klass)->predicate = library_photo_page_library_photo_page_view_filter_real_predicate; -#line 19513 "PhotoPage.c" +#line 19603 "PhotoPage.c" } @@ -19544,6 +19634,8 @@ static void library_photo_page_class_init (LibraryPhotoPageClass * klass) { #line 2328 "/home/jens/Source/shotwell/src/PhotoPage.vala" ((PageClass *) klass)->add_actions = library_photo_page_real_add_actions; #line 2328 "/home/jens/Source/shotwell/src/PhotoPage.vala" + ((PageClass *) klass)->remove_actions = library_photo_page_real_remove_actions; +#line 2328 "/home/jens/Source/shotwell/src/PhotoPage.vala" ((PageClass *) klass)->init_collect_injection_groups = library_photo_page_real_init_collect_injection_groups; #line 2328 "/home/jens/Source/shotwell/src/PhotoPage.vala" ((PageClass *) klass)->update_actions = library_photo_page_real_update_actions; @@ -19552,6 +19644,8 @@ static void library_photo_page_class_init (LibraryPhotoPageClass * klass) { #line 2328 "/home/jens/Source/shotwell/src/PhotoPage.vala" ((PageClass *) klass)->switched_to = library_photo_page_real_switched_to; #line 2328 "/home/jens/Source/shotwell/src/PhotoPage.vala" + ((PageClass *) klass)->switching_from = library_photo_page_real_switching_from; +#line 2328 "/home/jens/Source/shotwell/src/PhotoPage.vala" ((EditingHostPageClass *) klass)->get_bottom_left_trinket = library_photo_page_real_get_bottom_left_trinket; #line 2328 "/home/jens/Source/shotwell/src/PhotoPage.vala" ((EditingHostPageClass *) klass)->get_top_right_trinket = library_photo_page_real_get_top_right_trinket; @@ -19577,7 +19671,7 @@ static void library_photo_page_class_init (LibraryPhotoPageClass * klass) { ((PageClass *) klass)->on_context_keypress = library_photo_page_real_on_context_keypress; #line 2328 "/home/jens/Source/shotwell/src/PhotoPage.vala" G_OBJECT_CLASS (klass)->finalize = library_photo_page_finalize; -#line 19576 "PhotoPage.c" +#line 19670 "PhotoPage.c" } @@ -19593,7 +19687,7 @@ static void library_photo_page_instance_init (LibraryPhotoPage * self) { _tmp0_ = library_photo_page_library_photo_page_view_filter_new (); #line 2338 "/home/jens/Source/shotwell/src/PhotoPage.vala" self->priv->filter = _tmp0_; -#line 19592 "PhotoPage.c" +#line 19686 "PhotoPage.c" } @@ -19634,11 +19728,11 @@ static void library_photo_page_finalize (GObject* obj) { _g_object_unref0 (self->priv->return_page); #line 2338 "/home/jens/Source/shotwell/src/PhotoPage.vala" _view_filter_unref0 (self->priv->filter); -#line 2814 "/home/jens/Source/shotwell/src/PhotoPage.vala" +#line 2831 "/home/jens/Source/shotwell/src/PhotoPage.vala" _g_object_unref0 (self->priv->context_menu); #line 2328 "/home/jens/Source/shotwell/src/PhotoPage.vala" G_OBJECT_CLASS (library_photo_page_parent_class)->finalize (obj); -#line 19637 "PhotoPage.c" +#line 19731 "PhotoPage.c" } diff --git a/src/PhotoPage.vala b/src/PhotoPage.vala index a6fb529..962c80e 100644 --- a/src/PhotoPage.vala +++ b/src/PhotoPage.vala @@ -2431,17 +2431,26 @@ public class LibraryPhotoPage : EditingHostPage { { "ViewRatings", on_action_toggle, null, "false", on_display_ratings }, // Radio actions - { "RawDeveloper", on_action_radio, "s", "'Shotwell'", on_raw_developer_changed } }; - protected override void add_actions () { - base.add_actions (); + protected override void add_actions (GLib.ActionMap map) { + base.add_actions (map); - AppWindow.get_instance ().add_action_entries (entries, this); + map.add_action_entries (entries, this); (get_action ("ViewRatings") as GLib.SimpleAction).change_state (Config.Facade.get_instance ().get_display_photo_ratings ()); var d = Config.Facade.get_instance().get_default_raw_developer(); - var action = get_action ("RawDeveloper") as GLib.SimpleAction; - action.change_state (d == RawDeveloper.SHOTWELL ? "Shotwell" : "Camera"); + var action = new GLib.SimpleAction.stateful("RawDeveloper", + GLib.VariantType.STRING, d == RawDeveloper.SHOTWELL ? "Shotwell" : "Camera"); + action.change_state.connect(on_raw_developer_changed); + action.set_enabled(true); + map.add_action(action); + } + + protected override void remove_actions(GLib.ActionMap map) { + base.remove_actions(map); + foreach (var entry in entries) { + map.remove_action(entry.name); + } } protected override InjectionGroup[] init_collect_injection_groups() { @@ -2573,7 +2582,7 @@ public class LibraryPhotoPage : EditingHostPage { } // Displays a photo from a specific CollectionPage. When the user exits this view, - // they will be sent back to the return_page. The optional view paramters is for using + // they will be sent back to the return_page. The optional view parameters is for using // a ViewCollection other than the one inside return_page; this is necessary if the // view and return_page have different filters. public void display_for_collection(CollectionPage return_page, Photo photo, @@ -2608,6 +2617,14 @@ public class LibraryPhotoPage : EditingHostPage { set_display_ratings(Config.Facade.get_instance().get_display_photo_ratings()); } + + + public override void switching_from() { + base.switching_from(); + foreach (var entry in entries) { + AppWindow.get_instance().remove_action(entry.name); + } + } protected override Gdk.Pixbuf? get_bottom_left_trinket(int scale) { if (!has_photo() || !Config.Facade.get_instance().get_display_photo_ratings()) @@ -3123,6 +3140,5 @@ public class LibraryPhotoPage : EditingHostPage { get_command_manager().execute(new ModifyTagsCommand(photo, new_tags)); } - } diff --git a/src/PixbufCache.c b/src/PixbufCache.c index 540a79f..cc407c0 100644 --- a/src/PixbufCache.c +++ b/src/PixbufCache.c @@ -1,4 +1,4 @@ -/* PixbufCache.c generated by valac 0.32.1, the Vala compiler +/* PixbufCache.c generated by valac 0.34.4, the Vala compiler * generated from PixbufCache.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -2288,7 +2288,7 @@ static void pixbuf_cache_baseline_fetch_job_real_execute (BackgroundJob* base) { #line 50 "/home/jens/Source/shotwell/src/PixbufCache.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 2291 "PixbufCache.c" - goto __catch450_g_error; + goto __catch452_g_error; } #line 50 "/home/jens/Source/shotwell/src/PixbufCache.vala" _tmp4_ = _tmp0_; @@ -2302,8 +2302,8 @@ static void pixbuf_cache_baseline_fetch_job_real_execute (BackgroundJob* base) { _g_object_unref0 (_tmp0_); #line 2304 "PixbufCache.c" } - goto __finally450; - __catch450_g_error: + goto __finally452; + __catch452_g_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -2324,7 +2324,7 @@ static void pixbuf_cache_baseline_fetch_job_real_execute (BackgroundJob* base) { _g_error_free0 (err); #line 2326 "PixbufCache.c" } - __finally450: + __finally452: #line 49 "/home/jens/Source/shotwell/src/PixbufCache.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 49 "/home/jens/Source/shotwell/src/PixbufCache.vala" @@ -2427,7 +2427,7 @@ static void pixbuf_cache_master_fetch_job_real_execute (BackgroundJob* base) { #line 65 "/home/jens/Source/shotwell/src/PixbufCache.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 2430 "PixbufCache.c" - goto __catch451_g_error; + goto __catch453_g_error; } #line 65 "/home/jens/Source/shotwell/src/PixbufCache.vala" _tmp4_ = _tmp0_; @@ -2441,8 +2441,8 @@ static void pixbuf_cache_master_fetch_job_real_execute (BackgroundJob* base) { _g_object_unref0 (_tmp0_); #line 2443 "PixbufCache.c" } - goto __finally451; - __catch451_g_error: + goto __finally453; + __catch453_g_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -2463,7 +2463,7 @@ static void pixbuf_cache_master_fetch_job_real_execute (BackgroundJob* base) { _g_error_free0 (err); #line 2465 "PixbufCache.c" } - __finally451: + __finally453: #line 64 "/home/jens/Source/shotwell/src/PixbufCache.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 64 "/home/jens/Source/shotwell/src/PixbufCache.vala" @@ -2510,7 +2510,7 @@ static void pixbuf_cache_class_init (PixbufCacheClass * klass) { #line 7 "/home/jens/Source/shotwell/src/PixbufCache.vala" G_OBJECT_CLASS (klass)->finalize = pixbuf_cache_finalize; #line 7 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_signal_new ("fetched", TYPE_PIXBUF_CACHE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT_POINTER, G_TYPE_NONE, 3, TYPE_PHOTO, GDK_TYPE_PIXBUF, G_TYPE_POINTER); + g_signal_new ("fetched", TYPE_PIXBUF_CACHE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT_POINTER, G_TYPE_NONE, 3, TYPE_PHOTO, gdk_pixbuf_get_type (), G_TYPE_POINTER); #line 2515 "PixbufCache.c" } @@ -2522,7 +2522,7 @@ static void pixbuf_cache_instance_init (PixbufCache * self) { #line 7 "/home/jens/Source/shotwell/src/PixbufCache.vala" self->priv = PIXBUF_CACHE_GET_PRIVATE (self); #line 79 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp0_ = gee_hash_map_new (TYPE_PHOTO, (GBoxedCopyFunc) g_object_ref, g_object_unref, GDK_TYPE_PIXBUF, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); + _tmp0_ = gee_hash_map_new (TYPE_PHOTO, (GBoxedCopyFunc) g_object_ref, g_object_unref, gdk_pixbuf_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); #line 79 "/home/jens/Source/shotwell/src/PixbufCache.vala" self->priv->cache = _tmp0_; #line 80 "/home/jens/Source/shotwell/src/PixbufCache.vala" diff --git a/src/Printing.c b/src/Printing.c index 70750fa..3d74121 100644 --- a/src/Printing.c +++ b/src/Printing.c @@ -1,4 +1,4 @@ -/* Printing.c generated by valac 0.32.1, the Vala compiler +/* Printing.c generated by valac 0.34.4, the Vala compiler * generated from Printing.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -2944,15 +2944,15 @@ static gchar string_get (const gchar* self, glong index) { gchar result = '\0'; glong _tmp0_ = 0L; gchar _tmp1_ = '\0'; -#line 1086 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1086 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, '\0'); -#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = index; -#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = ((gchar*) self)[_tmp0_]; -#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp1_; -#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 2958 "Printing.c" } @@ -3433,15 +3433,15 @@ static gdouble double_parse (const gchar* str) { gdouble result = 0.0; const gchar* _tmp0_ = NULL; gdouble _tmp1_ = 0.0; -#line 869 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 869 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (str != NULL, 0.0); -#line 870 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 870 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = str; -#line 870 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 870 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = g_ascii_strtod (_tmp0_, NULL); -#line 870 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 870 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp1_; -#line 870 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 870 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 3447 "Printing.c" } @@ -3503,17 +3503,17 @@ static gboolean string_contains (const gchar* self, const gchar* needle) { gboolean result = FALSE; const gchar* _tmp0_ = NULL; gchar* _tmp1_ = NULL; -#line 1376 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1376 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, FALSE); -#line 1376 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1376 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (needle != NULL, FALSE); -#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = needle; -#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = strstr ((gchar*) self, (gchar*) _tmp0_); -#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp1_ != NULL; -#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 3519 "Printing.c" } @@ -6415,7 +6415,7 @@ void print_manager_spool_photo (PrintManager* self, GeeCollection* to_print) { #line 893 "/home/jens/Source/shotwell/src/Printing.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 6417 "Printing.c" - goto __catch465_g_error; + goto __catch467_g_error; } #line 895 "/home/jens/Source/shotwell/src/Printing.vala" if (_result_ == GTK_PRINT_OPERATION_RESULT_APPLY) { @@ -6433,8 +6433,8 @@ void print_manager_spool_photo (PrintManager* self, GeeCollection* to_print) { #line 6433 "Printing.c" } } - goto __finally465; - __catch465_g_error: + goto __finally467; + __catch467_g_error: { GError* e = NULL; GError* _tmp22_ = NULL; @@ -6460,7 +6460,7 @@ void print_manager_spool_photo (PrintManager* self, GeeCollection* to_print) { _g_error_free0 (e); #line 6461 "Printing.c" } - __finally465: + __finally467: #line 892 "/home/jens/Source/shotwell/src/Printing.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 892 "/home/jens/Source/shotwell/src/Printing.vala" @@ -7984,7 +7984,7 @@ static void print_manager_fit_image_to_canvas (PrintManager* self, Photo* photo, #line 1089 "/home/jens/Source/shotwell/src/Printing.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 7986 "Printing.c" - goto __catch466_g_error; + goto __catch468_g_error; } #line 1090 "/home/jens/Source/shotwell/src/Printing.vala" _tmp52_ = photo_pixbuf; @@ -8111,7 +8111,7 @@ static void print_manager_fit_image_to_canvas (PrintManager* self, Photo* photo, #line 1104 "/home/jens/Source/shotwell/src/Printing.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 8113 "Printing.c" - goto __catch466_g_error; + goto __catch468_g_error; } #line 1105 "/home/jens/Source/shotwell/src/Printing.vala" _tmp85_ = photo_pixbuf; @@ -8137,8 +8137,8 @@ static void print_manager_fit_image_to_canvas (PrintManager* self, Photo* photo, cairo_paint (_tmp89_); #line 8138 "Printing.c" } - goto __finally466; - __catch466_g_error: + goto __finally468; + __catch468_g_error: { GError* e = NULL; PrintJob* _tmp90_ = NULL; @@ -8173,7 +8173,7 @@ static void print_manager_fit_image_to_canvas (PrintManager* self, Photo* photo, _g_error_free0 (e); #line 8174 "Printing.c" } - __finally466: + __finally468: #line 1086 "/home/jens/Source/shotwell/src/Printing.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1086 "/home/jens/Source/shotwell/src/Printing.vala" diff --git a/src/Printing.vala b/src/Printing.vala index f099ed2..d5a84e5 100644 --- a/src/Printing.vala +++ b/src/Printing.vala @@ -164,7 +164,7 @@ public class PrintSettings { /* we define our own measurement enum instead of using the Gtk.Unit enum provided by Gtk+ 2.0 because Gtk.Unit doesn't define a CENTIMETERS - constant (thout it does define an MM for millimeters). This is + constant (though it does define an MM for millimeters). This is unfortunate, because in metric countries people like to think about paper sizes for printing in CM not MM. so, to avoid having to multiply and divide everything by 10 (which is error prone) to convert diff --git a/src/Properties.c b/src/Properties.c index 1b97778..4acfb1b 100644 --- a/src/Properties.c +++ b/src/Properties.c @@ -1,4 +1,4 @@ -/* Properties.c generated by valac 0.32.1, the Vala compiler +/* Properties.c generated by valac 0.34.4, the Vala compiler * generated from Properties.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -1015,35 +1015,35 @@ static gchar* g_time_format (struct tm *self, const gchar* format) { gchar* _tmp3_ = NULL; gint _tmp3__length1 = 0; gchar* _tmp4_ = NULL; -#line 2709 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2758 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (format != NULL, NULL); -#line 2710 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2759 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = g_new0 (gchar, 64); -#line 2710 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2759 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" buffer = _tmp0_; -#line 2710 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2759 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" buffer_length1 = 64; -#line 2710 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2759 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _buffer_size_ = buffer_length1; -#line 2711 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2760 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = buffer; -#line 2711 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2760 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1__length1 = buffer_length1; -#line 2711 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2760 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = format; -#line 2711 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2760 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" strftime (_tmp1_, _tmp1__length1, _tmp2_, &(*self)); -#line 2712 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2761 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = buffer; -#line 2712 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2761 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3__length1 = buffer_length1; -#line 2712 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2761 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = g_strdup ((const gchar*) _tmp3_); -#line 2712 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2761 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp4_; -#line 2712 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2761 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" buffer = (g_free (buffer), NULL); -#line 2712 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2761 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 1049 "Properties.c" } @@ -1053,15 +1053,15 @@ static gchar string_get (const gchar* self, glong index) { gchar result = '\0'; glong _tmp0_ = 0L; gchar _tmp1_ = '\0'; -#line 1086 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1086 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, '\0'); -#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = index; -#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = ((gchar*) self)[_tmp0_]; -#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp1_; -#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 1067 "Properties.c" } @@ -1074,37 +1074,37 @@ static glong string_strnlen (gchar* str, glong maxlen) { glong _tmp1_ = 0L; gchar* _tmp2_ = NULL; gchar* _tmp3_ = NULL; -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = str; -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = maxlen; -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = memchr (_tmp0_, 0, (gsize) _tmp1_); -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" end = _tmp2_; -#line 1296 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1296 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = end; -#line 1296 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1296 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp3_ == NULL) { #line 1090 "Properties.c" glong _tmp4_ = 0L; -#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = maxlen; -#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp4_; -#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 1098 "Properties.c" } else { gchar* _tmp5_ = NULL; gchar* _tmp6_ = NULL; -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = end; -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp6_ = str; -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = (glong) (_tmp5_ - _tmp6_); -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 1110 "Properties.c" } @@ -1124,112 +1124,112 @@ static gchar* string_substring (const gchar* self, glong offset, glong len) { glong _tmp20_ = 0L; glong _tmp21_ = 0L; gchar* _tmp22_ = NULL; -#line 1306 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1306 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, NULL); -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = offset; -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp1_ >= ((glong) 0)) { #line 1134 "Properties.c" glong _tmp2_ = 0L; -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = len; -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = _tmp2_ >= ((glong) 0); #line 1140 "Properties.c" } else { -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = FALSE; #line 1144 "Properties.c" } -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp0_) { #line 1148 "Properties.c" glong _tmp3_ = 0L; glong _tmp4_ = 0L; glong _tmp5_ = 0L; -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = offset; -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = len; -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = string_strnlen ((gchar*) self, _tmp3_ + _tmp4_); -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" string_length = _tmp5_; #line 1160 "Properties.c" } else { gint _tmp6_ = 0; gint _tmp7_ = 0; -#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp6_ = strlen (self); -#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp7_ = _tmp6_; -#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" string_length = (glong) _tmp7_; #line 1170 "Properties.c" } -#line 1315 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1315 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp8_ = offset; -#line 1315 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1315 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp8_ < ((glong) 0)) { #line 1176 "Properties.c" glong _tmp9_ = 0L; glong _tmp10_ = 0L; glong _tmp11_ = 0L; -#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp9_ = string_length; -#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp10_ = offset; -#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" offset = _tmp9_ + _tmp10_; -#line 1317 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1317 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp11_ = offset; -#line 1317 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1317 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (_tmp11_ >= ((glong) 0), NULL); #line 1190 "Properties.c" } else { glong _tmp12_ = 0L; glong _tmp13_ = 0L; -#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp12_ = offset; -#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp13_ = string_length; -#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (_tmp12_ <= _tmp13_, NULL); #line 1200 "Properties.c" } -#line 1321 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1321 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp14_ = len; -#line 1321 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1321 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp14_ < ((glong) 0)) { #line 1206 "Properties.c" glong _tmp15_ = 0L; glong _tmp16_ = 0L; -#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp15_ = string_length; -#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp16_ = offset; -#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" len = _tmp15_ - _tmp16_; #line 1215 "Properties.c" } -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp17_ = offset; -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp18_ = len; -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp19_ = string_length; -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail ((_tmp17_ + _tmp18_) <= _tmp19_, NULL); -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp20_ = offset; -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp21_ = len; -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp22_ = g_strndup (((gchar*) self) + _tmp20_, (gsize) _tmp21_); -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp22_; -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 1235 "Properties.c" } @@ -1342,13 +1342,13 @@ gchar* properties_get_prettyprint_time_with_seconds (Properties* self, struct tm static void g_time_local (time_t time, struct tm* result) { struct tm _result_ = {0}; struct tm _tmp0_ = {0}; -#line 2701 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2750 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" localtime_r (&time, &_tmp0_); -#line 2701 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2750 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _result_ = _tmp0_; -#line 2702 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2751 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" *result = _result_; -#line 2702 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2751 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return; #line 1354 "Properties.c" } @@ -4512,7 +4512,7 @@ static void extended_properties_window_extended_properties_real_get_single_prope #line 543 "/home/jens/Source/shotwell/src/Properties.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 4515 "Properties.c" - goto __catch430_g_error; + goto __catch432_g_error; } #line 543 "/home/jens/Source/shotwell/src/Properties.vala" _tmp23_ = _tmp20_; @@ -4526,8 +4526,8 @@ static void extended_properties_window_extended_properties_real_get_single_prope _media_metadata_unref0 (_tmp20_); #line 4528 "Properties.c" } - goto __finally430; - __catch430_g_error: + goto __finally432; + __catch432_g_error: { GError* e = NULL; Photo* _tmp24_ = NULL; @@ -4548,7 +4548,7 @@ static void extended_properties_window_extended_properties_real_get_single_prope _g_error_free0 (e); #line 4550 "Properties.c" } - __finally430: + __finally432: #line 538 "/home/jens/Source/shotwell/src/Properties.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 538 "/home/jens/Source/shotwell/src/Properties.vala" @@ -4802,11 +4802,11 @@ static void extended_properties_window_extended_properties_real_get_single_prope static gchar* string_replace (const gchar* self, const gchar* old, const gchar* replacement) { gchar* result = NULL; GError * _inner_error_ = NULL; -#line 1380 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1380 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, NULL); -#line 1380 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1380 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (old != NULL, NULL); -#line 1380 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1380 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (replacement != NULL, NULL); #line 4812 "Properties.c" { @@ -4821,98 +4821,98 @@ static gchar* string_replace (const gchar* self, const gchar* old, const gchar* const gchar* _tmp7_ = NULL; gchar* _tmp8_ = NULL; gchar* _tmp9_ = NULL; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = old; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = g_regex_escape_string (_tmp0_, -1); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = _tmp1_; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = g_regex_new (_tmp2_, 0, 0, &_inner_error_); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = _tmp3_; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_free0 (_tmp2_); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" regex = _tmp4_; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_inner_error_->domain == G_REGEX_ERROR) { #line 4843 "Properties.c" - goto __catch431_g_regex_error; + goto __catch433_g_regex_error; } -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_clear_error (&_inner_error_); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return NULL; #line 4852 "Properties.c" } -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp6_ = regex; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp7_ = replacement; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp8_ = g_regex_replace_literal (_tmp6_, self, (gssize) -1, 0, _tmp7_, 0, &_inner_error_); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = _tmp8_; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_regex_unref0 (regex); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_inner_error_->domain == G_REGEX_ERROR) { #line 4868 "Properties.c" - goto __catch431_g_regex_error; + goto __catch433_g_regex_error; } -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_regex_unref0 (regex); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_clear_error (&_inner_error_); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return NULL; #line 4879 "Properties.c" } -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp9_ = _tmp5_; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = NULL; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp9_; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_free0 (_tmp5_); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_regex_unref0 (regex); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 4893 "Properties.c" } - goto __finally431; - __catch431_g_regex_error: + goto __finally433; + __catch433_g_regex_error: { GError* e = NULL; -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" e = _inner_error_; -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _inner_error_ = NULL; -#line 1385 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1385 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_assert_not_reached (); -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_error_free0 (e); #line 4907 "Properties.c" } - __finally431: -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" + __finally433: +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_clear_error (&_inner_error_); -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return NULL; #line 4918 "Properties.c" } diff --git a/src/Resources.c b/src/Resources.c index 3a59fbe..1682cda 100644 --- a/src/Resources.c +++ b/src/Resources.c @@ -1,4 +1,4 @@ -/* Resources.c generated by valac 0.32.1, the Vala compiler +/* Resources.c generated by valac 0.34.4, the Vala compiler * generated from Resources.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -201,8 +201,8 @@ GeeMap* resources_providers = NULL; #define RESOURCES_ADJUST "image-adjust" #define RESOURCES_PIN_TOOLBAR "shotwell-pin-toolbar" #define RESOURCES_MAKE_PRIMARY "shotwell-make-primary" -#define RESOURCES_IMPORT "shotwell-import" -#define RESOURCES_IMPORT_ALL "shotwell-import-all" +#define RESOURCES_IMPORT "import" +#define RESOURCES_IMPORT_ALL "import-all" #define RESOURCES_ENHANCE "shotwell-auto-enhance" #define RESOURCES_CROP_PIVOT_RETICLE "shotwell-crop-pivot-reticle" #define RESOURCES_PUBLISH "applications-internet" @@ -2718,7 +2718,7 @@ GdkPixbuf* resources_get_noninterpretable_badge_pixbuf (void) { #line 841 "/home/jens/Source/shotwell/src/Resources.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 2693 "Resources.c" - goto __catch426_g_error; + goto __catch428_g_error; } #line 841 "/home/jens/Source/shotwell/src/Resources.vala" _tmp12_ = _tmp1_; @@ -2732,8 +2732,8 @@ GdkPixbuf* resources_get_noninterpretable_badge_pixbuf (void) { _g_object_unref0 (_tmp1_); #line 2706 "Resources.c" } - goto __finally426; - __catch426_g_error: + goto __finally428; + __catch428_g_error: { GError* err = NULL; const gchar* _tmp13_ = NULL; @@ -2750,7 +2750,7 @@ GdkPixbuf* resources_get_noninterpretable_badge_pixbuf (void) { _g_error_free0 (err); #line 2723 "Resources.c" } - __finally426: + __finally428: #line 840 "/home/jens/Source/shotwell/src/Resources.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 840 "/home/jens/Source/shotwell/src/Resources.vala" @@ -2899,7 +2899,7 @@ GdkPixbuf* resources_get_icon (const gchar* name, gint scale) { #line 2871 "Resources.c" GeeHashMap* _tmp11_ = NULL; #line 870 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp11_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, GDK_TYPE_PIXBUF, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); + _tmp11_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, gdk_pixbuf_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); #line 870 "/home/jens/Source/shotwell/src/Resources.vala" _g_object_unref0 (resources_icon_cache); #line 870 "/home/jens/Source/shotwell/src/Resources.vala" @@ -2980,7 +2980,7 @@ GdkPixbuf* resources_get_icon (const gchar* name, gint scale) { #line 2952 "Resources.c" GeeHashMap* _tmp27_ = NULL; #line 888 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp27_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, GDK_TYPE_PIXBUF, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); + _tmp27_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, gdk_pixbuf_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); #line 888 "/home/jens/Source/shotwell/src/Resources.vala" _g_object_unref0 (resources_scaled_icon_cache); #line 888 "/home/jens/Source/shotwell/src/Resources.vala" @@ -3075,7 +3075,7 @@ GdkPixbuf* resources_load_icon (const gchar* name, gint scale) { #line 900 "/home/jens/Source/shotwell/src/Resources.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 3049 "Resources.c" - goto __catch427_g_error; + goto __catch429_g_error; } #line 900 "/home/jens/Source/shotwell/src/Resources.vala" _tmp12_ = _tmp4_; @@ -3089,8 +3089,8 @@ GdkPixbuf* resources_load_icon (const gchar* name, gint scale) { _g_object_unref0 (_tmp4_); #line 3062 "Resources.c" } - goto __finally427; - __catch427_g_error: + goto __finally429; + __catch429_g_error: { GError* err = NULL; const gchar* _tmp13_ = NULL; @@ -3112,7 +3112,7 @@ GdkPixbuf* resources_load_icon (const gchar* name, gint scale) { _g_error_free0 (err); #line 3085 "Resources.c" } - __finally427: + __finally429: #line 899 "/home/jens/Source/shotwell/src/Resources.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 899 "/home/jens/Source/shotwell/src/Resources.vala" @@ -3632,11 +3632,11 @@ void resources_style_widget (GtkWidget* widget, const gchar* stylesheet) { #line 995 "/home/jens/Source/shotwell/src/Resources.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 3606 "Resources.c" - goto __catch428_g_error; + goto __catch430_g_error; } } - goto __finally428; - __catch428_g_error: + goto __finally430; + __catch430_g_error: { GError* e = NULL; const gchar* _tmp14_ = NULL; @@ -3662,7 +3662,7 @@ void resources_style_widget (GtkWidget* widget, const gchar* stylesheet) { return; #line 3635 "Resources.c" } - __finally428: + __finally430: #line 994 "/home/jens/Source/shotwell/src/Resources.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 994 "/home/jens/Source/shotwell/src/Resources.vala" diff --git a/src/Resources.vala b/src/Resources.vala index d7f237c..feb568b 100644 --- a/src/Resources.vala +++ b/src/Resources.vala @@ -76,8 +76,8 @@ along with Shotwell; if not, write to the Free Software Foundation, Inc., public const string ADJUST = "image-adjust"; public const string PIN_TOOLBAR = "shotwell-pin-toolbar"; public const string MAKE_PRIMARY = "shotwell-make-primary"; - public const string IMPORT = "shotwell-import"; - public const string IMPORT_ALL = "shotwell-import-all"; + public const string IMPORT = "import"; + public const string IMPORT_ALL = "import-all"; public const string ENHANCE = "shotwell-auto-enhance"; public const string CROP_PIVOT_RETICLE = "shotwell-crop-pivot-reticle"; public const string PUBLISH = "applications-internet"; diff --git a/src/Screensaver.c b/src/Screensaver.c index 50ae28a..1c0f1f8 100644 --- a/src/Screensaver.c +++ b/src/Screensaver.c @@ -1,4 +1,4 @@ -/* Screensaver.c generated by valac 0.32.1, the Vala compiler +/* Screensaver.c generated by valac 0.34.4, the Vala compiler * generated from Screensaver.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/SearchFilter.c b/src/SearchFilter.c index d439603..6d1e92f 100644 --- a/src/SearchFilter.c +++ b/src/SearchFilter.c @@ -1,4 +1,4 @@ -/* SearchFilter.c generated by valac 0.32.1, the Vala compiler +/* SearchFilter.c generated by valac 0.34.4, the Vala compiler * generated from SearchFilter.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -2232,17 +2232,17 @@ static gboolean string_contains (const gchar* self, const gchar* needle) { gboolean result = FALSE; const gchar* _tmp0_ = NULL; gchar* _tmp1_ = NULL; -#line 1376 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1376 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, FALSE); -#line 1376 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1376 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (needle != NULL, FALSE); -#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = needle; -#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = strstr ((gchar*) self, (gchar*) _tmp0_); -#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp1_ != NULL; -#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 2248 "SearchFilter.c" } @@ -4910,56 +4910,56 @@ void search_filter_actions_unref (gpointer instance) { static void _search_filter_toolbar_on_media_context_changed_search_filter_actions_media_context_changed (SearchFilterActions* _sender, gboolean has_photos, gboolean has_videos, gboolean has_raw, gboolean has_flagged, gpointer self) { -#line 1159 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1158 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_on_media_context_changed ((SearchFilterToolbar*) self, has_photos, has_videos, has_raw, has_flagged); #line 4916 "SearchFilter.c" } static void _search_filter_toolbar_on_flagged_toggled_search_filter_actions_flagged_toggled (SearchFilterActions* _sender, gboolean on, gpointer self) { -#line 1161 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1160 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_on_flagged_toggled ((SearchFilterToolbar*) self); #line 4923 "SearchFilter.c" } static void _search_filter_toolbar_on_photos_toggled_search_filter_actions_photos_toggled (SearchFilterActions* _sender, gboolean on, gpointer self) { -#line 1162 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1161 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_on_photos_toggled ((SearchFilterToolbar*) self); #line 4930 "SearchFilter.c" } static void _search_filter_toolbar_on_videos_toggled_search_filter_actions_videos_toggled (SearchFilterActions* _sender, gboolean on, gpointer self) { -#line 1163 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1162 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_on_videos_toggled ((SearchFilterToolbar*) self); #line 4937 "SearchFilter.c" } static void _search_filter_toolbar_on_raw_toggled_search_filter_actions_raw_toggled (SearchFilterActions* _sender, gboolean on, gpointer self) { -#line 1164 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1163 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_on_raw_toggled ((SearchFilterToolbar*) self); #line 4944 "SearchFilter.c" } static void _search_filter_toolbar_on_rating_changed_search_filter_actions_rating_changed (SearchFilterActions* _sender, RatingFilter filter, gpointer self) { -#line 1165 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1164 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_on_rating_changed ((SearchFilterToolbar*) self); #line 4951 "SearchFilter.c" } static void _search_filter_toolbar_on_search_text_changed_search_filter_actions_text_changed (SearchFilterActions* _sender, const gchar* text, gpointer self) { -#line 1166 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1165 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_on_search_text_changed ((SearchFilterToolbar*) self); #line 4958 "SearchFilter.c" } static void _search_filter_toolbar_on_criteria_changed_search_filter_actions_criteria_changed (SearchFilterActions* _sender, gpointer self) { -#line 1167 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1166 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_on_criteria_changed ((SearchFilterToolbar*) self); #line 4965 "SearchFilter.c" } @@ -4968,7 +4968,7 @@ static void _search_filter_toolbar_on_criteria_changed_search_filter_actions_cri static gboolean _search_filter_toolbar_on_context_menu_requested_gtk_toolbar_popup_context_menu (GtkToolbar* _sender, gint x, gint y, gint button_number, gpointer self) { gboolean result; result = search_filter_toolbar_on_context_menu_requested ((SearchFilterToolbar*) self, x, y, button_number); -#line 1169 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1168 "/home/jens/Source/shotwell/src/SearchFilter.vala" return result; #line 4974 "SearchFilter.c" } @@ -4982,14 +4982,14 @@ static gpointer _search_filter_actions_ref0 (gpointer self) { static void _search_filter_toolbar_on_context_menu_close_chosen_gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) { -#line 1076 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1075 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_on_context_menu_close_chosen ((SearchFilterToolbar*) self); #line 4988 "SearchFilter.c" } static void _search_filter_toolbar_on_saved_search_button_clicked_search_filter_toolbar_saved_search_filter_button_clicked (SearchFilterToolbarSavedSearchFilterButton* _sender, gpointer self) { -#line 1127 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1126 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_on_saved_search_button_clicked ((SearchFilterToolbar*) self); #line 4995 "SearchFilter.c" } @@ -5109,47 +5109,47 @@ SearchFilterToolbar* search_filter_toolbar_construct (GType object_type, SearchF _g_object_unref0 (self->priv->toolbar); #line 1054 "/home/jens/Source/shotwell/src/SearchFilter.vala" self->priv->toolbar = _tmp2_; -#line 1056 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1055 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp3_ = actions; -#line 1056 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1055 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_connect_object (_tmp3_, "media-context-changed", (GCallback) _search_filter_toolbar_on_media_context_changed_search_filter_actions_media_context_changed, self, 0); -#line 1057 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1056 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp4_ = actions; -#line 1057 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1056 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp5_ = search_filter_actions_get_text (_tmp4_); -#line 1057 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1056 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp6_ = _tmp5_; -#line 1057 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1056 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp7_ = search_filter_toolbar_search_box_new (_tmp6_); -#line 1057 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1056 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_object_ref_sink (_tmp7_); -#line 1057 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1056 "/home/jens/Source/shotwell/src/SearchFilter.vala" _g_object_unref0 (self->priv->search_box); -#line 1057 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1056 "/home/jens/Source/shotwell/src/SearchFilter.vala" self->priv->search_box = _tmp7_; -#line 1059 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1058 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp8_ = self->priv->toolbar; -#line 1059 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1058 "/home/jens/Source/shotwell/src/SearchFilter.vala" gtk_buildable_set_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GTK_TYPE_BUILDABLE, GtkBuildable), "search-filter-toolbar"); -#line 1060 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1059 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp9_ = self->priv->toolbar; -#line 1060 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1059 "/home/jens/Source/shotwell/src/SearchFilter.vala" gtk_toolbar_set_icon_size (_tmp9_, GTK_ICON_SIZE_SMALL_TOOLBAR); #line 5139 "SearchFilter.c" { GtkBuilder* _tmp10_ = NULL; -#line 1063 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1062 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp10_ = self->builder; -#line 1063 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1062 "/home/jens/Source/shotwell/src/SearchFilter.vala" gtk_builder_add_from_resource (_tmp10_, "/org/gnome/Shotwell/search_bar.ui", &_inner_error_); -#line 1063 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1062 "/home/jens/Source/shotwell/src/SearchFilter.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 5148 "SearchFilter.c" - goto __catch588_g_error; + goto __catch590_g_error; } } - goto __finally588; - __catch588_g_error: + goto __finally590; + __catch590_g_error: { GError* err = NULL; const gchar* _tmp11_ = NULL; @@ -5157,334 +5157,334 @@ SearchFilterToolbar* search_filter_toolbar_construct (GType object_type, SearchF const gchar* _tmp13_ = NULL; gchar* _tmp14_ = NULL; gchar* _tmp15_ = NULL; -#line 1062 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1061 "/home/jens/Source/shotwell/src/SearchFilter.vala" err = _inner_error_; -#line 1062 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1061 "/home/jens/Source/shotwell/src/SearchFilter.vala" _inner_error_ = NULL; -#line 1065 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1064 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp11_ = _ ("Error loading search bar UI: %s"); -#line 1065 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1064 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp12_ = err; -#line 1065 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1064 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp13_ = _tmp12_->message; -#line 1065 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1064 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp14_ = g_strdup_printf (_tmp11_, _tmp13_); -#line 1065 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1064 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp15_ = _tmp14_; -#line 1065 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1064 "/home/jens/Source/shotwell/src/SearchFilter.vala" app_window_panic (_tmp15_); -#line 1065 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1064 "/home/jens/Source/shotwell/src/SearchFilter.vala" _g_free0 (_tmp15_); -#line 1062 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1061 "/home/jens/Source/shotwell/src/SearchFilter.vala" _g_error_free0 (err); #line 5181 "SearchFilter.c" } - __finally588: -#line 1062 "/home/jens/Source/shotwell/src/SearchFilter.vala" + __finally590: +#line 1061 "/home/jens/Source/shotwell/src/SearchFilter.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1062 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1061 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1062 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1061 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_clear_error (&_inner_error_); -#line 1062 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1061 "/home/jens/Source/shotwell/src/SearchFilter.vala" return NULL; #line 5192 "SearchFilter.c" } -#line 1074 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1073 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp16_ = self->priv->close_item; -#line 1074 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1073 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp17_ = _ ("Close"); -#line 1074 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1073 "/home/jens/Source/shotwell/src/SearchFilter.vala" gtk_menu_item_set_label (_tmp16_, _tmp17_); -#line 1075 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1074 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp18_ = self->priv->close_item; -#line 1075 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1074 "/home/jens/Source/shotwell/src/SearchFilter.vala" gtk_widget_show (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_widget_get_type (), GtkWidget)); -#line 1076 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1075 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp19_ = self->priv->close_item; -#line 1076 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1075 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_connect_object (_tmp19_, "activate", (GCallback) _search_filter_toolbar_on_context_menu_close_chosen_gtk_menu_item_activate, self, 0); -#line 1077 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1076 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp20_ = self->priv->close_menu; -#line 1077 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1076 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp21_ = self->priv->close_item; -#line 1077 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1076 "/home/jens/Source/shotwell/src/SearchFilter.vala" gtk_menu_shell_append (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_menu_shell_get_type (), GtkMenuShell), (GtkWidget*) _tmp21_); -#line 1080 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1079 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp22_ = _ ("Type"); -#line 1080 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1079 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp23_ = search_filter_toolbar_label_tool_item_new (_tmp22_, 10, 5); -#line 1080 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1079 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_object_ref_sink (_tmp23_); -#line 1080 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1079 "/home/jens/Source/shotwell/src/SearchFilter.vala" _g_object_unref0 (self->priv->label_type); -#line 1080 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1079 "/home/jens/Source/shotwell/src/SearchFilter.vala" self->priv->label_type = _tmp23_; -#line 1081 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1080 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp24_ = self->priv->toolbar; -#line 1081 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1080 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp25_ = self->priv->label_type; -#line 1081 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1080 "/home/jens/Source/shotwell/src/SearchFilter.vala" gtk_toolbar_insert (_tmp24_, G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 1083 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1082 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp26_ = search_filter_toolbar_toggle_action_tool_button_new ("win.display.photos"); -#line 1083 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1082 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_object_ref_sink (_tmp26_); -#line 1083 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1082 "/home/jens/Source/shotwell/src/SearchFilter.vala" _g_object_unref0 (self->priv->toolbtn_photos); -#line 1083 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1082 "/home/jens/Source/shotwell/src/SearchFilter.vala" self->priv->toolbtn_photos = _tmp26_; -#line 1084 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1083 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp27_ = self->priv->toolbtn_photos; -#line 1084 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1083 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp28_ = _ ("Photos"); -#line 1084 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1083 "/home/jens/Source/shotwell/src/SearchFilter.vala" gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, gtk_tool_item_get_type (), GtkToolItem), _tmp28_); -#line 1086 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1085 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp29_ = search_filter_toolbar_toggle_action_tool_button_new ("win.display.videos"); -#line 1086 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1085 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_object_ref_sink (_tmp29_); -#line 1086 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1085 "/home/jens/Source/shotwell/src/SearchFilter.vala" _g_object_unref0 (self->priv->toolbtn_videos); -#line 1086 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1085 "/home/jens/Source/shotwell/src/SearchFilter.vala" self->priv->toolbtn_videos = _tmp29_; -#line 1087 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1086 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp30_ = self->priv->toolbtn_videos; -#line 1087 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1086 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp31_ = _ ("Videos"); -#line 1087 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1086 "/home/jens/Source/shotwell/src/SearchFilter.vala" gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_tool_item_get_type (), GtkToolItem), _tmp31_); -#line 1089 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1088 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp32_ = search_filter_toolbar_toggle_action_tool_button_new ("win.display.raw"); -#line 1089 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1088 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_object_ref_sink (_tmp32_); -#line 1089 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1088 "/home/jens/Source/shotwell/src/SearchFilter.vala" _g_object_unref0 (self->priv->toolbtn_raw); -#line 1089 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1088 "/home/jens/Source/shotwell/src/SearchFilter.vala" self->priv->toolbtn_raw = _tmp32_; -#line 1090 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1089 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp33_ = self->priv->toolbtn_raw; -#line 1090 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1089 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp34_ = _ ("RAW Photos"); -#line 1090 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1089 "/home/jens/Source/shotwell/src/SearchFilter.vala" gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, gtk_tool_item_get_type (), GtkToolItem), _tmp34_); -#line 1092 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1091 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp35_ = self->priv->toolbar; -#line 1092 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1091 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp36_ = self->priv->toolbtn_photos; -#line 1092 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1091 "/home/jens/Source/shotwell/src/SearchFilter.vala" gtk_toolbar_insert (_tmp35_, G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 1093 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1092 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp37_ = self->priv->toolbar; -#line 1093 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1092 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp38_ = self->priv->toolbtn_videos; -#line 1093 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1092 "/home/jens/Source/shotwell/src/SearchFilter.vala" gtk_toolbar_insert (_tmp37_, G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 1094 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1093 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp39_ = self->priv->toolbar; -#line 1094 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1093 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp40_ = self->priv->toolbtn_raw; -#line 1094 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1093 "/home/jens/Source/shotwell/src/SearchFilter.vala" gtk_toolbar_insert (_tmp39_, G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 1097 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1096 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp41_ = (GtkSeparatorToolItem*) gtk_separator_tool_item_new (); -#line 1097 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1096 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_object_ref_sink (_tmp41_); -#line 1097 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1096 "/home/jens/Source/shotwell/src/SearchFilter.vala" _g_object_unref0 (self->priv->sepr_mediatype_flagged); -#line 1097 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1096 "/home/jens/Source/shotwell/src/SearchFilter.vala" self->priv->sepr_mediatype_flagged = _tmp41_; -#line 1098 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1097 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp42_ = self->priv->toolbar; -#line 1098 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1097 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp43_ = self->priv->sepr_mediatype_flagged; -#line 1098 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1097 "/home/jens/Source/shotwell/src/SearchFilter.vala" gtk_toolbar_insert (_tmp42_, G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 1102 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1101 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp44_ = search_filter_toolbar_toggle_action_tool_button_new ("win.display.flagged"); -#line 1102 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1101 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_object_ref_sink (_tmp44_); -#line 1102 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1101 "/home/jens/Source/shotwell/src/SearchFilter.vala" _g_object_unref0 (self->priv->toolbtn_flag); -#line 1102 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1101 "/home/jens/Source/shotwell/src/SearchFilter.vala" self->priv->toolbtn_flag = _tmp44_; -#line 1103 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1102 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp45_ = self->priv->toolbtn_flag; -#line 1103 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1102 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp46_ = _ ("Flagged"); -#line 1103 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1102 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_toggle_action_tool_button_set_label (_tmp45_, _tmp46_); -#line 1104 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1103 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp47_ = self->priv->toolbtn_flag; -#line 1104 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1103 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp48_ = _ ("Flagged"); -#line 1104 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1103 "/home/jens/Source/shotwell/src/SearchFilter.vala" gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, gtk_tool_item_get_type (), GtkToolItem), _tmp48_); -#line 1106 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1105 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp49_ = self->priv->toolbar; -#line 1106 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1105 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp50_ = self->priv->toolbtn_flag; -#line 1106 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1105 "/home/jens/Source/shotwell/src/SearchFilter.vala" gtk_toolbar_insert (_tmp49_, G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 1109 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1108 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp51_ = (GtkSeparatorToolItem*) gtk_separator_tool_item_new (); -#line 1109 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1108 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_object_ref_sink (_tmp51_); -#line 1109 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1108 "/home/jens/Source/shotwell/src/SearchFilter.vala" _g_object_unref0 (self->priv->sepr_flagged_rating); -#line 1109 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1108 "/home/jens/Source/shotwell/src/SearchFilter.vala" self->priv->sepr_flagged_rating = _tmp51_; -#line 1110 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1109 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp52_ = self->priv->toolbar; -#line 1110 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1109 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp53_ = self->priv->sepr_flagged_rating; -#line 1110 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1109 "/home/jens/Source/shotwell/src/SearchFilter.vala" gtk_toolbar_insert (_tmp52_, G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 1113 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1112 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp54_ = self->builder; -#line 1113 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1112 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp55_ = gtk_builder_get_object (_tmp54_, "popup-menu"); -#line 1113 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1112 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp56_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp55_, g_menu_model_get_type ()) ? ((GMenuModel*) _tmp55_) : NULL); -#line 1113 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1112 "/home/jens/Source/shotwell/src/SearchFilter.vala" model = _tmp56_; -#line 1114 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1113 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp57_ = search_filter_toolbar_rating_filter_button_new (model); -#line 1114 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1113 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_object_ref_sink (_tmp57_); -#line 1114 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1113 "/home/jens/Source/shotwell/src/SearchFilter.vala" _g_object_unref0 (self->priv->rating_button); -#line 1114 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1113 "/home/jens/Source/shotwell/src/SearchFilter.vala" self->priv->rating_button = _tmp57_; -#line 1115 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1114 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp58_ = self->priv->rating_button; -#line 1115 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1114 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp59_ = _ ("Rating"); -#line 1115 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1114 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_rating_filter_button_set_label (_tmp58_, _tmp59_); -#line 1116 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1115 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp60_ = self->priv->rating_button; -#line 1116 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1115 "/home/jens/Source/shotwell/src/SearchFilter.vala" gtk_tool_item_set_expand (G_TYPE_CHECK_INSTANCE_CAST (_tmp60_, gtk_tool_item_get_type (), GtkToolItem), FALSE); -#line 1117 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1116 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp61_ = self->priv->toolbar; -#line 1117 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1116 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp62_ = self->priv->rating_button; -#line 1117 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1116 "/home/jens/Source/shotwell/src/SearchFilter.vala" gtk_toolbar_insert (_tmp61_, G_TYPE_CHECK_INSTANCE_CAST (_tmp62_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 1120 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1119 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp63_ = (GtkSeparatorToolItem*) gtk_separator_tool_item_new (); -#line 1120 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1119 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_object_ref_sink (_tmp63_); -#line 1120 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1119 "/home/jens/Source/shotwell/src/SearchFilter.vala" _g_object_unref0 (self->priv->sepr_rating_saved); -#line 1120 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1119 "/home/jens/Source/shotwell/src/SearchFilter.vala" self->priv->sepr_rating_saved = _tmp63_; -#line 1121 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1120 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp64_ = self->priv->toolbar; -#line 1121 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1120 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp65_ = self->priv->sepr_rating_saved; -#line 1121 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1120 "/home/jens/Source/shotwell/src/SearchFilter.vala" gtk_toolbar_insert (_tmp64_, G_TYPE_CHECK_INSTANCE_CAST (_tmp65_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 1124 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1123 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp66_ = self->priv->saved_search_button; -#line 1124 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1123 "/home/jens/Source/shotwell/src/SearchFilter.vala" gtk_tool_item_set_expand (G_TYPE_CHECK_INSTANCE_CAST (_tmp66_, gtk_tool_item_get_type (), GtkToolItem), FALSE); -#line 1125 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1124 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp67_ = self->priv->saved_search_button; -#line 1125 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1124 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp68_ = _ ("Saved Search"); -#line 1125 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1124 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_saved_search_filter_button_set_label (_tmp67_, _tmp68_); -#line 1126 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1125 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp69_ = self->priv->saved_search_button; -#line 1126 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1125 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp70_ = _ ("Use a saved search to filter items in the current view"); -#line 1126 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1125 "/home/jens/Source/shotwell/src/SearchFilter.vala" gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp69_, gtk_tool_item_get_type (), GtkToolItem), _tmp70_); -#line 1127 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1126 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp71_ = self->priv->saved_search_button; -#line 1127 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1126 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_connect_object (_tmp71_, "clicked", (GCallback) _search_filter_toolbar_on_saved_search_button_clicked_search_filter_toolbar_saved_search_filter_button_clicked, self, 0); -#line 1128 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1127 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp72_ = self->priv->toolbar; -#line 1128 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1127 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp73_ = self->priv->saved_search_button; -#line 1128 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1127 "/home/jens/Source/shotwell/src/SearchFilter.vala" gtk_toolbar_insert (_tmp72_, G_TYPE_CHECK_INSTANCE_CAST (_tmp73_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 1131 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1130 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp74_ = (GtkSeparatorToolItem*) gtk_separator_tool_item_new (); -#line 1131 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1130 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_object_ref_sink (_tmp74_); -#line 1131 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1130 "/home/jens/Source/shotwell/src/SearchFilter.vala" separator_align = _tmp74_; -#line 1132 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1131 "/home/jens/Source/shotwell/src/SearchFilter.vala" gtk_tool_item_set_expand (G_TYPE_CHECK_INSTANCE_CAST (separator_align, gtk_tool_item_get_type (), GtkToolItem), TRUE); -#line 1133 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1132 "/home/jens/Source/shotwell/src/SearchFilter.vala" gtk_separator_tool_item_set_draw (separator_align, FALSE); -#line 1134 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1133 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp75_ = self->priv->toolbar; -#line 1134 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1133 "/home/jens/Source/shotwell/src/SearchFilter.vala" gtk_toolbar_insert (_tmp75_, G_TYPE_CHECK_INSTANCE_CAST (separator_align, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 1137 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1136 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp76_ = self->priv->toolbar; -#line 1137 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1136 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp77_ = self->priv->search_box; -#line 1137 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1136 "/home/jens/Source/shotwell/src/SearchFilter.vala" gtk_toolbar_insert (_tmp76_, G_TYPE_CHECK_INSTANCE_CAST (_tmp77_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 1139 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1138 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp78_ = self->priv->toolbar; -#line 1139 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1138 "/home/jens/Source/shotwell/src/SearchFilter.vala" gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp78_, gtk_widget_get_type (), GtkWidget)); -#line 1142 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1141 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp79_ = actions; -#line 1142 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1141 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_connect_object (_tmp79_, "flagged-toggled", (GCallback) _search_filter_toolbar_on_flagged_toggled_search_filter_actions_flagged_toggled, self, 0); -#line 1143 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1142 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp80_ = actions; -#line 1143 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1142 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_connect_object (_tmp80_, "photos-toggled", (GCallback) _search_filter_toolbar_on_photos_toggled_search_filter_actions_photos_toggled, self, 0); -#line 1144 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1143 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp81_ = actions; -#line 1144 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1143 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_connect_object (_tmp81_, "videos-toggled", (GCallback) _search_filter_toolbar_on_videos_toggled_search_filter_actions_videos_toggled, self, 0); -#line 1145 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1144 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp82_ = actions; -#line 1145 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1144 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_connect_object (_tmp82_, "raw-toggled", (GCallback) _search_filter_toolbar_on_raw_toggled_search_filter_actions_raw_toggled, self, 0); -#line 1146 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1145 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp83_ = actions; -#line 1146 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1145 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_connect_object (_tmp83_, "rating-changed", (GCallback) _search_filter_toolbar_on_rating_changed_search_filter_actions_rating_changed, self, 0); -#line 1147 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1146 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp84_ = actions; -#line 1147 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1146 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_connect_object (_tmp84_, "text-changed", (GCallback) _search_filter_toolbar_on_search_text_changed_search_filter_actions_text_changed, self, 0); -#line 1148 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1147 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp85_ = actions; -#line 1148 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1147 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_connect_object (_tmp85_, "criteria-changed", (GCallback) _search_filter_toolbar_on_criteria_changed_search_filter_actions_criteria_changed, self, 0); -#line 1151 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1150 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp86_ = self->priv->toolbar; -#line 1151 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1150 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_connect_object (_tmp86_, "popup-context-menu", (GCallback) _search_filter_toolbar_on_context_menu_requested_gtk_toolbar_popup_context_menu, self, 0); -#line 1153 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1152 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp87_ = actions; -#line 1153 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1152 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp88_ = search_filter_actions_get_has_photos (_tmp87_); -#line 1153 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1152 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp89_ = actions; -#line 1153 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1152 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp90_ = search_filter_actions_get_has_videos (_tmp89_); -#line 1153 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1152 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp91_ = actions; -#line 1153 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1152 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp92_ = search_filter_actions_get_has_raw (_tmp91_); -#line 1153 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1152 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp93_ = actions; -#line 1153 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1152 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp94_ = search_filter_actions_get_has_flagged (_tmp93_); -#line 1153 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1152 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_on_media_context_changed (self, _tmp88_, _tmp90_, _tmp92_, _tmp94_); #line 1052 "/home/jens/Source/shotwell/src/SearchFilter.vala" _g_object_unref0 (separator_align); @@ -5508,81 +5508,81 @@ static void search_filter_toolbar_on_media_context_changed (SearchFilterToolbar* gboolean _tmp3_ = FALSE; gboolean _tmp6_ = FALSE; gboolean _tmp9_ = FALSE; -#line 1172 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1171 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self)); -#line 1174 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1173 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp0_ = has_photos; -#line 1174 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1173 "/home/jens/Source/shotwell/src/SearchFilter.vala" if (_tmp0_) { #line 5518 "SearchFilter.c" SearchFilterToolbarToggleActionToolButton* _tmp1_ = NULL; -#line 1175 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1174 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp1_ = self->priv->toolbtn_photos; -#line 1175 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1174 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_toggle_action_tool_button_set_icon_name (_tmp1_, RESOURCES_ICON_FILTER_PHOTOS); #line 5524 "SearchFilter.c" } else { SearchFilterToolbarToggleActionToolButton* _tmp2_ = NULL; -#line 1177 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1176 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp2_ = self->priv->toolbtn_photos; -#line 1177 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1176 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_toggle_action_tool_button_set_icon_name (_tmp2_, RESOURCES_ICON_FILTER_PHOTOS_DISABLED); #line 5531 "SearchFilter.c" } -#line 1179 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1178 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp3_ = has_videos; -#line 1179 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1178 "/home/jens/Source/shotwell/src/SearchFilter.vala" if (_tmp3_) { #line 5537 "SearchFilter.c" SearchFilterToolbarToggleActionToolButton* _tmp4_ = NULL; -#line 1180 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1179 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp4_ = self->priv->toolbtn_videos; -#line 1180 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1179 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_toggle_action_tool_button_set_icon_name (_tmp4_, RESOURCES_ICON_FILTER_VIDEOS); #line 5543 "SearchFilter.c" } else { SearchFilterToolbarToggleActionToolButton* _tmp5_ = NULL; -#line 1182 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1181 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp5_ = self->priv->toolbtn_videos; -#line 1182 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1181 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_toggle_action_tool_button_set_icon_name (_tmp5_, RESOURCES_ICON_FILTER_VIDEOS_DISABLED); #line 5550 "SearchFilter.c" } -#line 1184 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1183 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp6_ = has_raw; -#line 1184 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1183 "/home/jens/Source/shotwell/src/SearchFilter.vala" if (_tmp6_) { #line 5556 "SearchFilter.c" SearchFilterToolbarToggleActionToolButton* _tmp7_ = NULL; -#line 1185 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1184 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp7_ = self->priv->toolbtn_raw; -#line 1185 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1184 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_toggle_action_tool_button_set_icon_name (_tmp7_, RESOURCES_ICON_FILTER_RAW); #line 5562 "SearchFilter.c" } else { SearchFilterToolbarToggleActionToolButton* _tmp8_ = NULL; -#line 1187 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1186 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp8_ = self->priv->toolbtn_raw; -#line 1187 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1186 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_toggle_action_tool_button_set_icon_name (_tmp8_, RESOURCES_ICON_FILTER_RAW_DISABLED); #line 5569 "SearchFilter.c" } -#line 1189 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1188 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp9_ = has_flagged; -#line 1189 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1188 "/home/jens/Source/shotwell/src/SearchFilter.vala" if (_tmp9_) { #line 5575 "SearchFilter.c" SearchFilterToolbarToggleActionToolButton* _tmp10_ = NULL; -#line 1190 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1189 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp10_ = self->priv->toolbtn_flag; -#line 1190 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1189 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_toggle_action_tool_button_set_icon_name (_tmp10_, RESOURCES_ICON_FILTER_FLAGGED); #line 5581 "SearchFilter.c" } else { SearchFilterToolbarToggleActionToolButton* _tmp11_ = NULL; -#line 1192 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1191 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp11_ = self->priv->toolbtn_flag; -#line 1192 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1191 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_toggle_action_tool_button_set_icon_name (_tmp11_, RESOURCES_ICON_FILTER_FLAGGED_DISABLED); #line 5588 "SearchFilter.c" } @@ -5594,26 +5594,26 @@ static gboolean search_filter_toolbar_on_context_menu_requested (SearchFilterToo GtkMenu* _tmp0_ = NULL; gint _tmp1_ = 0; guint32 _tmp2_ = 0U; -#line 1196 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1195 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_return_val_if_fail (IS_SEARCH_FILTER_TOOLBAR (self), FALSE); -#line 1197 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1196 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp0_ = self->priv->close_menu; -#line 1197 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1196 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp1_ = button; -#line 1197 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1196 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp2_ = gtk_get_current_event_time (); -#line 1197 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1196 "/home/jens/Source/shotwell/src/SearchFilter.vala" gtk_menu_popup (_tmp0_, NULL, NULL, NULL, NULL, (guint) _tmp1_, _tmp2_); -#line 1198 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1197 "/home/jens/Source/shotwell/src/SearchFilter.vala" result = FALSE; -#line 1198 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1197 "/home/jens/Source/shotwell/src/SearchFilter.vala" return result; #line 5612 "SearchFilter.c" } static GVariant* _variant_new39 (gboolean value) { -#line 1215 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1214 "/home/jens/Source/shotwell/src/SearchFilter.vala" return g_variant_ref_sink (g_variant_new_boolean (value)); #line 5619 "SearchFilter.c" } @@ -5627,92 +5627,92 @@ static void search_filter_toolbar_on_context_menu_close_chosen (SearchFilterTool GAction* _tmp2_ = NULL; GSimpleAction* _tmp3_ = NULL; GSimpleAction* _tmp4_ = NULL; -#line 1203 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1202 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self)); -#line 1204 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1203 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp0_ = library_window_get_app (); -#line 1204 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1203 "/home/jens/Source/shotwell/src/SearchFilter.vala" aw = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_APP_WINDOW, AppWindow); -#line 1209 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1208 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp1_ = aw; -#line 1209 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1208 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp2_ = g_action_map_lookup_action (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, g_action_map_get_type (), GActionMap), "CommonDisplaySearchbar"); -#line 1209 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1208 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp3_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp2_) : NULL); -#line 1209 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1208 "/home/jens/Source/shotwell/src/SearchFilter.vala" action = _tmp3_; -#line 1213 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1212 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp4_ = action; -#line 1213 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1212 "/home/jens/Source/shotwell/src/SearchFilter.vala" if (_tmp4_ != NULL) { #line 5649 "SearchFilter.c" GSimpleAction* _tmp5_ = NULL; GVariant* _tmp6_ = NULL; -#line 1215 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1214 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp5_ = action; -#line 1215 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1214 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp6_ = _variant_new39 (FALSE); -#line 1215 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1214 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_emit_by_name (_tmp5_, "change-state", _tmp6_); -#line 1215 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1214 "/home/jens/Source/shotwell/src/SearchFilter.vala" _g_variant_unref0 (_tmp6_); #line 5660 "SearchFilter.c" } -#line 1203 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1202 "/home/jens/Source/shotwell/src/SearchFilter.vala" _g_object_unref0 (action); -#line 1203 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1202 "/home/jens/Source/shotwell/src/SearchFilter.vala" _g_object_unref0 (aw); #line 5666 "SearchFilter.c" } static void search_filter_toolbar_on_flagged_toggled (SearchFilterToolbar* self) { -#line 1219 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1218 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self)); -#line 1220 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1219 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_update (self); #line 5675 "SearchFilter.c" } static void search_filter_toolbar_on_videos_toggled (SearchFilterToolbar* self) { -#line 1223 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1222 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self)); -#line 1224 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1223 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_update (self); #line 5684 "SearchFilter.c" } static void search_filter_toolbar_on_photos_toggled (SearchFilterToolbar* self) { -#line 1227 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1226 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self)); -#line 1228 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1227 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_update (self); #line 5693 "SearchFilter.c" } static void search_filter_toolbar_on_raw_toggled (SearchFilterToolbar* self) { -#line 1231 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1230 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self)); -#line 1232 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1231 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_update (self); #line 5702 "SearchFilter.c" } static void search_filter_toolbar_on_search_text_changed (SearchFilterToolbar* self) { -#line 1235 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1234 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self)); -#line 1236 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1235 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_update (self); #line 5711 "SearchFilter.c" } static GVariant* _variant_new40 (gboolean value) { -#line 1250 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1249 "/home/jens/Source/shotwell/src/SearchFilter.vala" return g_variant_ref_sink (g_variant_new_boolean (value)); #line 5718 "SearchFilter.c" } @@ -5727,68 +5727,68 @@ static void search_filter_toolbar_on_rating_changed (SearchFilterToolbar* self) GAction* _tmp3_ = NULL; GSimpleAction* _tmp4_ = NULL; GSimpleAction* _tmp5_ = NULL; -#line 1239 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1238 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self)); -#line 1240 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1239 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp0_ = library_window_get_app (); -#line 1240 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1239 "/home/jens/Source/shotwell/src/SearchFilter.vala" aw = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_APP_WINDOW, AppWindow); -#line 1242 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1241 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp1_ = aw; -#line 1242 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1241 "/home/jens/Source/shotwell/src/SearchFilter.vala" if (_tmp1_ == NULL) { -#line 1243 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1242 "/home/jens/Source/shotwell/src/SearchFilter.vala" _g_object_unref0 (aw); -#line 1243 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1242 "/home/jens/Source/shotwell/src/SearchFilter.vala" return; #line 5745 "SearchFilter.c" } -#line 1245 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1244 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp2_ = aw; -#line 1245 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1244 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp3_ = g_action_map_lookup_action (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, g_action_map_get_type (), GActionMap), "CommonDisplaySearchbar"); -#line 1245 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1244 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp4_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp3_) : NULL); -#line 1245 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1244 "/home/jens/Source/shotwell/src/SearchFilter.vala" action = _tmp4_; -#line 1249 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1248 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp5_ = action; -#line 1249 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1248 "/home/jens/Source/shotwell/src/SearchFilter.vala" if (_tmp5_ != NULL) { #line 5759 "SearchFilter.c" GSimpleAction* _tmp6_ = NULL; GVariant* _tmp7_ = NULL; -#line 1250 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1249 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp6_ = action; -#line 1250 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1249 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp7_ = _variant_new40 (TRUE); -#line 1250 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1249 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_emit_by_name (_tmp6_, "change-state", _tmp7_); -#line 1250 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1249 "/home/jens/Source/shotwell/src/SearchFilter.vala" _g_variant_unref0 (_tmp7_); #line 5770 "SearchFilter.c" } -#line 1253 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1252 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_update (self); -#line 1239 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1238 "/home/jens/Source/shotwell/src/SearchFilter.vala" _g_object_unref0 (action); -#line 1239 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1238 "/home/jens/Source/shotwell/src/SearchFilter.vala" _g_object_unref0 (aw); #line 5778 "SearchFilter.c" } static void search_filter_toolbar_on_criteria_changed (SearchFilterToolbar* self) { -#line 1259 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1258 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self)); -#line 1260 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1259 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_update (self); #line 5787 "SearchFilter.c" } static gpointer _view_filter_ref0 (gpointer self) { -#line 1267 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1266 "/home/jens/Source/shotwell/src/SearchFilter.vala" return self ? view_filter_ref (self) : NULL; #line 5794 "SearchFilter.c" } @@ -5805,45 +5805,45 @@ void search_filter_toolbar_set_view_filter (SearchFilterToolbar* self, SearchVie SearchFilterToolbarRatingFilterButton* _tmp7_ = NULL; SearchViewFilter* _tmp8_ = NULL; guint _tmp9_ = 0U; -#line 1263 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1262 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self)); -#line 1263 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1262 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_return_if_fail (IS_SEARCH_VIEW_FILTER (search_filter)); -#line 1264 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1263 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp0_ = search_filter; -#line 1264 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1263 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp1_ = self->priv->search_filter; -#line 1264 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1263 "/home/jens/Source/shotwell/src/SearchFilter.vala" if (_tmp0_ == _tmp1_) { -#line 1265 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1264 "/home/jens/Source/shotwell/src/SearchFilter.vala" return; #line 5821 "SearchFilter.c" } -#line 1267 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1266 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp2_ = search_filter; -#line 1267 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1266 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp3_ = _view_filter_ref0 (_tmp2_); -#line 1267 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1266 "/home/jens/Source/shotwell/src/SearchFilter.vala" _view_filter_unref0 (self->priv->search_filter); -#line 1267 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1266 "/home/jens/Source/shotwell/src/SearchFilter.vala" self->priv->search_filter = _tmp3_; -#line 1270 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1269 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp4_ = self->priv->actions; -#line 1270 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1269 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp5_ = search_filter; -#line 1270 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1269 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp6_ = search_view_filter_get_criteria (_tmp5_); -#line 1270 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1269 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_actions_set_sensitive_for_search_criteria (_tmp4_, (SearchFilterCriteria) _tmp6_); -#line 1271 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1270 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp7_ = self->priv->rating_button; -#line 1271 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1270 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp8_ = search_filter; -#line 1271 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1270 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp9_ = search_view_filter_get_criteria (_tmp8_); -#line 1271 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1270 "/home/jens/Source/shotwell/src/SearchFilter.vala" gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget), (SEARCH_FILTER_CRITERIA_RATING & _tmp9_) != 0); -#line 1273 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1272 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_update (self); #line 5849 "SearchFilter.c" } @@ -5852,15 +5852,15 @@ void search_filter_toolbar_set_view_filter (SearchFilterToolbar* self, SearchVie void search_filter_toolbar_unset_view_filter (SearchFilterToolbar* self) { DisabledViewFilter* _tmp0_ = NULL; DisabledViewFilter* _tmp1_ = NULL; -#line 1276 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1275 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self)); -#line 1277 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1276 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp0_ = disabled_view_filter_new (); -#line 1277 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1276 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp1_ = _tmp0_; -#line 1277 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1276 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_set_view_filter (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)); -#line 1277 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1276 "/home/jens/Source/shotwell/src/SearchFilter.vala" _view_filter_unref0 (_tmp1_); #line 5866 "SearchFilter.c" } @@ -5949,266 +5949,266 @@ void search_filter_toolbar_update (SearchFilterToolbar* self) { gboolean _tmp82_ = FALSE; GtkSeparatorToolItem* _tmp93_ = NULL; SearchViewFilter* _tmp94_ = NULL; -#line 1281 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1280 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self)); -#line 1282 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1281 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp0_ = self->priv->search_filter; -#line 1282 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1281 "/home/jens/Source/shotwell/src/SearchFilter.vala" if (NULL == _tmp0_) { #line 5959 "SearchFilter.c" LibraryWindow* _tmp1_ = NULL; LibraryWindow* _tmp2_ = NULL; -#line 1284 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1283 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp1_ = library_window_get_app (); -#line 1284 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1283 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp2_ = _tmp1_; -#line 1284 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1283 "/home/jens/Source/shotwell/src/SearchFilter.vala" library_window_show_search_bar (_tmp2_, TRUE); -#line 1284 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1283 "/home/jens/Source/shotwell/src/SearchFilter.vala" _g_object_unref0 (_tmp2_); #line 5970 "SearchFilter.c" } -#line 1287 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1286 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp3_ = self->priv->search_filter; -#line 1287 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1286 "/home/jens/Source/shotwell/src/SearchFilter.vala" _vala_assert (NULL != _tmp3_, "null != search_filter"); -#line 1289 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1288 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp4_ = self->priv->search_filter; -#line 1289 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1288 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp5_ = self->priv->actions; -#line 1289 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1288 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp6_ = search_filter_actions_get_text (_tmp5_); -#line 1289 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1288 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp7_ = _tmp6_; -#line 1289 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1288 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp8_ = text_action_get_value (_tmp7_); -#line 1289 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1288 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp9_ = _tmp8_; -#line 1289 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1288 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_view_filter_set_search_filter (_tmp4_, _tmp9_); -#line 1290 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1289 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp10_ = self->priv->search_filter; -#line 1290 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1289 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp11_ = self->priv->actions; -#line 1290 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1289 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp12_ = search_filter_actions_get_flagged (_tmp11_); -#line 1290 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1289 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp13_ = _tmp12_; -#line 1290 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1289 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp14_ = g_action_get_state (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, g_action_get_type (), GAction)); -#line 1290 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1289 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp15_ = _tmp14_; -#line 1290 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1289 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp16_ = g_variant_get_boolean (_tmp15_); -#line 1290 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1289 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_view_filter_set_flagged (_tmp10_, _tmp16_); -#line 1290 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1289 "/home/jens/Source/shotwell/src/SearchFilter.vala" _g_variant_unref0 (_tmp15_); -#line 1291 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1290 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp17_ = self->priv->search_filter; -#line 1291 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1290 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp18_ = self->priv->actions; -#line 1291 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1290 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp19_ = search_filter_actions_get_videos (_tmp18_); -#line 1291 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1290 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp20_ = _tmp19_; -#line 1291 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1290 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp21_ = g_action_get_state (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, g_action_get_type (), GAction)); -#line 1291 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1290 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp22_ = _tmp21_; -#line 1291 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1290 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp23_ = g_variant_get_boolean (_tmp22_); -#line 1291 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1290 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_view_filter_set_show_media_video (_tmp17_, _tmp23_); -#line 1291 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1290 "/home/jens/Source/shotwell/src/SearchFilter.vala" _g_variant_unref0 (_tmp22_); -#line 1293 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1292 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp24_ = self->priv->search_filter; -#line 1293 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1292 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp25_ = self->priv->actions; -#line 1293 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1292 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp26_ = search_filter_actions_get_photos (_tmp25_); -#line 1293 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1292 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp27_ = _tmp26_; -#line 1293 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1292 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp28_ = g_action_get_state (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, g_action_get_type (), GAction)); -#line 1293 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1292 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp29_ = _tmp28_; -#line 1293 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1292 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp30_ = g_variant_get_boolean (_tmp29_); -#line 1293 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1292 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_view_filter_set_show_media_photos (_tmp24_, _tmp30_); -#line 1293 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1292 "/home/jens/Source/shotwell/src/SearchFilter.vala" _g_variant_unref0 (_tmp29_); -#line 1295 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1294 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp31_ = self->priv->search_filter; -#line 1295 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1294 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp32_ = self->priv->actions; -#line 1295 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1294 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp33_ = search_filter_actions_get_raw (_tmp32_); -#line 1295 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1294 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp34_ = _tmp33_; -#line 1295 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1294 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp35_ = g_action_get_state (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, g_action_get_type (), GAction)); -#line 1295 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1294 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp36_ = _tmp35_; -#line 1295 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1294 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp37_ = g_variant_get_boolean (_tmp36_); -#line 1295 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1294 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_view_filter_set_show_media_raw (_tmp31_, _tmp37_); -#line 1295 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1294 "/home/jens/Source/shotwell/src/SearchFilter.vala" _g_variant_unref0 (_tmp36_); -#line 1297 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1296 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp38_ = self->priv->actions; -#line 1297 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1296 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp39_ = search_filter_actions_get_rating (_tmp38_); -#line 1297 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1296 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp40_ = _tmp39_; -#line 1297 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1296 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp41_ = g_action_get_state (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, g_action_get_type (), GAction)); -#line 1297 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1296 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp42_ = _tmp41_; -#line 1297 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1296 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp43_ = g_variant_get_string (_tmp42_, NULL); -#line 1297 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1296 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp44_ = atoi (_tmp43_); -#line 1297 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1296 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp45_ = (RatingFilter) _tmp44_; -#line 1297 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1296 "/home/jens/Source/shotwell/src/SearchFilter.vala" _g_variant_unref0 (_tmp42_); -#line 1297 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1296 "/home/jens/Source/shotwell/src/SearchFilter.vala" filter = _tmp45_; -#line 1298 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1297 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp46_ = self->priv->search_filter; -#line 1298 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1297 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp47_ = filter; -#line 1298 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1297 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_view_filter_set_rating_filter (_tmp46_, _tmp47_); -#line 1299 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1298 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp48_ = self->priv->rating_button; -#line 1299 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1298 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp49_ = filter; -#line 1299 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1298 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_rating_filter_button_set_filter_icon (_tmp48_, _tmp49_); -#line 1301 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1300 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp50_ = self->priv->search_filter; -#line 1301 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1300 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp51_ = self->priv->saved_search; -#line 1301 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1300 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_view_filter_set_saved_search (_tmp50_, _tmp51_); -#line 1305 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1304 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp52_ = self->priv->actions; -#line 1305 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1304 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp53_ = search_filter_actions_get_criteria (_tmp52_); -#line 1305 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1304 "/home/jens/Source/shotwell/src/SearchFilter.vala" criteria = _tmp53_; -#line 1307 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1306 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp54_ = self->priv->search_box; -#line 1307 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1306 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp55_ = criteria; -#line 1307 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1306 "/home/jens/Source/shotwell/src/SearchFilter.vala" gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, gtk_widget_get_type (), GtkWidget), (_tmp55_ & SEARCH_FILTER_CRITERIA_TEXT) != 0); -#line 1309 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1308 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp56_ = self->priv->rating_button; -#line 1309 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1308 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp57_ = criteria; -#line 1309 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1308 "/home/jens/Source/shotwell/src/SearchFilter.vala" gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, gtk_widget_get_type (), GtkWidget), (_tmp57_ & SEARCH_FILTER_CRITERIA_RATING) != 0); -#line 1311 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1310 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp58_ = self->priv->toolbtn_flag; -#line 1311 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1310 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp59_ = criteria; -#line 1311 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1310 "/home/jens/Source/shotwell/src/SearchFilter.vala" gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, gtk_widget_get_type (), GtkWidget), (_tmp59_ & SEARCH_FILTER_CRITERIA_FLAG) != 0); -#line 1313 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1312 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp60_ = self->priv->label_type; -#line 1313 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1312 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp61_ = criteria; -#line 1313 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1312 "/home/jens/Source/shotwell/src/SearchFilter.vala" gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp60_, gtk_widget_get_type (), GtkWidget), (_tmp61_ & SEARCH_FILTER_CRITERIA_MEDIA) != 0); -#line 1314 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1313 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp62_ = self->priv->toolbtn_photos; -#line 1314 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1313 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp63_ = criteria; -#line 1314 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1313 "/home/jens/Source/shotwell/src/SearchFilter.vala" gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp62_, gtk_widget_get_type (), GtkWidget), (_tmp63_ & SEARCH_FILTER_CRITERIA_MEDIA) != 0); -#line 1315 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1314 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp64_ = self->priv->toolbtn_videos; -#line 1315 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1314 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp65_ = criteria; -#line 1315 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1314 "/home/jens/Source/shotwell/src/SearchFilter.vala" gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, gtk_widget_get_type (), GtkWidget), (_tmp65_ & SEARCH_FILTER_CRITERIA_MEDIA) != 0); -#line 1316 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1315 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp66_ = self->priv->toolbtn_raw; -#line 1316 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1315 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp67_ = criteria; -#line 1316 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1315 "/home/jens/Source/shotwell/src/SearchFilter.vala" gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp66_, gtk_widget_get_type (), GtkWidget), (_tmp67_ & SEARCH_FILTER_CRITERIA_MEDIA) != 0); -#line 1318 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1317 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp68_ = self->priv->saved_search_button; -#line 1318 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1317 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp69_ = criteria; -#line 1318 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1317 "/home/jens/Source/shotwell/src/SearchFilter.vala" gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp68_, gtk_widget_get_type (), GtkWidget), (_tmp69_ & SEARCH_FILTER_CRITERIA_SAVEDSEARCH) != 0); -#line 1322 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1321 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp71_ = self->priv->label_type; -#line 1322 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1321 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp72_ = gtk_widget_get_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp71_, gtk_widget_get_type (), GtkWidget)); -#line 1322 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1321 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp73_ = _tmp72_; -#line 1322 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1321 "/home/jens/Source/shotwell/src/SearchFilter.vala" if (_tmp73_) { #line 6162 "SearchFilter.c" SearchFilterToolbarToggleActionToolButton* _tmp74_ = NULL; gboolean _tmp75_ = FALSE; gboolean _tmp76_ = FALSE; -#line 1322 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1321 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp74_ = self->priv->toolbtn_flag; -#line 1322 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1321 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp75_ = gtk_widget_get_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp74_, gtk_widget_get_type (), GtkWidget)); -#line 1322 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1321 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp76_ = _tmp75_; -#line 1322 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1321 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp70_ = _tmp76_; #line 6174 "SearchFilter.c" } else { -#line 1322 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1321 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp70_ = FALSE; #line 6178 "SearchFilter.c" } -#line 1322 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1321 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp77_ = self->priv->sepr_mediatype_flagged; -#line 1322 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1321 "/home/jens/Source/shotwell/src/SearchFilter.vala" gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp77_, gtk_widget_get_type (), GtkWidget), _tmp70_); -#line 1324 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1323 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp80_ = self->priv->label_type; -#line 1324 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1323 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp81_ = gtk_widget_get_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp80_, gtk_widget_get_type (), GtkWidget)); -#line 1324 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1323 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp82_ = _tmp81_; -#line 1324 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1323 "/home/jens/Source/shotwell/src/SearchFilter.vala" if (_tmp82_) { #line 6192 "SearchFilter.c" SearchFilterToolbarRatingFilterButton* _tmp83_ = NULL; gboolean _tmp84_ = FALSE; gboolean _tmp85_ = FALSE; -#line 1324 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1323 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp83_ = self->priv->rating_button; -#line 1324 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1323 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp84_ = gtk_widget_get_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp83_, gtk_widget_get_type (), GtkWidget)); -#line 1324 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1323 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp85_ = _tmp84_; -#line 1324 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1323 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp79_ = _tmp85_; #line 6204 "SearchFilter.c" } else { -#line 1324 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1323 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp79_ = FALSE; #line 6208 "SearchFilter.c" } -#line 1324 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1323 "/home/jens/Source/shotwell/src/SearchFilter.vala" if (_tmp79_) { -#line 1324 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1323 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp78_ = TRUE; #line 6214 "SearchFilter.c" } else { @@ -6216,43 +6216,43 @@ void search_filter_toolbar_update (SearchFilterToolbar* self) { SearchFilterToolbarToggleActionToolButton* _tmp87_ = NULL; gboolean _tmp88_ = FALSE; gboolean _tmp89_ = FALSE; -#line 1325 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1324 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp87_ = self->priv->toolbtn_flag; -#line 1325 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1324 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp88_ = gtk_widget_get_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp87_, gtk_widget_get_type (), GtkWidget)); -#line 1325 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1324 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp89_ = _tmp88_; -#line 1325 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1324 "/home/jens/Source/shotwell/src/SearchFilter.vala" if (_tmp89_) { #line 6228 "SearchFilter.c" SearchFilterToolbarRatingFilterButton* _tmp90_ = NULL; gboolean _tmp91_ = FALSE; gboolean _tmp92_ = FALSE; -#line 1325 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1324 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp90_ = self->priv->rating_button; -#line 1325 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1324 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp91_ = gtk_widget_get_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp90_, gtk_widget_get_type (), GtkWidget)); -#line 1325 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1324 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp92_ = _tmp91_; -#line 1325 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1324 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp86_ = _tmp92_; #line 6240 "SearchFilter.c" } else { -#line 1325 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1324 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp86_ = FALSE; #line 6244 "SearchFilter.c" } -#line 1325 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1324 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp78_ = _tmp86_; #line 6248 "SearchFilter.c" } -#line 1324 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1323 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp93_ = self->priv->sepr_flagged_rating; -#line 1324 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1323 "/home/jens/Source/shotwell/src/SearchFilter.vala" gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp93_, gtk_widget_get_type (), GtkWidget), _tmp78_); -#line 1328 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1327 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp94_ = self->priv->search_filter; -#line 1328 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1327 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp94_, TYPE_VIEW_FILTER, ViewFilter), "refresh"); #line 6258 "SearchFilter.c" } @@ -6261,32 +6261,32 @@ void search_filter_toolbar_update (SearchFilterToolbar* self) { static void search_filter_toolbar_on_savedsearch_selected (SearchFilterToolbar* self, SavedSearch* saved_search) { SavedSearch* _tmp0_ = NULL; SavedSearch* _tmp1_ = NULL; -#line 1331 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1330 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self)); -#line 1331 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1330 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_return_if_fail (IS_SAVED_SEARCH (saved_search)); -#line 1332 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1331 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp0_ = saved_search; -#line 1332 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1331 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp1_ = _g_object_ref0 (_tmp0_); -#line 1332 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1331 "/home/jens/Source/shotwell/src/SearchFilter.vala" _g_object_unref0 (self->priv->saved_search); -#line 1332 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1331 "/home/jens/Source/shotwell/src/SearchFilter.vala" self->priv->saved_search = _tmp1_; -#line 1333 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1332 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_update (self); #line 6279 "SearchFilter.c" } static void search_filter_toolbar_disable_savedsearch (SearchFilterToolbar* self) { -#line 1336 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1335 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self)); -#line 1337 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1336 "/home/jens/Source/shotwell/src/SearchFilter.vala" _g_object_unref0 (self->priv->saved_search); -#line 1337 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1336 "/home/jens/Source/shotwell/src/SearchFilter.vala" self->priv->saved_search = NULL; -#line 1338 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1337 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_update (self); #line 6292 "SearchFilter.c" } @@ -6298,25 +6298,25 @@ static void search_filter_toolbar_edit_dialog (SearchFilterToolbar* self, SavedS SavedSearchDialog* ssd = NULL; SavedSearch* _tmp2_ = NULL; SavedSearchDialog* _tmp3_ = NULL; -#line 1341 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1340 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self)); -#line 1341 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1340 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_return_if_fail (IS_SAVED_SEARCH (search)); -#line 1342 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1341 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp0_ = self->priv->saved_search_button; -#line 1342 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1341 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp1_ = _tmp0_->filter_popup; -#line 1342 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1341 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_saved_search_popover_hide (_tmp1_); -#line 1343 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1342 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp2_ = search; -#line 1343 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1342 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp3_ = saved_search_dialog_new_edit_existing (_tmp2_); -#line 1343 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1342 "/home/jens/Source/shotwell/src/SearchFilter.vala" ssd = _tmp3_; -#line 1344 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1343 "/home/jens/Source/shotwell/src/SearchFilter.vala" saved_search_dialog_show (ssd); -#line 1341 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1340 "/home/jens/Source/shotwell/src/SearchFilter.vala" _saved_search_dialog_unref0 (ssd); #line 6322 "SearchFilter.c" } @@ -6327,21 +6327,21 @@ static void search_filter_toolbar_delete_dialog (SearchFilterToolbar* self, Save SearchFilterToolbarSavedSearchPopover* _tmp1_ = NULL; SavedSearch* _tmp2_ = NULL; gboolean _tmp3_ = FALSE; -#line 1347 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1346 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self)); -#line 1347 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1346 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_return_if_fail (IS_SAVED_SEARCH (search)); -#line 1348 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1347 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp0_ = self->priv->saved_search_button; -#line 1348 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1347 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp1_ = _tmp0_->filter_popup; -#line 1348 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1347 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_saved_search_popover_hide (_tmp1_); -#line 1349 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1348 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp2_ = search; -#line 1349 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1348 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp3_ = dialogs_confirm_delete_saved_search (_tmp2_); -#line 1349 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1348 "/home/jens/Source/shotwell/src/SearchFilter.vala" if (_tmp3_) { #line 6347 "SearchFilter.c" CommandManager* _tmp4_ = NULL; @@ -6349,21 +6349,21 @@ static void search_filter_toolbar_delete_dialog (SearchFilterToolbar* self, Save SavedSearch* _tmp6_ = NULL; DeleteSavedSearchCommand* _tmp7_ = NULL; DeleteSavedSearchCommand* _tmp8_ = NULL; -#line 1350 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1349 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp4_ = app_window_get_command_manager (); -#line 1350 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1349 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp5_ = _tmp4_; -#line 1350 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1349 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp6_ = search; -#line 1350 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1349 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp7_ = delete_saved_search_command_new (_tmp6_); -#line 1350 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1349 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp8_ = _tmp7_; -#line 1350 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1349 "/home/jens/Source/shotwell/src/SearchFilter.vala" command_manager_execute (_tmp5_, G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_COMMAND, Command)); -#line 1350 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1349 "/home/jens/Source/shotwell/src/SearchFilter.vala" _g_object_unref0 (_tmp8_); -#line 1350 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1349 "/home/jens/Source/shotwell/src/SearchFilter.vala" _command_manager_unref0 (_tmp5_); #line 6369 "SearchFilter.c" } @@ -6375,21 +6375,21 @@ static void search_filter_toolbar_add_dialog (SearchFilterToolbar* self) { SearchFilterToolbarSavedSearchPopover* _tmp1_ = NULL; SavedSearchDialog* _tmp2_ = NULL; SavedSearchDialog* _tmp3_ = NULL; -#line 1353 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1352 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self)); -#line 1354 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1353 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp0_ = self->priv->saved_search_button; -#line 1354 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1353 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp1_ = _tmp0_->filter_popup; -#line 1354 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1353 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_saved_search_popover_hide (_tmp1_); -#line 1355 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1354 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp2_ = saved_search_dialog_new (); -#line 1355 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1354 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp3_ = _tmp2_; -#line 1355 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1354 "/home/jens/Source/shotwell/src/SearchFilter.vala" saved_search_dialog_show (_tmp3_); -#line 1355 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1354 "/home/jens/Source/shotwell/src/SearchFilter.vala" _saved_search_dialog_unref0 (_tmp3_); #line 6395 "SearchFilter.c" } @@ -6400,56 +6400,56 @@ static void search_filter_toolbar_on_popover_closed (SearchFilterToolbar* self) SavedSearch* _tmp1_ = NULL; SearchFilterToolbarSavedSearchFilterButton* _tmp2_ = NULL; SearchFilterToolbarSavedSearchPopover* _tmp3_ = NULL; -#line 1358 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1357 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self)); -#line 1360 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1359 "/home/jens/Source/shotwell/src/SearchFilter.vala" self->priv->elide_showing_again = TRUE; -#line 1361 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1360 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp0_ = self->priv->saved_search_button; -#line 1361 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1360 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp1_ = self->priv->saved_search; -#line 1361 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1360 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_saved_search_filter_button_set_active (_tmp0_, _tmp1_ != NULL); -#line 1362 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1361 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp2_ = self->priv->saved_search_button; -#line 1362 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1361 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp3_ = _tmp2_->filter_popup; -#line 1362 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1361 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_saved_search_popover_hide (_tmp3_); #line 6420 "SearchFilter.c" } static void _search_filter_toolbar_edit_dialog_search_filter_toolbar_saved_search_popover_edit_clicked (SearchFilterToolbarSavedSearchPopover* _sender, SavedSearch* search, gpointer self) { -#line 1373 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1372 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_edit_dialog ((SearchFilterToolbar*) self, search); #line 6427 "SearchFilter.c" } static void _search_filter_toolbar_on_savedsearch_selected_search_filter_toolbar_saved_search_popover_search_activated (SearchFilterToolbarSavedSearchPopover* _sender, SavedSearch* search, gpointer self) { -#line 1374 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1373 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_on_savedsearch_selected ((SearchFilterToolbar*) self, search); #line 6434 "SearchFilter.c" } static void _search_filter_toolbar_delete_dialog_search_filter_toolbar_saved_search_popover_delete_clicked (SearchFilterToolbarSavedSearchPopover* _sender, SavedSearch* search, gpointer self) { -#line 1375 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1374 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_delete_dialog ((SearchFilterToolbar*) self, search); #line 6441 "SearchFilter.c" } static void _search_filter_toolbar_add_dialog_search_filter_toolbar_saved_search_popover_add_clicked (SearchFilterToolbarSavedSearchPopover* _sender, gpointer self) { -#line 1376 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1375 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_add_dialog ((SearchFilterToolbar*) self); #line 6448 "SearchFilter.c" } static void _search_filter_toolbar_on_popover_closed_search_filter_toolbar_saved_search_popover_closed (SearchFilterToolbarSavedSearchPopover* _sender, gpointer self) { -#line 1377 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1376 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_on_popover_closed ((SearchFilterToolbar*) self); #line 6455 "SearchFilter.c" } @@ -6458,44 +6458,44 @@ static void _search_filter_toolbar_on_popover_closed_search_filter_toolbar_saved static void search_filter_toolbar_on_saved_search_button_clicked (SearchFilterToolbar* self) { gboolean _tmp0_ = FALSE; gboolean _tmp1_ = FALSE; -#line 1365 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1364 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self)); -#line 1366 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1365 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp1_ = self->priv->elide_showing_again; -#line 1366 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1365 "/home/jens/Source/shotwell/src/SearchFilter.vala" if (_tmp1_) { #line 6468 "SearchFilter.c" SavedSearch* _tmp2_ = NULL; -#line 1366 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1365 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp2_ = self->priv->saved_search; -#line 1366 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1365 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp0_ = _tmp2_ == NULL; #line 6474 "SearchFilter.c" } else { -#line 1366 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1365 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp0_ = FALSE; #line 6478 "SearchFilter.c" } -#line 1366 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1365 "/home/jens/Source/shotwell/src/SearchFilter.vala" if (_tmp0_) { #line 6482 "SearchFilter.c" } else { SavedSearch* _tmp3_ = NULL; -#line 1367 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1366 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp3_ = self->priv->saved_search; -#line 1367 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1366 "/home/jens/Source/shotwell/src/SearchFilter.vala" if (_tmp3_ != NULL) { #line 6489 "SearchFilter.c" SearchFilterToolbarSavedSearchFilterButton* _tmp4_ = NULL; -#line 1368 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1367 "/home/jens/Source/shotwell/src/SearchFilter.vala" _g_object_unref0 (self->priv->saved_search); -#line 1368 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1367 "/home/jens/Source/shotwell/src/SearchFilter.vala" self->priv->saved_search = NULL; -#line 1369 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1368 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp4_ = self->priv->saved_search_button; -#line 1369 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1368 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_saved_search_filter_button_set_active (_tmp4_, FALSE); -#line 1370 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1369 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_disable_savedsearch (self); #line 6501 "SearchFilter.c" } else { @@ -6516,11 +6516,11 @@ static void search_filter_toolbar_on_saved_search_button_clicked (SearchFilterTo SearchFilterToolbarSavedSearchPopover* _tmp34_ = NULL; SearchFilterToolbarSavedSearchFilterButton* _tmp35_ = NULL; SearchFilterToolbarSavedSearchPopover* _tmp36_ = NULL; -#line 1372 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1371 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp5_ = self->priv->saved_search_button; -#line 1372 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1371 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp6_ = _tmp5_->filter_popup; -#line 1372 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1371 "/home/jens/Source/shotwell/src/SearchFilter.vala" if (_tmp6_ != NULL) { #line 6526 "SearchFilter.c" SearchFilterToolbarSavedSearchFilterButton* _tmp7_ = NULL; @@ -6538,98 +6538,98 @@ static void search_filter_toolbar_on_saved_search_button_clicked (SearchFilterTo SearchFilterToolbarSavedSearchFilterButton* _tmp19_ = NULL; SearchFilterToolbarSavedSearchPopover* _tmp20_ = NULL; guint _tmp21_ = 0U; -#line 1373 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1372 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp7_ = self->priv->saved_search_button; -#line 1373 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1372 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp8_ = _tmp7_->filter_popup; -#line 1373 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1372 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_parse_name ("edit-clicked", SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER, &_tmp9_, NULL, FALSE); -#line 1373 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1372 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_handlers_disconnect_matched (_tmp8_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp9_, 0, NULL, (GCallback) _search_filter_toolbar_edit_dialog_search_filter_toolbar_saved_search_popover_edit_clicked, self); -#line 1374 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1373 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp10_ = self->priv->saved_search_button; -#line 1374 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1373 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp11_ = _tmp10_->filter_popup; -#line 1374 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1373 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_parse_name ("search-activated", SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER, &_tmp12_, NULL, FALSE); -#line 1374 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1373 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_handlers_disconnect_matched (_tmp11_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp12_, 0, NULL, (GCallback) _search_filter_toolbar_on_savedsearch_selected_search_filter_toolbar_saved_search_popover_search_activated, self); -#line 1375 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1374 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp13_ = self->priv->saved_search_button; -#line 1375 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1374 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp14_ = _tmp13_->filter_popup; -#line 1375 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1374 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_parse_name ("delete-clicked", SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER, &_tmp15_, NULL, FALSE); -#line 1375 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1374 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_handlers_disconnect_matched (_tmp14_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp15_, 0, NULL, (GCallback) _search_filter_toolbar_delete_dialog_search_filter_toolbar_saved_search_popover_delete_clicked, self); -#line 1376 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1375 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp16_ = self->priv->saved_search_button; -#line 1376 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1375 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp17_ = _tmp16_->filter_popup; -#line 1376 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1375 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_parse_name ("add-clicked", SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER, &_tmp18_, NULL, FALSE); -#line 1376 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1375 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_handlers_disconnect_matched (_tmp17_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp18_, 0, NULL, (GCallback) _search_filter_toolbar_add_dialog_search_filter_toolbar_saved_search_popover_add_clicked, self); -#line 1377 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1376 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp19_ = self->priv->saved_search_button; -#line 1377 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1376 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp20_ = _tmp19_->filter_popup; -#line 1377 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1376 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_parse_name ("closed", SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER, &_tmp21_, NULL, FALSE); -#line 1377 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1376 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_handlers_disconnect_matched (_tmp20_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp21_, 0, NULL, (GCallback) _search_filter_toolbar_on_popover_closed_search_filter_toolbar_saved_search_popover_closed, self); #line 6582 "SearchFilter.c" } -#line 1379 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1378 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp22_ = self->priv->saved_search_button; -#line 1379 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1378 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp23_ = self->priv->saved_search_button; -#line 1379 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1378 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp24_ = search_filter_toolbar_saved_search_popover_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, gtk_widget_get_type (), GtkWidget)); -#line 1379 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1378 "/home/jens/Source/shotwell/src/SearchFilter.vala" _search_filter_toolbar_saved_search_popover_unref0 (_tmp22_->filter_popup); -#line 1379 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1378 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp22_->filter_popup = _tmp24_; -#line 1380 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1379 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp25_ = self->priv->saved_search_button; -#line 1380 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1379 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp26_ = _tmp25_->filter_popup; -#line 1380 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1379 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_connect_object (_tmp26_, "edit-clicked", (GCallback) _search_filter_toolbar_edit_dialog_search_filter_toolbar_saved_search_popover_edit_clicked, self, 0); -#line 1381 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1380 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp27_ = self->priv->saved_search_button; -#line 1381 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1380 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp28_ = _tmp27_->filter_popup; -#line 1381 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1380 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_connect_object (_tmp28_, "search-activated", (GCallback) _search_filter_toolbar_on_savedsearch_selected_search_filter_toolbar_saved_search_popover_search_activated, self, 0); -#line 1382 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1381 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp29_ = self->priv->saved_search_button; -#line 1382 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1381 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp30_ = _tmp29_->filter_popup; -#line 1382 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1381 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_connect_object (_tmp30_, "delete-clicked", (GCallback) _search_filter_toolbar_delete_dialog_search_filter_toolbar_saved_search_popover_delete_clicked, self, 0); -#line 1383 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1382 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp31_ = self->priv->saved_search_button; -#line 1383 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1382 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp32_ = _tmp31_->filter_popup; -#line 1383 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1382 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_connect_object (_tmp32_, "add-clicked", (GCallback) _search_filter_toolbar_add_dialog_search_filter_toolbar_saved_search_popover_add_clicked, self, 0); -#line 1384 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1383 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp33_ = self->priv->saved_search_button; -#line 1384 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1383 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp34_ = _tmp33_->filter_popup; -#line 1384 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1383 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_connect_object (_tmp34_, "closed", (GCallback) _search_filter_toolbar_on_popover_closed_search_filter_toolbar_saved_search_popover_closed, self, 0); -#line 1386 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1385 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp35_ = self->priv->saved_search_button; -#line 1386 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1385 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp36_ = _tmp35_->filter_popup; -#line 1386 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1385 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_saved_search_popover_show_all (_tmp36_); #line 6630 "SearchFilter.c" } } -#line 1388 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1387 "/home/jens/Source/shotwell/src/SearchFilter.vala" self->priv->elide_showing_again = FALSE; #line 6635 "SearchFilter.c" } @@ -6637,11 +6637,11 @@ static void search_filter_toolbar_on_saved_search_button_clicked (SearchFilterTo void search_filter_toolbar_take_focus (SearchFilterToolbar* self) { SearchFilterToolbarSearchBox* _tmp0_ = NULL; -#line 1391 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1390 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self)); -#line 1392 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1391 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp0_ = self->priv->search_box; -#line 1392 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1391 "/home/jens/Source/shotwell/src/SearchFilter.vala" search_filter_toolbar_search_box_get_focus (_tmp0_); #line 6647 "SearchFilter.c" } @@ -9484,59 +9484,59 @@ static void search_filter_toolbar_finalize (GObject* obj) { guint _tmp17_ = 0U; #line 606 "/home/jens/Source/shotwell/src/SearchFilter.vala" self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SEARCH_FILTER_TOOLBAR, SearchFilterToolbar); -#line 1159 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1158 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp0_ = self->priv->actions; -#line 1159 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1158 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_parse_name ("media-context-changed", TYPE_SEARCH_FILTER_ACTIONS, &_tmp1_, NULL, FALSE); -#line 1159 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1158 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _search_filter_toolbar_on_media_context_changed_search_filter_actions_media_context_changed, self); -#line 1161 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1160 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp2_ = self->priv->actions; -#line 1161 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1160 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_parse_name ("flagged-toggled", TYPE_SEARCH_FILTER_ACTIONS, &_tmp3_, NULL, FALSE); -#line 1161 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1160 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _search_filter_toolbar_on_flagged_toggled_search_filter_actions_flagged_toggled, self); -#line 1162 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1161 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp4_ = self->priv->actions; -#line 1162 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1161 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_parse_name ("photos-toggled", TYPE_SEARCH_FILTER_ACTIONS, &_tmp5_, NULL, FALSE); -#line 1162 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1161 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _search_filter_toolbar_on_photos_toggled_search_filter_actions_photos_toggled, self); -#line 1163 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1162 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp6_ = self->priv->actions; -#line 1163 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1162 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_parse_name ("videos-toggled", TYPE_SEARCH_FILTER_ACTIONS, &_tmp7_, NULL, FALSE); -#line 1163 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1162 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_handlers_disconnect_matched (_tmp6_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp7_, 0, NULL, (GCallback) _search_filter_toolbar_on_videos_toggled_search_filter_actions_videos_toggled, self); -#line 1164 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1163 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp8_ = self->priv->actions; -#line 1164 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1163 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_parse_name ("raw-toggled", TYPE_SEARCH_FILTER_ACTIONS, &_tmp9_, NULL, FALSE); -#line 1164 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1163 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_handlers_disconnect_matched (_tmp8_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp9_, 0, NULL, (GCallback) _search_filter_toolbar_on_raw_toggled_search_filter_actions_raw_toggled, self); -#line 1165 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1164 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp10_ = self->priv->actions; -#line 1165 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1164 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_parse_name ("rating-changed", TYPE_SEARCH_FILTER_ACTIONS, &_tmp11_, NULL, FALSE); -#line 1165 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1164 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_handlers_disconnect_matched (_tmp10_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp11_, 0, NULL, (GCallback) _search_filter_toolbar_on_rating_changed_search_filter_actions_rating_changed, self); -#line 1166 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1165 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp12_ = self->priv->actions; -#line 1166 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1165 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_parse_name ("text-changed", TYPE_SEARCH_FILTER_ACTIONS, &_tmp13_, NULL, FALSE); -#line 1166 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1165 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_handlers_disconnect_matched (_tmp12_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp13_, 0, NULL, (GCallback) _search_filter_toolbar_on_search_text_changed_search_filter_actions_text_changed, self); -#line 1167 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1166 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp14_ = self->priv->actions; -#line 1167 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1166 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_parse_name ("criteria-changed", TYPE_SEARCH_FILTER_ACTIONS, &_tmp15_, NULL, FALSE); -#line 1167 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1166 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_handlers_disconnect_matched (_tmp14_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp15_, 0, NULL, (GCallback) _search_filter_toolbar_on_criteria_changed_search_filter_actions_criteria_changed, self); -#line 1169 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1168 "/home/jens/Source/shotwell/src/SearchFilter.vala" _tmp16_ = self->priv->toolbar; -#line 1169 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1168 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_parse_name ("popup-context-menu", gtk_toolbar_get_type (), &_tmp17_, NULL, FALSE); -#line 1169 "/home/jens/Source/shotwell/src/SearchFilter.vala" +#line 1168 "/home/jens/Source/shotwell/src/SearchFilter.vala" g_signal_handlers_disconnect_matched (_tmp16_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp17_, 0, NULL, (GCallback) _search_filter_toolbar_on_context_menu_requested_gtk_toolbar_popup_context_menu, self); #line 607 "/home/jens/Source/shotwell/src/SearchFilter.vala" _g_object_unref0 (self->priv->toolbar); diff --git a/src/SearchFilter.vala b/src/SearchFilter.vala index 3429c02..137318a 100644 --- a/src/SearchFilter.vala +++ b/src/SearchFilter.vala @@ -1052,7 +1052,6 @@ public class SearchFilterToolbar : Gtk.Revealer { public SearchFilterToolbar(SearchFilterActions actions) { this.actions = actions; toolbar = new Gtk.Toolbar(); -// toolbar.insert_action_group ("filterbar", actions.get_action_group ()); actions.media_context_changed.connect(on_media_context_changed); search_box = new SearchBox(actions.text); diff --git a/src/SlideshowPage.c b/src/SlideshowPage.c index 70feead..ea177d1 100644 --- a/src/SlideshowPage.c +++ b/src/SlideshowPage.c @@ -1,4 +1,4 @@ -/* SlideshowPage.c generated by valac 0.32.1, the Vala compiler +/* SlideshowPage.c generated by valac 0.34.4, the Vala compiler * generated from SlideshowPage.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -12,6 +12,7 @@ #include <gtk/gtk.h> #include <stdlib.h> #include <string.h> +#include <gio/gio.h> #include <gee.h> #include <gdk/gdk.h> #include <cairo.h> @@ -314,7 +315,8 @@ struct _PageClass { void (*ready) (Page* self); void (*switching_to_fullscreen) (Page* self, FullscreenWindow* fsw); void (*returning_from_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*add_actions) (Page* self); + void (*add_actions) (Page* self, GActionMap* map); + void (*remove_actions) (Page* self, GActionMap* map); void (*init_collect_ui_filenames) (Page* self, GeeList* ui_filenames); InjectionGroup** (*init_collect_injection_groups) (Page* self, int* result_length1); void (*init_actions) (Page* self, gint selected_count, gint count); @@ -651,42 +653,42 @@ static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify static gpointer _data_collection_ref0 (gpointer self) { #line 143 "/home/jens/Source/shotwell/src/SlideshowPage.vala" return self ? data_collection_ref (self) : NULL; -#line 655 "SlideshowPage.c" +#line 657 "SlideshowPage.c" } static gpointer _g_object_ref0 (gpointer self) { #line 152 "/home/jens/Source/shotwell/src/SlideshowPage.vala" return self ? g_object_ref (self) : NULL; -#line 662 "SlideshowPage.c" +#line 664 "SlideshowPage.c" } static void _single_photo_page_on_previous_photo_gtk_tool_button_clicked (GtkToolButton* _sender, gpointer self) { #line 163 "/home/jens/Source/shotwell/src/SlideshowPage.vala" single_photo_page_on_previous_photo ((SinglePhotoPage*) self); -#line 669 "SlideshowPage.c" +#line 671 "SlideshowPage.c" } static void _slideshow_page_on_play_pause_gtk_tool_button_clicked (GtkToolButton* _sender, gpointer self) { #line 170 "/home/jens/Source/shotwell/src/SlideshowPage.vala" slideshow_page_on_play_pause ((SlideshowPage*) self); -#line 676 "SlideshowPage.c" +#line 678 "SlideshowPage.c" } static void _single_photo_page_on_next_photo_gtk_tool_button_clicked (GtkToolButton* _sender, gpointer self) { #line 177 "/home/jens/Source/shotwell/src/SlideshowPage.vala" single_photo_page_on_next_photo ((SinglePhotoPage*) self); -#line 683 "SlideshowPage.c" +#line 685 "SlideshowPage.c" } static void _slideshow_page_on_change_settings_gtk_tool_button_clicked (GtkToolButton* _sender, gpointer self) { #line 185 "/home/jens/Source/shotwell/src/SlideshowPage.vala" slideshow_page_on_change_settings ((SlideshowPage*) self); -#line 690 "SlideshowPage.c" +#line 692 "SlideshowPage.c" } @@ -925,14 +927,14 @@ SlideshowPage* slideshow_page_construct (GType object_type, SourceCollection* so _g_object_unref0 (pluggables); #line 140 "/home/jens/Source/shotwell/src/SlideshowPage.vala" return self; -#line 929 "SlideshowPage.c" +#line 931 "SlideshowPage.c" } SlideshowPage* slideshow_page_new (SourceCollection* sources, ViewCollection* controller, Photo* start) { #line 140 "/home/jens/Source/shotwell/src/SlideshowPage.vala" return slideshow_page_construct (TYPE_SLIDESHOW_PAGE, sources, controller, start); -#line 936 "SlideshowPage.c" +#line 938 "SlideshowPage.c" } @@ -941,7 +943,7 @@ static gboolean _slideshow_page_auto_advance_gsource_func (gpointer self) { result = slideshow_page_auto_advance ((SlideshowPage*) self); #line 205 "/home/jens/Source/shotwell/src/SlideshowPage.vala" return result; -#line 945 "SlideshowPage.c" +#line 947 "SlideshowPage.c" } @@ -985,7 +987,7 @@ static void slideshow_page_real_switched_to (Page* base) { pixbuf = _tmp5_; #line 201 "/home/jens/Source/shotwell/src/SlideshowPage.vala" if (_tmp6_) { -#line 989 "SlideshowPage.c" +#line 991 "SlideshowPage.c" GdkPixbuf* _tmp7_ = NULL; Photo* _tmp8_ = NULL; Dimensions _tmp9_ = {0}; @@ -1000,7 +1002,7 @@ static void slideshow_page_real_switched_to (Page* base) { _tmp10_ = DIRECTION_FORWARD; #line 202 "/home/jens/Source/shotwell/src/SlideshowPage.vala" single_photo_page_set_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), _tmp7_, &_tmp9_, &_tmp10_); -#line 1004 "SlideshowPage.c" +#line 1006 "SlideshowPage.c" } #line 205 "/home/jens/Source/shotwell/src/SlideshowPage.vala" g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) SLIDESHOW_PAGE_CHECK_ADVANCE_MSEC, _slideshow_page_auto_advance_gsource_func, g_object_ref (self), g_object_unref); @@ -1014,7 +1016,7 @@ static void slideshow_page_real_switched_to (Page* base) { screensaver_inhibit (_tmp12_, "Playing slideshow"); #line 193 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _g_object_unref0 (pixbuf); -#line 1018 "SlideshowPage.c" +#line 1020 "SlideshowPage.c" } @@ -1031,7 +1033,7 @@ static void slideshow_page_real_switching_from (Page* base) { screensaver_uninhibit (_tmp0_); #line 215 "/home/jens/Source/shotwell/src/SlideshowPage.vala" self->priv->exiting = TRUE; -#line 1035 "SlideshowPage.c" +#line 1037 "SlideshowPage.c" } @@ -1054,14 +1056,14 @@ static gboolean slideshow_page_get_next_photo (SlideshowPage* self, Photo* start _g_object_unref0 (_vala_next); #line 220 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _vala_next = _tmp1_; -#line 1058 "SlideshowPage.c" +#line 1060 "SlideshowPage.c" { gboolean _tmp2_ = FALSE; #line 222 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _tmp2_ = TRUE; #line 222 "/home/jens/Source/shotwell/src/SlideshowPage.vala" while (TRUE) { -#line 1065 "SlideshowPage.c" +#line 1067 "SlideshowPage.c" DataSource* forward = NULL; DataSource* back = NULL; ViewCollection* _tmp40_ = NULL; @@ -1084,11 +1086,11 @@ static gboolean slideshow_page_get_next_photo (SlideshowPage* self, Photo* start GeeSet* _tmp56_ = NULL; #line 222 "/home/jens/Source/shotwell/src/SlideshowPage.vala" if (!_tmp2_) { -#line 1088 "SlideshowPage.c" +#line 1090 "SlideshowPage.c" } #line 222 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _tmp2_ = FALSE; -#line 1092 "SlideshowPage.c" +#line 1094 "SlideshowPage.c" { GdkPixbuf* _tmp3_ = NULL; PixbufCache* _tmp4_ = NULL; @@ -1105,8 +1107,8 @@ static gboolean slideshow_page_get_next_photo (SlideshowPage* self, Photo* start _tmp3_ = _tmp6_; #line 225 "/home/jens/Source/shotwell/src/SlideshowPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1109 "SlideshowPage.c" - goto __catch458_g_error; +#line 1111 "SlideshowPage.c" + goto __catch460_g_error; } #line 225 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _tmp7_ = _tmp3_; @@ -1118,10 +1120,10 @@ static gboolean slideshow_page_get_next_photo (SlideshowPage* self, Photo* start _vala_next_pixbuf = _tmp7_; #line 223 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _g_object_unref0 (_tmp3_); -#line 1122 "SlideshowPage.c" +#line 1124 "SlideshowPage.c" } - goto __finally458; - __catch458_g_error: + goto __finally460; + __catch460_g_error: { GError* err = NULL; Photo* _tmp8_ = NULL; @@ -1172,7 +1174,7 @@ static gboolean slideshow_page_get_next_photo (SlideshowPage* self, Photo* start _tmp17_ = direction; #line 231 "/home/jens/Source/shotwell/src/SlideshowPage.vala" if (_tmp17_ == DIRECTION_FORWARD) { -#line 1176 "SlideshowPage.c" +#line 1178 "SlideshowPage.c" ViewCollection* _tmp18_ = NULL; DataView* _tmp19_ = NULL; DataView* _tmp20_ = NULL; @@ -1186,7 +1188,7 @@ static gboolean slideshow_page_get_next_photo (SlideshowPage* self, Photo* start _g_object_unref0 (_tmp16_); #line 232 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _tmp16_ = _tmp20_; -#line 1190 "SlideshowPage.c" +#line 1192 "SlideshowPage.c" } else { ViewCollection* _tmp21_ = NULL; DataView* _tmp22_ = NULL; @@ -1201,7 +1203,7 @@ static gboolean slideshow_page_get_next_photo (SlideshowPage* self, Photo* start _g_object_unref0 (_tmp16_); #line 233 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _tmp16_ = _tmp23_; -#line 1205 "SlideshowPage.c" +#line 1207 "SlideshowPage.c" } #line 231 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _tmp24_ = _g_object_ref0 (_tmp16_); @@ -1223,7 +1225,7 @@ static gboolean slideshow_page_get_next_photo (SlideshowPage* self, Photo* start _tmp30_ = start; #line 237 "/home/jens/Source/shotwell/src/SlideshowPage.vala" if (_tmp29_ == _tmp30_) { -#line 1227 "SlideshowPage.c" +#line 1229 "SlideshowPage.c" Photo* _tmp31_ = NULL; Photo* _tmp32_ = NULL; #line 237 "/home/jens/Source/shotwell/src/SlideshowPage.vala" @@ -1232,17 +1234,17 @@ static gboolean slideshow_page_get_next_photo (SlideshowPage* self, Photo* start _tmp32_ = self->priv->current; #line 237 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _tmp28_ = _tmp31_ != _tmp32_; -#line 1236 "SlideshowPage.c" +#line 1238 "SlideshowPage.c" } else { #line 237 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _tmp28_ = FALSE; -#line 1240 "SlideshowPage.c" +#line 1242 "SlideshowPage.c" } #line 237 "/home/jens/Source/shotwell/src/SlideshowPage.vala" if (_tmp28_) { #line 237 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _tmp27_ = TRUE; -#line 1246 "SlideshowPage.c" +#line 1248 "SlideshowPage.c" } else { Photo* _tmp33_ = NULL; Photo* _tmp34_ = NULL; @@ -1252,11 +1254,11 @@ static gboolean slideshow_page_get_next_photo (SlideshowPage* self, Photo* start _tmp34_ = self->priv->current; #line 237 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _tmp27_ = _tmp33_ == _tmp34_; -#line 1256 "SlideshowPage.c" +#line 1258 "SlideshowPage.c" } #line 237 "/home/jens/Source/shotwell/src/SlideshowPage.vala" if (_tmp27_) { -#line 1260 "SlideshowPage.c" +#line 1262 "SlideshowPage.c" const gchar* _tmp35_ = NULL; GtkWindow* _tmp36_ = NULL; GtkWindow* _tmp37_ = NULL; @@ -1300,25 +1302,25 @@ static gboolean slideshow_page_get_next_photo (SlideshowPage* self, Photo* start if (next) { #line 244 "/home/jens/Source/shotwell/src/SlideshowPage.vala" *next = _vala_next; -#line 1304 "SlideshowPage.c" +#line 1306 "SlideshowPage.c" } else { #line 244 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _g_object_unref0 (_vala_next); -#line 1308 "SlideshowPage.c" +#line 1310 "SlideshowPage.c" } #line 244 "/home/jens/Source/shotwell/src/SlideshowPage.vala" if (next_pixbuf) { #line 244 "/home/jens/Source/shotwell/src/SlideshowPage.vala" *next_pixbuf = _vala_next_pixbuf; -#line 1314 "SlideshowPage.c" +#line 1316 "SlideshowPage.c" } else { #line 244 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _g_object_unref0 (_vala_next_pixbuf); -#line 1318 "SlideshowPage.c" +#line 1320 "SlideshowPage.c" } #line 244 "/home/jens/Source/shotwell/src/SlideshowPage.vala" return result; -#line 1322 "SlideshowPage.c" +#line 1324 "SlideshowPage.c" } #line 247 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _g_object_unref0 (_tmp16_); @@ -1328,9 +1330,9 @@ static gboolean slideshow_page_get_next_photo (SlideshowPage* self, Photo* start _g_error_free0 (err); #line 247 "/home/jens/Source/shotwell/src/SlideshowPage.vala" continue; -#line 1332 "SlideshowPage.c" +#line 1334 "SlideshowPage.c" } - __finally458: + __finally460: #line 223 "/home/jens/Source/shotwell/src/SlideshowPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 223 "/home/jens/Source/shotwell/src/SlideshowPage.vala" @@ -1339,7 +1341,7 @@ static gboolean slideshow_page_get_next_photo (SlideshowPage* self, Photo* start g_clear_error (&_inner_error_); #line 223 "/home/jens/Source/shotwell/src/SlideshowPage.vala" return FALSE; -#line 1343 "SlideshowPage.c" +#line 1345 "SlideshowPage.c" } #line 253 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _tmp40_ = self->priv->controller; @@ -1405,46 +1407,46 @@ static gboolean slideshow_page_get_next_photo (SlideshowPage* self, Photo* start if (next) { #line 263 "/home/jens/Source/shotwell/src/SlideshowPage.vala" *next = _vala_next; -#line 1409 "SlideshowPage.c" +#line 1411 "SlideshowPage.c" } else { #line 263 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _g_object_unref0 (_vala_next); -#line 1413 "SlideshowPage.c" +#line 1415 "SlideshowPage.c" } #line 263 "/home/jens/Source/shotwell/src/SlideshowPage.vala" if (next_pixbuf) { #line 263 "/home/jens/Source/shotwell/src/SlideshowPage.vala" *next_pixbuf = _vala_next_pixbuf; -#line 1419 "SlideshowPage.c" +#line 1421 "SlideshowPage.c" } else { #line 263 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _g_object_unref0 (_vala_next_pixbuf); -#line 1423 "SlideshowPage.c" +#line 1425 "SlideshowPage.c" } #line 263 "/home/jens/Source/shotwell/src/SlideshowPage.vala" return result; -#line 1427 "SlideshowPage.c" +#line 1429 "SlideshowPage.c" } } #line 218 "/home/jens/Source/shotwell/src/SlideshowPage.vala" if (next) { #line 218 "/home/jens/Source/shotwell/src/SlideshowPage.vala" *next = _vala_next; -#line 1434 "SlideshowPage.c" +#line 1436 "SlideshowPage.c" } else { #line 218 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _g_object_unref0 (_vala_next); -#line 1438 "SlideshowPage.c" +#line 1440 "SlideshowPage.c" } #line 218 "/home/jens/Source/shotwell/src/SlideshowPage.vala" if (next_pixbuf) { #line 218 "/home/jens/Source/shotwell/src/SlideshowPage.vala" *next_pixbuf = _vala_next_pixbuf; -#line 1444 "SlideshowPage.c" +#line 1446 "SlideshowPage.c" } else { #line 218 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _g_object_unref0 (_vala_next_pixbuf); -#line 1448 "SlideshowPage.c" +#line 1450 "SlideshowPage.c" } } @@ -1459,7 +1461,7 @@ static void slideshow_page_on_play_pause (SlideshowPage* self) { _tmp0_ = self->priv->playing; #line 268 "/home/jens/Source/shotwell/src/SlideshowPage.vala" if (_tmp0_) { -#line 1463 "SlideshowPage.c" +#line 1465 "SlideshowPage.c" GtkToolButton* _tmp1_ = NULL; GtkToolButton* _tmp2_ = NULL; const gchar* _tmp3_ = NULL; @@ -1481,7 +1483,7 @@ static void slideshow_page_on_play_pause (SlideshowPage* self) { _tmp5_ = _ ("Continue the slideshow"); #line 271 "/home/jens/Source/shotwell/src/SlideshowPage.vala" gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_tool_item_get_type (), GtkToolItem), _tmp5_); -#line 1485 "SlideshowPage.c" +#line 1487 "SlideshowPage.c" } else { GtkToolButton* _tmp6_ = NULL; GtkToolButton* _tmp7_ = NULL; @@ -1504,7 +1506,7 @@ static void slideshow_page_on_play_pause (SlideshowPage* self) { _tmp10_ = _ ("Pause the slideshow"); #line 275 "/home/jens/Source/shotwell/src/SlideshowPage.vala" gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_tool_item_get_type (), GtkToolItem), _tmp10_); -#line 1508 "SlideshowPage.c" +#line 1510 "SlideshowPage.c" } #line 278 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _tmp11_ = self->priv->playing; @@ -1514,7 +1516,7 @@ static void slideshow_page_on_play_pause (SlideshowPage* self) { _tmp12_ = self->priv->timer; #line 281 "/home/jens/Source/shotwell/src/SlideshowPage.vala" g_timer_start (_tmp12_); -#line 1518 "SlideshowPage.c" +#line 1520 "SlideshowPage.c" } @@ -1561,7 +1563,7 @@ static void slideshow_page_real_on_previous_photo (SinglePhotoPage* base) { prev_view = _tmp7_; #line 291 "/home/jens/Source/shotwell/src/SlideshowPage.vala" while (TRUE) { -#line 1565 "SlideshowPage.c" +#line 1567 "SlideshowPage.c" DataView* _tmp8_ = NULL; DataView* _tmp9_ = NULL; DataSource* _tmp10_ = NULL; @@ -1578,7 +1580,7 @@ static void slideshow_page_real_on_previous_photo (SinglePhotoPage* base) { if (!(_tmp8_ != NULL)) { #line 291 "/home/jens/Source/shotwell/src/SlideshowPage.vala" break; -#line 1582 "SlideshowPage.c" +#line 1584 "SlideshowPage.c" } #line 292 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _tmp9_ = prev_view; @@ -1592,7 +1594,7 @@ static void slideshow_page_real_on_previous_photo (SinglePhotoPage* base) { _g_object_unref0 (_tmp11_); #line 292 "/home/jens/Source/shotwell/src/SlideshowPage.vala" if (_tmp12_) { -#line 1596 "SlideshowPage.c" +#line 1598 "SlideshowPage.c" DataView* _tmp13_ = NULL; DataSource* _tmp14_ = NULL; #line 293 "/home/jens/Source/shotwell/src/SlideshowPage.vala" @@ -1605,7 +1607,7 @@ static void slideshow_page_real_on_previous_photo (SinglePhotoPage* base) { prev_photo = G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_PHOTO, Photo); #line 294 "/home/jens/Source/shotwell/src/SlideshowPage.vala" break; -#line 1609 "SlideshowPage.c" +#line 1611 "SlideshowPage.c" } #line 297 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _tmp15_ = self->priv->controller; @@ -1636,7 +1638,7 @@ static void slideshow_page_real_on_previous_photo (SinglePhotoPage* base) { _g_object_unref0 (view); #line 301 "/home/jens/Source/shotwell/src/SlideshowPage.vala" return; -#line 1639 "SlideshowPage.c" +#line 1641 "SlideshowPage.c" } } #line 305 "/home/jens/Source/shotwell/src/SlideshowPage.vala" @@ -1651,7 +1653,7 @@ static void slideshow_page_real_on_previous_photo (SinglePhotoPage* base) { _g_object_unref0 (prev_photo); #line 284 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _g_object_unref0 (view); -#line 1654 "SlideshowPage.c" +#line 1656 "SlideshowPage.c" } @@ -1703,7 +1705,7 @@ static void slideshow_page_real_on_next_photo (SinglePhotoPage* base) { next_view = _tmp7_; #line 315 "/home/jens/Source/shotwell/src/SlideshowPage.vala" while (TRUE) { -#line 1706 "SlideshowPage.c" +#line 1708 "SlideshowPage.c" DataView* _tmp8_ = NULL; DataView* _tmp9_ = NULL; DataSource* _tmp10_ = NULL; @@ -1720,7 +1722,7 @@ static void slideshow_page_real_on_next_photo (SinglePhotoPage* base) { if (!(_tmp8_ != NULL)) { #line 315 "/home/jens/Source/shotwell/src/SlideshowPage.vala" break; -#line 1723 "SlideshowPage.c" +#line 1725 "SlideshowPage.c" } #line 316 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _tmp9_ = next_view; @@ -1734,7 +1736,7 @@ static void slideshow_page_real_on_next_photo (SinglePhotoPage* base) { _g_object_unref0 (_tmp11_); #line 316 "/home/jens/Source/shotwell/src/SlideshowPage.vala" if (_tmp12_) { -#line 1737 "SlideshowPage.c" +#line 1739 "SlideshowPage.c" DataView* _tmp13_ = NULL; DataSource* _tmp14_ = NULL; #line 317 "/home/jens/Source/shotwell/src/SlideshowPage.vala" @@ -1747,7 +1749,7 @@ static void slideshow_page_real_on_next_photo (SinglePhotoPage* base) { next_photo = G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_PHOTO, Photo); #line 318 "/home/jens/Source/shotwell/src/SlideshowPage.vala" break; -#line 1750 "SlideshowPage.c" +#line 1752 "SlideshowPage.c" } #line 321 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _tmp15_ = self->priv->controller; @@ -1778,7 +1780,7 @@ static void slideshow_page_real_on_next_photo (SinglePhotoPage* base) { _g_object_unref0 (view); #line 325 "/home/jens/Source/shotwell/src/SlideshowPage.vala" return; -#line 1780 "SlideshowPage.c" +#line 1782 "SlideshowPage.c" } } #line 329 "/home/jens/Source/shotwell/src/SlideshowPage.vala" @@ -1799,7 +1801,7 @@ static void slideshow_page_real_on_next_photo (SinglePhotoPage* base) { if (_tmp24_) { #line 331 "/home/jens/Source/shotwell/src/SlideshowPage.vala" slideshow_page_random_transition_effect (self); -#line 1801 "SlideshowPage.c" +#line 1803 "SlideshowPage.c" } #line 334 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _tmp25_ = next_photo; @@ -1813,7 +1815,7 @@ static void slideshow_page_real_on_next_photo (SinglePhotoPage* base) { _g_object_unref0 (next_photo); #line 308 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _g_object_unref0 (view); -#line 1815 "SlideshowPage.c" +#line 1817 "SlideshowPage.c" } @@ -1855,7 +1857,7 @@ static void slideshow_page_advance (SlideshowPage* self, Photo* photo, Direction next_pixbuf = _tmp5_; #line 342 "/home/jens/Source/shotwell/src/SlideshowPage.vala" if (_tmp6_) { -#line 1857 "SlideshowPage.c" +#line 1859 "SlideshowPage.c" GdkPixbuf* _tmp7_ = NULL; Photo* _tmp8_ = NULL; Dimensions _tmp9_ = {0}; @@ -1870,7 +1872,7 @@ static void slideshow_page_advance (SlideshowPage* self, Photo* photo, Direction _tmp10_ = direction; #line 343 "/home/jens/Source/shotwell/src/SlideshowPage.vala" single_photo_page_set_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), _tmp7_, &_tmp9_, &_tmp10_); -#line 1872 "SlideshowPage.c" +#line 1874 "SlideshowPage.c" } #line 346 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _tmp11_ = self->priv->timer; @@ -1878,7 +1880,7 @@ static void slideshow_page_advance (SlideshowPage* self, Photo* photo, Direction g_timer_start (_tmp11_); #line 337 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _g_object_unref0 (next_pixbuf); -#line 1880 "SlideshowPage.c" +#line 1882 "SlideshowPage.c" } @@ -1902,7 +1904,7 @@ static gboolean slideshow_page_auto_advance (SlideshowPage* self) { result = FALSE; #line 351 "/home/jens/Source/shotwell/src/SlideshowPage.vala" return result; -#line 1904 "SlideshowPage.c" +#line 1906 "SlideshowPage.c" } #line 353 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _tmp1_ = self->priv->playing; @@ -1912,7 +1914,7 @@ static gboolean slideshow_page_auto_advance (SlideshowPage* self) { result = TRUE; #line 354 "/home/jens/Source/shotwell/src/SlideshowPage.vala" return result; -#line 1914 "SlideshowPage.c" +#line 1916 "SlideshowPage.c" } #line 356 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _tmp2_ = self->priv->timer; @@ -1934,7 +1936,7 @@ static gboolean slideshow_page_auto_advance (SlideshowPage* self) { result = TRUE; #line 357 "/home/jens/Source/shotwell/src/SlideshowPage.vala" return result; -#line 1936 "SlideshowPage.c" +#line 1938 "SlideshowPage.c" } #line 359 "/home/jens/Source/shotwell/src/SlideshowPage.vala" single_photo_page_on_next_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)); @@ -1942,7 +1944,7 @@ static gboolean slideshow_page_auto_advance (SlideshowPage* self) { result = TRUE; #line 361 "/home/jens/Source/shotwell/src/SlideshowPage.vala" return result; -#line 1944 "SlideshowPage.c" +#line 1946 "SlideshowPage.c" } @@ -1957,7 +1959,7 @@ static gboolean slideshow_page_real_key_press_event (GtkWidget* base, GdkEventKe GQuark _tmp5_ = 0U; #line 366 "/home/jens/Source/shotwell/src/SlideshowPage.vala" static GQuark _tmp4_label0 = 0; -#line 1959 "SlideshowPage.c" +#line 1961 "SlideshowPage.c" gboolean _tmp6_ = FALSE; gboolean _tmp7_ = FALSE; #line 364 "/home/jens/Source/shotwell/src/SlideshowPage.vala" @@ -1980,27 +1982,27 @@ static gboolean slideshow_page_real_key_press_event (GtkWidget* base, GdkEventKe if (_tmp5_ == ((0 != _tmp4_label0) ? _tmp4_label0 : (_tmp4_label0 = g_quark_from_static_string ("space")))) { #line 366 "/home/jens/Source/shotwell/src/SlideshowPage.vala" switch (0) { -#line 1982 "SlideshowPage.c" +#line 1984 "SlideshowPage.c" default: { #line 368 "/home/jens/Source/shotwell/src/SlideshowPage.vala" slideshow_page_on_play_pause (self); #line 369 "/home/jens/Source/shotwell/src/SlideshowPage.vala" break; -#line 1989 "SlideshowPage.c" +#line 1991 "SlideshowPage.c" } } } else { #line 366 "/home/jens/Source/shotwell/src/SlideshowPage.vala" switch (0) { -#line 1995 "SlideshowPage.c" +#line 1997 "SlideshowPage.c" default: { #line 372 "/home/jens/Source/shotwell/src/SlideshowPage.vala" handled = FALSE; #line 373 "/home/jens/Source/shotwell/src/SlideshowPage.vala" break; -#line 2002 "SlideshowPage.c" +#line 2004 "SlideshowPage.c" } } } @@ -2012,11 +2014,11 @@ static gboolean slideshow_page_real_key_press_event (GtkWidget* base, GdkEventKe result = TRUE; #line 377 "/home/jens/Source/shotwell/src/SlideshowPage.vala" return result; -#line 2014 "SlideshowPage.c" +#line 2016 "SlideshowPage.c" } #line 379 "/home/jens/Source/shotwell/src/SlideshowPage.vala" if (GTK_WIDGET_CLASS (slideshow_page_parent_class)->key_press_event != NULL) { -#line 2018 "SlideshowPage.c" +#line 2020 "SlideshowPage.c" GdkEventKey* _tmp8_ = NULL; gboolean _tmp9_ = FALSE; #line 379 "/home/jens/Source/shotwell/src/SlideshowPage.vala" @@ -2025,17 +2027,17 @@ static gboolean slideshow_page_real_key_press_event (GtkWidget* base, GdkEventKe _tmp9_ = GTK_WIDGET_CLASS (slideshow_page_parent_class)->key_press_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), gtk_widget_get_type (), GtkWidget), _tmp8_); #line 379 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _tmp7_ = _tmp9_; -#line 2027 "SlideshowPage.c" +#line 2029 "SlideshowPage.c" } else { #line 379 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _tmp7_ = TRUE; -#line 2031 "SlideshowPage.c" +#line 2033 "SlideshowPage.c" } #line 379 "/home/jens/Source/shotwell/src/SlideshowPage.vala" result = _tmp7_; #line 379 "/home/jens/Source/shotwell/src/SlideshowPage.vala" return result; -#line 2037 "SlideshowPage.c" +#line 2039 "SlideshowPage.c" } @@ -2076,7 +2078,7 @@ static void slideshow_page_on_change_settings (SlideshowPage* self) { _tmp4_ = gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_dialog_get_type (), GtkDialog)); #line 390 "/home/jens/Source/shotwell/src/SlideshowPage.vala" if (_tmp4_ == ((gint) GTK_RESPONSE_OK)) { -#line 2078 "SlideshowPage.c" +#line 2080 "SlideshowPage.c" ConfigFacade* _tmp5_ = NULL; ConfigFacade* _tmp6_ = NULL; SlideshowPageSettingsDialog* _tmp7_ = NULL; @@ -2148,7 +2150,7 @@ static void slideshow_page_on_change_settings (SlideshowPage* self) { _g_object_unref0 (_tmp19_); #line 398 "/home/jens/Source/shotwell/src/SlideshowPage.vala" slideshow_page_update_transition_effect (self); -#line 2150 "SlideshowPage.c" +#line 2152 "SlideshowPage.c" } #line 401 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _tmp22_ = settings_dialog; @@ -2164,7 +2166,7 @@ static void slideshow_page_on_change_settings (SlideshowPage* self) { g_timer_start (_tmp24_); #line 382 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _g_object_unref0 (settings_dialog); -#line 2166 "SlideshowPage.c" +#line 2168 "SlideshowPage.c" } @@ -2209,7 +2211,7 @@ static void slideshow_page_update_transition_effect (SlideshowPage* self) { single_photo_page_set_transition (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), effect_id, (gint) (effect_delay * 1000.0)); #line 406 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _g_free0 (effect_id); -#line 2211 "SlideshowPage.c" +#line 2213 "SlideshowPage.c" } @@ -2249,7 +2251,7 @@ static void slideshow_page_random_transition_effect (SlideshowPage* self) { _tmp5__length1 = self->priv->transitions_length1; #line 416 "/home/jens/Source/shotwell/src/SlideshowPage.vala" if (0 < _tmp5__length1) { -#line 2251 "SlideshowPage.c" +#line 2253 "SlideshowPage.c" gint random = 0; gchar** _tmp6_ = NULL; gint _tmp6__length1 = 0; @@ -2281,7 +2283,7 @@ static void slideshow_page_random_transition_effect (SlideshowPage* self) { _g_free0 (effect_id); #line 418 "/home/jens/Source/shotwell/src/SlideshowPage.vala" effect_id = _tmp11_; -#line 2283 "SlideshowPage.c" +#line 2285 "SlideshowPage.c" } #line 420 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _tmp12_ = effect_id; @@ -2291,7 +2293,7 @@ static void slideshow_page_random_transition_effect (SlideshowPage* self) { single_photo_page_set_transition (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), _tmp12_, (gint) (_tmp13_ * 1000.0)); #line 413 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _g_free0 (effect_id); -#line 2293 "SlideshowPage.c" +#line 2295 "SlideshowPage.c" } @@ -2364,14 +2366,14 @@ static void slideshow_page_paint_title (SlideshowPage* self, cairo_t* ctx, Dimen if (_tmp3_ == NULL) { #line 428 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _tmp2_ = TRUE; -#line 2366 "SlideshowPage.c" +#line 2368 "SlideshowPage.c" } else { const gchar* _tmp4_ = NULL; #line 428 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _tmp4_ = title; #line 428 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _tmp2_ = g_strcmp0 (_tmp4_, "") == 0; -#line 2373 "SlideshowPage.c" +#line 2375 "SlideshowPage.c" } #line 428 "/home/jens/Source/shotwell/src/SlideshowPage.vala" if (_tmp2_) { @@ -2379,7 +2381,7 @@ static void slideshow_page_paint_title (SlideshowPage* self, cairo_t* ctx, Dimen _g_free0 (title); #line 429 "/home/jens/Source/shotwell/src/SlideshowPage.vala" return; -#line 2381 "SlideshowPage.c" +#line 2383 "SlideshowPage.c" } #line 431 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _tmp5_ = title; @@ -2447,7 +2449,7 @@ static void slideshow_page_paint_title (SlideshowPage* self, cairo_t* ctx, Dimen _tmp27_ = _tmp26_.height; #line 445 "/home/jens/Source/shotwell/src/SlideshowPage.vala" if ((_tmp24_ + _tmp25_) >= (_tmp27_ * 0.95)) { -#line 2449 "SlideshowPage.c" +#line 2451 "SlideshowPage.c" Dimensions _tmp28_ = {0}; gint _tmp29_ = 0; gint _tmp30_ = 0; @@ -2459,7 +2461,7 @@ static void slideshow_page_paint_title (SlideshowPage* self, cairo_t* ctx, Dimen _tmp30_ = title_height; #line 446 "/home/jens/Source/shotwell/src/SlideshowPage.vala" y = (_tmp29_ * 0.95) - _tmp30_; -#line 2461 "SlideshowPage.c" +#line 2463 "SlideshowPage.c" } #line 448 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _tmp31_ = x; @@ -2471,7 +2473,7 @@ static void slideshow_page_paint_title (SlideshowPage* self, cairo_t* ctx, Dimen _tmp34_ = _tmp33_.width; #line 448 "/home/jens/Source/shotwell/src/SlideshowPage.vala" if ((_tmp31_ + _tmp32_) >= (_tmp34_ * 0.95)) { -#line 2473 "SlideshowPage.c" +#line 2475 "SlideshowPage.c" Dimensions _tmp35_ = {0}; gint _tmp36_ = 0; gint _tmp37_ = 0; @@ -2483,7 +2485,7 @@ static void slideshow_page_paint_title (SlideshowPage* self, cairo_t* ctx, Dimen _tmp37_ = title_width; #line 449 "/home/jens/Source/shotwell/src/SlideshowPage.vala" x = (gdouble) ((_tmp36_ / 2) - (_tmp37_ / 2)); -#line 2485 "SlideshowPage.c" +#line 2487 "SlideshowPage.c" } #line 451 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _tmp38_ = ctx; @@ -2529,7 +2531,7 @@ static void slideshow_page_paint_title (SlideshowPage* self, cairo_t* ctx, Dimen _g_object_unref0 (layout); #line 424 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _g_free0 (title); -#line 2531 "SlideshowPage.c" +#line 2533 "SlideshowPage.c" } @@ -2566,21 +2568,21 @@ static void slideshow_page_real_paint (SinglePhotoPage* base, cairo_t* ctx, Dime _g_object_unref0 (_tmp4_); #line 463 "/home/jens/Source/shotwell/src/SlideshowPage.vala" if (_tmp6_) { -#line 2568 "SlideshowPage.c" +#line 2570 "SlideshowPage.c" gboolean _tmp7_ = FALSE; #line 463 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _tmp7_ = single_photo_page_is_transition_in_progress (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)); #line 463 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _tmp2_ = !_tmp7_; -#line 2574 "SlideshowPage.c" +#line 2576 "SlideshowPage.c" } else { #line 463 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _tmp2_ = FALSE; -#line 2578 "SlideshowPage.c" +#line 2580 "SlideshowPage.c" } #line 463 "/home/jens/Source/shotwell/src/SlideshowPage.vala" if (_tmp2_) { -#line 2582 "SlideshowPage.c" +#line 2584 "SlideshowPage.c" cairo_t* _tmp8_ = NULL; Dimensions _tmp9_ = {0}; #line 464 "/home/jens/Source/shotwell/src/SlideshowPage.vala" @@ -2589,7 +2591,7 @@ static void slideshow_page_real_paint (SinglePhotoPage* base, cairo_t* ctx, Dime _tmp9_ = *ctx_dim; #line 464 "/home/jens/Source/shotwell/src/SlideshowPage.vala" slideshow_page_paint_title (self, _tmp8_, &_tmp9_); -#line 2591 "SlideshowPage.c" +#line 2593 "SlideshowPage.c" } } @@ -2599,14 +2601,14 @@ static gint _utf8_ci_compare_gcompare_data_func (gconstpointer a, gconstpointer result = utf8_ci_compare (a, b); #line 73 "/home/jens/Source/shotwell/src/SlideshowPage.vala" return result; -#line 2601 "SlideshowPage.c" +#line 2603 "SlideshowPage.c" } static void _slideshow_page_settings_dialog_on_transition_changed_gtk_combo_box_changed (GtkComboBox* _sender, gpointer self) { #line 84 "/home/jens/Source/shotwell/src/SlideshowPage.vala" slideshow_page_settings_dialog_on_transition_changed ((SlideshowPageSettingsDialog*) self); -#line 2608 "SlideshowPage.c" +#line 2610 "SlideshowPage.c" } @@ -2841,7 +2843,7 @@ static SlideshowPageSettingsDialog* slideshow_page_settings_dialog_construct (GT gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, gtk_combo_box_get_type (), GtkComboBox), 0); #line 72 "/home/jens/Source/shotwell/src/SlideshowPage.vala" i = 1; -#line 2843 "SlideshowPage.c" +#line 2845 "SlideshowPage.c" { GeeIterator* _display_name_it = NULL; TransitionEffectsManager* _tmp43_ = NULL; @@ -2870,7 +2872,7 @@ static SlideshowPageSettingsDialog* slideshow_page_settings_dialog_construct (GT _display_name_it = _tmp48_; #line 73 "/home/jens/Source/shotwell/src/SlideshowPage.vala" while (TRUE) { -#line 2872 "SlideshowPage.c" +#line 2874 "SlideshowPage.c" GeeIterator* _tmp49_ = NULL; gboolean _tmp50_ = FALSE; gchar* display_name = NULL; @@ -2896,7 +2898,7 @@ static SlideshowPageSettingsDialog* slideshow_page_settings_dialog_construct (GT if (!_tmp50_) { #line 73 "/home/jens/Source/shotwell/src/SlideshowPage.vala" break; -#line 2898 "SlideshowPage.c" +#line 2900 "SlideshowPage.c" } #line 73 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _tmp51_ = _display_name_it; @@ -2914,7 +2916,7 @@ static SlideshowPageSettingsDialog* slideshow_page_settings_dialog_construct (GT _g_free0 (display_name); #line 76 "/home/jens/Source/shotwell/src/SlideshowPage.vala" continue; -#line 2916 "SlideshowPage.c" +#line 2918 "SlideshowPage.c" } #line 78 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _tmp55_ = self->priv->transition_effect_selector; @@ -2942,7 +2944,7 @@ static SlideshowPageSettingsDialog* slideshow_page_settings_dialog_construct (GT _transition_effects_manager_unref0 (_tmp59_); #line 79 "/home/jens/Source/shotwell/src/SlideshowPage.vala" if (_tmp63_) { -#line 2944 "SlideshowPage.c" +#line 2946 "SlideshowPage.c" GtkComboBoxText* _tmp64_ = NULL; gint _tmp65_ = 0; #line 80 "/home/jens/Source/shotwell/src/SlideshowPage.vala" @@ -2951,7 +2953,7 @@ static SlideshowPageSettingsDialog* slideshow_page_settings_dialog_construct (GT _tmp65_ = i; #line 80 "/home/jens/Source/shotwell/src/SlideshowPage.vala" gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, gtk_combo_box_get_type (), GtkComboBox), _tmp65_); -#line 2953 "SlideshowPage.c" +#line 2955 "SlideshowPage.c" } #line 82 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _tmp66_ = i; @@ -2959,11 +2961,11 @@ static SlideshowPageSettingsDialog* slideshow_page_settings_dialog_construct (GT i = _tmp66_ + 1; #line 73 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _g_free0 (display_name); -#line 2961 "SlideshowPage.c" +#line 2963 "SlideshowPage.c" } #line 73 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _g_object_unref0 (_display_name_it); -#line 2965 "SlideshowPage.c" +#line 2967 "SlideshowPage.c" } #line 84 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _tmp67_ = self->priv->transition_effect_selector; @@ -3071,14 +3073,14 @@ static SlideshowPageSettingsDialog* slideshow_page_settings_dialog_construct (GT _g_object_unref0 (adjustment); #line 37 "/home/jens/Source/shotwell/src/SlideshowPage.vala" return self; -#line 3073 "SlideshowPage.c" +#line 3075 "SlideshowPage.c" } static SlideshowPageSettingsDialog* slideshow_page_settings_dialog_new (void) { #line 37 "/home/jens/Source/shotwell/src/SlideshowPage.vala" return slideshow_page_settings_dialog_construct (SLIDESHOW_PAGE_TYPE_SETTINGS_DIALOG); -#line 3080 "SlideshowPage.c" +#line 3082 "SlideshowPage.c" } @@ -3103,17 +3105,17 @@ static void slideshow_page_settings_dialog_on_transition_changed (SlideshowPageS _tmp3_ = selected; #line 110 "/home/jens/Source/shotwell/src/SlideshowPage.vala" if (_tmp3_ != NULL) { -#line 3105 "SlideshowPage.c" +#line 3107 "SlideshowPage.c" const gchar* _tmp4_ = NULL; #line 111 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _tmp4_ = selected; #line 111 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _tmp2_ = g_strcmp0 (_tmp4_, TRANSITION_EFFECTS_MANAGER_NULL_EFFECT_ID) != 0; -#line 3111 "SlideshowPage.c" +#line 3113 "SlideshowPage.c" } else { #line 110 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _tmp2_ = FALSE; -#line 3115 "SlideshowPage.c" +#line 3117 "SlideshowPage.c" } #line 110 "/home/jens/Source/shotwell/src/SlideshowPage.vala" sensitive = _tmp2_; @@ -3127,7 +3129,7 @@ static void slideshow_page_settings_dialog_on_transition_changed (SlideshowPageS gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget), sensitive); #line 108 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _g_free0 (selected); -#line 3129 "SlideshowPage.c" +#line 3131 "SlideshowPage.c" } @@ -3145,7 +3147,7 @@ static gdouble slideshow_page_settings_dialog_get_delay (SlideshowPageSettingsDi result = _tmp1_; #line 118 "/home/jens/Source/shotwell/src/SlideshowPage.vala" return result; -#line 3147 "SlideshowPage.c" +#line 3149 "SlideshowPage.c" } @@ -3163,7 +3165,7 @@ static gdouble slideshow_page_settings_dialog_get_transition_delay (SlideshowPag result = _tmp1_; #line 122 "/home/jens/Source/shotwell/src/SlideshowPage.vala" return result; -#line 3165 "SlideshowPage.c" +#line 3167 "SlideshowPage.c" } @@ -3194,7 +3196,7 @@ static gchar* slideshow_page_settings_dialog_get_transition_effect_id (Slideshow _tmp2_ = active; #line 127 "/home/jens/Source/shotwell/src/SlideshowPage.vala" if (_tmp2_ == NULL) { -#line 3196 "SlideshowPage.c" +#line 3198 "SlideshowPage.c" gchar* _tmp3_ = NULL; #line 128 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _tmp3_ = g_strdup (TRANSITION_EFFECTS_MANAGER_NULL_EFFECT_ID); @@ -3204,7 +3206,7 @@ static gchar* slideshow_page_settings_dialog_get_transition_effect_id (Slideshow _g_free0 (active); #line 128 "/home/jens/Source/shotwell/src/SlideshowPage.vala" return result; -#line 3206 "SlideshowPage.c" +#line 3208 "SlideshowPage.c" } #line 130 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _tmp4_ = transition_effects_manager_get_instance (); @@ -3224,17 +3226,17 @@ static gchar* slideshow_page_settings_dialog_get_transition_effect_id (Slideshow _tmp10_ = id; #line 132 "/home/jens/Source/shotwell/src/SlideshowPage.vala" if (_tmp10_ != NULL) { -#line 3226 "SlideshowPage.c" +#line 3228 "SlideshowPage.c" const gchar* _tmp11_ = NULL; #line 132 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _tmp11_ = id; #line 132 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _tmp9_ = _tmp11_; -#line 3232 "SlideshowPage.c" +#line 3234 "SlideshowPage.c" } else { #line 132 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _tmp9_ = TRANSITION_EFFECTS_MANAGER_NULL_EFFECT_ID; -#line 3236 "SlideshowPage.c" +#line 3238 "SlideshowPage.c" } #line 132 "/home/jens/Source/shotwell/src/SlideshowPage.vala" _tmp12_ = g_strdup (_tmp9_); @@ -3246,7 +3248,7 @@ static gchar* slideshow_page_settings_dialog_get_transition_effect_id (Slideshow _g_free0 (active); #line 132 "/home/jens/Source/shotwell/src/SlideshowPage.vala" return result; -#line 3248 "SlideshowPage.c" +#line 3250 "SlideshowPage.c" } @@ -3267,7 +3269,7 @@ static gboolean slideshow_page_settings_dialog_get_show_title (SlideshowPageSett result = _tmp2_; #line 136 "/home/jens/Source/shotwell/src/SlideshowPage.vala" return result; -#line 3269 "SlideshowPage.c" +#line 3271 "SlideshowPage.c" } @@ -3278,7 +3280,7 @@ static void slideshow_page_settings_dialog_class_init (SlideshowPageSettingsDial g_type_class_add_private (klass, sizeof (SlideshowPageSettingsDialogPrivate)); #line 26 "/home/jens/Source/shotwell/src/SlideshowPage.vala" G_OBJECT_CLASS (klass)->finalize = slideshow_page_settings_dialog_finalize; -#line 3280 "SlideshowPage.c" +#line 3282 "SlideshowPage.c" } @@ -3287,7 +3289,7 @@ static void slideshow_page_settings_dialog_instance_init (SlideshowPageSettingsD self->priv = SLIDESHOW_PAGE_SETTINGS_DIALOG_GET_PRIVATE (self); #line 27 "/home/jens/Source/shotwell/src/SlideshowPage.vala" self->priv->builder = NULL; -#line 3289 "SlideshowPage.c" +#line 3291 "SlideshowPage.c" } @@ -3315,7 +3317,7 @@ static void slideshow_page_settings_dialog_finalize (GObject* obj) { _g_object_unref0 (self->priv->pane); #line 26 "/home/jens/Source/shotwell/src/SlideshowPage.vala" G_OBJECT_CLASS (slideshow_page_settings_dialog_parent_class)->finalize (obj); -#line 3317 "SlideshowPage.c" +#line 3319 "SlideshowPage.c" } @@ -3352,7 +3354,7 @@ static void slideshow_page_class_init (SlideshowPageClass * klass) { G_OBJECT_CLASS (klass)->finalize = slideshow_page_finalize; #line 7 "/home/jens/Source/shotwell/src/SlideshowPage.vala" g_signal_new ("hide_toolbar", TYPE_SLIDESHOW_PAGE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 3354 "SlideshowPage.c" +#line 3356 "SlideshowPage.c" } @@ -3370,7 +3372,7 @@ static void slideshow_page_instance_init (SlideshowPage * self) { self->priv->playing = TRUE; #line 19 "/home/jens/Source/shotwell/src/SlideshowPage.vala" self->priv->exiting = FALSE; -#line 3372 "SlideshowPage.c" +#line 3374 "SlideshowPage.c" } @@ -3398,7 +3400,7 @@ static void slideshow_page_finalize (GObject* obj) { _screensaver_unref0 (self->priv->screensaver); #line 7 "/home/jens/Source/shotwell/src/SlideshowPage.vala" G_OBJECT_CLASS (slideshow_page_parent_class)->finalize (obj); -#line 3400 "SlideshowPage.c" +#line 3402 "SlideshowPage.c" } diff --git a/src/SortedList.c b/src/SortedList.c index 85f22a9..a858888 100644 --- a/src/SortedList.c +++ b/src/SortedList.c @@ -1,4 +1,4 @@ -/* SortedList.c generated by valac 0.32.1, the Vala compiler +/* SortedList.c generated by valac 0.34.4, the Vala compiler * generated from SortedList.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -130,13 +130,13 @@ gint64 file_comparator (void* a, void* b) { #line 12 "/home/jens/Source/shotwell/src/SortedList.vala" _tmp0_ = a; #line 12 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp1_ = g_file_get_path (G_TYPE_CHECK_INSTANCE_CAST ((GFile*) _tmp0_, G_TYPE_FILE, GFile)); + _tmp1_ = g_file_get_path (G_TYPE_CHECK_INSTANCE_CAST ((GFile*) _tmp0_, g_file_get_type (), GFile)); #line 12 "/home/jens/Source/shotwell/src/SortedList.vala" path_a = _tmp1_; #line 13 "/home/jens/Source/shotwell/src/SortedList.vala" _tmp2_ = b; #line 13 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp3_ = g_file_get_path (G_TYPE_CHECK_INSTANCE_CAST ((GFile*) _tmp2_, G_TYPE_FILE, GFile)); + _tmp3_ = g_file_get_path (G_TYPE_CHECK_INSTANCE_CAST ((GFile*) _tmp2_, g_file_get_type (), GFile)); #line 13 "/home/jens/Source/shotwell/src/SortedList.vala" path_b = _tmp3_; #line 16 "/home/jens/Source/shotwell/src/SortedList.vala" @@ -1,4 +1,4 @@ -/* Tag.c generated by valac 0.32.1, the Vala compiler +/* Tag.c generated by valac 0.34.4, the Vala compiler * generated from Tag.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -3240,7 +3240,7 @@ void tag_init (ProgressMonitor monitor, void* monitor_target) { #line 393 "/home/jens/Source/shotwell/src/Tag.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 3243 "Tag.c" - goto __catch467_database_error; + goto __catch469_database_error; } #line 393 "/home/jens/Source/shotwell/src/Tag.vala" _g_object_unref0 (rows); @@ -3264,8 +3264,8 @@ void tag_init (ProgressMonitor monitor, void* monitor_target) { _g_object_unref0 (_tmp1_); #line 3266 "Tag.c" } - goto __finally467; - __catch467_database_error: + goto __finally469; + __catch469_database_error: { GError* err = NULL; GError* _tmp7_ = NULL; @@ -3281,7 +3281,7 @@ void tag_init (ProgressMonitor monitor, void* monitor_target) { _g_error_free0 (err); #line 3283 "Tag.c" } - __finally467: + __finally469: #line 392 "/home/jens/Source/shotwell/src/Tag.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 392 "/home/jens/Source/shotwell/src/Tag.vala" @@ -3423,7 +3423,7 @@ void tag_init (ProgressMonitor monitor, void* monitor_target) { #line 418 "/home/jens/Source/shotwell/src/Tag.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 3426 "Tag.c" - goto __catch468_database_error; + goto __catch470_database_error; } #line 418 "/home/jens/Source/shotwell/src/Tag.vala" _g_free0 (name); @@ -3444,8 +3444,8 @@ void tag_init (ProgressMonitor monitor, void* monitor_target) { #line 3445 "Tag.c" } } - goto __finally468; - __catch468_database_error: + goto __finally470; + __catch470_database_error: { GError* err = NULL; TagRow* _tmp30_ = NULL; @@ -3470,7 +3470,7 @@ void tag_init (ProgressMonitor monitor, void* monitor_target) { _g_error_free0 (err); #line 3472 "Tag.c" } - __finally468: + __finally470: #line 417 "/home/jens/Source/shotwell/src/Tag.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 417 "/home/jens/Source/shotwell/src/Tag.vala" @@ -4577,7 +4577,7 @@ Tag* tag_for_path (const gchar* name) { #line 563 "/home/jens/Source/shotwell/src/Tag.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 4580 "Tag.c" - goto __catch469_database_error; + goto __catch471_database_error; } #line 563 "/home/jens/Source/shotwell/src/Tag.vala" _g_object_unref0 (tag); @@ -4599,8 +4599,8 @@ Tag* tag_for_path (const gchar* name) { _tag_row_unref0 (_tmp8_); #line 4601 "Tag.c" } - goto __finally469; - __catch469_database_error: + goto __finally471; + __catch471_database_error: { GError* err = NULL; GError* _tmp15_ = NULL; @@ -4616,7 +4616,7 @@ Tag* tag_for_path (const gchar* name) { _g_error_free0 (err); #line 4618 "Tag.c" } - __finally469: + __finally471: #line 562 "/home/jens/Source/shotwell/src/Tag.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 562 "/home/jens/Source/shotwell/src/Tag.vala" @@ -5532,7 +5532,7 @@ static void tag_set_raw_flat_name (Tag* self, const gchar* name) { #line 678 "/home/jens/Source/shotwell/src/Tag.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 5535 "Tag.c" - goto __catch470_database_error; + goto __catch472_database_error; } #line 678 "/home/jens/Source/shotwell/src/Tag.vala" _g_free0 (prepped_name); @@ -5545,8 +5545,8 @@ static void tag_set_raw_flat_name (Tag* self, const gchar* name) { #line 5546 "Tag.c" } } - goto __finally470; - __catch470_database_error: + goto __finally472; + __catch472_database_error: { GError* err = NULL; GError* _tmp10_ = NULL; @@ -5566,7 +5566,7 @@ static void tag_set_raw_flat_name (Tag* self, const gchar* name) { return; #line 5568 "Tag.c" } - __finally470: + __finally472: #line 677 "/home/jens/Source/shotwell/src/Tag.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 677 "/home/jens/Source/shotwell/src/Tag.vala" @@ -5678,7 +5678,7 @@ static void tag_set_raw_path (Tag* self, const gchar* path, gboolean suppress_no #line 700 "/home/jens/Source/shotwell/src/Tag.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 5681 "Tag.c" - goto __catch471_database_error; + goto __catch473_database_error; } #line 700 "/home/jens/Source/shotwell/src/Tag.vala" _g_free0 (prepped_path); @@ -5691,8 +5691,8 @@ static void tag_set_raw_path (Tag* self, const gchar* path, gboolean suppress_no #line 5692 "Tag.c" } } - goto __finally471; - __catch471_database_error: + goto __finally473; + __catch473_database_error: { GError* err = NULL; GError* _tmp13_ = NULL; @@ -5712,7 +5712,7 @@ static void tag_set_raw_path (Tag* self, const gchar* path, gboolean suppress_no return; #line 5714 "Tag.c" } - __finally471: + __finally473: #line 699 "/home/jens/Source/shotwell/src/Tag.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 699 "/home/jens/Source/shotwell/src/Tag.vala" @@ -7069,7 +7069,7 @@ Tag* tag_reconstitute (gint64 object_id, TagRow* row) { #line 900 "/home/jens/Source/shotwell/src/Tag.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 7072 "Tag.c" - goto __catch472_database_error; + goto __catch474_database_error; } #line 900 "/home/jens/Source/shotwell/src/Tag.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -7085,8 +7085,8 @@ Tag* tag_reconstitute (gint64 object_id, TagRow* row) { _tmp6_->tag_id = _tmp0_; #line 7087 "Tag.c" } - goto __finally472; - __catch472_database_error: + goto __finally474; + __catch474_database_error: { GError* err = NULL; GError* _tmp7_ = NULL; @@ -7102,7 +7102,7 @@ Tag* tag_reconstitute (gint64 object_id, TagRow* row) { _g_error_free0 (err); #line 7104 "Tag.c" } - __finally472: + __finally474: #line 899 "/home/jens/Source/shotwell/src/Tag.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 899 "/home/jens/Source/shotwell/src/Tag.vala" @@ -8022,35 +8022,35 @@ static gint string_index_of (const gchar* self, const gchar* needle, gint start_ const gchar* _tmp1_ = NULL; gchar* _tmp2_ = NULL; gchar* _tmp3_ = NULL; -#line 987 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 987 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, 0); -#line 987 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 987 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (needle != NULL, 0); -#line 988 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 988 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = start_index; -#line 988 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 988 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = needle; -#line 988 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 988 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = strstr (((gchar*) self) + _tmp0_, (gchar*) _tmp1_); -#line 988 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 988 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _result_ = _tmp2_; -#line 990 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 990 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = _result_; -#line 990 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 990 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp3_ != NULL) { #line 8042 "Tag.c" gchar* _tmp4_ = NULL; -#line 991 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 991 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = _result_; -#line 991 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 991 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = (gint) (_tmp4_ - ((gchar*) self)); -#line 991 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 991 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 8050 "Tag.c" } else { -#line 993 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 993 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = -1; -#line 993 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 993 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 8056 "Tag.c" } @@ -8064,37 +8064,37 @@ static glong string_strnlen (gchar* str, glong maxlen) { glong _tmp1_ = 0L; gchar* _tmp2_ = NULL; gchar* _tmp3_ = NULL; -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = str; -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = maxlen; -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = memchr (_tmp0_, 0, (gsize) _tmp1_); -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" end = _tmp2_; -#line 1296 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1296 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = end; -#line 1296 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1296 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp3_ == NULL) { #line 8080 "Tag.c" glong _tmp4_ = 0L; -#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = maxlen; -#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp4_; -#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 8088 "Tag.c" } else { gchar* _tmp5_ = NULL; gchar* _tmp6_ = NULL; -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = end; -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp6_ = str; -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = (glong) (_tmp5_ - _tmp6_); -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 8100 "Tag.c" } @@ -8114,112 +8114,112 @@ static gchar* string_substring (const gchar* self, glong offset, glong len) { glong _tmp20_ = 0L; glong _tmp21_ = 0L; gchar* _tmp22_ = NULL; -#line 1306 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1306 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, NULL); -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = offset; -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp1_ >= ((glong) 0)) { #line 8124 "Tag.c" glong _tmp2_ = 0L; -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = len; -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = _tmp2_ >= ((glong) 0); #line 8130 "Tag.c" } else { -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = FALSE; #line 8134 "Tag.c" } -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp0_) { #line 8138 "Tag.c" glong _tmp3_ = 0L; glong _tmp4_ = 0L; glong _tmp5_ = 0L; -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = offset; -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = len; -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = string_strnlen ((gchar*) self, _tmp3_ + _tmp4_); -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" string_length = _tmp5_; #line 8150 "Tag.c" } else { gint _tmp6_ = 0; gint _tmp7_ = 0; -#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp6_ = strlen (self); -#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp7_ = _tmp6_; -#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" string_length = (glong) _tmp7_; #line 8160 "Tag.c" } -#line 1315 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1315 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp8_ = offset; -#line 1315 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1315 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp8_ < ((glong) 0)) { #line 8166 "Tag.c" glong _tmp9_ = 0L; glong _tmp10_ = 0L; glong _tmp11_ = 0L; -#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp9_ = string_length; -#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp10_ = offset; -#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" offset = _tmp9_ + _tmp10_; -#line 1317 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1317 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp11_ = offset; -#line 1317 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1317 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (_tmp11_ >= ((glong) 0), NULL); #line 8180 "Tag.c" } else { glong _tmp12_ = 0L; glong _tmp13_ = 0L; -#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp12_ = offset; -#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp13_ = string_length; -#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (_tmp12_ <= _tmp13_, NULL); #line 8190 "Tag.c" } -#line 1321 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1321 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp14_ = len; -#line 1321 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1321 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp14_ < ((glong) 0)) { #line 8196 "Tag.c" glong _tmp15_ = 0L; glong _tmp16_ = 0L; -#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp15_ = string_length; -#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp16_ = offset; -#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" len = _tmp15_ - _tmp16_; #line 8205 "Tag.c" } -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp17_ = offset; -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp18_ = len; -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp19_ = string_length; -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail ((_tmp17_ + _tmp18_) <= _tmp19_, NULL); -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp20_ = offset; -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp21_ = len; -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp22_ = g_strndup (((gchar*) self) + _tmp20_, (gsize) _tmp21_); -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp22_; -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 8225 "Tag.c" } @@ -9016,7 +9016,7 @@ static void tag_on_media_views_contents_altered (Tag* self, GeeIterable* added, #line 1153 "/home/jens/Source/shotwell/src/Tag.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 9019 "Tag.c" - goto __catch473_database_error; + goto __catch475_database_error; } #line 1153 "/home/jens/Source/shotwell/src/Tag.vala" _g_object_unref0 (removed_sources); @@ -9031,8 +9031,8 @@ static void tag_on_media_views_contents_altered (Tag* self, GeeIterable* added, #line 9032 "Tag.c" } } - goto __finally473; - __catch473_database_error: + goto __finally475; + __catch475_database_error: { GError* err = NULL; GError* _tmp57_ = NULL; @@ -9048,7 +9048,7 @@ static void tag_on_media_views_contents_altered (Tag* self, GeeIterable* added, _g_error_free0 (err); #line 9050 "Tag.c" } - __finally473: + __finally475: #line 1152 "/home/jens/Source/shotwell/src/Tag.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1152 "/home/jens/Source/shotwell/src/Tag.vala" @@ -9260,7 +9260,7 @@ static void tag_real_destroy (DataSource* base) { #line 1194 "/home/jens/Source/shotwell/src/Tag.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 9263 "Tag.c" - goto __catch474_database_error; + goto __catch476_database_error; } #line 1194 "/home/jens/Source/shotwell/src/Tag.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -9271,8 +9271,8 @@ static void tag_real_destroy (DataSource* base) { #line 9272 "Tag.c" } } - goto __finally474; - __catch474_database_error: + goto __finally476; + __catch476_database_error: { GError* err = NULL; GError* _tmp19_ = NULL; @@ -9288,7 +9288,7 @@ static void tag_real_destroy (DataSource* base) { _g_error_free0 (err); #line 9290 "Tag.c" } - __finally474: + __finally476: #line 1193 "/home/jens/Source/shotwell/src/Tag.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1193 "/home/jens/Source/shotwell/src/Tag.vala" diff --git a/src/Thumbnail.c b/src/Thumbnail.c index 062529f..c42e9ce 100644 --- a/src/Thumbnail.c +++ b/src/Thumbnail.c @@ -1,4 +1,4 @@ -/* Thumbnail.c generated by valac 0.32.1, the Vala compiler +/* Thumbnail.c generated by valac 0.34.4, the Vala compiler * generated from Thumbnail.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/ThumbnailCache.c b/src/ThumbnailCache.c index 9e928e3..4e8443f 100644 --- a/src/ThumbnailCache.c +++ b/src/ThumbnailCache.c @@ -1,4 +1,4 @@ -/* ThumbnailCache.c generated by valac 0.32.1, the Vala compiler +/* ThumbnailCache.c generated by valac 0.34.4, the Vala compiler * generated from ThumbnailCache.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -912,7 +912,7 @@ static void thumbnails_instance_init (Thumbnails * self) { #line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" self->priv = THUMBNAILS_GET_PRIVATE (self); #line 8 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = gee_hash_map_new (THUMBNAIL_CACHE_TYPE_SIZE, NULL, NULL, GDK_TYPE_PIXBUF, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); + _tmp0_ = gee_hash_map_new (THUMBNAIL_CACHE_TYPE_SIZE, NULL, NULL, gdk_pixbuf_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); #line 8 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" self->priv->map = _tmp0_; #line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" @@ -1802,7 +1802,7 @@ void thumbnail_cache_generate_for_photo (Thumbnails* thumbnails, PhotoFileReader #line 300 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1805 "ThumbnailCache.c" - goto __catch233_g_error; + goto __catch235_g_error; } #line 300 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" _tmp9_ = _tmp4_; @@ -1816,8 +1816,8 @@ void thumbnail_cache_generate_for_photo (Thumbnails* thumbnails, PhotoFileReader _g_object_unref0 (_tmp4_); #line 1818 "ThumbnailCache.c" } - goto __finally233; - __catch233_g_error: + goto __finally235; + __catch235_g_error: { GError* err = NULL; GdkPixbuf* _tmp10_ = NULL; @@ -1839,7 +1839,7 @@ void thumbnail_cache_generate_for_photo (Thumbnails* thumbnails, PhotoFileReader #line 305 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" _g_error_free0 (err); #line 1842 "ThumbnailCache.c" - goto __finally233; + goto __finally235; } #line 305 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" _tmp13_ = _tmp10_; @@ -1855,7 +1855,7 @@ void thumbnail_cache_generate_for_photo (Thumbnails* thumbnails, PhotoFileReader _g_error_free0 (err); #line 1857 "ThumbnailCache.c" } - __finally233: + __finally235: #line 299 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 299 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" @@ -2390,11 +2390,11 @@ static void thumbnail_cache_async_fetch_completion_callback (BackgroundJob* back #line 423 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 2393 "ThumbnailCache.c" - goto __catch234_g_error; + goto __catch236_g_error; } } - goto __finally234; - __catch234_g_error: + goto __finally236; + __catch236_g_error: { GError* err = NULL; ThumbnailCacheAsyncFetchJob* _tmp14_ = NULL; @@ -2418,7 +2418,7 @@ static void thumbnail_cache_async_fetch_completion_callback (BackgroundJob* back _g_error_free0 (err); #line 2420 "ThumbnailCache.c" } - __finally234: + __finally236: #line 422 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 422 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" @@ -2771,11 +2771,11 @@ static void _thumbnail_cache_duplicate (ThumbnailCache* self, ThumbnailSource* s #line 494 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 2774 "ThumbnailCache.c" - goto __catch235_g_error; + goto __catch237_g_error; } } - goto __finally235; - __catch235_g_error: + goto __finally237; + __catch237_g_error: { GError* err = NULL; GError* _tmp9_ = NULL; @@ -2802,7 +2802,7 @@ static void _thumbnail_cache_duplicate (ThumbnailCache* self, ThumbnailSource* s _g_error_free0 (err); #line 2804 "ThumbnailCache.c" } - __finally235: + __finally237: #line 493 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 493 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" @@ -2946,11 +2946,11 @@ static void _thumbnail_cache_remove (ThumbnailCache* self, ThumbnailSource* sour #line 529 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 2949 "ThumbnailCache.c" - goto __catch236_g_error; + goto __catch238_g_error; } } - goto __finally236; - __catch236_g_error: + goto __finally238; + __catch238_g_error: { GError* err = NULL; #line 528 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" @@ -2961,7 +2961,7 @@ static void _thumbnail_cache_remove (ThumbnailCache* self, ThumbnailSource* sour _g_error_free0 (err); #line 2963 "ThumbnailCache.c" } - __finally236: + __finally238: #line 528 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 528 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" @@ -4079,7 +4079,7 @@ static void thumbnail_cache_async_fetch_job_real_execute (BackgroundJob* base) { #line 125 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 4081 "ThumbnailCache.c" - goto __catch237_g_error; + goto __catch239_g_error; } #line 125 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" _tmp6_ = _tmp1_; @@ -4148,8 +4148,8 @@ static void thumbnail_cache_async_fetch_job_real_execute (BackgroundJob* base) { _g_object_unref0 (_tmp8_); #line 4149 "ThumbnailCache.c" } - goto __finally237; - __catch237_g_error: + goto __finally239; + __catch239_g_error: { GError* err = NULL; GError* _tmp17_ = NULL; @@ -4168,11 +4168,11 @@ static void thumbnail_cache_async_fetch_job_real_execute (BackgroundJob* base) { #line 137 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 4170 "ThumbnailCache.c" - goto __catch238_g_error; + goto __catch240_g_error; } } - goto __finally238; - __catch238_g_error: + goto __finally240; + __catch240_g_error: { GError* generr = NULL; GError* _tmp18_ = NULL; @@ -4193,7 +4193,7 @@ static void thumbnail_cache_async_fetch_job_real_execute (BackgroundJob* base) { _g_error_free0 (generr); #line 4194 "ThumbnailCache.c" } - __finally238: + __finally240: #line 136 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 136 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" @@ -4225,7 +4225,7 @@ static void thumbnail_cache_async_fetch_job_real_execute (BackgroundJob* base) { _g_error_free0 (err); #line 4226 "ThumbnailCache.c" } - __finally237: + __finally239: #line 122 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 122 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" diff --git a/src/TimedQueue.c b/src/TimedQueue.c index 9d872a5..b2ba07c 100644 --- a/src/TimedQueue.c +++ b/src/TimedQueue.c @@ -1,4 +1,4 @@ -/* TimedQueue.c generated by valac 0.32.1, the Vala compiler +/* TimedQueue.c generated by valac 0.34.4, the Vala compiler * generated from TimedQueue.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/Tombstone.c b/src/Tombstone.c index cad1972..34517c5 100644 --- a/src/Tombstone.c +++ b/src/Tombstone.c @@ -1,4 +1,4 @@ -/* Tombstone.c generated by valac 0.32.1, the Vala compiler +/* Tombstone.c generated by valac 0.34.4, the Vala compiler * generated from Tombstone.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -1320,7 +1320,7 @@ void tombstone_source_collection_resurrect_many (TombstoneSourceCollection* self #line 94 "/home/jens/Source/shotwell/src/Tombstone.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 1323 "Tombstone.c" - goto __catch543_database_error; + goto __catch545_database_error; } #line 94 "/home/jens/Source/shotwell/src/Tombstone.vala" _g_object_unref0 (marker); @@ -1333,8 +1333,8 @@ void tombstone_source_collection_resurrect_many (TombstoneSourceCollection* self #line 1334 "Tombstone.c" } } - goto __finally543; - __catch543_database_error: + goto __finally545; + __catch545_database_error: { GError* err = NULL; GError* _tmp2_ = NULL; @@ -1350,7 +1350,7 @@ void tombstone_source_collection_resurrect_many (TombstoneSourceCollection* self _g_error_free0 (err); #line 1352 "Tombstone.c" } - __finally543: + __finally545: #line 93 "/home/jens/Source/shotwell/src/Tombstone.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 93 "/home/jens/Source/shotwell/src/Tombstone.vala" @@ -1636,7 +1636,7 @@ static gboolean tombstone_source_collection_async_scan_co (TombstoneSourceCollec #line 127 "/home/jens/Source/shotwell/src/Tombstone.vala" if (G_UNLIKELY (_data_->_inner_error_ != NULL)) { #line 1639 "Tombstone.c" - goto __catch544_g_error; + goto __catch546_g_error; } #line 127 "/home/jens/Source/shotwell/src/Tombstone.vala" _data_->_tmp22_ = NULL; @@ -1652,8 +1652,8 @@ static gboolean tombstone_source_collection_async_scan_co (TombstoneSourceCollec _g_object_unref0 (_data_->_tmp18_); #line 1654 "Tombstone.c" } - goto __finally544; - __catch544_g_error: + goto __finally546; + __catch546_g_error: { #line 126 "/home/jens/Source/shotwell/src/Tombstone.vala" _data_->err = _data_->_inner_error_; @@ -1716,7 +1716,7 @@ static gboolean tombstone_source_collection_async_scan_co (TombstoneSourceCollec _g_error_free0 (_data_->err); #line 1717 "Tombstone.c" } - __finally544: + __finally546: #line 126 "/home/jens/Source/shotwell/src/Tombstone.vala" if (G_UNLIKELY (_data_->_inner_error_ != NULL)) { #line 126 "/home/jens/Source/shotwell/src/Tombstone.vala" @@ -1818,7 +1818,7 @@ static gboolean tombstone_source_collection_async_scan_co (TombstoneSourceCollec #line 154 "/home/jens/Source/shotwell/src/Tombstone.vala" if (_data_->_inner_error_->domain == DATABASE_ERROR) { #line 1820 "Tombstone.c" - goto __catch545_database_error; + goto __catch547_database_error; } #line 154 "/home/jens/Source/shotwell/src/Tombstone.vala" _g_object_unref0 (_data_->marker); @@ -1831,8 +1831,8 @@ static gboolean tombstone_source_collection_async_scan_co (TombstoneSourceCollec #line 1831 "Tombstone.c" } } - goto __finally545; - __catch545_database_error: + goto __finally547; + __catch547_database_error: { #line 153 "/home/jens/Source/shotwell/src/Tombstone.vala" _data_->err2 = _data_->_inner_error_; @@ -1848,7 +1848,7 @@ static gboolean tombstone_source_collection_async_scan_co (TombstoneSourceCollec _g_error_free0 (_data_->err2); #line 1849 "Tombstone.c" } - __finally545: + __finally547: #line 153 "/home/jens/Source/shotwell/src/Tombstone.vala" if (G_UNLIKELY (_data_->_inner_error_ != NULL)) { #line 153 "/home/jens/Source/shotwell/src/Tombstone.vala" @@ -1904,7 +1904,7 @@ static void tombstone_source_collection_instance_init (TombstoneSourceCollection #line 7 "/home/jens/Source/shotwell/src/Tombstone.vala" self->priv = TOMBSTONE_SOURCE_COLLECTION_GET_PRIVATE (self); #line 8 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp0_ = gee_hash_map_new (G_TYPE_FILE, (GBoxedCopyFunc) g_object_ref, g_object_unref, TYPE_TOMBSTONE, (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL); + _tmp0_ = gee_hash_map_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, TYPE_TOMBSTONE, (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL); #line 8 "/home/jens/Source/shotwell/src/Tombstone.vala" self->priv->file_map = _tmp0_; #line 1910 "Tombstone.c" @@ -2374,7 +2374,7 @@ void tombstone_init (void) { #line 211 "/home/jens/Source/shotwell/src/Tombstone.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 2376 "Tombstone.c" - goto __catch546_database_error; + goto __catch548_database_error; } #line 211 "/home/jens/Source/shotwell/src/Tombstone.vala" rows = (_vala_array_free (rows, rows_length1, (GDestroyNotify) tombstone_row_unref), NULL); @@ -2406,8 +2406,8 @@ void tombstone_init (void) { _tmp1_ = (_vala_array_free (_tmp1_, _tmp1__length1, (GDestroyNotify) tombstone_row_unref), NULL); #line 2407 "Tombstone.c" } - goto __finally546; - __catch546_database_error: + goto __finally548; + __catch548_database_error: { GError* err = NULL; GError* _tmp8_ = NULL; @@ -2423,7 +2423,7 @@ void tombstone_init (void) { _g_error_free0 (err); #line 2424 "Tombstone.c" } - __finally546: + __finally548: #line 210 "/home/jens/Source/shotwell/src/Tombstone.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 210 "/home/jens/Source/shotwell/src/Tombstone.vala" @@ -3210,7 +3210,7 @@ void tombstone_move (Tombstone* self, GFile* file) { #line 297 "/home/jens/Source/shotwell/src/Tombstone.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 3212 "Tombstone.c" - goto __catch547_database_error; + goto __catch549_database_error; } #line 297 "/home/jens/Source/shotwell/src/Tombstone.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -3221,8 +3221,8 @@ void tombstone_move (Tombstone* self, GFile* file) { #line 3221 "Tombstone.c" } } - goto __finally547; - __catch547_database_error: + goto __finally549; + __catch549_database_error: { GError* err = NULL; GError* _tmp7_ = NULL; @@ -3238,7 +3238,7 @@ void tombstone_move (Tombstone* self, GFile* file) { _g_error_free0 (err); #line 3239 "Tombstone.c" } - __finally547: + __finally549: #line 296 "/home/jens/Source/shotwell/src/Tombstone.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 296 "/home/jens/Source/shotwell/src/Tombstone.vala" @@ -3457,7 +3457,7 @@ static void tombstone_real_destroy (DataSource* base) { #line 328 "/home/jens/Source/shotwell/src/Tombstone.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 3459 "Tombstone.c" - goto __catch548_database_error; + goto __catch550_database_error; } #line 328 "/home/jens/Source/shotwell/src/Tombstone.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -3468,8 +3468,8 @@ static void tombstone_real_destroy (DataSource* base) { #line 3468 "Tombstone.c" } } - goto __finally548; - __catch548_database_error: + goto __finally550; + __catch550_database_error: { GError* err = NULL; GError* _tmp4_ = NULL; @@ -3485,7 +3485,7 @@ static void tombstone_real_destroy (DataSource* base) { _g_error_free0 (err); #line 3486 "Tombstone.c" } - __finally548: + __finally550: #line 327 "/home/jens/Source/shotwell/src/Tombstone.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 327 "/home/jens/Source/shotwell/src/Tombstone.vala" diff --git a/src/Tombstone.vala b/src/Tombstone.vala index 33649d0..23cd984 100644 --- a/src/Tombstone.vala +++ b/src/Tombstone.vala @@ -121,7 +121,7 @@ public class TombstoneSourceCollection : DatabaseSourceCollection { info = monitor.get_file_info(file); // Want to be conservative here; only resurrect a tombstone if file is actually detected - // as not present, and not some other problem (which may be intermittant) + // as not present, and not some other problem (which may be intermittent) if (info == null) { try { info = yield file.query_info_async(FileAttribute.STANDARD_NAME, diff --git a/src/UnityProgressBar.c b/src/UnityProgressBar.c index c32a00a..2cbcab3 100644 --- a/src/UnityProgressBar.c +++ b/src/UnityProgressBar.c @@ -1,4 +1,4 @@ -/* UnityProgressBar.c generated by valac 0.32.1, the Vala compiler +/* UnityProgressBar.c generated by valac 0.34.4, the Vala compiler * generated from UnityProgressBar.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/Upgrades.c b/src/Upgrades.c index 4be4e79..5a98673 100644 --- a/src/Upgrades.c +++ b/src/Upgrades.c @@ -1,4 +1,4 @@ -/* Upgrades.c generated by valac 0.32.1, the Vala compiler +/* Upgrades.c generated by valac 0.34.4, the Vala compiler * generated from Upgrades.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -1123,14 +1123,14 @@ static guint64 mimics_removal_task_real_get_step_count (UpgradeTask* base) { #line 73 "/home/jens/Source/shotwell/src/Upgrades.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1126 "Upgrades.c" - goto __catch589_g_error; + goto __catch591_g_error; } #line 73 "/home/jens/Source/shotwell/src/Upgrades.vala" self->priv->num_mimics = _tmp0_; #line 1131 "Upgrades.c" } - goto __finally589; - __catch589_g_error: + goto __finally591; + __catch591_g_error: { GError* e = NULL; GError* _tmp3_ = NULL; @@ -1149,7 +1149,7 @@ static guint64 mimics_removal_task_real_get_step_count (UpgradeTask* base) { _g_error_free0 (e); #line 1151 "Upgrades.c" } - __finally589: + __finally591: #line 72 "/home/jens/Source/shotwell/src/Upgrades.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 72 "/home/jens/Source/shotwell/src/Upgrades.vala" @@ -1195,7 +1195,7 @@ static void mimics_removal_task_real_execute (UpgradeTask* base, ProgressMonitor #line 82 "/home/jens/Source/shotwell/src/Upgrades.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1198 "Upgrades.c" - goto __catch590_g_error; + goto __catch592_g_error; } #line 83 "/home/jens/Source/shotwell/src/Upgrades.vala" _tmp3_ = self->priv->mimic_dir; @@ -1204,11 +1204,11 @@ static void mimics_removal_task_real_execute (UpgradeTask* base, ProgressMonitor #line 83 "/home/jens/Source/shotwell/src/Upgrades.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1207 "Upgrades.c" - goto __catch590_g_error; + goto __catch592_g_error; } } - goto __finally590; - __catch590_g_error: + goto __finally592; + __catch592_g_error: { GError* e = NULL; GError* _tmp4_ = NULL; @@ -1227,7 +1227,7 @@ static void mimics_removal_task_real_execute (UpgradeTask* base, ProgressMonitor _g_error_free0 (e); #line 1229 "Upgrades.c" } - __finally590: + __finally592: #line 81 "/home/jens/Source/shotwell/src/Upgrades.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 81 "/home/jens/Source/shotwell/src/Upgrades.vala" diff --git a/src/Upgrades.vala b/src/Upgrades.vala index d60d195..85349ae 100644 --- a/src/Upgrades.vala +++ b/src/Upgrades.vala @@ -51,7 +51,7 @@ public class Upgrades { // When creating a new upgrade task, you MUST add it to the constructor // supplied in Upgrades (see above.) private interface UpgradeTask : Object{ - // Returns the number of steps involved in the ugprade. + // Returns the number of steps involved in the upgrade. public abstract uint64 get_step_count(); // Performs the upgrade. Note that when using the progress @@ -62,7 +62,7 @@ private interface UpgradeTask : Object{ // Deletes the mimics folder, if it still exists. // Note: for the step count to be consistent, files cannot be written -// to the mimcs folder for the durration of this task. +// to the mimcs folder for the duration of this task. private class MimicsRemovalTask : Object, UpgradeTask { // Mimics folder (to be deleted, if present) private File mimic_dir = AppDirs.get_data_dir().get_child("mimics"); diff --git a/src/VideoMetadata.c b/src/VideoMetadata.c index f1d6f07..7228849 100644 --- a/src/VideoMetadata.c +++ b/src/VideoMetadata.c @@ -1,4 +1,4 @@ -/* VideoMetadata.c generated by valac 0.32.1, the Vala compiler +/* VideoMetadata.c generated by valac 0.34.4, the Vala compiler * generated from VideoMetadata.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -746,7 +746,7 @@ gboolean quick_time_metadata_loader_is_supported (QuickTimeMetadataLoader* self) #line 80 "/home/jens/Source/shotwell/src/VideoMetadata.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 749 "VideoMetadata.c" - goto __catch571_g_error; + goto __catch573_g_error; } #line 81 "/home/jens/Source/shotwell/src/VideoMetadata.vala" _tmp3_ = test; @@ -755,7 +755,7 @@ gboolean quick_time_metadata_loader_is_supported (QuickTimeMetadataLoader* self) #line 81 "/home/jens/Source/shotwell/src/VideoMetadata.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 758 "VideoMetadata.c" - goto __catch571_g_error; + goto __catch573_g_error; } #line 84 "/home/jens/Source/shotwell/src/VideoMetadata.vala" _tmp4_ = test; @@ -809,7 +809,7 @@ gboolean quick_time_metadata_loader_is_supported (QuickTimeMetadataLoader* self) #line 95 "/home/jens/Source/shotwell/src/VideoMetadata.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 812 "VideoMetadata.c" - goto __catch571_g_error; + goto __catch573_g_error; } #line 96 "/home/jens/Source/shotwell/src/VideoMetadata.vala" _tmp13_ = test; @@ -818,7 +818,7 @@ gboolean quick_time_metadata_loader_is_supported (QuickTimeMetadataLoader* self) #line 96 "/home/jens/Source/shotwell/src/VideoMetadata.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 821 "VideoMetadata.c" - goto __catch571_g_error; + goto __catch573_g_error; } #line 97 "/home/jens/Source/shotwell/src/VideoMetadata.vala" _tmp14_ = test; @@ -833,8 +833,8 @@ gboolean quick_time_metadata_loader_is_supported (QuickTimeMetadataLoader* self) } } } - goto __finally571; - __catch571_g_error: + goto __finally573; + __catch573_g_error: { GError* e = NULL; GFile* _tmp16_ = NULL; @@ -865,7 +865,7 @@ gboolean quick_time_metadata_loader_is_supported (QuickTimeMetadataLoader* self) _g_error_free0 (e); #line 866 "VideoMetadata.c" } - __finally571: + __finally573: #line 79 "/home/jens/Source/shotwell/src/VideoMetadata.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 79 "/home/jens/Source/shotwell/src/VideoMetadata.vala" @@ -887,11 +887,11 @@ gboolean quick_time_metadata_loader_is_supported (QuickTimeMetadataLoader* self) #line 107 "/home/jens/Source/shotwell/src/VideoMetadata.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 889 "VideoMetadata.c" - goto __catch572_g_error; + goto __catch574_g_error; } } - goto __finally572; - __catch572_g_error: + goto __finally574; + __catch574_g_error: { GError* e = NULL; GError* _tmp22_ = NULL; @@ -910,7 +910,7 @@ gboolean quick_time_metadata_loader_is_supported (QuickTimeMetadataLoader* self) _g_error_free0 (e); #line 911 "VideoMetadata.c" } - __finally572: + __finally574: #line 106 "/home/jens/Source/shotwell/src/VideoMetadata.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 106 "/home/jens/Source/shotwell/src/VideoMetadata.vala" @@ -963,7 +963,7 @@ static gulong quick_time_metadata_loader_get_creation_date_time_for_quicktime (Q #line 119 "/home/jens/Source/shotwell/src/VideoMetadata.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 965 "VideoMetadata.c" - goto __catch573_g_error; + goto __catch575_g_error; } #line 120 "/home/jens/Source/shotwell/src/VideoMetadata.vala" done = FALSE; @@ -994,7 +994,7 @@ static gulong quick_time_metadata_loader_get_creation_date_time_for_quicktime (Q #line 123 "/home/jens/Source/shotwell/src/VideoMetadata.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 996 "VideoMetadata.c" - goto __catch573_g_error; + goto __catch575_g_error; } #line 124 "/home/jens/Source/shotwell/src/VideoMetadata.vala" _tmp5_ = test; @@ -1058,7 +1058,7 @@ static gulong quick_time_metadata_loader_get_creation_date_time_for_quicktime (Q #line 129 "/home/jens/Source/shotwell/src/VideoMetadata.vala" _quick_time_atom_unref0 (child); #line 1060 "VideoMetadata.c" - goto __catch573_g_error; + goto __catch575_g_error; } #line 130 "/home/jens/Source/shotwell/src/VideoMetadata.vala" _tmp16_ = child; @@ -1114,7 +1114,7 @@ static gulong quick_time_metadata_loader_get_creation_date_time_for_quicktime (Q #line 137 "/home/jens/Source/shotwell/src/VideoMetadata.vala" _quick_time_atom_unref0 (child); #line 1116 "VideoMetadata.c" - goto __catch573_g_error; + goto __catch575_g_error; } #line 139 "/home/jens/Source/shotwell/src/VideoMetadata.vala" _tmp26_ = child; @@ -1127,7 +1127,7 @@ static gulong quick_time_metadata_loader_get_creation_date_time_for_quicktime (Q #line 139 "/home/jens/Source/shotwell/src/VideoMetadata.vala" _quick_time_atom_unref0 (child); #line 1129 "VideoMetadata.c" - goto __catch573_g_error; + goto __catch575_g_error; } #line 139 "/home/jens/Source/shotwell/src/VideoMetadata.vala" timestamp = _tmp25_ - QUICK_TIME_METADATA_LOADER_QUICKTIME_EPOCH_ADJUSTMENT; @@ -1146,7 +1146,7 @@ static gulong quick_time_metadata_loader_get_creation_date_time_for_quicktime (Q #line 143 "/home/jens/Source/shotwell/src/VideoMetadata.vala" _quick_time_atom_unref0 (child); #line 1148 "VideoMetadata.c" - goto __catch573_g_error; + goto __catch575_g_error; } } #line 125 "/home/jens/Source/shotwell/src/VideoMetadata.vala" @@ -1160,12 +1160,12 @@ static gulong quick_time_metadata_loader_get_creation_date_time_for_quicktime (Q #line 146 "/home/jens/Source/shotwell/src/VideoMetadata.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1162 "VideoMetadata.c" - goto __catch573_g_error; + goto __catch575_g_error; } } } - goto __finally573; - __catch573_g_error: + goto __finally575; + __catch575_g_error: { GError* e = NULL; GError* _tmp30_ = NULL; @@ -1184,7 +1184,7 @@ static gulong quick_time_metadata_loader_get_creation_date_time_for_quicktime (Q _g_error_free0 (e); #line 1185 "VideoMetadata.c" } - __finally573: + __finally575: #line 118 "/home/jens/Source/shotwell/src/VideoMetadata.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 118 "/home/jens/Source/shotwell/src/VideoMetadata.vala" @@ -1206,11 +1206,11 @@ static gulong quick_time_metadata_loader_get_creation_date_time_for_quicktime (Q #line 153 "/home/jens/Source/shotwell/src/VideoMetadata.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1208 "VideoMetadata.c" - goto __catch574_g_error; + goto __catch576_g_error; } } - goto __finally574; - __catch574_g_error: + goto __finally576; + __catch576_g_error: { GError* e = NULL; GError* _tmp33_ = NULL; @@ -1229,7 +1229,7 @@ static gulong quick_time_metadata_loader_get_creation_date_time_for_quicktime (Q _g_error_free0 (e); #line 1230 "VideoMetadata.c" } - __finally574: + __finally576: #line 152 "/home/jens/Source/shotwell/src/VideoMetadata.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 152 "/home/jens/Source/shotwell/src/VideoMetadata.vala" @@ -1631,7 +1631,7 @@ void quick_time_atom_open_file (QuickTimeAtom* self, GError** error) { #line 1631 "VideoMetadata.c" } #line 192 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp3_ = g_data_input_stream_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, G_TYPE_INPUT_STREAM, GInputStream)); + _tmp3_ = g_data_input_stream_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, g_input_stream_get_type (), GInputStream)); #line 192 "/home/jens/Source/shotwell/src/VideoMetadata.vala" _g_object_unref0 (self->priv->input); #line 192 "/home/jens/Source/shotwell/src/VideoMetadata.vala" @@ -1670,7 +1670,7 @@ void quick_time_atom_close_file (QuickTimeAtom* self, GError** error) { #line 201 "/home/jens/Source/shotwell/src/VideoMetadata.vala" _tmp1_ = self->priv->input; #line 201 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_input_stream_close (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, G_TYPE_INPUT_STREAM, GInputStream), NULL, &_inner_error_); + g_input_stream_close (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, g_input_stream_get_type (), GInputStream), NULL, &_inner_error_); #line 201 "/home/jens/Source/shotwell/src/VideoMetadata.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 201 "/home/jens/Source/shotwell/src/VideoMetadata.vala" @@ -1836,15 +1836,15 @@ static gchar string_get (const gchar* self, glong index) { gchar result = '\0'; glong _tmp0_ = 0L; gchar _tmp1_ = '\0'; -#line 1086 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1086 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, '\0'); -#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = index; -#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = ((gchar*) self)[_tmp0_]; -#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp1_; -#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 1849 "VideoMetadata.c" } @@ -2142,7 +2142,7 @@ static void quick_time_atom_skip (QuickTimeAtom* self, guint64 skip_amount, GErr #line 268 "/home/jens/Source/shotwell/src/VideoMetadata.vala" _tmp1_ = skip_amount; #line 268 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - skip_uint64 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, G_TYPE_INPUT_STREAM, GInputStream), _tmp1_, &_inner_error_); + skip_uint64 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, g_input_stream_get_type (), GInputStream), _tmp1_, &_inner_error_); #line 268 "/home/jens/Source/shotwell/src/VideoMetadata.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 268 "/home/jens/Source/shotwell/src/VideoMetadata.vala" @@ -2602,7 +2602,7 @@ gboolean avi_metadata_loader_is_supported (AVIMetadataLoader* self) { #line 323 "/home/jens/Source/shotwell/src/VideoMetadata.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 2604 "VideoMetadata.c" - goto __catch575_g_error; + goto __catch577_g_error; } #line 324 "/home/jens/Source/shotwell/src/VideoMetadata.vala" _tmp3_ = chunk; @@ -2611,7 +2611,7 @@ gboolean avi_metadata_loader_is_supported (AVIMetadataLoader* self) { #line 324 "/home/jens/Source/shotwell/src/VideoMetadata.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 2613 "VideoMetadata.c" - goto __catch575_g_error; + goto __catch577_g_error; } #line 326 "/home/jens/Source/shotwell/src/VideoMetadata.vala" _tmp5_ = chunk; @@ -2640,7 +2640,7 @@ gboolean avi_metadata_loader_is_supported (AVIMetadataLoader* self) { #line 327 "/home/jens/Source/shotwell/src/VideoMetadata.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 2642 "VideoMetadata.c" - goto __catch575_g_error; + goto __catch577_g_error; } #line 327 "/home/jens/Source/shotwell/src/VideoMetadata.vala" _tmp12_ = _tmp9_; @@ -2667,8 +2667,8 @@ gboolean avi_metadata_loader_is_supported (AVIMetadataLoader* self) { #line 2667 "VideoMetadata.c" } } - goto __finally575; - __catch575_g_error: + goto __finally577; + __catch577_g_error: { GError* e = NULL; GError* _tmp14_ = NULL; @@ -2687,7 +2687,7 @@ gboolean avi_metadata_loader_is_supported (AVIMetadataLoader* self) { _g_error_free0 (e); #line 2688 "VideoMetadata.c" } - __finally575: + __finally577: #line 322 "/home/jens/Source/shotwell/src/VideoMetadata.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 322 "/home/jens/Source/shotwell/src/VideoMetadata.vala" @@ -2709,11 +2709,11 @@ gboolean avi_metadata_loader_is_supported (AVIMetadataLoader* self) { #line 335 "/home/jens/Source/shotwell/src/VideoMetadata.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 2711 "VideoMetadata.c" - goto __catch576_g_error; + goto __catch578_g_error; } } - goto __finally576; - __catch576_g_error: + goto __finally578; + __catch578_g_error: { GError* e = NULL; GError* _tmp17_ = NULL; @@ -2732,7 +2732,7 @@ gboolean avi_metadata_loader_is_supported (AVIMetadataLoader* self) { _g_error_free0 (e); #line 2733 "VideoMetadata.c" } - __finally576: + __finally578: #line 334 "/home/jens/Source/shotwell/src/VideoMetadata.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 334 "/home/jens/Source/shotwell/src/VideoMetadata.vala" @@ -2951,37 +2951,37 @@ static glong string_strnlen (gchar* str, glong maxlen) { glong _tmp1_ = 0L; gchar* _tmp2_ = NULL; gchar* _tmp3_ = NULL; -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = str; -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = maxlen; -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = memchr (_tmp0_, 0, (gsize) _tmp1_); -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" end = _tmp2_; -#line 1296 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1296 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = end; -#line 1296 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1296 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp3_ == NULL) { #line 2966 "VideoMetadata.c" glong _tmp4_ = 0L; -#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = maxlen; -#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp4_; -#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 2974 "VideoMetadata.c" } else { gchar* _tmp5_ = NULL; gchar* _tmp6_ = NULL; -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = end; -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp6_ = str; -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = (glong) (_tmp5_ - _tmp6_); -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 2986 "VideoMetadata.c" } @@ -3001,112 +3001,112 @@ static gchar* string_substring (const gchar* self, glong offset, glong len) { glong _tmp20_ = 0L; glong _tmp21_ = 0L; gchar* _tmp22_ = NULL; -#line 1306 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1306 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, NULL); -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = offset; -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp1_ >= ((glong) 0)) { #line 3010 "VideoMetadata.c" glong _tmp2_ = 0L; -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = len; -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = _tmp2_ >= ((glong) 0); #line 3016 "VideoMetadata.c" } else { -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = FALSE; #line 3020 "VideoMetadata.c" } -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp0_) { #line 3024 "VideoMetadata.c" glong _tmp3_ = 0L; glong _tmp4_ = 0L; glong _tmp5_ = 0L; -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = offset; -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = len; -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = string_strnlen ((gchar*) self, _tmp3_ + _tmp4_); -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" string_length = _tmp5_; #line 3036 "VideoMetadata.c" } else { gint _tmp6_ = 0; gint _tmp7_ = 0; -#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp6_ = strlen (self); -#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp7_ = _tmp6_; -#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" string_length = (glong) _tmp7_; #line 3046 "VideoMetadata.c" } -#line 1315 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1315 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp8_ = offset; -#line 1315 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1315 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp8_ < ((glong) 0)) { #line 3052 "VideoMetadata.c" glong _tmp9_ = 0L; glong _tmp10_ = 0L; glong _tmp11_ = 0L; -#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp9_ = string_length; -#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp10_ = offset; -#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" offset = _tmp9_ + _tmp10_; -#line 1317 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1317 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp11_ = offset; -#line 1317 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1317 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (_tmp11_ >= ((glong) 0), NULL); #line 3066 "VideoMetadata.c" } else { glong _tmp12_ = 0L; glong _tmp13_ = 0L; -#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp12_ = offset; -#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp13_ = string_length; -#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (_tmp12_ <= _tmp13_, NULL); #line 3076 "VideoMetadata.c" } -#line 1321 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1321 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp14_ = len; -#line 1321 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1321 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp14_ < ((glong) 0)) { #line 3082 "VideoMetadata.c" glong _tmp15_ = 0L; glong _tmp16_ = 0L; -#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp15_ = string_length; -#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp16_ = offset; -#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" len = _tmp15_ - _tmp16_; #line 3091 "VideoMetadata.c" } -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp17_ = offset; -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp18_ = len; -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp19_ = string_length; -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail ((_tmp17_ + _tmp18_) <= _tmp19_, NULL); -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp20_ = offset; -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp21_ = len; -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp22_ = g_strndup (((gchar*) self) + _tmp20_, (gsize) _tmp21_); -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp22_; -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 3111 "VideoMetadata.c" } @@ -4023,19 +4023,19 @@ static gchar* string_strip (const gchar* self) { gchar* _result_ = NULL; gchar* _tmp0_ = NULL; const gchar* _tmp1_ = NULL; -#line 1207 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1207 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, NULL); -#line 1208 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1208 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = g_strdup (self); -#line 1208 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1208 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _result_ = _tmp0_; -#line 1209 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1209 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = _result_; -#line 1209 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1209 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_strstrip (_tmp1_); -#line 1210 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1210 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _result_; -#line 1210 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1210 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 4040 "VideoMetadata.c" } @@ -4073,7 +4073,7 @@ static gulong avi_metadata_loader_get_creation_date_time_for_avi (AVIMetadataLoa #line 515 "/home/jens/Source/shotwell/src/VideoMetadata.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 4075 "VideoMetadata.c" - goto __catch577_g_error; + goto __catch579_g_error; } #line 516 "/home/jens/Source/shotwell/src/VideoMetadata.vala" _tmp3_ = chunk; @@ -4082,7 +4082,7 @@ static gulong avi_metadata_loader_get_creation_date_time_for_avi (AVIMetadataLoa #line 516 "/home/jens/Source/shotwell/src/VideoMetadata.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 4084 "VideoMetadata.c" - goto __catch577_g_error; + goto __catch579_g_error; } #line 517 "/home/jens/Source/shotwell/src/VideoMetadata.vala" _tmp4_ = chunk; @@ -4093,7 +4093,7 @@ static gulong avi_metadata_loader_get_creation_date_time_for_avi (AVIMetadataLoa #line 517 "/home/jens/Source/shotwell/src/VideoMetadata.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 4095 "VideoMetadata.c" - goto __catch577_g_error; + goto __catch579_g_error; } #line 518 "/home/jens/Source/shotwell/src/VideoMetadata.vala" _tmp6_ = sdate; @@ -4122,8 +4122,8 @@ static gulong avi_metadata_loader_get_creation_date_time_for_avi (AVIMetadataLoa _g_free0 (sdate); #line 4123 "VideoMetadata.c" } - goto __finally577; - __catch577_g_error: + goto __finally579; + __catch579_g_error: { GError* e = NULL; GError* _tmp11_ = NULL; @@ -4142,7 +4142,7 @@ static gulong avi_metadata_loader_get_creation_date_time_for_avi (AVIMetadataLoa _g_error_free0 (e); #line 4143 "VideoMetadata.c" } - __finally577: + __finally579: #line 514 "/home/jens/Source/shotwell/src/VideoMetadata.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 514 "/home/jens/Source/shotwell/src/VideoMetadata.vala" @@ -4164,11 +4164,11 @@ static gulong avi_metadata_loader_get_creation_date_time_for_avi (AVIMetadataLoa #line 526 "/home/jens/Source/shotwell/src/VideoMetadata.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 4166 "VideoMetadata.c" - goto __catch578_g_error; + goto __catch580_g_error; } } - goto __finally578; - __catch578_g_error: + goto __finally580; + __catch580_g_error: { GError* e = NULL; GError* _tmp14_ = NULL; @@ -4187,7 +4187,7 @@ static gulong avi_metadata_loader_get_creation_date_time_for_avi (AVIMetadataLoa _g_error_free0 (e); #line 4188 "VideoMetadata.c" } - __finally578: + __finally580: #line 525 "/home/jens/Source/shotwell/src/VideoMetadata.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 525 "/home/jens/Source/shotwell/src/VideoMetadata.vala" @@ -4575,7 +4575,7 @@ void avi_chunk_open_file (AVIChunk* self, GError** error) { #line 4575 "VideoMetadata.c" } #line 554 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp3_ = g_data_input_stream_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, G_TYPE_INPUT_STREAM, GInputStream)); + _tmp3_ = g_data_input_stream_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, g_input_stream_get_type (), GInputStream)); #line 554 "/home/jens/Source/shotwell/src/VideoMetadata.vala" _g_object_unref0 (self->priv->input); #line 554 "/home/jens/Source/shotwell/src/VideoMetadata.vala" @@ -4614,7 +4614,7 @@ void avi_chunk_close_file (AVIChunk* self, GError** error) { #line 563 "/home/jens/Source/shotwell/src/VideoMetadata.vala" _tmp1_ = self->priv->input; #line 563 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_input_stream_close (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, G_TYPE_INPUT_STREAM, GInputStream), NULL, &_inner_error_); + g_input_stream_close (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, g_input_stream_get_type (), GInputStream), NULL, &_inner_error_); #line 563 "/home/jens/Source/shotwell/src/VideoMetadata.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 563 "/home/jens/Source/shotwell/src/VideoMetadata.vala" @@ -4643,7 +4643,7 @@ void avi_chunk_nonsection_skip (AVIChunk* self, guint64 skip_amount, GError** er #line 569 "/home/jens/Source/shotwell/src/VideoMetadata.vala" _tmp1_ = skip_amount; #line 569 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - skip_uint64 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, G_TYPE_INPUT_STREAM, GInputStream), _tmp1_, &_inner_error_); + skip_uint64 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, g_input_stream_get_type (), GInputStream), _tmp1_, &_inner_error_); #line 569 "/home/jens/Source/shotwell/src/VideoMetadata.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 569 "/home/jens/Source/shotwell/src/VideoMetadata.vala" @@ -4671,7 +4671,7 @@ void avi_chunk_skip (AVIChunk* self, guint64 skip_amount, GError** error) { #line 574 "/home/jens/Source/shotwell/src/VideoMetadata.vala" _tmp2_ = skip_amount; #line 574 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - skip_uint64 (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, G_TYPE_INPUT_STREAM, GInputStream), _tmp2_, &_inner_error_); + skip_uint64 (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, g_input_stream_get_type (), GInputStream), _tmp2_, &_inner_error_); #line 574 "/home/jens/Source/shotwell/src/VideoMetadata.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 574 "/home/jens/Source/shotwell/src/VideoMetadata.vala" diff --git a/src/VideoMonitor.c b/src/VideoMonitor.c index b3e9adb..638b755 100644 --- a/src/VideoMonitor.c +++ b/src/VideoMonitor.c @@ -1,4 +1,4 @@ -/* VideoMonitor.c generated by valac 0.32.1, the Vala compiler +/* VideoMonitor.c generated by valac 0.34.4, the Vala compiler * generated from VideoMonitor.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/VideoSupport.c b/src/VideoSupport.c index 23ea672..76d8864 100644 --- a/src/VideoSupport.c +++ b/src/VideoSupport.c @@ -1,4 +1,4 @@ -/* VideoSupport.c generated by valac 0.32.1, the Vala compiler +/* VideoSupport.c generated by valac 0.34.4, the Vala compiler * generated from VideoSupport.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -1920,103 +1920,103 @@ static gchar* string_slice (const gchar* self, glong start, glong end) { glong _tmp19_ = 0L; glong _tmp20_ = 0L; gchar* _tmp21_ = NULL; -#line 1328 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1328 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, NULL); -#line 1329 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1329 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = strlen (self); -#line 1329 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1329 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = _tmp0_; -#line 1329 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1329 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" string_length = (glong) _tmp1_; -#line 1330 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1330 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = start; -#line 1330 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1330 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp2_ < ((glong) 0)) { #line 1936 "VideoSupport.c" glong _tmp3_ = 0L; glong _tmp4_ = 0L; -#line 1331 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1331 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = string_length; -#line 1331 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1331 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = start; -#line 1331 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1331 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" start = _tmp3_ + _tmp4_; #line 1945 "VideoSupport.c" } -#line 1333 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1333 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = end; -#line 1333 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1333 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp5_ < ((glong) 0)) { #line 1951 "VideoSupport.c" glong _tmp6_ = 0L; glong _tmp7_ = 0L; -#line 1334 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1334 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp6_ = string_length; -#line 1334 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1334 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp7_ = end; -#line 1334 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1334 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" end = _tmp6_ + _tmp7_; #line 1960 "VideoSupport.c" } -#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp9_ = start; -#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp9_ >= ((glong) 0)) { #line 1966 "VideoSupport.c" glong _tmp10_ = 0L; glong _tmp11_ = 0L; -#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp10_ = start; -#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp11_ = string_length; -#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp8_ = _tmp10_ <= _tmp11_; #line 1975 "VideoSupport.c" } else { -#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp8_ = FALSE; #line 1979 "VideoSupport.c" } -#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (_tmp8_, NULL); -#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp13_ = end; -#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp13_ >= ((glong) 0)) { #line 1987 "VideoSupport.c" glong _tmp14_ = 0L; glong _tmp15_ = 0L; -#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp14_ = end; -#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp15_ = string_length; -#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp12_ = _tmp14_ <= _tmp15_; #line 1996 "VideoSupport.c" } else { -#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp12_ = FALSE; #line 2000 "VideoSupport.c" } -#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (_tmp12_, NULL); -#line 1338 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1338 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp16_ = start; -#line 1338 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1338 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp17_ = end; -#line 1338 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1338 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (_tmp16_ <= _tmp17_, NULL); -#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp18_ = start; -#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp19_ = end; -#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp20_ = start; -#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp21_ = g_strndup (((gchar*) self) + _tmp18_, (gsize) (_tmp19_ - _tmp20_)); -#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp21_; -#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 2022 "VideoSupport.c" } @@ -2321,7 +2321,7 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) { #line 89 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 2324 "VideoSupport.c" - goto __catch490_g_error; + goto __catch492_g_error; } #line 89 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp6_ = _tmp3_; @@ -2335,8 +2335,8 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) { _g_object_unref0 (_tmp3_); #line 2337 "VideoSupport.c" } - goto __finally490; - __catch490_g_error: + goto __finally492; + __catch492_g_error: { GError* err = NULL; #line 88 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -2355,7 +2355,7 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) { return result; #line 2357 "VideoSupport.c" } - __finally490: + __finally492: #line 88 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 88 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -2474,7 +2474,7 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) { #line 119 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_inner_error_->domain == VIDEO_ERROR) { #line 2477 "VideoSupport.c" - goto __catch491_video_error; + goto __catch493_video_error; } #line 119 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (preview_frame); @@ -2500,8 +2500,8 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) { clip_duration = _tmp26_; #line 2502 "VideoSupport.c" } - goto __finally491; - __catch491_video_error: + goto __finally493; + __catch493_video_error: { GError* err = NULL; GError* _tmp29_ = NULL; @@ -2554,7 +2554,7 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) { _g_error_free0 (err); #line 2555 "VideoSupport.c" } - __finally491: + __finally493: #line 118 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 118 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -2603,7 +2603,7 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) { #line 132 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 2605 "VideoSupport.c" - goto __catch492_g_error; + goto __catch494_g_error; } #line 133 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp33_ = metadata; @@ -2699,8 +2699,8 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) { _media_metadata_unref0 (metadata); #line 2700 "VideoSupport.c" } - goto __finally492; - __catch492_g_error: + goto __finally494; + __catch494_g_error: { GError* err = NULL; GError* _tmp51_ = NULL; @@ -2719,7 +2719,7 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) { _g_error_free0 (err); #line 2720 "VideoSupport.c" } - __finally492: + __finally494: #line 131 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 131 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -3092,7 +3092,7 @@ static void video_reader_read_internal (VideoReader* self, GError** error) { #line 190 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 3094 "VideoSupport.c" - goto __catch493_g_error; + goto __catch495_g_error; } #line 191 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp9_ = d; @@ -3115,7 +3115,7 @@ static void video_reader_read_internal (VideoReader* self, GError** error) { #line 191 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (d); #line 3117 "VideoSupport.c" - goto __catch493_g_error; + goto __catch495_g_error; } #line 193 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp15_ = info; @@ -3208,8 +3208,8 @@ static void video_reader_read_internal (VideoReader* self, GError** error) { _g_object_unref0 (d); #line 3209 "VideoSupport.c" } - goto __finally493; - __catch493_g_error: + goto __finally495; + __catch495_g_error: { GError* e = NULL; GError* _tmp35_ = NULL; @@ -3249,9 +3249,9 @@ static void video_reader_read_internal (VideoReader* self, GError** error) { #line 208 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_error_free0 (e); #line 3251 "VideoSupport.c" - goto __finally493; + goto __finally495; } - __finally493: + __finally495: #line 189 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 189 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -3408,7 +3408,7 @@ static GdkPixbuf* video_reader_thumbnailer (VideoReader* self, const gchar* vide #line 231 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 3410 "VideoSupport.c" - goto __catch494_g_error; + goto __catch496_g_error; } #line 234 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp14_ = self->priv->thumbnailer_pid; @@ -3416,8 +3416,8 @@ static GdkPixbuf* video_reader_thumbnailer (VideoReader* self, const gchar* vide g_debug ("VideoSupport.vala:234: Spawned thumbnailer, child pid: %d", (gint) _tmp14_); #line 3417 "VideoSupport.c" } - goto __finally494; - __catch494_g_error: + goto __finally496; + __catch496_g_error: { GError* e = NULL; GError* _tmp15_ = NULL; @@ -3455,7 +3455,7 @@ static GdkPixbuf* video_reader_thumbnailer (VideoReader* self, const gchar* vide return result; #line 3456 "VideoSupport.c" } - __finally494: + __finally496: #line 230 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 230 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -3490,7 +3490,7 @@ static GdkPixbuf* video_reader_thumbnailer (VideoReader* self, const gchar* vide #line 249 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp22_ = unix_input; #line 249 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp23_ = gdk_pixbuf_new_from_stream (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, G_TYPE_INPUT_STREAM, GInputStream), NULL, &_inner_error_); + _tmp23_ = gdk_pixbuf_new_from_stream (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, g_input_stream_get_type (), GInputStream), NULL, &_inner_error_); #line 249 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp21_ = _tmp23_; #line 249 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -3498,7 +3498,7 @@ static GdkPixbuf* video_reader_thumbnailer (VideoReader* self, const gchar* vide #line 249 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (unix_input); #line 3500 "VideoSupport.c" - goto __catch495_g_error; + goto __catch497_g_error; } #line 249 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp24_ = _tmp21_; @@ -3514,8 +3514,8 @@ static GdkPixbuf* video_reader_thumbnailer (VideoReader* self, const gchar* vide _g_object_unref0 (unix_input); #line 3515 "VideoSupport.c" } - goto __finally495; - __catch495_g_error: + goto __finally497; + __catch497_g_error: { GError* e = NULL; GError* _tmp25_ = NULL; @@ -3538,7 +3538,7 @@ static GdkPixbuf* video_reader_thumbnailer (VideoReader* self, const gchar* vide _g_error_free0 (e); #line 3539 "VideoSupport.c" } - __finally495: + __finally497: #line 247 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 247 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -4947,7 +4947,7 @@ ExporterUI* video_export_many (GeeCollection* videos, ExporterCompletionCallback #line 496 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 4946 "VideoSupport.c" - goto __catch496_g_error; + goto __catch498_g_error; } #line 497 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp34_ = app_window_get_instance (); @@ -4959,8 +4959,8 @@ ExporterUI* video_export_many (GeeCollection* videos, ExporterCompletionCallback _g_object_unref0 (_tmp35_); #line 4957 "VideoSupport.c" } - goto __finally496; - __catch496_g_error: + goto __finally498; + __catch498_g_error: { GError* err = NULL; AppWindow* _tmp36_ = NULL; @@ -4986,7 +4986,7 @@ ExporterUI* video_export_many (GeeCollection* videos, ExporterCompletionCallback _g_error_free0 (err); #line 4984 "VideoSupport.c" } - __finally496: + __finally498: #line 494 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 494 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -5097,7 +5097,7 @@ static void video_real_commit_backlinks (DataSource* base, SourceCollection* sou #line 520 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 5096 "VideoSupport.c" - goto __catch497_database_error; + goto __catch499_database_error; } #line 520 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -5130,7 +5130,7 @@ static void video_real_commit_backlinks (DataSource* base, SourceCollection* sou _tmp5_->backlinks = _tmp7_; #line 5128 "VideoSupport.c" } - __finally498: + __finally500: { VideoRow* _tmp8_ = NULL; #line 521 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -5144,7 +5144,7 @@ static void video_real_commit_backlinks (DataSource* base, SourceCollection* sou #line 521 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 5143 "VideoSupport.c" - goto __catch497_database_error; + goto __catch499_database_error; } #line 521 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -5156,8 +5156,8 @@ static void video_real_commit_backlinks (DataSource* base, SourceCollection* sou } } } - goto __finally497; - __catch497_database_error: + goto __finally499; + __catch499_database_error: { GError* err = NULL; gchar* _tmp9_ = NULL; @@ -5184,7 +5184,7 @@ static void video_real_commit_backlinks (DataSource* base, SourceCollection* sou _g_error_free0 (err); #line 5182 "VideoSupport.c" } - __finally497: + __finally499: #line 519 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 519 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -5272,7 +5272,7 @@ static gboolean video_real_set_event_id (MediaSource* base, EventID* event_id) { return result; #line 5270 "VideoSupport.c" } - __finally499: + __finally501: { VideoRow* _tmp12_ = NULL; #line 530 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -5387,7 +5387,7 @@ ImportResult video_import_create (VideoImportParams* params, Video** video) { #line 554 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 5386 "VideoSupport.c" - goto __catch500_database_error; + goto __catch502_database_error; } #line 554 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -5418,8 +5418,8 @@ ImportResult video_import_create (VideoImportParams* params, Video** video) { #line 5415 "VideoSupport.c" } } - goto __finally500; - __catch500_database_error: + goto __finally502; + __catch502_database_error: { GError* err = NULL; #line 553 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -5444,7 +5444,7 @@ ImportResult video_import_create (VideoImportParams* params, Video** video) { return result; #line 5442 "VideoSupport.c" } - __finally500: + __finally502: #line 553 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 553 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -5510,7 +5510,7 @@ void video_import_failed (Video* video) { #line 568 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 5509 "VideoSupport.c" - goto __catch501_database_error; + goto __catch503_database_error; } #line 568 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -5521,8 +5521,8 @@ void video_import_failed (Video* video) { #line 5518 "VideoSupport.c" } } - goto __finally501; - __catch501_database_error: + goto __finally503; + __catch503_database_error: { GError* err = NULL; GError* _tmp4_ = NULL; @@ -5538,7 +5538,7 @@ void video_import_failed (Video* video) { _g_error_free0 (err); #line 5536 "VideoSupport.c" } - __finally501: + __finally503: #line 567 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 567 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -5617,7 +5617,7 @@ static BackingFileState** video_real_get_backing_files_state (MediaSource* base, _tmp11_ = backing[0]; #line 5615 "VideoSupport.c" } - __finally502: + __finally504: { VideoRow* _tmp12_ = NULL; #line 576 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -5734,7 +5734,7 @@ static gchar* video_real_get_master_md5 (MediaSource* base) { return result; #line 5732 "VideoSupport.c" } - __finally503: + __finally505: { VideoRow* _tmp5_ = NULL; #line 589 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -5938,7 +5938,7 @@ static void video_real_get_import_id (MediaSource* base, ImportID* result) { return; #line 5936 "VideoSupport.c" } - __finally504: + __finally506: { VideoRow* _tmp4_ = NULL; #line 616 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -6013,7 +6013,7 @@ static gchar* video_real_get_title (MediaSource* base) { return result; #line 6011 "VideoSupport.c" } - __finally505: + __finally507: { VideoRow* _tmp5_ = NULL; #line 626 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -6112,7 +6112,7 @@ static void video_real_set_title (MediaSource* base, const gchar* title) { #line 639 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 6111 "VideoSupport.c" - goto __catch507_database_error; + goto __catch509_database_error; } { VideoRow* _tmp12_ = NULL; @@ -6133,8 +6133,8 @@ static void video_real_set_title (MediaSource* base, const gchar* title) { #line 6130 "VideoSupport.c" } } - goto __finally507; - __catch507_database_error: + goto __finally509; + __catch509_database_error: { GError* e = NULL; GError* _tmp13_ = NULL; @@ -6163,7 +6163,7 @@ static void video_real_set_title (MediaSource* base, const gchar* title) { return; #line 6161 "VideoSupport.c" } - __finally507: + __finally509: #line 638 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 6166 "VideoSupport.c" @@ -6197,7 +6197,7 @@ static void video_real_set_title (MediaSource* base, const gchar* title) { _tmp16_->title = _tmp18_; #line 6195 "VideoSupport.c" } - __finally506: + __finally508: { VideoRow* _tmp19_ = NULL; #line 634 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -6272,7 +6272,7 @@ static gchar* video_real_get_comment (MediaSource* base) { return result; #line 6270 "VideoSupport.c" } - __finally508: + __finally510: { VideoRow* _tmp5_ = NULL; #line 653 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -6374,7 +6374,7 @@ static gboolean video_real_set_comment (MediaSource* base, const gchar* comment) #line 666 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 6373 "VideoSupport.c" - goto __catch510_database_error; + goto __catch512_database_error; } { VideoRow* _tmp12_ = NULL; @@ -6395,8 +6395,8 @@ static gboolean video_real_set_comment (MediaSource* base, const gchar* comment) #line 6392 "VideoSupport.c" } } - goto __finally510; - __catch510_database_error: + goto __finally512; + __catch512_database_error: { GError* e = NULL; GError* _tmp13_ = NULL; @@ -6427,7 +6427,7 @@ static gboolean video_real_set_comment (MediaSource* base, const gchar* comment) return result; #line 6425 "VideoSupport.c" } - __finally510: + __finally512: #line 665 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 6430 "VideoSupport.c" @@ -6461,7 +6461,7 @@ static gboolean video_real_set_comment (MediaSource* base, const gchar* comment) _tmp16_->comment = _tmp18_; #line 6459 "VideoSupport.c" } - __finally509: + __finally511: { VideoRow* _tmp19_ = NULL; #line 661 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -6537,7 +6537,7 @@ static Rating video_real_get_rating (MediaSource* base) { return result; #line 6535 "VideoSupport.c" } - __finally511: + __finally513: { VideoRow* _tmp4_ = NULL; #line 683 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -6638,7 +6638,7 @@ static void video_real_set_rating (MediaSource* base, Rating rating) { #line 694 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 6637 "VideoSupport.c" - goto __catch513_database_error; + goto __catch515_database_error; } { VideoRow* _tmp12_ = NULL; @@ -6657,8 +6657,8 @@ static void video_real_set_rating (MediaSource* base, Rating rating) { #line 6654 "VideoSupport.c" } } - goto __finally513; - __catch513_database_error: + goto __finally515; + __catch515_database_error: { GError* e = NULL; GError* _tmp13_ = NULL; @@ -6685,7 +6685,7 @@ static void video_real_set_rating (MediaSource* base, Rating rating) { return; #line 6683 "VideoSupport.c" } - __finally513: + __finally515: #line 693 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 6688 "VideoSupport.c" @@ -6713,7 +6713,7 @@ static void video_real_set_rating (MediaSource* base, Rating rating) { _tmp16_->rating = _tmp17_; #line 6711 "VideoSupport.c" } - __finally512: + __finally514: { VideoRow* _tmp18_ = NULL; #line 689 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -6772,7 +6772,7 @@ static void video_real_increase_rating (MediaSource* base) { media_source_set_rating (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), _tmp3_); #line 6770 "VideoSupport.c" } - __finally514: + __finally516: { VideoRow* _tmp4_ = NULL; #line 708 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -6822,7 +6822,7 @@ static void video_real_decrease_rating (MediaSource* base) { media_source_set_rating (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), _tmp3_); #line 6820 "VideoSupport.c" } - __finally515: + __finally517: { VideoRow* _tmp4_ = NULL; #line 714 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -7036,7 +7036,7 @@ static void video_real_get_event_id (MediaSource* base, EventID* result) { return; #line 7034 "VideoSupport.c" } - __finally516: + __finally518: { VideoRow* _tmp4_ = NULL; #line 759 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -7115,7 +7115,7 @@ static gchar* video_real_to_string (DataObject* base) { return result; #line 7113 "VideoSupport.c" } - __finally517: + __finally519: { VideoRow* _tmp11_ = NULL; #line 765 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -7169,7 +7169,7 @@ void video_get_video_id (Video* self, VideoID* result) { return; #line 7167 "VideoSupport.c" } - __finally518: + __finally520: { VideoRow* _tmp4_ = NULL; #line 771 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -7225,7 +7225,7 @@ static time_t video_real_get_exposure_time (Dateable* base) { return result; #line 7223 "VideoSupport.c" } - __finally519: + __finally521: { VideoRow* _tmp4_ = NULL; #line 777 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -7286,11 +7286,11 @@ static void video_real_set_exposure_time (Dateable* base, time_t time) { #line 785 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 7285 "VideoSupport.c" - goto __catch521_g_error; + goto __catch523_g_error; } } - goto __finally521; - __catch521_g_error: + goto __finally523; + __catch523_g_error: { GError* e = NULL; GError* _tmp6_ = NULL; @@ -7309,7 +7309,7 @@ static void video_real_set_exposure_time (Dateable* base, time_t time) { _g_error_free0 (e); #line 7307 "VideoSupport.c" } - __finally521: + __finally523: #line 784 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 7312 "VideoSupport.c" @@ -7337,7 +7337,7 @@ static void video_real_set_exposure_time (Dateable* base, time_t time) { _tmp9_->exposure_time = _tmp10_; #line 7335 "VideoSupport.c" } - __finally520: + __finally522: { VideoRow* _tmp11_ = NULL; #line 783 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -7412,7 +7412,7 @@ void video_get_frame_dimensions (Video* self, Dimensions* result) { return; #line 7410 "VideoSupport.c" } - __finally522: + __finally524: { VideoRow* _tmp7_ = NULL; #line 796 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -7499,7 +7499,7 @@ static guint64 video_real_get_master_filesize (MediaSource* base) { return result; #line 7497 "VideoSupport.c" } - __finally523: + __finally525: { VideoRow* _tmp4_ = NULL; #line 810 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -7555,7 +7555,7 @@ static time_t video_real_get_timestamp (MediaSource* base) { return result; #line 7553 "VideoSupport.c" } - __finally524: + __finally526: { VideoRow* _tmp4_ = NULL; #line 816 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -7658,7 +7658,7 @@ static void video_real_set_master_timestamp (Monitorable* base, GFileInfo* info) #line 829 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 7657 "VideoSupport.c" - goto __finally526; + goto __finally528; } #line 830 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp14_ = self->priv->backing_row; @@ -7670,7 +7670,7 @@ static void video_real_set_master_timestamp (Monitorable* base, GFileInfo* info) _tmp14_->timestamp = (time_t) _tmp16_; #line 7668 "VideoSupport.c" } - __finally526: + __finally528: { VideoRow* _tmp17_ = NULL; #line 825 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -7684,7 +7684,7 @@ static void video_real_set_master_timestamp (Monitorable* base, GFileInfo* info) #line 825 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 7683 "VideoSupport.c" - goto __catch525_database_error; + goto __catch527_database_error; } #line 825 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -7696,8 +7696,8 @@ static void video_real_set_master_timestamp (Monitorable* base, GFileInfo* info) } } } - goto __finally525; - __catch525_database_error: + goto __finally527; + __catch527_database_error: { GError* err = NULL; GError* _tmp18_ = NULL; @@ -7715,7 +7715,7 @@ static void video_real_set_master_timestamp (Monitorable* base, GFileInfo* info) return; #line 7713 "VideoSupport.c" } - __finally525: + __finally527: #line 824 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 824 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -7776,7 +7776,7 @@ gchar* video_get_filename (Video* self) { return result; #line 7774 "VideoSupport.c" } - __finally527: + __finally529: { VideoRow* _tmp5_ = NULL; #line 842 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -7918,7 +7918,7 @@ gdouble video_get_clip_duration (Video* self) { return result; #line 7916 "VideoSupport.c" } - __finally528: + __finally530: { VideoRow* _tmp4_ = NULL; #line 862 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -7973,7 +7973,7 @@ gboolean video_get_is_interpretable (Video* self) { return result; #line 7971 "VideoSupport.c" } - __finally529: + __finally531: { VideoRow* _tmp4_ = NULL; #line 868 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -8040,7 +8040,7 @@ static void video_set_is_interpretable (Video* self, gboolean is_interpretable) _tmp5_->is_interpretable = _tmp6_; #line 8038 "VideoSupport.c" } - __finally530: + __finally532: { VideoRow* _tmp7_ = NULL; #line 874 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -8082,7 +8082,7 @@ static void video_set_is_interpretable (Video* self, gboolean is_interpretable) #line 882 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 8081 "VideoSupport.c" - goto __catch531_database_error; + goto __catch533_database_error; } #line 882 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -8093,8 +8093,8 @@ static void video_set_is_interpretable (Video* self, gboolean is_interpretable) #line 8090 "VideoSupport.c" } } - goto __finally531; - __catch531_database_error: + goto __finally533; + __catch533_database_error: { GError* e = NULL; GError* _tmp12_ = NULL; @@ -8110,7 +8110,7 @@ static void video_set_is_interpretable (Video* self, gboolean is_interpretable) _g_error_free0 (e); #line 8108 "VideoSupport.c" } - __finally531: + __finally533: #line 881 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 881 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -8186,7 +8186,7 @@ VideoInterpretableResults* video_check_is_interpretable (Video* self) { #line 899 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_inner_error_->domain == VIDEO_ERROR) { #line 8185 "VideoSupport.c" - goto __catch532_video_error; + goto __catch534_video_error; } #line 899 "/home/jens/Source/shotwell/src/VideoSupport.vala" _video_reader_unref0 (backing_file_reader); @@ -8214,8 +8214,8 @@ VideoInterpretableResults* video_check_is_interpretable (Video* self) { preview_frame = _tmp9_; #line 8212 "VideoSupport.c" } - goto __finally532; - __catch532_video_error: + goto __finally534; + __catch534_video_error: { GError* e = NULL; VideoInterpretableResults* _tmp10_ = NULL; @@ -8247,7 +8247,7 @@ VideoInterpretableResults* video_check_is_interpretable (Video* self) { return result; #line 8245 "VideoSupport.c" } - __finally532: + __finally534: #line 898 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 898 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -8322,7 +8322,7 @@ VideoInterpretableResults* video_check_is_interpretable (Video* self) { _tmp21_->clip_duration = _tmp22_; #line 8320 "VideoSupport.c" } - __finally533: + __finally535: { VideoRow* _tmp23_ = NULL; #line 921 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -8411,7 +8411,7 @@ static void video_real_destroy (DataSource* base) { #line 938 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 8410 "VideoSupport.c" - goto __catch534_database_error; + goto __catch536_database_error; } #line 938 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -8422,8 +8422,8 @@ static void video_real_destroy (DataSource* base) { #line 8419 "VideoSupport.c" } } - goto __finally534; - __catch534_database_error: + goto __finally536; + __catch536_database_error: { GError* err = NULL; gchar* _tmp4_ = NULL; @@ -8444,7 +8444,7 @@ static void video_real_destroy (DataSource* base) { _g_error_free0 (err); #line 8442 "VideoSupport.c" } - __finally534: + __finally536: #line 937 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 937 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -8638,7 +8638,7 @@ guint64 video_add_flags (Video* self, guint64 flags_to_add, Alteration* addition #line 969 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 8637 "VideoSupport.c" - goto __catch536_database_error; + goto __catch538_database_error; } { VideoRow* _tmp15_ = NULL; @@ -8657,8 +8657,8 @@ guint64 video_add_flags (Video* self, guint64 flags_to_add, Alteration* addition #line 8654 "VideoSupport.c" } } - goto __finally536; - __catch536_database_error: + goto __finally538; + __catch538_database_error: { GError* e = NULL; GError* _tmp16_ = NULL; @@ -8693,7 +8693,7 @@ guint64 video_add_flags (Video* self, guint64 flags_to_add, Alteration* addition return result; #line 8691 "VideoSupport.c" } - __finally536: + __finally538: #line 968 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 8696 "VideoSupport.c" @@ -8721,7 +8721,7 @@ guint64 video_add_flags (Video* self, guint64 flags_to_add, Alteration* addition _tmp21_->flags = _tmp22_; #line 8719 "VideoSupport.c" } - __finally535: + __finally537: { VideoRow* _tmp23_ = NULL; #line 963 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -8842,7 +8842,7 @@ guint64 video_remove_flags (Video* self, guint64 flags_to_remove, Alteration* ad #line 991 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 8841 "VideoSupport.c" - goto __catch538_database_error; + goto __catch540_database_error; } { VideoRow* _tmp15_ = NULL; @@ -8861,8 +8861,8 @@ guint64 video_remove_flags (Video* self, guint64 flags_to_remove, Alteration* ad #line 8858 "VideoSupport.c" } } - goto __finally538; - __catch538_database_error: + goto __finally540; + __catch540_database_error: { GError* e = NULL; GError* _tmp16_ = NULL; @@ -8897,7 +8897,7 @@ guint64 video_remove_flags (Video* self, guint64 flags_to_remove, Alteration* ad return result; #line 8895 "VideoSupport.c" } - __finally538: + __finally540: #line 990 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 8900 "VideoSupport.c" @@ -8925,7 +8925,7 @@ guint64 video_remove_flags (Video* self, guint64 flags_to_remove, Alteration* ad _tmp21_->flags = _tmp22_; #line 8923 "VideoSupport.c" } - __finally537: + __finally539: { VideoRow* _tmp23_ = NULL; #line 985 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -8998,7 +8998,7 @@ gboolean video_is_flag_set (Video* self, guint64 flag) { return result; #line 8996 "VideoSupport.c" } - __finally539: + __finally541: { VideoRow* _tmp6_ = NULL; #line 1006 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -9120,7 +9120,7 @@ static void video_real_set_master_file (Monitorable* base, GFile* file) { #line 1021 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 9119 "VideoSupport.c" - goto __finally541; + goto __finally543; } #line 1022 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp15_ = self->priv->backing_row; @@ -9134,7 +9134,7 @@ static void video_real_set_master_file (Monitorable* base, GFile* file) { _tmp15_->filepath = _tmp17_; #line 9132 "VideoSupport.c" } - __finally541: + __finally543: { VideoRow* _tmp18_ = NULL; #line 1015 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -9148,7 +9148,7 @@ static void video_real_set_master_file (Monitorable* base, GFile* file) { #line 1015 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 9147 "VideoSupport.c" - goto __catch540_database_error; + goto __catch542_database_error; } #line 1015 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_free0 (old_filepath); @@ -9164,8 +9164,8 @@ static void video_real_set_master_file (Monitorable* base, GFile* file) { } } } - goto __finally540; - __catch540_database_error: + goto __finally542; + __catch542_database_error: { GError* err = NULL; GError* _tmp19_ = NULL; @@ -9187,7 +9187,7 @@ static void video_real_set_master_file (Monitorable* base, GFile* file) { return; #line 9185 "VideoSupport.c" } - __finally540: + __finally542: #line 1014 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1014 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -9357,7 +9357,7 @@ void video_interpretable_results_foreground_finish (VideoInterpretableResults* s #line 329 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 9356 "VideoSupport.c" - goto __catch542_g_error; + goto __catch544_g_error; } #line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp6_ = self->video; @@ -9368,7 +9368,7 @@ void video_interpretable_results_foreground_finish (VideoInterpretableResults* s #line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 9367 "VideoSupport.c" - goto __catch542_g_error; + goto __catch544_g_error; } #line 332 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp8_ = self->video; @@ -9376,8 +9376,8 @@ void video_interpretable_results_foreground_finish (VideoInterpretableResults* s thumbnail_source_notify_thumbnail_altered (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource)); #line 9374 "VideoSupport.c" } - goto __finally542; - __catch542_g_error: + goto __finally544; + __catch544_g_error: { GError* err = NULL; Video* _tmp9_ = NULL; @@ -9407,7 +9407,7 @@ void video_interpretable_results_foreground_finish (VideoInterpretableResults* s _g_error_free0 (err); #line 9405 "VideoSupport.c" } - __finally542: + __finally544: #line 328 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 328 "/home/jens/Source/shotwell/src/VideoSupport.vala" diff --git a/src/camera/Branch.c b/src/camera/Branch.c index 7f2836e..74b5c60 100644 --- a/src/camera/Branch.c +++ b/src/camera/Branch.c @@ -1,4 +1,4 @@ -/* Branch.c generated by valac 0.32.1, the Vala compiler +/* Branch.c generated by valac 0.34.4, the Vala compiler * generated from Branch.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/camera/Camera.c b/src/camera/Camera.c index 71768fa..f39dba0 100644 --- a/src/camera/Camera.c +++ b/src/camera/Camera.c @@ -1,4 +1,4 @@ -/* Camera.c generated by valac 0.32.1, the Vala compiler +/* Camera.c generated by valac 0.34.4, the Vala compiler * generated from Camera.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/camera/CameraTable.c b/src/camera/CameraTable.c index 6a49bcf..926608c 100644 --- a/src/camera/CameraTable.c +++ b/src/camera/CameraTable.c @@ -1,4 +1,4 @@ -/* CameraTable.c generated by valac 0.32.1, the Vala compiler +/* CameraTable.c generated by valac 0.34.4, the Vala compiler * generated from CameraTable.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -672,7 +672,7 @@ static gboolean camera_table_delayed_init (CameraTable* self) { #line 63 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" if (_inner_error_->domain == GPHOTO_ERROR) { #line 675 "CameraTable.c" - goto __catch54_gphoto_error; + goto __catch56_gphoto_error; } #line 63 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -683,8 +683,8 @@ static gboolean camera_table_delayed_init (CameraTable* self) { #line 684 "CameraTable.c" } } - goto __finally54; - __catch54_gphoto_error: + goto __finally56; + __catch56_gphoto_error: { GError* err = NULL; GError* _tmp2_ = NULL; @@ -707,7 +707,7 @@ static gboolean camera_table_delayed_init (CameraTable* self) { return result; #line 709 "CameraTable.c" } - __finally54: + __finally56: #line 62 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 62 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" @@ -726,7 +726,7 @@ static gboolean camera_table_delayed_init (CameraTable* self) { #line 71 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" if (_inner_error_->domain == GPHOTO_ERROR) { #line 729 "CameraTable.c" - goto __catch55_gphoto_error; + goto __catch57_gphoto_error; } #line 71 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -737,8 +737,8 @@ static gboolean camera_table_delayed_init (CameraTable* self) { #line 738 "CameraTable.c" } } - goto __finally55; - __catch55_gphoto_error: + goto __finally57; + __catch57_gphoto_error: { GError* err = NULL; GError* _tmp4_ = NULL; @@ -757,7 +757,7 @@ static gboolean camera_table_delayed_init (CameraTable* self) { _g_error_free0 (err); #line 759 "CameraTable.c" } - __finally55: + __finally57: #line 70 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 70 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" @@ -1545,37 +1545,37 @@ static glong string_strnlen (gchar* str, glong maxlen) { glong _tmp1_ = 0L; gchar* _tmp2_ = NULL; gchar* _tmp3_ = NULL; -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = str; -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = maxlen; -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = memchr (_tmp0_, 0, (gsize) _tmp1_); -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" end = _tmp2_; -#line 1296 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1296 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = end; -#line 1296 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1296 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp3_ == NULL) { #line 1559 "CameraTable.c" glong _tmp4_ = 0L; -#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = maxlen; -#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp4_; -#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 1567 "CameraTable.c" } else { gchar* _tmp5_ = NULL; gchar* _tmp6_ = NULL; -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = end; -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp6_ = str; -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = (glong) (_tmp5_ - _tmp6_); -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 1579 "CameraTable.c" } @@ -1595,112 +1595,112 @@ static gchar* string_substring (const gchar* self, glong offset, glong len) { glong _tmp20_ = 0L; glong _tmp21_ = 0L; gchar* _tmp22_ = NULL; -#line 1306 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1306 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, NULL); -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = offset; -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp1_ >= ((glong) 0)) { #line 1603 "CameraTable.c" glong _tmp2_ = 0L; -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = len; -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = _tmp2_ >= ((glong) 0); #line 1609 "CameraTable.c" } else { -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = FALSE; #line 1613 "CameraTable.c" } -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp0_) { #line 1617 "CameraTable.c" glong _tmp3_ = 0L; glong _tmp4_ = 0L; glong _tmp5_ = 0L; -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = offset; -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = len; -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = string_strnlen ((gchar*) self, _tmp3_ + _tmp4_); -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" string_length = _tmp5_; #line 1629 "CameraTable.c" } else { gint _tmp6_ = 0; gint _tmp7_ = 0; -#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp6_ = strlen (self); -#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp7_ = _tmp6_; -#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" string_length = (glong) _tmp7_; #line 1639 "CameraTable.c" } -#line 1315 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1315 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp8_ = offset; -#line 1315 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1315 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp8_ < ((glong) 0)) { #line 1645 "CameraTable.c" glong _tmp9_ = 0L; glong _tmp10_ = 0L; glong _tmp11_ = 0L; -#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp9_ = string_length; -#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp10_ = offset; -#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" offset = _tmp9_ + _tmp10_; -#line 1317 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1317 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp11_ = offset; -#line 1317 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1317 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (_tmp11_ >= ((glong) 0), NULL); #line 1659 "CameraTable.c" } else { glong _tmp12_ = 0L; glong _tmp13_ = 0L; -#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp12_ = offset; -#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp13_ = string_length; -#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (_tmp12_ <= _tmp13_, NULL); #line 1669 "CameraTable.c" } -#line 1321 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1321 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp14_ = len; -#line 1321 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1321 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp14_ < ((glong) 0)) { #line 1675 "CameraTable.c" glong _tmp15_ = 0L; glong _tmp16_ = 0L; -#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp15_ = string_length; -#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp16_ = offset; -#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" len = _tmp15_ - _tmp16_; #line 1684 "CameraTable.c" } -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp17_ = offset; -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp18_ = len; -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp19_ = string_length; -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail ((_tmp17_ + _tmp18_) <= _tmp19_, NULL); -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp20_ = offset; -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp21_ = len; -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp22_ = g_strndup (((gchar*) self) + _tmp20_, (gsize) _tmp21_); -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp22_; -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 1704 "CameraTable.c" } @@ -1709,11 +1709,11 @@ static gchar* string_substring (const gchar* self, glong offset, glong len) { static gchar* string_replace (const gchar* self, const gchar* old, const gchar* replacement) { gchar* result = NULL; GError * _inner_error_ = NULL; -#line 1380 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1380 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, NULL); -#line 1380 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1380 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (old != NULL, NULL); -#line 1380 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1380 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (replacement != NULL, NULL); #line 1717 "CameraTable.c" { @@ -1728,98 +1728,98 @@ static gchar* string_replace (const gchar* self, const gchar* old, const gchar* const gchar* _tmp7_ = NULL; gchar* _tmp8_ = NULL; gchar* _tmp9_ = NULL; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = old; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = g_regex_escape_string (_tmp0_, -1); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = _tmp1_; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = g_regex_new (_tmp2_, 0, 0, &_inner_error_); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = _tmp3_; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_free0 (_tmp2_); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" regex = _tmp4_; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_inner_error_->domain == G_REGEX_ERROR) { #line 1748 "CameraTable.c" - goto __catch56_g_regex_error; + goto __catch58_g_regex_error; } -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_clear_error (&_inner_error_); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return NULL; #line 1757 "CameraTable.c" } -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp6_ = regex; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp7_ = replacement; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp8_ = g_regex_replace_literal (_tmp6_, self, (gssize) -1, 0, _tmp7_, 0, &_inner_error_); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = _tmp8_; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_regex_unref0 (regex); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_inner_error_->domain == G_REGEX_ERROR) { #line 1773 "CameraTable.c" - goto __catch56_g_regex_error; + goto __catch58_g_regex_error; } -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_regex_unref0 (regex); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_clear_error (&_inner_error_); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return NULL; #line 1784 "CameraTable.c" } -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp9_ = _tmp5_; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = NULL; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp9_; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_free0 (_tmp5_); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_regex_unref0 (regex); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 1798 "CameraTable.c" } - goto __finally56; - __catch56_g_regex_error: + goto __finally58; + __catch58_g_regex_error: { GError* e = NULL; -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" e = _inner_error_; -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _inner_error_ = NULL; -#line 1385 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1385 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_assert_not_reached (); -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_error_free0 (e); #line 1812 "CameraTable.c" } - __finally56: -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" + __finally58: +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_clear_error (&_inner_error_); -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return NULL; #line 1823 "CameraTable.c" } @@ -4170,7 +4170,7 @@ static void camera_table_on_update_cameras (CameraTable* self) { #line 399 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" if (_inner_error_->domain == GPHOTO_ERROR) { #line 4171 "CameraTable.c" - goto __catch57_gphoto_error; + goto __catch59_gphoto_error; } #line 399 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -4181,8 +4181,8 @@ static void camera_table_on_update_cameras (CameraTable* self) { #line 4180 "CameraTable.c" } } - goto __finally57; - __catch57_gphoto_error: + goto __finally59; + __catch59_gphoto_error: { GError* err = NULL; GError* _tmp2_ = NULL; @@ -4201,7 +4201,7 @@ static void camera_table_on_update_cameras (CameraTable* self) { _g_error_free0 (err); #line 4201 "CameraTable.c" } - __finally57: + __finally59: #line 398 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 398 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" diff --git a/src/camera/GPhoto.c b/src/camera/GPhoto.c index a703945..b21ac78 100644 --- a/src/camera/GPhoto.c +++ b/src/camera/GPhoto.c @@ -1,4 +1,4 @@ -/* GPhoto.c generated by valac 0.32.1, the Vala compiler +/* GPhoto.c generated by valac 0.34.4, the Vala compiler * generated from GPhoto.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -1032,103 +1032,103 @@ static gchar* string_slice (const gchar* self, glong start, glong end) { glong _tmp19_ = 0L; glong _tmp20_ = 0L; gchar* _tmp21_ = NULL; -#line 1328 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1328 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, NULL); -#line 1329 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1329 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = strlen (self); -#line 1329 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1329 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = _tmp0_; -#line 1329 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1329 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" string_length = (glong) _tmp1_; -#line 1330 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1330 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = start; -#line 1330 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1330 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp2_ < ((glong) 0)) { #line 1048 "GPhoto.c" glong _tmp3_ = 0L; glong _tmp4_ = 0L; -#line 1331 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1331 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = string_length; -#line 1331 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1331 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = start; -#line 1331 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1331 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" start = _tmp3_ + _tmp4_; #line 1057 "GPhoto.c" } -#line 1333 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1333 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = end; -#line 1333 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1333 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp5_ < ((glong) 0)) { #line 1063 "GPhoto.c" glong _tmp6_ = 0L; glong _tmp7_ = 0L; -#line 1334 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1334 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp6_ = string_length; -#line 1334 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1334 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp7_ = end; -#line 1334 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1334 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" end = _tmp6_ + _tmp7_; #line 1072 "GPhoto.c" } -#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp9_ = start; -#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp9_ >= ((glong) 0)) { #line 1078 "GPhoto.c" glong _tmp10_ = 0L; glong _tmp11_ = 0L; -#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp10_ = start; -#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp11_ = string_length; -#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp8_ = _tmp10_ <= _tmp11_; #line 1087 "GPhoto.c" } else { -#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp8_ = FALSE; #line 1091 "GPhoto.c" } -#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (_tmp8_, NULL); -#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp13_ = end; -#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp13_ >= ((glong) 0)) { #line 1099 "GPhoto.c" glong _tmp14_ = 0L; glong _tmp15_ = 0L; -#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp14_ = end; -#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp15_ = string_length; -#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp12_ = _tmp14_ <= _tmp15_; #line 1108 "GPhoto.c" } else { -#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp12_ = FALSE; #line 1112 "GPhoto.c" } -#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (_tmp12_, NULL); -#line 1338 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1338 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp16_ = start; -#line 1338 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1338 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp17_ = end; -#line 1338 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1338 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (_tmp16_ <= _tmp17_, NULL); -#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp18_ = start; -#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp19_ = end; -#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp20_ = start; -#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp21_ = g_strndup (((gchar*) self) + _tmp18_, (gsize) (_tmp19_ - _tmp20_)); -#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp21_; -#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 1134 "GPhoto.c" } @@ -1295,11 +1295,11 @@ PhotoMetadata* gp_get_fallback_metadata (Camera* camera, GPContext* context, con #line 140 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1298 "GPhoto.c" - goto __catch58_g_error; + goto __catch60_g_error; } } - goto __finally58; - __catch58_g_error: + goto __finally60; + __catch60_g_error: { #line 139 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" g_clear_error (&_inner_error_); @@ -1311,7 +1311,7 @@ PhotoMetadata* gp_get_fallback_metadata (Camera* camera, GPContext* context, con metadata = NULL; #line 1313 "GPhoto.c" } - __finally58: + __finally60: #line 139 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 139 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" @@ -1420,7 +1420,7 @@ GdkPixbuf* gp_load_preview (GPContext* context, Camera* camera, const gchar* fol #line 154 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1423 "GPhoto.c" - goto __catch59_g_error; + goto __catch61_g_error; } #line 154 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" _tmp7_ = _tmp0_; @@ -1440,8 +1440,8 @@ GdkPixbuf* gp_load_preview (GPContext* context, Camera* camera, const gchar* fol _tmp0_ = (g_free (_tmp0_), NULL); #line 1442 "GPhoto.c" } - goto __finally59; - __catch59_g_error: + goto __finally61; + __catch61_g_error: { PhotoMetadata* metadata = NULL; Camera* _tmp8_ = NULL; @@ -1578,7 +1578,7 @@ GdkPixbuf* gp_load_preview (GPContext* context, Camera* camera, const gchar* fol #line 162 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" _media_metadata_unref0 (metadata); #line 1581 "GPhoto.c" - goto __finally59; + goto __finally61; } #line 162 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" _tmp24_ = _tmp20_; @@ -1602,7 +1602,7 @@ GdkPixbuf* gp_load_preview (GPContext* context, Camera* camera, const gchar* fol _media_metadata_unref0 (metadata); #line 1604 "GPhoto.c" } - __finally59: + __finally61: #line 153 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 153 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" @@ -1769,7 +1769,7 @@ GdkPixbuf* gp_load_preview (GPContext* context, Camera* camera, const gchar* fol #line 187 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" _tmp46_ = mins; #line 187 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp47_ = gdk_pixbuf_new_from_stream_at_scale (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, G_TYPE_INPUT_STREAM, GInputStream), IMPORT_PREVIEW_MAX_SCALE, IMPORT_PREVIEW_MAX_SCALE, TRUE, NULL, &_inner_error_); + _tmp47_ = gdk_pixbuf_new_from_stream_at_scale (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, g_input_stream_get_type (), GInputStream), IMPORT_PREVIEW_MAX_SCALE, IMPORT_PREVIEW_MAX_SCALE, TRUE, NULL, &_inner_error_); #line 187 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" _tmp45_ = _tmp47_; #line 187 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" @@ -2145,7 +2145,7 @@ PhotoMetadata* gp_load_metadata (GPContext* context, Camera* camera, const gchar #line 221 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 2148 "GPhoto.c" - goto __catch60_g_error; + goto __catch62_g_error; } #line 221 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" _tmp7_ = _tmp0_; @@ -2167,8 +2167,8 @@ PhotoMetadata* gp_load_metadata (GPContext* context, Camera* camera, const gchar _tmp0_ = (g_free (_tmp0_), NULL); #line 2169 "GPhoto.c" } - goto __finally60; - __catch60_g_error: + goto __finally62; + __catch62_g_error: { Camera* _tmp8_ = NULL; GPContext* _tmp9_ = NULL; @@ -2197,7 +2197,7 @@ PhotoMetadata* gp_load_metadata (GPContext* context, Camera* camera, const gchar return result; #line 2199 "GPhoto.c" } - __finally60: + __finally62: #line 220 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 220 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" @@ -2472,7 +2472,7 @@ GInputStream* gp_load_file_into_stream (GPContext* context, Camera* camera, cons #line 259 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" _tmp31_ = (GMemoryInputStream*) g_memory_input_stream_new_from_data (_tmp30_, _tmp30__length1, _gp_on_mins_destroyed_gdestroy_notify); #line 259 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, G_TYPE_INPUT_STREAM, GInputStream); + result = G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, g_input_stream_get_type (), GInputStream); #line 259 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" buffer = (g_free (buffer), NULL); #line 259 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" @@ -2577,7 +2577,7 @@ GInputStream* gp_load_file_into_stream (GPContext* context, Camera* camera, cons #line 269 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" _tmp51_ = NULL; #line 269 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, G_TYPE_INPUT_STREAM, GInputStream); + result = G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, g_input_stream_get_type (), GInputStream); #line 269 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" _g_object_unref0 (_tmp51_); #line 269 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" diff --git a/src/camera/GPhoto.vala b/src/camera/GPhoto.vala index b16e32b..3616cb2 100644 --- a/src/camera/GPhoto.vala +++ b/src/camera/GPhoto.vala @@ -115,7 +115,7 @@ namespace GPhoto { return true; } - // Libgphoto will in some instances refuse to get metadata from a camera, but the camera is accessable as a + // Libgphoto will in some instances refuse to get metadata from a camera, but the camera is accessible as a // filesystem. In these cases shotwell can access the file directly. See: // http://redmine.yorba.org/issues/2959 public PhotoMetadata? get_fallback_metadata(Camera camera, Context context, string folder, string filename) { diff --git a/src/camera/ImportPage.c b/src/camera/ImportPage.c index 928a456..5e7cfb2 100644 --- a/src/camera/ImportPage.c +++ b/src/camera/ImportPage.c @@ -1,4 +1,4 @@ -/* ImportPage.c generated by valac 0.32.1, the Vala compiler +/* ImportPage.c generated by valac 0.34.4, the Vala compiler * generated from ImportPage.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -349,6 +349,46 @@ typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass; typedef struct _LibraryPhotoSourceCollection LibraryPhotoSourceCollection; typedef struct _LibraryPhotoSourceCollectionClass LibraryPhotoSourceCollectionClass; +#define TYPE_MEDIA_SOURCE (media_source_get_type ()) +#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) +#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) +#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) +#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) +#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) + +typedef struct _MediaSource MediaSource; +typedef struct _MediaSourceClass MediaSourceClass; + +#define TYPE_PHOTO_SOURCE (photo_source_get_type ()) +#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) +#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) +#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) +#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) +#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) + +typedef struct _PhotoSource PhotoSource; +typedef struct _PhotoSourceClass PhotoSourceClass; + +#define TYPE_PHOTO (photo_get_type ()) +#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo)) +#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass)) +#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO)) +#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO)) +#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass)) + +typedef struct _Photo Photo; +typedef struct _PhotoClass PhotoClass; + +#define TYPE_LIBRARY_PHOTO (library_photo_get_type ()) +#define LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO, LibraryPhoto)) +#define LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) +#define IS_LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO)) +#define IS_LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO)) +#define LIBRARY_PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) + +typedef struct _LibraryPhoto LibraryPhoto; +typedef struct _LibraryPhotoClass LibraryPhotoClass; + #define TYPE_VIDEO_SOURCE_COLLECTION (video_source_collection_get_type ()) #define VIDEO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection)) #define VIDEO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollectionClass)) @@ -609,6 +649,7 @@ typedef struct _BatchImportJobClass BatchImportJobClass; typedef struct _ImportPageCameraImportJob ImportPageCameraImportJob; typedef struct _ImportPageCameraImportJobClass ImportPageCameraImportJobClass; +#define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL))) #define TYPE_APP_WINDOW (app_window_get_type ()) #define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) @@ -619,17 +660,6 @@ typedef struct _ImportPageCameraImportJobClass ImportPageCameraImportJobClass; typedef struct _AppWindow AppWindow; typedef struct _AppWindowClass AppWindowClass; -#define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL))) - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; #define _gp_list_unref0(var) ((var == NULL) ? NULL : (var = (gp_list_unref (var), NULL))) #define TYPE_SORTED_LIST (sorted_list_get_type ()) @@ -740,26 +770,6 @@ typedef struct _BackingPhotoRowPrivate BackingPhotoRowPrivate; #define TYPE_BACKING_PHOTO_ID (backing_photo_id_get_type ()) typedef struct _BackingPhotoID BackingPhotoID; - -#define TYPE_PHOTO_SOURCE (photo_source_get_type ()) -#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) -#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) -#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) -#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) -#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) - -typedef struct _PhotoSource PhotoSource; -typedef struct _PhotoSourceClass PhotoSourceClass; - -#define TYPE_PHOTO (photo_get_type ()) -#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo)) -#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass)) -#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO)) -#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO)) -#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass)) - -typedef struct _Photo Photo; -typedef struct _PhotoClass PhotoClass; typedef struct _ViewFilterPrivate ViewFilterPrivate; typedef struct _SearchViewFilterPrivate SearchViewFilterPrivate; typedef struct _ImportPageImportPageSearchViewFilterPrivate ImportPageImportPageSearchViewFilterPrivate; @@ -1172,7 +1182,8 @@ struct _PageClass { void (*ready) (Page* self); void (*switching_to_fullscreen) (Page* self, FullscreenWindow* fsw); void (*returning_from_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*add_actions) (Page* self); + void (*add_actions) (Page* self, GActionMap* map); + void (*remove_actions) (Page* self, GActionMap* map); void (*init_collect_ui_filenames) (Page* self, GeeList* ui_filenames); InjectionGroup** (*init_collect_injection_groups) (Page* self, int* result_length1); void (*init_actions) (Page* self, gint selected_count, gint count); @@ -1705,8 +1716,14 @@ void library_photo_get_nontrash_duplicate (GFile* file, const gchar* thumbnail_m GType database_source_collection_get_type (void) G_GNUC_CONST; GType media_source_collection_get_type (void) G_GNUC_CONST; GType library_photo_source_collection_get_type (void) G_GNUC_CONST; -gboolean library_photo_source_collection_has_basename_filesize_duplicate (LibraryPhotoSourceCollection* self, const gchar* basename, gint64 filesize); void library_photo_source_collection_get_basename_filesize_duplicate (LibraryPhotoSourceCollection* self, const gchar* basename, gint64 filesize, PhotoID* result); +gboolean photo_id_is_valid (PhotoID *self); +GType media_source_get_type (void) G_GNUC_CONST; +GType photo_source_get_type (void) G_GNUC_CONST; +GType photo_get_type (void) G_GNUC_CONST; +GType library_photo_get_type (void) G_GNUC_CONST; +LibraryPhoto* library_photo_source_collection_fetch (LibraryPhotoSourceCollection* self, PhotoID* photo_id); +time_t media_source_get_exposure_time (MediaSource* self); GType video_source_collection_get_type (void) G_GNUC_CONST; gboolean video_source_collection_has_basename_filesize_duplicate (VideoSourceCollection* self, const gchar* basename, guint64 filesize); GType video_id_get_type (void) G_GNUC_CONST; @@ -1858,8 +1875,6 @@ GType configuration_facade_get_type (void) G_GNUC_CONST; GType config_facade_get_type (void) G_GNUC_CONST; ConfigFacade* config_facade_get_instance (void); gboolean configuration_facade_get_hide_photos_already_imported (ConfigurationFacade* self); -#define RESOURCES_IMPORT "shotwell-import" -#define RESOURCES_IMPORT_ALL "shotwell-import-all" static void import_page_update_toolbar_state (ImportPage* self); static CoreViewTracker* import_page_real_get_view_tracker (CheckerboardPage* base); static gchar* import_page_real_get_view_empty_message (CheckerboardPage* base); @@ -1877,13 +1892,13 @@ static GType import_page_camera_import_job_get_type (void) G_GNUC_CONST G_GNUC_U static time_t import_page_camera_import_job_get_exposure_time (ImportPageCameraImportJob* self); static void import_page_real_init_collect_ui_filenames (Page* base, GeeList* ui_filenames); void page_init_collect_ui_filenames (Page* self, GeeList* ui_filenames); -static void import_page_real_add_actions (Page* base); -void page_add_actions (Page* self); -GType app_window_get_type (void) G_GNUC_CONST; -AppWindow* app_window_get_instance (void); +static void import_page_real_add_actions (Page* base, GActionMap* map); +void page_add_actions (Page* self, GActionMap* map); GAction* page_get_action (Page* self, const gchar* name); gboolean configuration_facade_get_display_photo_titles (ConfigurationFacade* self); static GVariant* _variant_new15 (gboolean value); +static void import_page_real_remove_actions (Page* base, GActionMap* map); +void page_remove_actions (Page* self, GActionMap* map); Camera* import_page_get_camera (ImportPage* self); gchar* import_page_get_uri (ImportPage* self); gboolean import_page_is_busy (ImportPage* self); @@ -1905,6 +1920,8 @@ static void import_page_real_ready (Page* base); static void import_page_try_refreshing_camera (ImportPage* self, gboolean fail_on_locked); static ImportPageRefreshResult import_page_refresh_camera (ImportPage* self); void app_window_error_message (const gchar* message, GtkWindow* parent); +GType app_window_get_type (void) G_GNUC_CONST; +AppWindow* app_window_get_instance (void); #define RESOURCES_APP_TITLE "Shotwell" void checkerboard_page_set_page_message (CheckerboardPage* self, const gchar* message); gboolean import_page_unmount_camera (ImportPage* self, GMount* mount); @@ -1915,7 +1932,6 @@ static void _import_page_on_unmount_finished_gasync_ready_callback (GObject* sou static void import_page_clear_all_import_sources (ImportPage* self); Marker* data_collection_start_marking (DataCollection* self); void marker_mark_all (Marker* self); -GType media_source_get_type (void) G_GNUC_CONST; gint source_collection_destroy_marked (SourceCollection* self, Marker* marker, gboolean delete_backing, ProgressMonitor monitor, void* monitor_target, GeeList* not_removed); static gboolean import_page_check_directory_exists (ImportPage* self, gint fsid, const gchar* dir, const gchar* search_target); static gboolean import_page_enumerate_files (ImportPage* self, gint fsid, const gchar* dir, GeeArrayList* import_list); @@ -2050,8 +2066,6 @@ GType backing_photo_id_get_type (void) G_GNUC_CONST; BackingPhotoID* backing_photo_id_dup (const BackingPhotoID* self); void backing_photo_id_free (BackingPhotoID* self); static gboolean import_page_camera_import_job_real_complete (BatchImportJob* base, MediaSource* source, BatchImportRoll* import_roll, GError** error); -GType photo_source_get_type (void) G_GNUC_CONST; -GType photo_get_type (void) G_GNUC_CONST; void photo_add_backing_photo_for_development (Photo* self, RawDeveloper d, BackingPhotoRow* bpr, GError** error); void photo_set_raw_developer (Photo* self, RawDeveloper d); RawDeveloper configuration_facade_get_default_raw_developer (ConfigurationFacade* self); @@ -2090,14 +2104,14 @@ ImportSourceCollection* import_source_collection_construct (GType object_type, c self = (ImportSourceCollection*) source_collection_construct (object_type, _tmp0_); #line 8 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return self; -#line 2093 "ImportPage.c" +#line 2107 "ImportPage.c" } ImportSourceCollection* import_source_collection_new (const gchar* name) { #line 8 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return import_source_collection_construct (TYPE_IMPORT_SOURCE_COLLECTION, name); -#line 2100 "ImportPage.c" +#line 2114 "ImportPage.c" } @@ -2115,7 +2129,7 @@ static gboolean import_source_collection_real_holds_type_of_source (SourceCollec result = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_IMPORT_SOURCE); #line 13 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 2118 "ImportPage.c" +#line 2132 "ImportPage.c" } @@ -2124,7 +2138,7 @@ static void import_source_collection_class_init (ImportSourceCollectionClass * k import_source_collection_parent_class = g_type_class_peek_parent (klass); #line 7 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" ((SourceCollectionClass *) klass)->holds_type_of_source = import_source_collection_real_holds_type_of_source; -#line 2127 "ImportPage.c" +#line 2141 "ImportPage.c" } @@ -2147,7 +2161,7 @@ GType import_source_collection_get_type (void) { static gpointer _GPHOTO_REF_CAMERA0 (gpointer self) { #line 31 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return self ? GPHOTO_REF_CAMERA (self) : NULL; -#line 2150 "ImportPage.c" +#line 2164 "ImportPage.c" } @@ -2230,14 +2244,14 @@ ImportSource* import_source_construct (GType object_type, const gchar* camera_na self->priv->indexable_keywords = _tmp12_; #line 28 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return self; -#line 2233 "ImportPage.c" +#line 2247 "ImportPage.c" } static gpointer _g_object_ref0 (gpointer self) { #line 41 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return self ? g_object_ref (self) : NULL; -#line 2240 "ImportPage.c" +#line 2254 "ImportPage.c" } @@ -2256,7 +2270,7 @@ void import_source_set_preview (ImportSource* self, GdkPixbuf* preview) { _g_object_unref0 (self->priv->preview); #line 41 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->preview = _tmp1_; -#line 2259 "ImportPage.c" +#line 2273 "ImportPage.c" } @@ -2274,7 +2288,7 @@ gchar* import_source_get_camera_name (ImportSource* self) { result = _tmp1_; #line 45 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 2277 "ImportPage.c" +#line 2291 "ImportPage.c" } @@ -2292,7 +2306,7 @@ Camera* import_source_get_camera (ImportSource* self) { result = _tmp1_; #line 49 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 2295 "ImportPage.c" +#line 2309 "ImportPage.c" } @@ -2307,7 +2321,7 @@ gint import_source_get_fsid (ImportSource* self) { result = _tmp0_; #line 53 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 2310 "ImportPage.c" +#line 2324 "ImportPage.c" } @@ -2325,7 +2339,7 @@ gchar* import_source_get_folder (ImportSource* self) { result = _tmp1_; #line 57 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 2328 "ImportPage.c" +#line 2342 "ImportPage.c" } @@ -2343,7 +2357,7 @@ gchar* import_source_get_filename (ImportSource* self) { result = _tmp1_; #line 61 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 2346 "ImportPage.c" +#line 2360 "ImportPage.c" } @@ -2358,7 +2372,7 @@ gulong import_source_get_filesize (ImportSource* self) { result = _tmp0_; #line 65 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 2361 "ImportPage.c" +#line 2375 "ImportPage.c" } @@ -2373,7 +2387,7 @@ time_t import_source_get_modification_time (ImportSource* self) { result = _tmp0_; #line 69 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 2376 "ImportPage.c" +#line 2390 "ImportPage.c" } @@ -2389,7 +2403,7 @@ static GdkPixbuf* import_source_real_get_preview (ImportSource* self) { result = _tmp1_; #line 73 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 2392 "ImportPage.c" +#line 2406 "ImportPage.c" } @@ -2398,7 +2412,7 @@ GdkPixbuf* import_source_get_preview (ImportSource* self) { g_return_val_if_fail (IS_IMPORT_SOURCE (self), NULL); #line 72 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return IMPORT_SOURCE_GET_CLASS (self)->get_preview (self); -#line 2401 "ImportPage.c" +#line 2415 "ImportPage.c" } @@ -2411,7 +2425,7 @@ static time_t import_source_real_get_exposure_time (ImportSource* self) { result = _tmp0_; #line 77 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 2414 "ImportPage.c" +#line 2428 "ImportPage.c" } @@ -2420,7 +2434,7 @@ time_t import_source_get_exposure_time (ImportSource* self) { g_return_val_if_fail (IS_IMPORT_SOURCE (self), 0); #line 76 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return IMPORT_SOURCE_GET_CLASS (self)->get_exposure_time (self); -#line 2423 "ImportPage.c" +#line 2437 "ImportPage.c" } @@ -2465,7 +2479,7 @@ gchar* import_source_get_fulldir (ImportSource* self) { result = _tmp8_; #line 81 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 2468 "ImportPage.c" +#line 2482 "ImportPage.c" } @@ -2508,7 +2522,7 @@ static gchar* import_source_real_to_string (DataObject* base) { result = _tmp7_; #line 85 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 2511 "ImportPage.c" +#line 2525 "ImportPage.c" } @@ -2524,7 +2538,7 @@ static gchar* gp_result_to_full_string (int self) { result = _tmp1_; #line 480 "/home/jens/Source/shotwell/vapi/libgphoto2.vapi" return result; -#line 2527 "ImportPage.c" +#line 2541 "ImportPage.c" } @@ -2572,7 +2586,7 @@ static gboolean import_source_real_internal_delete_backing (DataSource* base, GE _tmp4_ = fulldir; #line 92 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp4_ == NULL) { -#line 2575 "ImportPage.c" +#line 2589 "ImportPage.c" gchar* _tmp5_ = NULL; gchar* _tmp6_ = NULL; const gchar* _tmp7_ = NULL; @@ -2600,7 +2614,7 @@ static gboolean import_source_real_internal_delete_backing (DataSource* base, GE _g_free0 (fulldir); #line 95 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return FALSE; -#line 2603 "ImportPage.c" +#line 2617 "ImportPage.c" } #line 95 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = _tmp8_; @@ -2608,7 +2622,7 @@ static gboolean import_source_real_internal_delete_backing (DataSource* base, GE _g_free0 (fulldir); #line 95 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 2611 "ImportPage.c" +#line 2625 "ImportPage.c" } #line 98 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp10_ = import_source_get_camera (self); @@ -2638,7 +2652,7 @@ static gboolean import_source_real_internal_delete_backing (DataSource* base, GE _tmp19_ = _result_; #line 100 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp19_ != GP_OK) { -#line 2641 "ImportPage.c" +#line 2655 "ImportPage.c" gchar* _tmp20_ = NULL; gchar* _tmp21_ = NULL; const gchar* _tmp22_ = NULL; @@ -2663,7 +2677,7 @@ static gboolean import_source_real_internal_delete_backing (DataSource* base, GE _g_free0 (_tmp25_); #line 101 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (_tmp21_); -#line 2666 "ImportPage.c" +#line 2680 "ImportPage.c" } #line 103 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp28_ = DATA_SOURCE_CLASS (import_source_parent_class)->internal_delete_backing (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), TYPE_DATA_SOURCE, DataSource), &_inner_error_); @@ -2677,21 +2691,21 @@ static gboolean import_source_real_internal_delete_backing (DataSource* base, GE _g_free0 (fulldir); #line 103 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return FALSE; -#line 2680 "ImportPage.c" +#line 2694 "ImportPage.c" } #line 103 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp27_) { -#line 2684 "ImportPage.c" +#line 2698 "ImportPage.c" int _tmp29_ = 0; #line 103 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp29_ = _result_; #line 103 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp26_ = _tmp29_ == GP_OK; -#line 2690 "ImportPage.c" +#line 2704 "ImportPage.c" } else { #line 103 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp26_ = FALSE; -#line 2694 "ImportPage.c" +#line 2708 "ImportPage.c" } #line 103 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = _tmp26_; @@ -2699,7 +2713,7 @@ static gboolean import_source_real_internal_delete_backing (DataSource* base, GE _g_free0 (fulldir); #line 103 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 2702 "ImportPage.c" +#line 2716 "ImportPage.c" } @@ -2715,7 +2729,7 @@ static const gchar* import_source_real_get_indexable_keywords (Indexable* base) result = _tmp0_; #line 107 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 2718 "ImportPage.c" +#line 2732 "ImportPage.c" } @@ -2734,7 +2748,7 @@ static void import_source_class_init (ImportSourceClass * klass) { ((DataSourceClass *) klass)->internal_delete_backing = import_source_real_internal_delete_backing; #line 17 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" G_OBJECT_CLASS (klass)->finalize = import_source_finalize; -#line 2737 "ImportPage.c" +#line 2751 "ImportPage.c" } @@ -2743,7 +2757,7 @@ static void import_source_indexable_interface_init (IndexableIface * iface) { import_source_indexable_parent_iface = g_type_interface_peek_parent (iface); #line 17 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" iface->get_indexable_keywords = (const gchar* (*)(Indexable*)) import_source_real_get_indexable_keywords; -#line 2746 "ImportPage.c" +#line 2760 "ImportPage.c" } @@ -2754,7 +2768,7 @@ static void import_source_instance_init (ImportSource * self) { self->priv->preview = NULL; #line 26 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->indexable_keywords = NULL; -#line 2757 "ImportPage.c" +#line 2771 "ImportPage.c" } @@ -2776,7 +2790,7 @@ static void import_source_finalize (GObject* obj) { _g_free0 (self->priv->indexable_keywords); #line 17 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" G_OBJECT_CLASS (import_source_parent_class)->finalize (obj); -#line 2779 "ImportPage.c" +#line 2793 "ImportPage.c" } @@ -2829,14 +2843,14 @@ VideoImportSource* video_import_source_construct (GType object_type, const gchar self = (VideoImportSource*) import_source_construct (object_type, _tmp0_, _tmp1_, _tmp2_, _tmp3_, _tmp4_, _tmp5_, _tmp6_); #line 112 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return self; -#line 2832 "ImportPage.c" +#line 2846 "ImportPage.c" } VideoImportSource* video_import_source_new (const gchar* camera_name, Camera* camera, gint fsid, const gchar* folder, const gchar* filename, gulong file_size, time_t modification_time) { #line 112 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return video_import_source_construct (TYPE_VIDEO_IMPORT_SOURCE, camera_name, camera, fsid, folder, filename, file_size, modification_time); -#line 2839 "ImportPage.c" +#line 2853 "ImportPage.c" } @@ -2862,7 +2876,7 @@ static GdkPixbuf* video_import_source_real_get_thumbnail (ThumbnailSource* base, g_propagate_error (error, _inner_error_); #line 118 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return NULL; -#line 2865 "ImportPage.c" +#line 2879 "ImportPage.c" } #line 118 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp3_ = _tmp0_; @@ -2874,7 +2888,7 @@ static GdkPixbuf* video_import_source_real_get_thumbnail (ThumbnailSource* base, _g_object_unref0 (_tmp0_); #line 118 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 2877 "ImportPage.c" +#line 2891 "ImportPage.c" } @@ -2902,13 +2916,13 @@ static GdkPixbuf* video_import_source_real_create_thumbnail (ThumbnailSource* ba result = NULL; #line 123 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 2905 "ImportPage.c" +#line 2919 "ImportPage.c" } #line 127 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp4_ = scale; #line 127 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp4_ > 0) { -#line 2911 "ImportPage.c" +#line 2925 "ImportPage.c" GdkPixbuf* _tmp5_ = NULL; GdkPixbuf* _tmp6_ = NULL; gint _tmp7_ = 0; @@ -2927,7 +2941,7 @@ static GdkPixbuf* video_import_source_real_create_thumbnail (ThumbnailSource* ba _tmp3_ = _tmp8_; #line 127 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_tmp6_); -#line 2930 "ImportPage.c" +#line 2944 "ImportPage.c" } else { GdkPixbuf* _tmp9_ = NULL; #line 128 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" @@ -2936,13 +2950,13 @@ static GdkPixbuf* video_import_source_real_create_thumbnail (ThumbnailSource* ba _g_object_unref0 (_tmp3_); #line 128 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp3_ = _tmp9_; -#line 2939 "ImportPage.c" +#line 2953 "ImportPage.c" } #line 127 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = _tmp3_; #line 127 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 2945 "ImportPage.c" +#line 2959 "ImportPage.c" } @@ -2958,7 +2972,7 @@ static gchar* video_import_source_real_get_typename (DataSource* base) { result = _tmp0_; #line 132 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 2961 "ImportPage.c" +#line 2975 "ImportPage.c" } @@ -2974,7 +2988,7 @@ static gint64 video_import_source_real_get_instance_id (DataSource* base) { result = _tmp0_; #line 136 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 2977 "ImportPage.c" +#line 2991 "ImportPage.c" } @@ -2990,7 +3004,7 @@ static PhotoFileFormat video_import_source_real_get_preferred_thumbnail_format ( result = _tmp0_; #line 140 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 2993 "ImportPage.c" +#line 3007 "ImportPage.c" } @@ -3006,7 +3020,7 @@ static gchar* video_import_source_real_get_name (DataObject* base) { result = _tmp0_; #line 144 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 3009 "ImportPage.c" +#line 3023 "ImportPage.c" } @@ -3021,7 +3035,7 @@ void video_import_source_update (VideoImportSource* self, GdkPixbuf* preview) { _tmp1_ = preview; #line 148 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp1_ != NULL) { -#line 3024 "ImportPage.c" +#line 3038 "ImportPage.c" GdkPixbuf* _tmp2_ = NULL; GdkPixbuf* _tmp3_ = NULL; #line 148 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" @@ -3032,7 +3046,7 @@ void video_import_source_update (VideoImportSource* self, GdkPixbuf* preview) { _g_object_unref0 (_tmp0_); #line 148 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = _tmp3_; -#line 3035 "ImportPage.c" +#line 3049 "ImportPage.c" } else { GdkPixbuf* _tmp4_ = NULL; #line 148 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" @@ -3041,13 +3055,13 @@ void video_import_source_update (VideoImportSource* self, GdkPixbuf* preview) { _g_object_unref0 (_tmp0_); #line 148 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = _tmp4_; -#line 3044 "ImportPage.c" +#line 3058 "ImportPage.c" } #line 148 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_source_set_preview (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORT_SOURCE, ImportSource), _tmp0_); #line 147 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_tmp0_); -#line 3050 "ImportPage.c" +#line 3064 "ImportPage.c" } @@ -3066,7 +3080,7 @@ static void video_import_source_class_init (VideoImportSourceClass * klass) { ((ThumbnailSourceClass *) klass)->get_preferred_thumbnail_format = video_import_source_real_get_preferred_thumbnail_format; #line 111 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" ((DataObjectClass *) klass)->get_name = video_import_source_real_get_name; -#line 3069 "ImportPage.c" +#line 3083 "ImportPage.c" } @@ -3126,14 +3140,14 @@ PhotoImportSource* photo_import_source_construct (GType object_type, const gchar self->priv->file_format = _tmp7_; #line 161 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return self; -#line 3129 "ImportPage.c" +#line 3143 "ImportPage.c" } PhotoImportSource* photo_import_source_new (const gchar* camera_name, Camera* camera, gint fsid, const gchar* folder, const gchar* filename, gulong file_size, time_t modification_time, PhotoFileFormat file_format) { #line 161 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return photo_import_source_construct (TYPE_PHOTO_IMPORT_SOURCE, camera_name, camera, fsid, folder, filename, file_size, modification_time, file_format); -#line 3136 "ImportPage.c" +#line 3150 "ImportPage.c" } @@ -3157,7 +3171,7 @@ static gchar* photo_import_source_real_get_name (DataObject* base) { _tmp3_ = is_string_empty (_tmp2_); #line 170 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (!_tmp3_) { -#line 3160 "ImportPage.c" +#line 3174 "ImportPage.c" const gchar* _tmp4_ = NULL; gchar* _tmp5_ = NULL; #line 170 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" @@ -3168,7 +3182,7 @@ static gchar* photo_import_source_real_get_name (DataObject* base) { _g_free0 (_tmp1_); #line 170 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = _tmp5_; -#line 3171 "ImportPage.c" +#line 3185 "ImportPage.c" } else { gchar* _tmp6_ = NULL; #line 170 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" @@ -3177,7 +3191,7 @@ static gchar* photo_import_source_real_get_name (DataObject* base) { _g_free0 (_tmp1_); #line 170 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = _tmp6_; -#line 3180 "ImportPage.c" +#line 3194 "ImportPage.c" } #line 170 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = _tmp1_; @@ -3185,7 +3199,7 @@ static gchar* photo_import_source_real_get_name (DataObject* base) { _g_free0 (title); #line 170 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 3188 "ImportPage.c" +#line 3202 "ImportPage.c" } @@ -3201,7 +3215,7 @@ static gchar* photo_import_source_real_get_typename (DataSource* base) { result = _tmp0_; #line 174 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 3204 "ImportPage.c" +#line 3218 "ImportPage.c" } @@ -3217,7 +3231,7 @@ static gint64 photo_import_source_real_get_instance_id (DataSource* base) { result = _tmp0_; #line 178 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 3220 "ImportPage.c" +#line 3234 "ImportPage.c" } @@ -3235,26 +3249,26 @@ static PhotoFileFormat photo_import_source_real_get_preferred_thumbnail_format ( _tmp2_ = photo_file_format_can_write (_tmp1_); #line 182 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp2_) { -#line 3238 "ImportPage.c" +#line 3252 "ImportPage.c" PhotoFileFormat _tmp3_ = 0; #line 182 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp3_ = self->priv->file_format; #line 182 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = _tmp3_; -#line 3244 "ImportPage.c" +#line 3258 "ImportPage.c" } else { PhotoFileFormat _tmp4_ = 0; #line 183 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp4_ = photo_file_format_get_system_default_format (); #line 183 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = _tmp4_; -#line 3251 "ImportPage.c" +#line 3265 "ImportPage.c" } #line 182 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = _tmp0_; #line 182 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 3257 "ImportPage.c" +#line 3271 "ImportPage.c" } @@ -3282,13 +3296,13 @@ static GdkPixbuf* photo_import_source_real_create_thumbnail (ThumbnailSource* ba result = NULL; #line 188 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 3285 "ImportPage.c" +#line 3299 "ImportPage.c" } #line 192 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp4_ = scale; #line 192 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp4_ > 0) { -#line 3291 "ImportPage.c" +#line 3305 "ImportPage.c" GdkPixbuf* _tmp5_ = NULL; GdkPixbuf* _tmp6_ = NULL; gint _tmp7_ = 0; @@ -3307,7 +3321,7 @@ static GdkPixbuf* photo_import_source_real_create_thumbnail (ThumbnailSource* ba _tmp3_ = _tmp8_; #line 192 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_tmp6_); -#line 3310 "ImportPage.c" +#line 3324 "ImportPage.c" } else { GdkPixbuf* _tmp9_ = NULL; #line 192 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" @@ -3316,20 +3330,20 @@ static GdkPixbuf* photo_import_source_real_create_thumbnail (ThumbnailSource* ba _g_object_unref0 (_tmp3_); #line 192 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp3_ = _tmp9_; -#line 3319 "ImportPage.c" +#line 3333 "ImportPage.c" } #line 192 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = _tmp3_; #line 192 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 3325 "ImportPage.c" +#line 3339 "ImportPage.c" } static gpointer _media_metadata_ref0 (gpointer self) { #line 199 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return self ? media_metadata_ref (self) : NULL; -#line 3332 "ImportPage.c" +#line 3346 "ImportPage.c" } @@ -3375,7 +3389,7 @@ void photo_import_source_update (PhotoImportSource* self, GdkPixbuf* preview, co _g_free0 (self->priv->exif_md5); #line 200 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->exif_md5 = _tmp6_; -#line 3378 "ImportPage.c" +#line 3392 "ImportPage.c" } @@ -3394,7 +3408,7 @@ static time_t photo_import_source_real_get_exposure_time (ImportSource* base) { _tmp0_ = self->priv->metadata; #line 204 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp0_ == NULL) { -#line 3397 "ImportPage.c" +#line 3411 "ImportPage.c" time_t _tmp1_ = 0; #line 205 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = import_source_get_modification_time (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORT_SOURCE, ImportSource)); @@ -3402,7 +3416,7 @@ static time_t photo_import_source_real_get_exposure_time (ImportSource* base) { result = _tmp1_; #line 205 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 3405 "ImportPage.c" +#line 3419 "ImportPage.c" } #line 207 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = self->priv->metadata; @@ -3414,7 +3428,7 @@ static time_t photo_import_source_real_get_exposure_time (ImportSource* base) { _tmp5_ = date_time; #line 209 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp5_ != NULL) { -#line 3417 "ImportPage.c" +#line 3431 "ImportPage.c" MetadataDateTime* _tmp6_ = NULL; time_t _tmp7_ = 0; #line 209 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" @@ -3423,14 +3437,14 @@ static time_t photo_import_source_real_get_exposure_time (ImportSource* base) { _tmp7_ = metadata_date_time_get_timestamp (_tmp6_); #line 209 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp4_ = _tmp7_; -#line 3426 "ImportPage.c" +#line 3440 "ImportPage.c" } else { time_t _tmp8_ = 0; #line 209 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp8_ = import_source_get_modification_time (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORT_SOURCE, ImportSource)); #line 209 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp4_ = _tmp8_; -#line 3433 "ImportPage.c" +#line 3447 "ImportPage.c" } #line 209 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = _tmp4_; @@ -3438,7 +3452,7 @@ static time_t photo_import_source_real_get_exposure_time (ImportSource* base) { _metadata_date_time_unref0 (date_time); #line 209 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 3441 "ImportPage.c" +#line 3455 "ImportPage.c" } @@ -3452,7 +3466,7 @@ gchar* photo_import_source_get_title (PhotoImportSource* self) { _tmp1_ = self->priv->metadata; #line 213 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp1_ != NULL) { -#line 3455 "ImportPage.c" +#line 3469 "ImportPage.c" PhotoMetadata* _tmp2_ = NULL; gchar* _tmp3_ = NULL; #line 213 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" @@ -3463,19 +3477,19 @@ gchar* photo_import_source_get_title (PhotoImportSource* self) { _g_free0 (_tmp0_); #line 213 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = _tmp3_; -#line 3466 "ImportPage.c" +#line 3480 "ImportPage.c" } else { #line 213 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (_tmp0_); #line 213 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = NULL; -#line 3472 "ImportPage.c" +#line 3486 "ImportPage.c" } #line 213 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = _tmp0_; #line 213 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 3478 "ImportPage.c" +#line 3492 "ImportPage.c" } @@ -3490,7 +3504,7 @@ PhotoMetadata* photo_import_source_get_metadata (PhotoImportSource* self) { _tmp0_ = self->priv->associated; #line 217 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp0_ != NULL) { -#line 3493 "ImportPage.c" +#line 3507 "ImportPage.c" PhotoImportSource* _tmp1_ = NULL; PhotoMetadata* _tmp2_ = NULL; #line 218 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" @@ -3501,7 +3515,7 @@ PhotoMetadata* photo_import_source_get_metadata (PhotoImportSource* self) { result = _tmp2_; #line 218 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 3504 "ImportPage.c" +#line 3518 "ImportPage.c" } #line 220 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp3_ = self->priv->metadata; @@ -3511,7 +3525,7 @@ PhotoMetadata* photo_import_source_get_metadata (PhotoImportSource* self) { result = _tmp4_; #line 220 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 3514 "ImportPage.c" +#line 3528 "ImportPage.c" } @@ -3528,7 +3542,7 @@ static GdkPixbuf* photo_import_source_real_get_preview (ImportSource* base) { _tmp0_ = self->priv->associated; #line 224 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp0_ != NULL) { -#line 3531 "ImportPage.c" +#line 3545 "ImportPage.c" PhotoImportSource* _tmp1_ = NULL; GdkPixbuf* _tmp2_ = NULL; #line 225 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" @@ -3539,7 +3553,7 @@ static GdkPixbuf* photo_import_source_real_get_preview (ImportSource* base) { result = _tmp2_; #line 225 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 3542 "ImportPage.c" +#line 3556 "ImportPage.c" } #line 227 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp3_ = IMPORT_SOURCE_CLASS (photo_import_source_parent_class)->get_preview (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORT_SOURCE, ImportSource)); @@ -3551,7 +3565,7 @@ static GdkPixbuf* photo_import_source_real_get_preview (ImportSource* base) { _g_object_unref0 (_tmp4_); #line 227 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp5_) { -#line 3554 "ImportPage.c" +#line 3568 "ImportPage.c" GdkPixbuf* _tmp6_ = NULL; #line 228 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp6_ = IMPORT_SOURCE_CLASS (photo_import_source_parent_class)->get_preview (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORT_SOURCE, ImportSource)); @@ -3559,13 +3573,13 @@ static GdkPixbuf* photo_import_source_real_get_preview (ImportSource* base) { result = _tmp6_; #line 228 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 3562 "ImportPage.c" +#line 3576 "ImportPage.c" } #line 230 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = NULL; #line 230 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 3568 "ImportPage.c" +#line 3582 "ImportPage.c" } @@ -3593,13 +3607,13 @@ static GdkPixbuf* photo_import_source_real_get_thumbnail (ThumbnailSource* base, result = NULL; #line 235 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 3596 "ImportPage.c" +#line 3610 "ImportPage.c" } #line 237 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp4_ = scale; #line 237 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp4_ > 0) { -#line 3602 "ImportPage.c" +#line 3616 "ImportPage.c" GdkPixbuf* _tmp5_ = NULL; GdkPixbuf* _tmp6_ = NULL; gint _tmp7_ = 0; @@ -3618,7 +3632,7 @@ static GdkPixbuf* photo_import_source_real_get_thumbnail (ThumbnailSource* base, _tmp3_ = _tmp8_; #line 237 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_tmp6_); -#line 3621 "ImportPage.c" +#line 3635 "ImportPage.c" } else { GdkPixbuf* _tmp9_ = NULL; #line 237 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" @@ -3627,13 +3641,13 @@ static GdkPixbuf* photo_import_source_real_get_thumbnail (ThumbnailSource* base, _g_object_unref0 (_tmp3_); #line 237 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp3_ = _tmp9_; -#line 3630 "ImportPage.c" +#line 3644 "ImportPage.c" } #line 237 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = _tmp3_; #line 237 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 3636 "ImportPage.c" +#line 3650 "ImportPage.c" } @@ -3648,7 +3662,7 @@ PhotoFileFormat photo_import_source_get_file_format (PhotoImportSource* self) { result = _tmp0_; #line 241 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 3651 "ImportPage.c" +#line 3665 "ImportPage.c" } @@ -3666,7 +3680,7 @@ gchar* photo_import_source_get_preview_md5 (PhotoImportSource* self) { result = _tmp1_; #line 245 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 3669 "ImportPage.c" +#line 3683 "ImportPage.c" } @@ -3685,7 +3699,7 @@ void photo_import_source_set_associated (PhotoImportSource* self, PhotoImportSou _g_object_unref0 (self->priv->associated); #line 249 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->associated = _tmp1_; -#line 3688 "ImportPage.c" +#line 3702 "ImportPage.c" } @@ -3703,7 +3717,7 @@ PhotoImportSource* photo_import_source_get_associated (PhotoImportSource* self) result = _tmp1_; #line 253 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 3706 "ImportPage.c" +#line 3720 "ImportPage.c" } @@ -3726,13 +3740,13 @@ static gboolean photo_import_source_real_internal_delete_backing (DataSource* ba g_propagate_error (error, _inner_error_); #line 257 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return FALSE; -#line 3729 "ImportPage.c" +#line 3743 "ImportPage.c" } #line 258 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = self->priv->associated; #line 258 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp1_ != NULL) { -#line 3735 "ImportPage.c" +#line 3749 "ImportPage.c" gboolean _tmp2_ = FALSE; PhotoImportSource* _tmp3_ = NULL; gboolean _tmp4_ = FALSE; @@ -3749,19 +3763,19 @@ static gboolean photo_import_source_real_internal_delete_backing (DataSource* ba g_propagate_error (error, _inner_error_); #line 259 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return FALSE; -#line 3752 "ImportPage.c" +#line 3766 "ImportPage.c" } #line 259 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp5_ = ret; #line 259 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" ret = _tmp5_ & _tmp2_; -#line 3758 "ImportPage.c" +#line 3772 "ImportPage.c" } #line 260 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = ret; #line 260 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 3764 "ImportPage.c" +#line 3778 "ImportPage.c" } @@ -3790,7 +3804,7 @@ static void photo_import_source_class_init (PhotoImportSourceClass * klass) { ((DataSourceClass *) klass)->internal_delete_backing = photo_import_source_real_internal_delete_backing; #line 152 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" G_OBJECT_CLASS (klass)->finalize = photo_import_source_finalize; -#line 3793 "ImportPage.c" +#line 3807 "ImportPage.c" } @@ -3805,7 +3819,7 @@ static void photo_import_source_instance_init (PhotoImportSource * self) { self->priv->exif_md5 = NULL; #line 159 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->associated = NULL; -#line 3808 "ImportPage.c" +#line 3822 "ImportPage.c" } @@ -3823,7 +3837,7 @@ static void photo_import_source_finalize (GObject* obj) { _g_object_unref0 (self->priv->associated); #line 152 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" G_OBJECT_CLASS (photo_import_source_parent_class)->finalize (obj); -#line 3826 "ImportPage.c" +#line 3840 "ImportPage.c" } @@ -3883,11 +3897,11 @@ ImportPreview* import_preview_construct (GType object_type, ImportSource* source if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, TYPE_VIDEO_IMPORT_SOURCE)) { #line 278 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" media_source_item_set_enable_sprockets (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_ITEM, MediaSourceItem), TRUE); -#line 3886 "ImportPage.c" +#line 3900 "ImportPage.c" } #line 281 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" pixbuf = NULL; -#line 3890 "ImportPage.c" +#line 3904 "ImportPage.c" { GdkPixbuf* _tmp6_ = NULL; ImportSource* _tmp7_ = NULL; @@ -3901,8 +3915,8 @@ ImportPreview* import_preview_construct (GType object_type, ImportSource* source _tmp6_ = _tmp8_; #line 283 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3904 "ImportPage.c" - goto __catch61_g_error; +#line 3918 "ImportPage.c" + goto __catch63_g_error; } #line 283 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp9_ = _tmp6_; @@ -3914,10 +3928,10 @@ ImportPreview* import_preview_construct (GType object_type, ImportSource* source pixbuf = _tmp9_; #line 282 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_tmp6_); -#line 3917 "ImportPage.c" +#line 3931 "ImportPage.c" } - goto __finally61; - __catch61_g_error: + goto __finally63; + __catch63_g_error: { GError* err = NULL; gchar* _tmp10_ = NULL; @@ -3942,9 +3956,9 @@ ImportPreview* import_preview_construct (GType object_type, ImportSource* source _g_free0 (_tmp11_); #line 282 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_error_free0 (err); -#line 3945 "ImportPage.c" +#line 3959 "ImportPage.c" } - __finally61: + __finally63: #line 282 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 282 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" @@ -3955,7 +3969,7 @@ ImportPreview* import_preview_construct (GType object_type, ImportSource* source g_clear_error (&_inner_error_); #line 282 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return NULL; -#line 3958 "ImportPage.c" +#line 3972 "ImportPage.c" } #line 289 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp14_ = pixbuf; @@ -3965,7 +3979,7 @@ ImportPreview* import_preview_construct (GType object_type, ImportSource* source _tmp15_ = pixbuf; #line 290 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp15_ == NULL) { -#line 3968 "ImportPage.c" +#line 3982 "ImportPage.c" GdkPixbuf* _tmp16_ = NULL; GdkPixbuf* _tmp20_ = NULL; GdkPixbuf* _tmp21_ = NULL; @@ -3973,7 +3987,7 @@ ImportPreview* import_preview_construct (GType object_type, ImportSource* source _tmp16_ = import_preview_placeholder_preview; #line 291 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp16_ == NULL) { -#line 3976 "ImportPage.c" +#line 3990 "ImportPage.c" GdkPixbuf* _tmp17_ = NULL; GdkPixbuf* _tmp18_ = NULL; GdkPixbuf* _tmp19_ = NULL; @@ -3991,7 +4005,7 @@ ImportPreview* import_preview_construct (GType object_type, ImportSource* source _g_object_unref0 (import_preview_placeholder_preview); #line 293 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_preview_placeholder_preview = _tmp19_; -#line 3994 "ImportPage.c" +#line 4008 "ImportPage.c" } #line 297 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp20_ = import_preview_placeholder_preview; @@ -4001,7 +4015,7 @@ ImportPreview* import_preview_construct (GType object_type, ImportSource* source _g_object_unref0 (pixbuf); #line 297 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" pixbuf = _tmp21_; -#line 4004 "ImportPage.c" +#line 4018 "ImportPage.c" } #line 301 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp23_ = pixbuf; @@ -4011,7 +4025,7 @@ ImportPreview* import_preview_construct (GType object_type, ImportSource* source if (_tmp24_ > IMPORT_PREVIEW_MAX_SCALE) { #line 301 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp22_ = TRUE; -#line 4014 "ImportPage.c" +#line 4028 "ImportPage.c" } else { GdkPixbuf* _tmp25_ = NULL; gint _tmp26_ = 0; @@ -4021,11 +4035,11 @@ ImportPreview* import_preview_construct (GType object_type, ImportSource* source _tmp26_ = gdk_pixbuf_get_height (_tmp25_); #line 301 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp22_ = _tmp26_ > IMPORT_PREVIEW_MAX_SCALE; -#line 4024 "ImportPage.c" +#line 4038 "ImportPage.c" } #line 301 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp22_) { -#line 4028 "ImportPage.c" +#line 4042 "ImportPage.c" GdkPixbuf* _tmp27_ = NULL; GdkPixbuf* _tmp28_ = NULL; #line 302 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" @@ -4036,13 +4050,13 @@ ImportPreview* import_preview_construct (GType object_type, ImportSource* source _g_object_unref0 (pixbuf); #line 302 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" pixbuf = _tmp28_; -#line 4039 "ImportPage.c" +#line 4053 "ImportPage.c" } #line 304 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp29_ = source; #line 304 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp29_, TYPE_PHOTO_IMPORT_SOURCE)) { -#line 4045 "ImportPage.c" +#line 4059 "ImportPage.c" PhotoImportSource* photo_import_source = NULL; ImportSource* _tmp30_ = NULL; PhotoImportSource* _tmp31_ = NULL; @@ -4062,7 +4076,7 @@ ImportPreview* import_preview_construct (GType object_type, ImportSource* source _tmp33_ = using_placeholder; #line 307 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (!_tmp33_) { -#line 4065 "ImportPage.c" +#line 4079 "ImportPage.c" PhotoImportSource* _tmp34_ = NULL; PhotoMetadata* _tmp35_ = NULL; PhotoMetadata* _tmp36_ = NULL; @@ -4076,15 +4090,15 @@ ImportPreview* import_preview_construct (GType object_type, ImportSource* source _tmp32_ = _tmp36_ != NULL; #line 307 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _media_metadata_unref0 (_tmp36_); -#line 4079 "ImportPage.c" +#line 4093 "ImportPage.c" } else { #line 307 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp32_ = FALSE; -#line 4083 "ImportPage.c" +#line 4097 "ImportPage.c" } #line 307 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp32_) { -#line 4087 "ImportPage.c" +#line 4101 "ImportPage.c" PhotoImportSource* _tmp37_ = NULL; PhotoMetadata* _tmp38_ = NULL; PhotoMetadata* _tmp39_ = NULL; @@ -4109,7 +4123,7 @@ ImportPreview* import_preview_construct (GType object_type, ImportSource* source pixbuf = _tmp42_; #line 308 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _media_metadata_unref0 (_tmp39_); -#line 4112 "ImportPage.c" +#line 4126 "ImportPage.c" } #line 310 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp43_ = photo_import_source; @@ -4123,7 +4137,7 @@ ImportPreview* import_preview_construct (GType object_type, ImportSource* source _g_object_unref0 (_tmp45_); #line 310 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp46_) { -#line 4126 "ImportPage.c" +#line 4140 "ImportPage.c" const gchar* _tmp47_ = NULL; gchar* _tmp48_ = NULL; gchar* _tmp49_ = NULL; @@ -4137,11 +4151,11 @@ ImportPreview* import_preview_construct (GType object_type, ImportSource* source checkerboard_item_set_subtitle (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), _tmp49_, TRUE, PANGO_ALIGN_LEFT); #line 311 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (_tmp49_); -#line 4140 "ImportPage.c" +#line 4154 "ImportPage.c" } #line 304 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (photo_import_source); -#line 4144 "ImportPage.c" +#line 4158 "ImportPage.c" } #line 315 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp50_ = pixbuf; @@ -4151,14 +4165,14 @@ ImportPreview* import_preview_construct (GType object_type, ImportSource* source _g_object_unref0 (pixbuf); #line 271 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return self; -#line 4154 "ImportPage.c" +#line 4168 "ImportPage.c" } ImportPreview* import_preview_new (ImportSource* source) { #line 271 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return import_preview_construct (TYPE_IMPORT_PREVIEW, source); -#line 4161 "ImportPage.c" +#line 4175 "ImportPage.c" } @@ -4169,9 +4183,9 @@ gboolean import_preview_is_already_imported (ImportPreview* self) { PhotoImportSource* _tmp1_ = NULL; PhotoImportSource* _tmp2_ = NULL; VideoImportSource* video_import_source = NULL; - ImportSource* _tmp39_ = NULL; - VideoImportSource* _tmp40_ = NULL; - VideoImportSource* _tmp41_ = NULL; + ImportSource* _tmp49_ = NULL; + VideoImportSource* _tmp50_ = NULL; + VideoImportSource* _tmp51_ = NULL; #line 318 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (IS_IMPORT_PREVIEW (self), FALSE); #line 319 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" @@ -4182,7 +4196,7 @@ gboolean import_preview_is_already_imported (ImportPreview* self) { if (_tmp1_ == NULL) { #line 319 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_tmp0_); -#line 4185 "ImportPage.c" +#line 4199 "ImportPage.c" } #line 319 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" photo_import_source = _tmp1_; @@ -4190,7 +4204,7 @@ gboolean import_preview_is_already_imported (ImportPreview* self) { _tmp2_ = photo_import_source; #line 320 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp2_ != NULL) { -#line 4193 "ImportPage.c" +#line 4207 "ImportPage.c" gchar* preview_md5 = NULL; PhotoImportSource* _tmp3_ = NULL; gchar* _tmp4_ = NULL; @@ -4219,7 +4233,7 @@ gboolean import_preview_is_already_imported (ImportPreview* self) { _tmp9_ = is_string_empty (_tmp8_); #line 325 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (!_tmp9_) { -#line 4222 "ImportPage.c" +#line 4236 "ImportPage.c" const gchar* _tmp10_ = NULL; PhotoFileFormat _tmp11_ = 0; gboolean _tmp12_ = FALSE; @@ -4231,15 +4245,15 @@ gboolean import_preview_is_already_imported (ImportPreview* self) { _tmp12_ = library_photo_has_nontrash_duplicate (NULL, _tmp10_, NULL, _tmp11_); #line 326 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp7_ = _tmp12_; -#line 4234 "ImportPage.c" +#line 4248 "ImportPage.c" } else { #line 325 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp7_ = FALSE; -#line 4238 "ImportPage.c" +#line 4252 "ImportPage.c" } #line 325 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp7_) { -#line 4242 "ImportPage.c" +#line 4256 "ImportPage.c" const gchar* _tmp13_ = NULL; PhotoFileFormat _tmp14_ = 0; PhotoID _tmp15_ = {0}; @@ -4264,13 +4278,13 @@ gboolean import_preview_is_already_imported (ImportPreview* self) { _g_object_unref0 (photo_import_source); #line 331 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 4267 "ImportPage.c" +#line 4281 "ImportPage.c" } #line 337 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp17_ = file_format; #line 337 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp17_ == PHOTO_FILE_FORMAT_RAW) { -#line 4273 "ImportPage.c" +#line 4287 "ImportPage.c" guint64 filesize = 0ULL; ImportSource* _tmp18_ = NULL; ImportSource* _tmp19_ = NULL; @@ -4293,15 +4307,17 @@ gboolean import_preview_is_already_imported (ImportPreview* self) { _tmp22_ = filesize; #line 340 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp22_ <= ((guint64) G_MAXINT64)) { -#line 4296 "ImportPage.c" +#line 4310 "ImportPage.c" + PhotoID duplicated_photo_id = {0}; LibraryPhotoSourceCollection* _tmp23_ = NULL; ImportSource* _tmp24_ = NULL; ImportSource* _tmp25_ = NULL; gchar* _tmp26_ = NULL; gchar* _tmp27_ = NULL; guint64 _tmp28_ = 0ULL; - gboolean _tmp29_ = FALSE; - gboolean _tmp30_ = FALSE; + PhotoID _tmp29_ = {0}; + PhotoID _tmp30_ = {0}; + gboolean _tmp31_ = FALSE; #line 341 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp23_ = library_photo_global; #line 341 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" @@ -4315,7 +4331,7 @@ gboolean import_preview_is_already_imported (ImportPreview* self) { #line 341 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp28_ = filesize; #line 341 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp29_ = library_photo_source_collection_has_basename_filesize_duplicate (_tmp23_, _tmp27_, (gint64) _tmp28_); + library_photo_source_collection_get_basename_filesize_duplicate (_tmp23_, _tmp27_, (gint64) _tmp28_, &_tmp29_); #line 341 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp30_ = _tmp29_; #line 341 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" @@ -4323,167 +4339,216 @@ gboolean import_preview_is_already_imported (ImportPreview* self) { #line 341 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_tmp25_); #line 341 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp30_) { -#line 4327 "ImportPage.c" - LibraryPhotoSourceCollection* _tmp31_ = NULL; - ImportSource* _tmp32_ = NULL; - ImportSource* _tmp33_ = NULL; - gchar* _tmp34_ = NULL; - gchar* _tmp35_ = NULL; - guint64 _tmp36_ = 0ULL; - PhotoID _tmp37_ = {0}; - DuplicatedFile* _tmp38_ = NULL; -#line 344 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp31_ = library_photo_global; -#line 344 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp32_ = import_preview_get_import_source (self); -#line 344 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp33_ = _tmp32_; -#line 344 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp34_ = import_source_get_filename (_tmp33_); -#line 344 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp35_ = _tmp34_; -#line 344 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp36_ = filesize; -#line 344 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - library_photo_source_collection_get_basename_filesize_duplicate (_tmp31_, _tmp35_, (gint64) _tmp36_, &_tmp37_); -#line 344 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp38_ = duplicated_file_create_from_photo_id (&_tmp37_); -#line 344 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (self->priv->duplicated_file); -#line 344 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->duplicated_file = _tmp38_; + duplicated_photo_id = _tmp30_; #line 344 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp35_); + _tmp31_ = photo_id_is_valid (&duplicated_photo_id); #line 344 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp33_); + if (_tmp31_) { +#line 4347 "ImportPage.c" + LibraryPhoto* duplicated_photo = NULL; + LibraryPhotoSourceCollection* _tmp32_ = NULL; + PhotoID _tmp33_ = {0}; + LibraryPhoto* _tmp34_ = NULL; + time_t photo_exposure_time = 0; + PhotoImportSource* _tmp35_ = NULL; + time_t _tmp36_ = 0; + time_t duplicated_photo_exposure_time = 0; + LibraryPhoto* _tmp37_ = NULL; + time_t _tmp38_ = 0; + time_t _tmp39_ = 0; + time_t _tmp40_ = 0; +#line 346 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp32_ = library_photo_global; +#line 346 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp33_ = duplicated_photo_id; +#line 346 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp34_ = library_photo_source_collection_fetch (_tmp32_, &_tmp33_); +#line 346 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + duplicated_photo = _tmp34_; +#line 347 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp35_ = photo_import_source; +#line 347 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp36_ = import_source_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, TYPE_IMPORT_SOURCE, ImportSource)); +#line 347 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + photo_exposure_time = _tmp36_; #line 348 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = TRUE; -#line 348 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (preview_md5); + _tmp37_ = duplicated_photo; #line 348 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (photo_import_source); + _tmp38_ = media_source_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, TYPE_MEDIA_SOURCE, MediaSource)); #line 348 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 4368 "ImportPage.c" + duplicated_photo_exposure_time = _tmp38_; +#line 350 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp39_ = photo_exposure_time; +#line 350 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp40_ = duplicated_photo_exposure_time; +#line 350 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + if (_tmp39_ == _tmp40_) { +#line 4386 "ImportPage.c" + LibraryPhotoSourceCollection* _tmp41_ = NULL; + ImportSource* _tmp42_ = NULL; + ImportSource* _tmp43_ = NULL; + gchar* _tmp44_ = NULL; + gchar* _tmp45_ = NULL; + guint64 _tmp46_ = 0ULL; + PhotoID _tmp47_ = {0}; + DuplicatedFile* _tmp48_ = NULL; +#line 351 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp41_ = library_photo_global; +#line 351 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp42_ = import_preview_get_import_source (self); +#line 351 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp43_ = _tmp42_; +#line 351 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp44_ = import_source_get_filename (_tmp43_); +#line 351 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp45_ = _tmp44_; +#line 351 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp46_ = filesize; +#line 351 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + library_photo_source_collection_get_basename_filesize_duplicate (_tmp41_, _tmp45_, (gint64) _tmp46_, &_tmp47_); +#line 351 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp48_ = duplicated_file_create_from_photo_id (&_tmp47_); +#line 351 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _g_object_unref0 (self->priv->duplicated_file); +#line 351 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + self->priv->duplicated_file = _tmp48_; +#line 351 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _g_free0 (_tmp45_); +#line 351 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _g_object_unref0 (_tmp43_); +#line 355 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + result = TRUE; +#line 355 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _g_object_unref0 (duplicated_photo); +#line 355 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _g_free0 (preview_md5); +#line 355 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _g_object_unref0 (photo_import_source); +#line 355 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + return result; +#line 4429 "ImportPage.c" + } +#line 344 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _g_object_unref0 (duplicated_photo); +#line 4433 "ImportPage.c" } } } -#line 353 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 361 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = FALSE; -#line 353 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 361 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (preview_md5); -#line 353 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 361 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (photo_import_source); -#line 353 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 361 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 4380 "ImportPage.c" - } -#line 356 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp39_ = import_preview_get_import_source (self); -#line 356 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp40_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp39_, TYPE_VIDEO_IMPORT_SOURCE) ? ((VideoImportSource*) _tmp39_) : NULL; -#line 356 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp40_ == NULL) { -#line 356 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp39_); -#line 4390 "ImportPage.c" - } -#line 356 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - video_import_source = _tmp40_; -#line 357 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp41_ = video_import_source; -#line 357 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp41_ != NULL) { -#line 4398 "ImportPage.c" - VideoSourceCollection* _tmp42_ = NULL; - VideoImportSource* _tmp43_ = NULL; - gchar* _tmp44_ = NULL; - gchar* _tmp45_ = NULL; - VideoImportSource* _tmp46_ = NULL; - gulong _tmp47_ = 0UL; - gboolean _tmp48_ = FALSE; - gboolean _tmp49_ = FALSE; -#line 362 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp42_ = video_global; -#line 362 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp43_ = video_import_source; -#line 362 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp44_ = import_source_get_filename (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, TYPE_IMPORT_SOURCE, ImportSource)); -#line 362 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp45_ = _tmp44_; -#line 362 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp46_ = video_import_source; -#line 362 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp47_ = import_source_get_filesize (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, TYPE_IMPORT_SOURCE, ImportSource)); -#line 362 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp48_ = video_source_collection_has_basename_filesize_duplicate (_tmp42_, _tmp45_, (guint64) _tmp47_); -#line 362 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp49_ = _tmp48_; -#line 362 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp45_); -#line 362 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp49_) { -#line 4427 "ImportPage.c" - VideoSourceCollection* _tmp50_ = NULL; - VideoImportSource* _tmp51_ = NULL; - gchar* _tmp52_ = NULL; - gchar* _tmp53_ = NULL; - VideoImportSource* _tmp54_ = NULL; - gulong _tmp55_ = 0UL; - VideoID _tmp56_ = {0}; - DuplicatedFile* _tmp57_ = NULL; -#line 365 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp50_ = video_global; -#line 365 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp51_ = video_import_source; -#line 365 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp52_ = import_source_get_filename (G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, TYPE_IMPORT_SOURCE, ImportSource)); -#line 365 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp53_ = _tmp52_; -#line 365 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp54_ = video_import_source; -#line 365 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp55_ = import_source_get_filesize (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, TYPE_IMPORT_SOURCE, ImportSource)); -#line 365 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - video_source_collection_get_basename_filesize_duplicate (_tmp50_, _tmp53_, (guint64) _tmp55_, &_tmp56_); -#line 365 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp57_ = duplicated_file_create_from_video_id (&_tmp56_); -#line 365 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (self->priv->duplicated_file); +#line 4445 "ImportPage.c" + } +#line 364 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp49_ = import_preview_get_import_source (self); +#line 364 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp50_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp49_, TYPE_VIDEO_IMPORT_SOURCE) ? ((VideoImportSource*) _tmp49_) : NULL; +#line 364 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + if (_tmp50_ == NULL) { +#line 364 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _g_object_unref0 (_tmp49_); +#line 4455 "ImportPage.c" + } +#line 364 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + video_import_source = _tmp50_; #line 365 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->duplicated_file = _tmp57_; + _tmp51_ = video_import_source; #line 365 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp53_); + if (_tmp51_ != NULL) { +#line 4463 "ImportPage.c" + VideoSourceCollection* _tmp52_ = NULL; + VideoImportSource* _tmp53_ = NULL; + gchar* _tmp54_ = NULL; + gchar* _tmp55_ = NULL; + VideoImportSource* _tmp56_ = NULL; + gulong _tmp57_ = 0UL; + gboolean _tmp58_ = FALSE; + gboolean _tmp59_ = FALSE; #line 370 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = TRUE; + _tmp52_ = video_global; #line 370 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (video_import_source); + _tmp53_ = video_import_source; #line 370 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (photo_import_source); + _tmp54_ = import_source_get_filename (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, TYPE_IMPORT_SOURCE, ImportSource)); +#line 370 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp55_ = _tmp54_; +#line 370 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp56_ = video_import_source; #line 370 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp57_ = import_source_get_filesize (G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, TYPE_IMPORT_SOURCE, ImportSource)); +#line 370 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp58_ = video_source_collection_has_basename_filesize_duplicate (_tmp52_, _tmp55_, (guint64) _tmp57_); +#line 370 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp59_ = _tmp58_; +#line 370 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _g_free0 (_tmp55_); +#line 370 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + if (_tmp59_) { +#line 4492 "ImportPage.c" + VideoSourceCollection* _tmp60_ = NULL; + VideoImportSource* _tmp61_ = NULL; + gchar* _tmp62_ = NULL; + gchar* _tmp63_ = NULL; + VideoImportSource* _tmp64_ = NULL; + gulong _tmp65_ = 0UL; + VideoID _tmp66_ = {0}; + DuplicatedFile* _tmp67_ = NULL; +#line 373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp60_ = video_global; +#line 373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp61_ = video_import_source; +#line 373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp62_ = import_source_get_filename (G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, TYPE_IMPORT_SOURCE, ImportSource)); +#line 373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp63_ = _tmp62_; +#line 373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp64_ = video_import_source; +#line 373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp65_ = import_source_get_filesize (G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, TYPE_IMPORT_SOURCE, ImportSource)); +#line 373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + video_source_collection_get_basename_filesize_duplicate (_tmp60_, _tmp63_, (guint64) _tmp65_, &_tmp66_); +#line 373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp67_ = duplicated_file_create_from_video_id (&_tmp66_); +#line 373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _g_object_unref0 (self->priv->duplicated_file); +#line 373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + self->priv->duplicated_file = _tmp67_; +#line 373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _g_free0 (_tmp63_); +#line 378 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + result = TRUE; +#line 378 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _g_object_unref0 (video_import_source); +#line 378 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _g_object_unref0 (photo_import_source); +#line 378 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 4466 "ImportPage.c" +#line 4531 "ImportPage.c" } -#line 373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 381 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = FALSE; -#line 373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 381 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (video_import_source); -#line 373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 381 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (photo_import_source); -#line 373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 381 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 4476 "ImportPage.c" +#line 4541 "ImportPage.c" } -#line 376 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 384 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = FALSE; -#line 376 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 384 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (video_import_source); -#line 376 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 384 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (photo_import_source); -#line 376 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 384 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 4486 "ImportPage.c" +#line 4551 "ImportPage.c" } @@ -4492,42 +4557,42 @@ DuplicatedFile* import_preview_get_duplicated_file (ImportPreview* self) { gboolean _tmp0_ = FALSE; DuplicatedFile* _tmp1_ = NULL; DuplicatedFile* _tmp2_ = NULL; -#line 379 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 387 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (IS_IMPORT_PREVIEW (self), NULL); -#line 380 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 388 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = import_preview_is_already_imported (self); -#line 380 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 388 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (!_tmp0_) { -#line 381 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 389 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = NULL; -#line 381 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 389 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 4505 "ImportPage.c" +#line 4570 "ImportPage.c" } -#line 383 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 391 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = self->priv->duplicated_file; -#line 383 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 391 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = _g_object_ref0 (_tmp1_); -#line 383 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 391 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = _tmp2_; -#line 383 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 391 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 4515 "ImportPage.c" +#line 4580 "ImportPage.c" } ImportSource* import_preview_get_import_source (ImportPreview* self) { ImportSource* result = NULL; DataSource* _tmp0_ = NULL; -#line 386 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 394 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (IS_IMPORT_PREVIEW (self), NULL); -#line 387 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 395 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = data_view_get_source (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_VIEW, DataView)); -#line 387 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 395 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_IMPORT_SOURCE, ImportSource); -#line 387 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 395 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 4530 "ImportPage.c" +#line 4595 "ImportPage.c" } @@ -4538,14 +4603,14 @@ static void import_preview_class_init (ImportPreviewClass * klass) { g_type_class_add_private (klass, sizeof (ImportPreviewPrivate)); #line 264 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" G_OBJECT_CLASS (klass)->finalize = import_preview_finalize; -#line 4541 "ImportPage.c" +#line 4606 "ImportPage.c" } static void import_preview_instance_init (ImportPreview * self) { #line 264 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv = IMPORT_PREVIEW_GET_PRIVATE (self); -#line 4548 "ImportPage.c" +#line 4613 "ImportPage.c" } @@ -4557,7 +4622,7 @@ static void import_preview_finalize (GObject* obj) { _g_object_unref0 (self->priv->duplicated_file); #line 264 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" G_OBJECT_CLASS (import_preview_parent_class)->finalize (obj); -#line 4560 "ImportPage.c" +#line 4625 "ImportPage.c" } @@ -4579,39 +4644,39 @@ CameraViewTracker* camera_view_tracker_construct (GType object_type, ViewCollect CameraAccumulator* _tmp1_ = NULL; CameraAccumulator* _tmp2_ = NULL; CameraAccumulator* _tmp3_ = NULL; -#line 396 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 404 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (IS_VIEW_COLLECTION (collection), NULL); -#line 397 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 405 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = collection; -#line 397 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 405 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self = (CameraViewTracker*) core_view_tracker_construct (object_type, _tmp0_); -#line 399 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 407 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = self->all; -#line 399 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 407 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = self->visible; -#line 399 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 407 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp3_ = self->selected; -#line 399 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 407 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" core_view_tracker_start (G_TYPE_CHECK_INSTANCE_CAST (self, CORE_TYPE_VIEW_TRACKER, CoreViewTracker), G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, CORE_TYPE_TRACKER_ACCUMULATOR, CoreTrackerAccumulator), G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, CORE_TYPE_TRACKER_ACCUMULATOR, CoreTrackerAccumulator), G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, CORE_TYPE_TRACKER_ACCUMULATOR, CoreTrackerAccumulator)); -#line 396 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 404 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return self; -#line 4598 "ImportPage.c" +#line 4663 "ImportPage.c" } CameraViewTracker* camera_view_tracker_new (ViewCollection* collection) { -#line 396 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 404 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return camera_view_tracker_construct (TYPE_CAMERA_VIEW_TRACKER, collection); -#line 4605 "ImportPage.c" +#line 4670 "ImportPage.c" } static void camera_view_tracker_class_init (CameraViewTrackerClass * klass) { -#line 391 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 399 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" camera_view_tracker_parent_class = g_type_class_peek_parent (klass); -#line 391 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 399 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" ((CoreTrackerClass *) klass)->finalize = camera_view_tracker_finalize; -#line 4614 "ImportPage.c" +#line 4679 "ImportPage.c" } @@ -4619,35 +4684,35 @@ static void camera_view_tracker_instance_init (CameraViewTracker * self) { CameraAccumulator* _tmp0_ = NULL; CameraAccumulator* _tmp1_ = NULL; CameraAccumulator* _tmp2_ = NULL; -#line 392 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 400 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = camera_accumulator_new (); -#line 392 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 400 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->all = _tmp0_; -#line 393 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 401 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = camera_accumulator_new (); -#line 393 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 401 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->visible = _tmp1_; -#line 394 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 402 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = camera_accumulator_new (); -#line 394 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 402 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->selected = _tmp2_; -#line 4634 "ImportPage.c" +#line 4699 "ImportPage.c" } static void camera_view_tracker_finalize (CoreTracker* obj) { CameraViewTracker * self; -#line 391 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 399 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CAMERA_VIEW_TRACKER, CameraViewTracker); -#line 392 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 400 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (self->all); -#line 393 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 401 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (self->visible); -#line 394 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 402 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (self->selected); -#line 391 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 399 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" CORE_TRACKER_CLASS (camera_view_tracker_parent_class)->finalize (obj); -#line 4650 "ImportPage.c" +#line 4715 "ImportPage.c" } @@ -4675,110 +4740,110 @@ static gboolean camera_accumulator_real_include (CoreTrackerAccumulator* base, D PhotoImportSource* _tmp4_ = NULL; gboolean _tmp5_ = FALSE; PhotoImportSource* _tmp6_ = NULL; -#line 409 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 417 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CAMERA_ACCUMULATOR, CameraAccumulator); -#line 409 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 417 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE); -#line 410 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 418 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = object; -#line 410 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 418 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = data_view_get_source (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_VIEW, DataView)); -#line 410 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 418 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" source = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_IMPORT_SOURCE, ImportSource); -#line 412 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 420 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = self->priv->_total; -#line 412 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 420 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" camera_accumulator_set_total (self, _tmp2_ + 1); -#line 414 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 422 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp3_ = source; -#line 414 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 422 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp4_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, TYPE_PHOTO_IMPORT_SOURCE) ? ((PhotoImportSource*) _tmp3_) : NULL); -#line 414 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 422 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" photo = _tmp4_; -#line 415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp6_ = photo; -#line 415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp6_ != NULL) { -#line 4702 "ImportPage.c" +#line 4767 "ImportPage.c" PhotoImportSource* _tmp7_ = NULL; PhotoFileFormat _tmp8_ = 0; -#line 415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp7_ = photo; -#line 415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp8_ = photo_import_source_get_file_format (_tmp7_); -#line 415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp5_ = _tmp8_ != PHOTO_FILE_FORMAT_RAW; -#line 4711 "ImportPage.c" +#line 4776 "ImportPage.c" } else { -#line 415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp5_ = FALSE; -#line 4715 "ImportPage.c" +#line 4780 "ImportPage.c" } -#line 415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp5_) { -#line 4719 "ImportPage.c" +#line 4784 "ImportPage.c" gint _tmp9_ = 0; -#line 416 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 424 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp9_ = self->priv->_photos; -#line 416 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 424 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" camera_accumulator_set_photos (self, _tmp9_ + 1); -#line 4725 "ImportPage.c" +#line 4790 "ImportPage.c" } else { gboolean _tmp10_ = FALSE; PhotoImportSource* _tmp11_ = NULL; -#line 417 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 425 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp11_ = photo; -#line 417 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 425 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp11_ != NULL) { -#line 4733 "ImportPage.c" +#line 4798 "ImportPage.c" PhotoImportSource* _tmp12_ = NULL; PhotoFileFormat _tmp13_ = 0; -#line 417 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 425 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp12_ = photo; -#line 417 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 425 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp13_ = photo_import_source_get_file_format (_tmp12_); -#line 417 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 425 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp10_ = _tmp13_ == PHOTO_FILE_FORMAT_RAW; -#line 4742 "ImportPage.c" +#line 4807 "ImportPage.c" } else { -#line 417 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 425 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp10_ = FALSE; -#line 4746 "ImportPage.c" +#line 4811 "ImportPage.c" } -#line 417 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 425 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp10_) { -#line 4750 "ImportPage.c" +#line 4815 "ImportPage.c" gint _tmp14_ = 0; -#line 418 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 426 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp14_ = self->priv->_raw; -#line 418 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 426 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" camera_accumulator_set_raw (self, _tmp14_ + 1); -#line 4756 "ImportPage.c" +#line 4821 "ImportPage.c" } else { ImportSource* _tmp15_ = NULL; -#line 419 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 427 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp15_ = source; -#line 419 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 427 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp15_, TYPE_VIDEO_IMPORT_SOURCE)) { -#line 4763 "ImportPage.c" +#line 4828 "ImportPage.c" gint _tmp16_ = 0; -#line 420 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 428 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp16_ = self->priv->_videos; -#line 420 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 428 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" camera_accumulator_set_videos (self, _tmp16_ + 1); -#line 4769 "ImportPage.c" +#line 4834 "ImportPage.c" } } } -#line 423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 431 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = TRUE; -#line 423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 431 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (photo); -#line 423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 431 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (source); -#line 423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 431 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 4781 "ImportPage.c" +#line 4846 "ImportPage.c" } @@ -4794,142 +4859,142 @@ static gboolean camera_accumulator_real_uninclude (CoreTrackerAccumulator* base, PhotoImportSource* _tmp4_ = NULL; gboolean _tmp5_ = FALSE; PhotoImportSource* _tmp6_ = NULL; -#line 426 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 434 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CAMERA_ACCUMULATOR, CameraAccumulator); -#line 426 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 434 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE); -#line 427 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 435 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = object; -#line 427 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 435 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = data_view_get_source (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_VIEW, DataView)); -#line 427 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 435 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" source = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_IMPORT_SOURCE, ImportSource); -#line 429 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = self->priv->_total; -#line 429 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" camera_accumulator_set_total (self, _tmp2_ + 1); -#line 431 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 439 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp3_ = source; -#line 431 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 439 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp4_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, TYPE_PHOTO_IMPORT_SOURCE) ? ((PhotoImportSource*) _tmp3_) : NULL); -#line 431 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 439 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" photo = _tmp4_; -#line 432 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 440 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp6_ = photo; -#line 432 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 440 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp6_ != NULL) { -#line 4821 "ImportPage.c" +#line 4886 "ImportPage.c" PhotoImportSource* _tmp7_ = NULL; PhotoFileFormat _tmp8_ = 0; -#line 432 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 440 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp7_ = photo; -#line 432 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 440 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp8_ = photo_import_source_get_file_format (_tmp7_); -#line 432 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 440 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp5_ = _tmp8_ != PHOTO_FILE_FORMAT_RAW; -#line 4830 "ImportPage.c" +#line 4895 "ImportPage.c" } else { -#line 432 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 440 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp5_ = FALSE; -#line 4834 "ImportPage.c" +#line 4899 "ImportPage.c" } -#line 432 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 440 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp5_) { -#line 4838 "ImportPage.c" +#line 4903 "ImportPage.c" gint _tmp9_ = 0; gint _tmp10_ = 0; -#line 433 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 441 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp9_ = self->priv->_photos; -#line 433 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 441 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _vala_assert (_tmp9_ > 0, "photos > 0"); -#line 434 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 442 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp10_ = self->priv->_photos; -#line 434 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 442 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" camera_accumulator_set_photos (self, _tmp10_ - 1); -#line 4849 "ImportPage.c" +#line 4914 "ImportPage.c" } else { gboolean _tmp11_ = FALSE; PhotoImportSource* _tmp12_ = NULL; -#line 435 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 443 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp12_ = photo; -#line 435 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 443 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp12_ != NULL) { -#line 4857 "ImportPage.c" +#line 4922 "ImportPage.c" PhotoImportSource* _tmp13_ = NULL; PhotoFileFormat _tmp14_ = 0; -#line 435 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 443 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp13_ = photo; -#line 435 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 443 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp14_ = photo_import_source_get_file_format (_tmp13_); -#line 435 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 443 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp11_ = _tmp14_ == PHOTO_FILE_FORMAT_RAW; -#line 4866 "ImportPage.c" +#line 4931 "ImportPage.c" } else { -#line 435 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 443 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp11_ = FALSE; -#line 4870 "ImportPage.c" +#line 4935 "ImportPage.c" } -#line 435 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 443 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp11_) { -#line 4874 "ImportPage.c" +#line 4939 "ImportPage.c" gint _tmp15_ = 0; gint _tmp16_ = 0; -#line 436 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 444 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp15_ = self->priv->_raw; -#line 436 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 444 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _vala_assert (_tmp15_ > 0, "raw > 0"); -#line 437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 445 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp16_ = self->priv->_raw; -#line 437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 445 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" camera_accumulator_set_raw (self, _tmp16_ - 1); -#line 4885 "ImportPage.c" +#line 4950 "ImportPage.c" } else { ImportSource* _tmp17_ = NULL; -#line 438 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 446 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp17_ = source; -#line 438 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 446 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp17_, TYPE_VIDEO_IMPORT_SOURCE)) { -#line 4892 "ImportPage.c" +#line 4957 "ImportPage.c" gint _tmp18_ = 0; gint _tmp19_ = 0; -#line 439 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 447 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp18_ = self->priv->_videos; -#line 439 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 447 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _vala_assert (_tmp18_ > 0, "videos > 0"); -#line 440 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 448 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp19_ = self->priv->_videos; -#line 440 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 448 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" camera_accumulator_set_videos (self, _tmp19_ - 1); -#line 4903 "ImportPage.c" +#line 4968 "ImportPage.c" } } } -#line 444 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 452 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = TRUE; -#line 444 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 452 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (photo); -#line 444 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 452 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (source); -#line 444 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 452 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 4915 "ImportPage.c" +#line 4980 "ImportPage.c" } static gboolean camera_accumulator_real_altered (CoreTrackerAccumulator* base, DataObject* object, Alteration* alteration) { CameraAccumulator * self; gboolean result = FALSE; -#line 447 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 455 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CAMERA_ACCUMULATOR, CameraAccumulator); -#line 447 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 455 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE); -#line 447 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 455 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (IS_ALTERATION (alteration), FALSE); -#line 449 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 457 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = FALSE; -#line 449 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 457 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 4932 "ImportPage.c" +#line 4997 "ImportPage.c" } @@ -4940,217 +5005,217 @@ gchar* camera_accumulator_to_string (CameraAccumulator* self) { gint _tmp2_ = 0; gint _tmp3_ = 0; gchar* _tmp4_ = NULL; -#line 452 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 460 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (IS_CAMERA_ACCUMULATOR (self), NULL); -#line 453 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 461 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = self->priv->_total; -#line 453 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 461 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = self->priv->_photos; -#line 453 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 461 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = self->priv->_videos; -#line 453 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 461 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp3_ = self->priv->_raw; -#line 453 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 461 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp4_ = g_strdup_printf ("%d total/%d photos/%d videos/%d raw", _tmp0_, _tmp1_, _tmp2_, _tmp3_); -#line 453 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 461 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = _tmp4_; -#line 453 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 461 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 4959 "ImportPage.c" +#line 5024 "ImportPage.c" } CameraAccumulator* camera_accumulator_construct (GType object_type) { CameraAccumulator * self = NULL; -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self = (CameraAccumulator*) g_object_new (object_type, NULL); -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return self; -#line 4969 "ImportPage.c" +#line 5034 "ImportPage.c" } CameraAccumulator* camera_accumulator_new (void) { -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return camera_accumulator_construct (TYPE_CAMERA_ACCUMULATOR); -#line 4976 "ImportPage.c" +#line 5041 "ImportPage.c" } gint camera_accumulator_get_total (CameraAccumulator* self) { gint result; gint _tmp0_ = 0; -#line 404 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 412 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (IS_CAMERA_ACCUMULATOR (self), 0); -#line 404 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 412 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = self->priv->_total; -#line 404 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 412 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = _tmp0_; -#line 404 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 412 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 4991 "ImportPage.c" +#line 5056 "ImportPage.c" } static void camera_accumulator_set_total (CameraAccumulator* self, gint value) { gint _tmp0_ = 0; -#line 404 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 412 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_if_fail (IS_CAMERA_ACCUMULATOR (self)); -#line 404 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 412 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = value; -#line 404 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 412 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->_total = _tmp0_; -#line 404 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 412 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_object_notify ((GObject *) self, "total"); -#line 5005 "ImportPage.c" +#line 5070 "ImportPage.c" } gint camera_accumulator_get_photos (CameraAccumulator* self) { gint result; gint _tmp0_ = 0; -#line 405 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 413 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (IS_CAMERA_ACCUMULATOR (self), 0); -#line 405 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 413 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = self->priv->_photos; -#line 405 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 413 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = _tmp0_; -#line 405 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 413 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 5020 "ImportPage.c" +#line 5085 "ImportPage.c" } static void camera_accumulator_set_photos (CameraAccumulator* self, gint value) { gint _tmp0_ = 0; -#line 405 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 413 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_if_fail (IS_CAMERA_ACCUMULATOR (self)); -#line 405 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 413 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = value; -#line 405 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 413 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->_photos = _tmp0_; -#line 405 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 413 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_object_notify ((GObject *) self, "photos"); -#line 5034 "ImportPage.c" +#line 5099 "ImportPage.c" } gint camera_accumulator_get_videos (CameraAccumulator* self) { gint result; gint _tmp0_ = 0; -#line 406 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 414 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (IS_CAMERA_ACCUMULATOR (self), 0); -#line 406 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 414 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = self->priv->_videos; -#line 406 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 414 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = _tmp0_; -#line 406 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 414 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 5049 "ImportPage.c" +#line 5114 "ImportPage.c" } static void camera_accumulator_set_videos (CameraAccumulator* self, gint value) { gint _tmp0_ = 0; -#line 406 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 414 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_if_fail (IS_CAMERA_ACCUMULATOR (self)); -#line 406 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 414 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = value; -#line 406 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 414 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->_videos = _tmp0_; -#line 406 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 414 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_object_notify ((GObject *) self, "videos"); -#line 5063 "ImportPage.c" +#line 5128 "ImportPage.c" } gint camera_accumulator_get_raw (CameraAccumulator* self) { gint result; gint _tmp0_ = 0; -#line 407 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (IS_CAMERA_ACCUMULATOR (self), 0); -#line 407 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = self->priv->_raw; -#line 407 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = _tmp0_; -#line 407 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 5078 "ImportPage.c" +#line 5143 "ImportPage.c" } static void camera_accumulator_set_raw (CameraAccumulator* self, gint value) { gint _tmp0_ = 0; -#line 407 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_if_fail (IS_CAMERA_ACCUMULATOR (self)); -#line 407 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = value; -#line 407 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->_raw = _tmp0_; -#line 407 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_object_notify ((GObject *) self, "raw"); -#line 5092 "ImportPage.c" +#line 5157 "ImportPage.c" } static void camera_accumulator_class_init (CameraAccumulatorClass * klass) { -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" camera_accumulator_parent_class = g_type_class_peek_parent (klass); -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_type_class_add_private (klass, sizeof (CameraAccumulatorPrivate)); -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" G_OBJECT_CLASS (klass)->get_property = _vala_camera_accumulator_get_property; -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" G_OBJECT_CLASS (klass)->set_property = _vala_camera_accumulator_set_property; -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" G_OBJECT_CLASS (klass)->finalize = camera_accumulator_finalize; -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_object_class_install_property (G_OBJECT_CLASS (klass), CAMERA_ACCUMULATOR_TOTAL, g_param_spec_int ("total", "total", "total", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE)); -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_object_class_install_property (G_OBJECT_CLASS (klass), CAMERA_ACCUMULATOR_PHOTOS, g_param_spec_int ("photos", "photos", "photos", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE)); -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_object_class_install_property (G_OBJECT_CLASS (klass), CAMERA_ACCUMULATOR_VIDEOS, g_param_spec_int ("videos", "videos", "videos", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE)); -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_object_class_install_property (G_OBJECT_CLASS (klass), CAMERA_ACCUMULATOR_RAW, g_param_spec_int ("raw", "raw", "raw", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE)); -#line 5115 "ImportPage.c" +#line 5180 "ImportPage.c" } static void camera_accumulator_core_tracker_accumulator_interface_init (CoreTrackerAccumulatorIface * iface) { -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" camera_accumulator_core_tracker_accumulator_parent_iface = g_type_interface_peek_parent (iface); -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" iface->include = (gboolean (*)(CoreTrackerAccumulator*, DataObject*)) camera_accumulator_real_include; -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" iface->uninclude = (gboolean (*)(CoreTrackerAccumulator*, DataObject*)) camera_accumulator_real_uninclude; -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" iface->altered = (gboolean (*)(CoreTrackerAccumulator*, DataObject*, Alteration*)) camera_accumulator_real_altered; -#line 5128 "ImportPage.c" +#line 5193 "ImportPage.c" } static void camera_accumulator_instance_init (CameraAccumulator * self) { -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv = CAMERA_ACCUMULATOR_GET_PRIVATE (self); -#line 404 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 412 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->_total = 0; -#line 405 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 413 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->_photos = 0; -#line 406 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 414 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->_videos = 0; -#line 407 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->_raw = 0; -#line 5143 "ImportPage.c" +#line 5208 "ImportPage.c" } static void camera_accumulator_finalize (GObject* obj) { CameraAccumulator * self; -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CAMERA_ACCUMULATOR, CameraAccumulator); -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" G_OBJECT_CLASS (camera_accumulator_parent_class)->finalize (obj); -#line 5153 "ImportPage.c" +#line 5218 "ImportPage.c" } @@ -5171,39 +5236,39 @@ GType camera_accumulator_get_type (void) { static void _vala_camera_accumulator_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) { CameraAccumulator * self; self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_CAMERA_ACCUMULATOR, CameraAccumulator); -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" switch (property_id) { -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" case CAMERA_ACCUMULATOR_TOTAL: -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_value_set_int (value, camera_accumulator_get_total (self)); -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" break; -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" case CAMERA_ACCUMULATOR_PHOTOS: -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_value_set_int (value, camera_accumulator_get_photos (self)); -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" break; -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" case CAMERA_ACCUMULATOR_VIDEOS: -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_value_set_int (value, camera_accumulator_get_videos (self)); -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" break; -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" case CAMERA_ACCUMULATOR_RAW: -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_value_set_int (value, camera_accumulator_get_raw (self)); -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" break; -#line 5200 "ImportPage.c" +#line 5265 "ImportPage.c" default: -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" break; -#line 5206 "ImportPage.c" +#line 5271 "ImportPage.c" } } @@ -5211,47 +5276,47 @@ static void _vala_camera_accumulator_get_property (GObject * object, guint prope static void _vala_camera_accumulator_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) { CameraAccumulator * self; self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_CAMERA_ACCUMULATOR, CameraAccumulator); -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" switch (property_id) { -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" case CAMERA_ACCUMULATOR_TOTAL: -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" camera_accumulator_set_total (self, g_value_get_int (value)); -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" break; -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" case CAMERA_ACCUMULATOR_PHOTOS: -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" camera_accumulator_set_photos (self, g_value_get_int (value)); -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" break; -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" case CAMERA_ACCUMULATOR_VIDEOS: -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" camera_accumulator_set_videos (self, g_value_get_int (value)); -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" break; -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" case CAMERA_ACCUMULATOR_RAW: -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" camera_accumulator_set_raw (self, g_value_get_int (value)); -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" break; -#line 5240 "ImportPage.c" +#line 5305 "ImportPage.c" default: -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 403 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" break; -#line 5246 "ImportPage.c" +#line 5311 "ImportPage.c" } } static void _import_page_on_media_added_removed_data_collection_contents_altered (DataCollection* _sender, GeeIterable* added, GeeIterable* removed, gpointer self) { -#line 766 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 774 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_on_media_added_removed ((ImportPage*) self); -#line 5254 "ImportPage.c" +#line 5319 "ImportPage.c" } @@ -5268,69 +5333,69 @@ GType import_page_refresh_result_get_type (void) { static void _import_page_on_import_selected_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { -#line 868 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 883 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_on_import_selected ((ImportPage*) self); -#line 5273 "ImportPage.c" +#line 5338 "ImportPage.c" } static void _import_page_on_import_all_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { -#line 868 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 883 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_on_import_all ((ImportPage*) self); -#line 5280 "ImportPage.c" +#line 5345 "ImportPage.c" } static void _page_on_action_toggle_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { -#line 868 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 883 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" page_on_action_toggle ((Page*) self, action, parameter); -#line 5287 "ImportPage.c" +#line 5352 "ImportPage.c" } static void _import_page_on_display_titles_gsimple_action_change_state_callback (GSimpleAction* action, GVariant* value, gpointer self) { -#line 868 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 883 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_on_display_titles ((ImportPage*) self, action, value); -#line 5294 "ImportPage.c" +#line 5359 "ImportPage.c" } static gint64 _import_page_preview_comparator_comparator (void* a, void* b, gpointer self) { gint64 result; result = import_page_preview_comparator (a, b); -#line 747 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 755 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 5303 "ImportPage.c" +#line 5368 "ImportPage.c" } static gboolean _import_page_preview_comparator_predicate_comparator_predicate (DataObject* object, Alteration* alteration, gpointer self) { gboolean result; result = import_page_preview_comparator_predicate (object, alteration); -#line 747 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 755 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 5312 "ImportPage.c" +#line 5377 "ImportPage.c" } static void _import_page_on_view_changed_view_collection_items_state_changed (ViewCollection* _sender, GeeIterable* changed, gpointer self) { -#line 750 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 758 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_on_view_changed ((ImportPage*) self); -#line 5319 "ImportPage.c" +#line 5384 "ImportPage.c" } static void _import_page_on_view_changed_data_collection_contents_altered (DataCollection* _sender, GeeIterable* added, GeeIterable* removed, gpointer self) { -#line 751 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 759 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_on_view_changed ((ImportPage*) self); -#line 5326 "ImportPage.c" +#line 5391 "ImportPage.c" } static void _import_page_on_view_changed_view_collection_items_visibility_changed (ViewCollection* _sender, GeeCollection* changed, gpointer self) { -#line 752 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 760 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_on_view_changed ((ImportPage*) self); -#line 5333 "ImportPage.c" +#line 5398 "ImportPage.c" } @@ -5377,80 +5442,80 @@ ImportPage* import_page_construct (GType object_type, Camera* camera, const gcha GValue _tmp51_ = {0}; LibraryPhotoSourceCollection* _tmp52_ = NULL; VideoSourceCollection* _tmp53_ = NULL; -#line 709 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 717 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (camera != NULL, NULL); -#line 709 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 717 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (uri != NULL, NULL); -#line 710 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 718 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = _ ("Camera"); -#line 710 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 718 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self = (ImportPage*) checkerboard_page_construct (object_type, _tmp0_); -#line 711 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 719 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = camera; -#line 711 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 719 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = _GPHOTO_REF_CAMERA0 (_tmp1_); -#line 711 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 719 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _gp_camera_unref0 (self->priv->camera); -#line 711 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 719 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->camera = _tmp2_; -#line 712 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 720 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp3_ = uri; -#line 712 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 720 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp4_ = g_strdup (_tmp3_); -#line 712 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 720 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (self->priv->uri); -#line 712 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 720 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->uri = _tmp4_; -#line 713 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 721 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp5_ = uri; -#line 713 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 721 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp6_ = g_strdup_printf ("ImportSources for %s", _tmp5_); -#line 713 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 721 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp7_ = _tmp6_; -#line 713 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 721 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp8_ = import_source_collection_new (_tmp7_); -#line 713 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 721 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _data_collection_unref0 (self->priv->import_sources); -#line 713 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 721 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->import_sources = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_SOURCE_COLLECTION, SourceCollection); -#line 713 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 721 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (_tmp7_); -#line 714 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 722 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp9_ = icon; -#line 714 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 722 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp10_ = g_strdup (_tmp9_); -#line 714 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 722 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (self->priv->icon); -#line 714 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 722 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->icon = _tmp10_; -#line 716 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 724 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp11_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 716 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 724 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp12_ = _tmp11_; -#line 716 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 724 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp13_ = camera_view_tracker_new (_tmp12_); -#line 716 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 724 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _core_tracker_unref0 (self->priv->tracker); -#line 716 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 724 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->tracker = _tmp13_; -#line 716 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 724 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _data_collection_unref0 (_tmp12_); -#line 719 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 727 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp14_ = display_name; -#line 719 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 727 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (NULL != _tmp14_) { -#line 5442 "ImportPage.c" +#line 5507 "ImportPage.c" const gchar* _tmp15_ = NULL; gchar* _tmp16_ = NULL; -#line 720 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 728 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp15_ = display_name; -#line 720 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 728 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp16_ = g_strdup (_tmp15_); -#line 720 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 728 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (self->priv->camera_name); -#line 720 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 728 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->camera_name = _tmp16_; -#line 5453 "ImportPage.c" +#line 5518 "ImportPage.c" } else { CameraAbilities abilities = {0}; int res = 0; @@ -5458,189 +5523,189 @@ ImportPage* import_page_construct (GType object_type, Camera* camera, const gcha CameraAbilities _tmp18_ = {0}; int _tmp19_ = 0; int _tmp20_ = 0; -#line 723 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 731 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp17_ = camera; -#line 723 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 731 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp19_ = gp_camera_get_abilities (_tmp17_, &_tmp18_); -#line 723 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 731 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" (abilities); -#line 723 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 731 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" abilities = _tmp18_; -#line 723 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 731 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" res = _tmp19_; -#line 724 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 732 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp20_ = res; -#line 724 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 732 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp20_ != GP_OK) { -#line 5475 "ImportPage.c" +#line 5540 "ImportPage.c" int _tmp21_ = 0; gchar* _tmp22_ = NULL; gchar* _tmp23_ = NULL; const gchar* _tmp24_ = NULL; gchar* _tmp25_ = NULL; -#line 725 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 733 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp21_ = res; -#line 725 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 733 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp22_ = gp_result_to_full_string (_tmp21_); -#line 725 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 733 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp23_ = _tmp22_; -#line 725 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_debug ("ImportPage.vala:725: Unable to get camera abilities: %s", _tmp23_); -#line 725 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 733 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + g_debug ("ImportPage.vala:733: Unable to get camera abilities: %s", _tmp23_); +#line 733 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (_tmp23_); -#line 726 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 734 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp24_ = _ ("Camera"); -#line 726 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 734 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp25_ = g_strdup (_tmp24_); -#line 726 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 734 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (self->priv->camera_name); -#line 726 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 734 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->camera_name = _tmp25_; -#line 5499 "ImportPage.c" +#line 5564 "ImportPage.c" } -#line 719 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 727 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" (abilities); -#line 5503 "ImportPage.c" +#line 5568 "ImportPage.c" } -#line 729 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 737 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp26_ = self->priv->camera_label; -#line 729 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 737 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp27_ = self->priv->camera_name; -#line 729 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 737 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_label_set_text (_tmp26_, _tmp27_); -#line 730 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 738 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp28_ = self->priv->camera_name; -#line 730 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 738 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" page_set_page_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), _tmp28_); -#line 733 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 741 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp29_ = g_volume_monitor_get (); -#line 733 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 741 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (self->priv->volume_monitor); -#line 733 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 741 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->volume_monitor = _tmp29_; -#line 736 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 744 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp30_ = import_page_null_context; -#line 736 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 744 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp30_ == NULL) { -#line 5525 "ImportPage.c" +#line 5590 "ImportPage.c" GPContextWrapper* _tmp31_ = NULL; -#line 737 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 745 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp31_ = gp_context_wrapper_new (); -#line 737 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 745 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _gp_context_wrapper_unref0 (import_page_null_context); -#line 737 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 745 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_null_context = _tmp31_; -#line 5533 "ImportPage.c" +#line 5598 "ImportPage.c" } -#line 740 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 748 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp32_ = import_page_spin_idle_context; -#line 740 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 748 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp32_ == NULL) { -#line 5539 "ImportPage.c" +#line 5604 "ImportPage.c" GPSpinIdleWrapper* _tmp33_ = NULL; -#line 741 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 749 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp33_ = gp_spin_idle_wrapper_new (); -#line 741 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 749 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _gp_context_wrapper_unref0 (import_page_spin_idle_context); -#line 741 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 749 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_spin_idle_context = _tmp33_; -#line 5547 "ImportPage.c" +#line 5612 "ImportPage.c" } -#line 744 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 752 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp34_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 744 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 752 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp35_ = _tmp34_; -#line 744 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 752 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp36_ = self->priv->import_sources; -#line 744 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 752 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp37_ = import_page_import_view_manager_new (self); -#line 744 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 752 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp38_ = _tmp37_; -#line 744 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 752 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp39_ = view_collection_monitor_source_collection (_tmp35_, _tmp36_, G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, TYPE_VIEW_MANAGER, ViewManager), NULL, NULL, NULL, NULL); -#line 744 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 752 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp40_ = _tmp39_; -#line 744 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 752 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _view_collection_monitor_unref0 (_tmp40_); -#line 744 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 752 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _view_manager_unref0 (_tmp38_); -#line 744 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 752 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _data_collection_unref0 (_tmp35_); -#line 747 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 755 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp41_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 747 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 755 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp42_ = _tmp41_; -#line 747 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 755 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" data_collection_set_comparator (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, TYPE_DATA_COLLECTION, DataCollection), _import_page_preview_comparator_comparator, NULL, _import_page_preview_comparator_predicate_comparator_predicate, NULL); -#line 747 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 755 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _data_collection_unref0 (_tmp42_); -#line 750 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 758 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp43_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 750 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 758 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp44_ = _tmp43_; -#line 750 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 758 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_signal_connect_object (_tmp44_, "items-state-changed", (GCallback) _import_page_on_view_changed_view_collection_items_state_changed, self, 0); -#line 750 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 758 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _data_collection_unref0 (_tmp44_); -#line 751 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 759 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp45_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 751 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 759 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp46_ = _tmp45_; -#line 751 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 759 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, TYPE_DATA_COLLECTION, DataCollection), "contents-altered", (GCallback) _import_page_on_view_changed_data_collection_contents_altered, self, 0); -#line 751 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 759 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _data_collection_unref0 (_tmp46_); -#line 752 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 760 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp47_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 752 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 760 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp48_ = _tmp47_; -#line 752 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 760 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_signal_connect_object (_tmp48_, "items-visibility-changed", (GCallback) _import_page_on_view_changed_view_collection_items_visibility_changed, self, 0); -#line 752 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 760 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _data_collection_unref0 (_tmp48_); -#line 755 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 763 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp49_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 755 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 763 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp50_ = _tmp49_; -#line 755 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 763 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_value_init (&_tmp51_, G_TYPE_BOOLEAN); -#line 755 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 763 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_value_set_boolean (&_tmp51_, TRUE); -#line 755 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 763 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" data_collection_set_property (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, TYPE_DATA_COLLECTION, DataCollection), CHECKERBOARD_ITEM_PROP_SHOW_SUBTITLES, &_tmp51_, NULL, NULL); -#line 755 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 763 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" G_IS_VALUE (&_tmp51_) ? (g_value_unset (&_tmp51_), NULL) : NULL; -#line 755 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 763 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _data_collection_unref0 (_tmp50_); -#line 758 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 766 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp52_ = library_photo_global; -#line 758 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 766 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, TYPE_DATA_COLLECTION, DataCollection), "contents-altered", (GCallback) _import_page_on_media_added_removed_data_collection_contents_altered, self, 0); -#line 759 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 767 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp53_ = video_global; -#line 759 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 767 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, TYPE_DATA_COLLECTION, DataCollection), "contents-altered", (GCallback) _import_page_on_media_added_removed_data_collection_contents_altered, self, 0); -#line 761 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 769 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" checkerboard_page_init_item_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), "ImportContextMenu"); -#line 762 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 770 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" checkerboard_page_init_page_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), "ImportContextMenu"); -#line 709 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 717 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return self; -#line 5629 "ImportPage.c" +#line 5694 "ImportPage.c" } ImportPage* import_page_new (Camera* camera, const gchar* uri, const gchar* display_name, const gchar* icon) { -#line 709 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 717 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return import_page_construct (TYPE_IMPORT_PAGE, camera, uri, display_name, icon); -#line 5636 "ImportPage.c" +#line 5701 "ImportPage.c" } static void _import_page_on_hide_imported_gtk_button_clicked (GtkButton* _sender, gpointer self) { -#line 777 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_on_hide_imported ((ImportPage*) self); -#line 5643 "ImportPage.c" +#line 5708 "ImportPage.c" } @@ -5648,15 +5713,15 @@ static GtkToolbar* import_page_real_get_toolbar (Page* base) { ImportPage * self; GtkToolbar* result = NULL; GtkToolbar* _tmp0_ = NULL; - GtkToolbar* _tmp50_ = NULL; - GtkToolbar* _tmp51_ = NULL; -#line 770 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + GtkToolbar* _tmp59_ = NULL; + GtkToolbar* _tmp60_ = NULL; +#line 778 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_PAGE, ImportPage); -#line 771 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 779 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->toolbar; -#line 771 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 779 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp0_ == NULL) { -#line 5659 "ImportPage.c" +#line 5724 "ImportPage.c" GtkToolbar* _tmp1_ = NULL; GtkToolbar* _tmp2_ = NULL; const gchar* _tmp3_ = NULL; @@ -5694,244 +5759,285 @@ static GtkToolbar* import_page_real_get_toolbar (Page* base) { GtkToggleToolButton* find_button = NULL; GtkToggleToolButton* _tmp32_ = NULL; GtkToggleToolButton* _tmp33_ = NULL; - GtkToolbar* _tmp34_ = NULL; - GtkToggleToolButton* _tmp35_ = NULL; - GtkToolbar* _tmp36_ = NULL; - GtkSeparatorToolItem* _tmp37_ = NULL; + GtkToggleToolButton* _tmp34_ = NULL; + GtkToolbar* _tmp35_ = NULL; + GtkToggleToolButton* _tmp36_ = NULL; + GtkToolbar* _tmp37_ = NULL; GtkSeparatorToolItem* _tmp38_ = NULL; + GtkSeparatorToolItem* _tmp39_ = NULL; GtkToolButton* import_selected_button = NULL; - GtkToolButton* _tmp39_ = NULL; GtkToolButton* _tmp40_ = NULL; GtkToolButton* _tmp41_ = NULL; - GtkToolbar* _tmp42_ = NULL; - GtkToolButton* _tmp43_ = NULL; - GtkToolButton* import_all_button = NULL; + GtkToolButton* _tmp42_ = NULL; + const gchar* _tmp43_ = NULL; GtkToolButton* _tmp44_ = NULL; GtkToolButton* _tmp45_ = NULL; GtkToolButton* _tmp46_ = NULL; GtkToolbar* _tmp47_ = NULL; GtkToolButton* _tmp48_ = NULL; - GtkProgressBar* _tmp49_ = NULL; -#line 772 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + GtkToolButton* import_all_button = NULL; + GtkToolButton* _tmp49_ = NULL; + GtkToolButton* _tmp50_ = NULL; + GtkToolButton* _tmp51_ = NULL; + const gchar* _tmp52_ = NULL; + GtkToolButton* _tmp53_ = NULL; + GtkToolButton* _tmp54_ = NULL; + GtkToolButton* _tmp55_ = NULL; + GtkToolbar* _tmp56_ = NULL; + GtkToolButton* _tmp57_ = NULL; + GtkProgressBar* _tmp58_ = NULL; +#line 780 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = PAGE_CLASS (import_page_parent_class)->get_toolbar (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page)); -#line 772 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 780 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = _tmp1_; -#line 772 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 780 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_tmp2_); -#line 775 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 783 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp3_ = _ ("Hide photos already imported"); -#line 775 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 783 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp4_ = (GtkCheckButton*) gtk_check_button_new_with_label (_tmp3_); -#line 775 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 783 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_object_ref_sink (_tmp4_); -#line 775 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 783 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (self->priv->hide_imported); -#line 775 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 783 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->hide_imported = _tmp4_; -#line 776 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 784 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp5_ = self->priv->hide_imported; -#line 776 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 784 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp6_ = _ ("Only display photos that have not been imported"); -#line 776 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 784 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_widget_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget), _tmp6_); -#line 777 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp7_ = self->priv->hide_imported; -#line 777 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_button_get_type (), GtkButton), "clicked", (GCallback) _import_page_on_hide_imported_gtk_button_clicked, self, 0); -#line 778 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 786 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp8_ = self->priv->hide_imported; -#line 778 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 786 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 779 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 787 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp9_ = self->priv->hide_imported; -#line 779 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 787 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp10_ = config_facade_get_instance (); -#line 779 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 787 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp11_ = _tmp10_; -#line 779 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 787 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp12_ = configuration_facade_get_hide_photos_already_imported (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 779 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 787 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_toggle_button_get_type (), GtkToggleButton), _tmp12_); -#line 779 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 787 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_tmp11_); -#line 780 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 788 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp13_ = gtk_tool_item_new (); -#line 780 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 788 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_object_ref_sink (_tmp13_); -#line 780 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 788 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" hide_item = _tmp13_; -#line 781 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 789 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp14_ = hide_item; -#line 781 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 789 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_tool_item_set_is_important (_tmp14_, TRUE); -#line 782 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 790 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp15_ = hide_item; -#line 782 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 790 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp16_ = self->priv->hide_imported; -#line 782 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 790 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_widget_get_type (), GtkWidget)); -#line 784 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 792 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp17_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->toolbar; -#line 784 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 792 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp18_ = hide_item; -#line 784 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 792 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_toolbar_insert (_tmp17_, _tmp18_, -1); -#line 787 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 795 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp19_ = (GtkSeparatorToolItem*) gtk_separator_tool_item_new (); -#line 787 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 795 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_object_ref_sink (_tmp19_); -#line 787 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 795 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" separator = _tmp19_; -#line 788 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 796 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp20_ = separator; -#line 788 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 796 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_separator_tool_item_set_draw (_tmp20_, FALSE); -#line 790 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 798 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp21_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->toolbar; -#line 790 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 798 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp22_ = separator; -#line 790 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 798 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_toolbar_insert (_tmp21_, G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 793 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 801 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp23_ = self->priv->progress_bar; -#line 793 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 801 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_orientable_set_orientation (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GTK_TYPE_ORIENTABLE, GtkOrientable), GTK_ORIENTATION_HORIZONTAL); -#line 794 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 802 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp24_ = self->priv->progress_bar; -#line 794 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 802 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 795 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 803 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp25_ = gtk_tool_item_new (); -#line 795 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 803 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_object_ref_sink (_tmp25_); -#line 795 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 803 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" progress_item = _tmp25_; -#line 796 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 804 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp26_ = progress_item; -#line 796 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 804 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_tool_item_set_expand (_tmp26_, TRUE); -#line 797 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 805 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp27_ = progress_item; -#line 797 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 805 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp28_ = self->priv->progress_bar; -#line 797 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 805 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, gtk_widget_get_type (), GtkWidget)); -#line 798 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 806 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp29_ = self->priv->progress_bar; -#line 798 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 806 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_progress_bar_set_show_text (_tmp29_, TRUE); -#line 800 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 808 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp30_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->toolbar; -#line 800 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 808 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp31_ = progress_item; -#line 800 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 808 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_toolbar_insert (_tmp30_, _tmp31_, -1); -#line 803 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 811 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp32_ = (GtkToggleToolButton*) gtk_toggle_tool_button_new (); -#line 803 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 811 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_object_ref_sink (_tmp32_); -#line 803 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 811 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" find_button = _tmp32_; -#line 804 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp33_ = find_button; -#line 804 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_actionable_set_action_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, GTK_TYPE_ACTIONABLE, GtkActionable), "win.CommonDisplaySearchbar"); -#line 806 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp34_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->toolbar; -#line 806 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp35_ = find_button; -#line 806 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_toolbar_insert (_tmp34_, G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 809 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp36_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->toolbar; -#line 809 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp37_ = (GtkSeparatorToolItem*) gtk_separator_tool_item_new (); -#line 809 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_object_ref_sink (_tmp37_); -#line 809 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp38_ = _tmp37_; -#line 809 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_toolbar_insert (_tmp36_, G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 809 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp38_); #line 812 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp39_ = (GtkToolButton*) gtk_tool_button_new (NULL, NULL); -#line 812 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_object_ref_sink (_tmp39_); + _tmp33_ = find_button; #line 812 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_selected_button = _tmp39_; + gtk_tool_button_set_icon_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, gtk_tool_button_get_type (), GtkToolButton), "edit-find"); #line 813 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp40_ = import_selected_button; + _tmp34_ = find_button; #line 813 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_tool_button_set_icon_name (_tmp40_, RESOURCES_IMPORT); -#line 814 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp41_ = import_selected_button; -#line 814 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_actionable_set_action_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, GTK_TYPE_ACTIONABLE, GtkActionable), "win.ImportSelected"); -#line 816 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp42_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->toolbar; -#line 816 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp43_ = import_selected_button; -#line 816 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_toolbar_insert (_tmp42_, G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 819 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp44_ = (GtkToolButton*) gtk_tool_button_new (NULL, NULL); -#line 819 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_object_ref_sink (_tmp44_); -#line 819 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_all_button = _tmp44_; -#line 820 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp45_ = import_all_button; -#line 820 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_tool_button_set_icon_name (_tmp45_, RESOURCES_IMPORT_ALL); + gtk_actionable_set_action_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GTK_TYPE_ACTIONABLE, GtkActionable), "win.CommonDisplaySearchbar"); +#line 815 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp35_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->toolbar; +#line 815 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp36_ = find_button; +#line 815 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + gtk_toolbar_insert (_tmp35_, G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, gtk_tool_item_get_type (), GtkToolItem), -1); +#line 818 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp37_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->toolbar; +#line 818 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp38_ = (GtkSeparatorToolItem*) gtk_separator_tool_item_new (); +#line 818 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + g_object_ref_sink (_tmp38_); +#line 818 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp39_ = _tmp38_; +#line 818 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + gtk_toolbar_insert (_tmp37_, G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, gtk_tool_item_get_type (), GtkToolItem), -1); +#line 818 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _g_object_unref0 (_tmp39_); +#line 821 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp40_ = (GtkToolButton*) gtk_tool_button_new (NULL, NULL); #line 821 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp46_ = import_all_button; + g_object_ref_sink (_tmp40_); #line 821 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_actionable_set_action_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, GTK_TYPE_ACTIONABLE, GtkActionable), "win.ImportAll"); + import_selected_button = _tmp40_; +#line 822 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp41_ = import_selected_button; +#line 822 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + gtk_tool_button_set_icon_name (_tmp41_, "import"); #line 823 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp47_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->toolbar; + _tmp42_ = import_selected_button; #line 823 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp48_ = import_all_button; + _tmp43_ = _ ("Import _Selected"); #line 823 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + gtk_tool_button_set_label (_tmp42_, _tmp43_); +#line 824 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp44_ = import_selected_button; +#line 824 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + gtk_tool_item_set_is_important (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, gtk_tool_item_get_type (), GtkToolItem), TRUE); +#line 825 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp45_ = import_selected_button; +#line 825 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + gtk_tool_button_set_use_underline (_tmp45_, TRUE); +#line 826 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp46_ = import_selected_button; +#line 826 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + gtk_actionable_set_action_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, GTK_TYPE_ACTIONABLE, GtkActionable), "win.ImportSelected"); +#line 828 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp47_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->toolbar; +#line 828 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp48_ = import_selected_button; +#line 828 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_toolbar_insert (_tmp47_, G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 827 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp49_ = self->priv->progress_bar; -#line 827 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_widget_set_no_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 829 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_update_toolbar_state (self); #line 831 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp49_ = (GtkToolButton*) gtk_tool_button_new (NULL, NULL); +#line 831 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + g_object_ref_sink (_tmp49_); +#line 831 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + import_all_button = _tmp49_; +#line 832 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp50_ = import_all_button; +#line 832 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + gtk_tool_button_set_icon_name (_tmp50_, "import-all"); +#line 833 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp51_ = import_all_button; +#line 833 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp52_ = _ ("Import _All"); +#line 833 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + gtk_tool_button_set_label (_tmp51_, _tmp52_); +#line 834 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp53_ = import_all_button; +#line 834 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + gtk_tool_item_set_is_important (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, gtk_tool_item_get_type (), GtkToolItem), TRUE); +#line 835 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp54_ = import_all_button; +#line 835 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + gtk_tool_button_set_use_underline (_tmp54_, TRUE); +#line 836 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp55_ = import_all_button; +#line 836 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + gtk_actionable_set_action_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, GTK_TYPE_ACTIONABLE, GtkActionable), "win.ImportAll"); +#line 838 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp56_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->toolbar; +#line 838 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp57_ = import_all_button; +#line 838 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + gtk_toolbar_insert (_tmp56_, G_TYPE_CHECK_INSTANCE_CAST (_tmp57_, gtk_tool_item_get_type (), GtkToolItem), -1); +#line 842 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp58_ = self->priv->progress_bar; +#line 842 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + gtk_widget_set_no_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, gtk_widget_get_type (), GtkWidget), TRUE); +#line 844 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + import_page_update_toolbar_state (self); +#line 846 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 771 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 779 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (import_all_button); -#line 771 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 779 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (import_selected_button); -#line 771 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 779 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (find_button); -#line 771 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 779 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (progress_item); -#line 771 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 779 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (separator); -#line 771 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 779 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (hide_item); -#line 5917 "ImportPage.c" - } -#line 834 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp50_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->toolbar; -#line 834 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp51_ = _g_object_ref0 (_tmp50_); -#line 834 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp51_; -#line 834 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 6023 "ImportPage.c" + } +#line 849 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp59_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->toolbar; +#line 849 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp60_ = _g_object_ref0 (_tmp59_); +#line 849 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + result = _tmp60_; +#line 849 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 5927 "ImportPage.c" +#line 6033 "ImportPage.c" } static gpointer _core_tracker_ref0 (gpointer self) { -#line 838 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 853 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return self ? core_tracker_ref (self) : NULL; -#line 5934 "ImportPage.c" +#line 6040 "ImportPage.c" } @@ -5940,17 +6046,17 @@ static CoreViewTracker* import_page_real_get_view_tracker (CheckerboardPage* bas CoreViewTracker* result = NULL; CameraViewTracker* _tmp0_ = NULL; CoreViewTracker* _tmp1_ = NULL; -#line 837 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 852 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_PAGE, ImportPage); -#line 838 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 853 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = self->priv->tracker; -#line 838 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 853 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = _core_tracker_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, CORE_TYPE_VIEW_TRACKER, CoreViewTracker)); -#line 838 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 853 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = _tmp1_; -#line 838 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 853 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 5953 "ImportPage.c" +#line 6059 "ImportPage.c" } @@ -5959,17 +6065,17 @@ static gchar* import_page_real_get_view_empty_message (CheckerboardPage* base) { gchar* result = NULL; const gchar* _tmp0_ = NULL; gchar* _tmp1_ = NULL; -#line 841 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 856 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_PAGE, ImportPage); -#line 842 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 857 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = _ ("The camera seems to be empty. No photos/videos found to import"); -#line 842 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 857 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = g_strdup (_tmp0_); -#line 842 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 857 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = _tmp1_; -#line 842 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 857 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 5972 "ImportPage.c" +#line 6078 "ImportPage.c" } @@ -5978,17 +6084,17 @@ static gchar* import_page_real_get_filter_no_match_message (CheckerboardPage* ba gchar* result = NULL; const gchar* _tmp0_ = NULL; gchar* _tmp1_ = NULL; -#line 845 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 860 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_PAGE, ImportPage); -#line 846 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 861 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = _ ("No new photos/videos found on camera"); -#line 846 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 861 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = g_strdup (_tmp0_); -#line 846 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 861 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = _tmp1_; -#line 846 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 861 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 5991 "ImportPage.c" +#line 6097 "ImportPage.c" } @@ -6003,33 +6109,33 @@ static gint64 import_page_preview_comparator (void* a, void* b) { ImportSource* _tmp6_ = NULL; time_t _tmp7_ = 0; gint64 _tmp8_ = 0LL; -#line 850 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 865 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = a; -#line 850 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 865 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = import_preview_get_import_source (G_TYPE_CHECK_INSTANCE_CAST ((ImportPreview*) _tmp0_, TYPE_IMPORT_PREVIEW, ImportPreview)); -#line 850 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 865 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = _tmp1_; -#line 850 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 865 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp3_ = import_source_get_exposure_time (_tmp2_); -#line 850 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 865 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp4_ = b; -#line 850 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 865 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp5_ = import_preview_get_import_source (G_TYPE_CHECK_INSTANCE_CAST ((ImportPreview*) _tmp4_, TYPE_IMPORT_PREVIEW, ImportPreview)); -#line 850 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 865 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp6_ = _tmp5_; -#line 850 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 865 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp7_ = import_source_get_exposure_time (_tmp6_); -#line 850 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 865 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp8_ = (gint64) (_tmp3_ - _tmp7_); -#line 850 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 865 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_tmp6_); -#line 850 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 865 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_tmp2_); -#line 850 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 865 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = _tmp8_; -#line 850 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 865 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 6032 "ImportPage.c" +#line 6138 "ImportPage.c" } @@ -6037,19 +6143,19 @@ static gboolean import_page_preview_comparator_predicate (DataObject* object, Al gboolean result = FALSE; Alteration* _tmp0_ = NULL; gboolean _tmp1_ = FALSE; -#line 854 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 869 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE); -#line 854 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 869 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (IS_ALTERATION (alteration), FALSE); -#line 855 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 870 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = alteration; -#line 855 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 870 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = alteration_has_detail (_tmp0_, "metadata", "exposure-time"); -#line 855 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 870 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = _tmp1_; -#line 855 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 870 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 6052 "ImportPage.c" +#line 6158 "ImportPage.c" } @@ -6059,21 +6165,21 @@ static gint64 import_page_import_job_comparator (ImportPage* self, void* a, void time_t _tmp1_ = 0; void* _tmp2_ = NULL; time_t _tmp3_ = 0; -#line 858 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 873 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (IS_IMPORT_PAGE (self), 0LL); -#line 859 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 874 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = a; -#line 859 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 874 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = import_page_camera_import_job_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST ((ImportPageCameraImportJob*) _tmp0_, IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB, ImportPageCameraImportJob)); -#line 859 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 874 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = b; -#line 859 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 874 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp3_ = import_page_camera_import_job_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST ((ImportPageCameraImportJob*) _tmp2_, IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB, ImportPageCameraImportJob)); -#line 859 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 874 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = (gint64) (_tmp1_ - _tmp3_); -#line 859 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 874 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 6076 "ImportPage.c" +#line 6182 "ImportPage.c" } @@ -6081,72 +6187,119 @@ static void import_page_real_init_collect_ui_filenames (Page* base, GeeList* ui_ ImportPage * self; GeeList* _tmp0_ = NULL; GeeList* _tmp1_ = NULL; -#line 862 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 877 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_PAGE, ImportPage); -#line 862 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 877 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_if_fail (GEE_IS_LIST (ui_filenames)); -#line 863 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 878 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = ui_filenames; -#line 863 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 878 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" PAGE_CLASS (import_page_parent_class)->init_collect_ui_filenames (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), _tmp0_); -#line 865 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 880 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = ui_filenames; -#line 865 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 880 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection), "import.ui"); -#line 6096 "ImportPage.c" +#line 6202 "ImportPage.c" } static GVariant* _variant_new15 (gboolean value) { -#line 880 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 895 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 6103 "ImportPage.c" +#line 6209 "ImportPage.c" } -static void import_page_real_add_actions (Page* base) { +static void import_page_real_add_actions (Page* base, GActionMap* map) { ImportPage * self; - AppWindow* _tmp0_ = NULL; - AppWindow* _tmp1_ = NULL; + GActionMap* _tmp0_ = NULL; + GActionMap* _tmp1_ = NULL; GAction* _tmp2_ = NULL; GAction* _tmp3_ = NULL; ConfigFacade* _tmp4_ = NULL; ConfigFacade* _tmp5_ = NULL; gboolean _tmp6_ = FALSE; GVariant* _tmp7_ = NULL; -#line 875 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 890 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_PAGE, ImportPage); -#line 876 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - PAGE_CLASS (import_page_parent_class)->add_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page)); -#line 878 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = app_window_get_instance (); -#line 878 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = _tmp0_; -#line 878 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_action_map_add_action_entries (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, g_action_map_get_type (), GActionMap), IMPORT_PAGE_entries, G_N_ELEMENTS (IMPORT_PAGE_entries), self); -#line 878 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp1_); -#line 880 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 890 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + g_return_if_fail (G_IS_ACTION_MAP (map)); +#line 891 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp0_ = map; +#line 891 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + PAGE_CLASS (import_page_parent_class)->add_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), _tmp0_); +#line 893 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp1_ = map; +#line 893 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + g_action_map_add_action_entries (_tmp1_, IMPORT_PAGE_entries, G_N_ELEMENTS (IMPORT_PAGE_entries), self); +#line 895 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ViewTitle"); -#line 880 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 895 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp3_ = _tmp2_; -#line 880 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 895 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp4_ = config_facade_get_instance (); -#line 880 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 895 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp5_ = _tmp4_; -#line 880 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 895 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp6_ = configuration_facade_get_display_photo_titles (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 880 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 895 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp7_ = _variant_new15 (_tmp6_); -#line 880 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 895 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_action_change_state (_tmp3_, _tmp7_); -#line 880 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 895 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_variant_unref0 (_tmp7_); -#line 880 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 895 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_tmp5_); -#line 880 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 895 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_tmp3_); -#line 6149 "ImportPage.c" +#line 6255 "ImportPage.c" +} + + +static void import_page_real_remove_actions (Page* base, GActionMap* map) { + ImportPage * self; + GActionMap* _tmp0_ = NULL; +#line 898 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_PAGE, ImportPage); +#line 898 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + g_return_if_fail (G_IS_ACTION_MAP (map)); +#line 899 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp0_ = map; +#line 899 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + PAGE_CLASS (import_page_parent_class)->remove_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), _tmp0_); +#line 6270 "ImportPage.c" + { + GActionEntry* entry_collection = NULL; + gint entry_collection_length1 = 0; + gint _entry_collection_size_ = 0; + gint entry_it = 0; +#line 900 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + entry_collection = IMPORT_PAGE_entries; +#line 900 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + entry_collection_length1 = G_N_ELEMENTS (IMPORT_PAGE_entries); +#line 900 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + for (entry_it = 0; entry_it < G_N_ELEMENTS (IMPORT_PAGE_entries); entry_it = entry_it + 1) { +#line 6282 "ImportPage.c" + GActionEntry entry = {0}; +#line 900 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + entry = entry_collection[entry_it]; +#line 6286 "ImportPage.c" + { + GActionMap* _tmp1_ = NULL; + GActionEntry _tmp2_ = {0}; + const gchar* _tmp3_ = NULL; +#line 901 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp1_ = map; +#line 901 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp2_ = entry; +#line 901 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + _tmp3_ = _tmp2_.name; +#line 901 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + g_action_map_remove_action (_tmp1_, _tmp3_); +#line 6299 "ImportPage.c" + } + } + } } @@ -6154,17 +6307,17 @@ Camera* import_page_get_camera (ImportPage* self) { Camera* result = NULL; Camera* _tmp0_ = NULL; Camera* _tmp1_ = NULL; -#line 883 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 905 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (IS_IMPORT_PAGE (self), NULL); -#line 884 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 906 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = self->priv->camera; -#line 884 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 906 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = _GPHOTO_REF_CAMERA0 (_tmp0_); -#line 884 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 906 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = _tmp1_; -#line 884 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 906 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 6167 "ImportPage.c" +#line 6320 "ImportPage.c" } @@ -6172,32 +6325,32 @@ gchar* import_page_get_uri (ImportPage* self) { gchar* result = NULL; const gchar* _tmp0_ = NULL; gchar* _tmp1_ = NULL; -#line 887 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 909 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (IS_IMPORT_PAGE (self), NULL); -#line 888 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 910 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = self->priv->uri; -#line 888 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 910 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = g_strdup (_tmp0_); -#line 888 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 910 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = _tmp1_; -#line 888 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 910 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 6185 "ImportPage.c" +#line 6338 "ImportPage.c" } gboolean import_page_is_busy (ImportPage* self) { gboolean result = FALSE; gboolean _tmp0_ = FALSE; -#line 891 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 913 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (IS_IMPORT_PAGE (self), FALSE); -#line 892 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 914 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = self->priv->busy; -#line 892 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 914 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = _tmp0_; -#line 892 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 914 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 6200 "ImportPage.c" +#line 6353 "ImportPage.c" } @@ -6205,21 +6358,21 @@ static void import_page_real_init_actions (Page* base, gint selected_count, gint ImportPage * self; gint _tmp0_ = 0; gint _tmp1_ = 0; -#line 895 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 917 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_PAGE, ImportPage); -#line 896 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 918 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_on_view_changed (self); -#line 898 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 920 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" page_set_action_important (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ImportSelected", TRUE); -#line 899 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 921 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" page_set_action_important (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ImportAll", TRUE); -#line 901 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 923 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = selected_count; -#line 901 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 923 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = count; -#line 901 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 923 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" PAGE_CLASS (import_page_parent_class)->init_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), _tmp0_, _tmp1_); -#line 6222 "ImportPage.c" +#line 6375 "ImportPage.c" } @@ -6227,29 +6380,29 @@ gboolean import_page_is_refreshed (ImportPage* self) { gboolean result = FALSE; gboolean _tmp0_ = FALSE; gboolean _tmp1_ = FALSE; -#line 904 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 926 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (IS_IMPORT_PAGE (self), FALSE); -#line 905 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 927 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = self->priv->refreshed; -#line 905 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 927 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp1_) { -#line 6236 "ImportPage.c" +#line 6389 "ImportPage.c" gboolean _tmp2_ = FALSE; -#line 905 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 927 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = self->priv->busy; -#line 905 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 927 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = !_tmp2_; -#line 6242 "ImportPage.c" +#line 6395 "ImportPage.c" } else { -#line 905 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 927 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = FALSE; -#line 6246 "ImportPage.c" +#line 6399 "ImportPage.c" } -#line 905 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 927 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = _tmp0_; -#line 905 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 927 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 6252 "ImportPage.c" +#line 6405 "ImportPage.c" } @@ -6257,130 +6410,130 @@ gchar* import_page_get_refresh_message (ImportPage* self) { gchar* result = NULL; gchar* msg = NULL; const gchar* _tmp0_ = NULL; -#line 908 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 930 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (IS_IMPORT_PAGE (self), NULL); -#line 909 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 931 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" msg = NULL; -#line 910 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 932 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = self->priv->refresh_error; -#line 910 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 932 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp0_ != NULL) { -#line 6268 "ImportPage.c" +#line 6421 "ImportPage.c" const gchar* _tmp1_ = NULL; gchar* _tmp2_ = NULL; -#line 911 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 933 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = self->priv->refresh_error; -#line 911 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 933 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = g_strdup (_tmp1_); -#line 911 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 933 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (msg); -#line 911 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 933 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" msg = _tmp2_; -#line 6279 "ImportPage.c" +#line 6432 "ImportPage.c" } else { int _tmp3_ = 0; -#line 912 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 934 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp3_ = self->priv->refresh_result; -#line 912 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 934 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp3_ == GP_OK) { -#line 6286 "ImportPage.c" +#line 6439 "ImportPage.c" } else { int _tmp4_ = 0; gchar* _tmp5_ = NULL; -#line 915 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 937 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp4_ = self->priv->refresh_result; -#line 915 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 937 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp5_ = gp_result_to_full_string (_tmp4_); -#line 915 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 937 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (msg); -#line 915 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 937 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" msg = _tmp5_; -#line 6298 "ImportPage.c" +#line 6451 "ImportPage.c" } } -#line 918 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 940 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = msg; -#line 918 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 940 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 6305 "ImportPage.c" +#line 6458 "ImportPage.c" } static void import_page_update_status (ImportPage* self, gboolean busy, gboolean refreshed) { gboolean _tmp0_ = FALSE; gboolean _tmp1_ = FALSE; -#line 921 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 943 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_if_fail (IS_IMPORT_PAGE (self)); -#line 922 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 944 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = busy; -#line 922 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 944 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->busy = _tmp0_; -#line 923 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 945 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = refreshed; -#line 923 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 945 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->refreshed = _tmp1_; -#line 925 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 947 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_on_view_changed (self); -#line 6324 "ImportPage.c" +#line 6477 "ImportPage.c" } static void import_page_update_toolbar_state (ImportPage* self) { GtkCheckButton* _tmp0_ = NULL; -#line 928 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 950 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_if_fail (IS_IMPORT_PAGE (self)); -#line 929 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 951 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = self->priv->hide_imported; -#line 929 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 951 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp0_ != NULL) { -#line 6336 "ImportPage.c" +#line 6489 "ImportPage.c" gboolean _tmp1_ = FALSE; gboolean _tmp2_ = FALSE; gboolean _tmp3_ = FALSE; GtkCheckButton* _tmp8_ = NULL; -#line 930 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 952 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp3_ = self->priv->busy; -#line 930 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 952 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (!_tmp3_) { -#line 6345 "ImportPage.c" +#line 6498 "ImportPage.c" gboolean _tmp4_ = FALSE; -#line 930 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 952 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp4_ = self->priv->refreshed; -#line 930 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 952 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = _tmp4_; -#line 6351 "ImportPage.c" +#line 6504 "ImportPage.c" } else { -#line 930 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 952 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = FALSE; -#line 6355 "ImportPage.c" +#line 6508 "ImportPage.c" } -#line 930 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 952 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp2_) { -#line 6359 "ImportPage.c" +#line 6512 "ImportPage.c" ViewCollection* _tmp5_ = NULL; ViewCollection* _tmp6_ = NULL; gint _tmp7_ = 0; -#line 930 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 952 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 930 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 952 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp6_ = _tmp5_; -#line 930 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 952 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp7_ = view_collection_get_unfiltered_count (_tmp6_); -#line 930 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 952 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = _tmp7_ > 0; -#line 930 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 952 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _data_collection_unref0 (_tmp6_); -#line 6373 "ImportPage.c" +#line 6526 "ImportPage.c" } else { -#line 930 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 952 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = FALSE; -#line 6377 "ImportPage.c" +#line 6530 "ImportPage.c" } -#line 930 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 952 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp8_ = self->priv->hide_imported; -#line 930 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 952 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget), _tmp1_); -#line 6383 "ImportPage.c" +#line 6536 "ImportPage.c" } } @@ -6394,129 +6547,129 @@ static void import_page_on_view_changed (ImportPage* self) { gboolean _tmp9_ = FALSE; gboolean _tmp14_ = FALSE; gboolean _tmp15_ = FALSE; -#line 933 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 955 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_if_fail (IS_IMPORT_PAGE (self)); -#line 934 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 956 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = self->priv->busy; -#line 934 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 956 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (!_tmp2_) { -#line 6403 "ImportPage.c" +#line 6556 "ImportPage.c" gboolean _tmp3_ = FALSE; -#line 934 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 956 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp3_ = self->priv->refreshed; -#line 934 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 956 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = _tmp3_; -#line 6409 "ImportPage.c" +#line 6562 "ImportPage.c" } else { -#line 934 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 956 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = FALSE; -#line 6413 "ImportPage.c" +#line 6566 "ImportPage.c" } -#line 934 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 956 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp1_) { -#line 6417 "ImportPage.c" +#line 6570 "ImportPage.c" ViewCollection* _tmp4_ = NULL; ViewCollection* _tmp5_ = NULL; gint _tmp6_ = 0; -#line 934 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 956 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 934 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 956 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp5_ = _tmp4_; -#line 934 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 956 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp6_ = view_collection_get_selected_count (_tmp5_); -#line 934 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 956 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = _tmp6_ > 0; -#line 934 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 956 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _data_collection_unref0 (_tmp5_); -#line 6431 "ImportPage.c" +#line 6584 "ImportPage.c" } else { -#line 934 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 956 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = FALSE; -#line 6435 "ImportPage.c" +#line 6588 "ImportPage.c" } -#line 934 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 956 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ImportSelected", _tmp0_); -#line 935 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 957 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp9_ = self->priv->busy; -#line 935 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 957 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (!_tmp9_) { -#line 6443 "ImportPage.c" +#line 6596 "ImportPage.c" gboolean _tmp10_ = FALSE; -#line 935 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 957 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp10_ = self->priv->refreshed; -#line 935 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 957 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp8_ = _tmp10_; -#line 6449 "ImportPage.c" +#line 6602 "ImportPage.c" } else { -#line 935 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 957 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp8_ = FALSE; -#line 6453 "ImportPage.c" +#line 6606 "ImportPage.c" } -#line 935 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 957 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp8_) { -#line 6457 "ImportPage.c" +#line 6610 "ImportPage.c" ViewCollection* _tmp11_ = NULL; ViewCollection* _tmp12_ = NULL; gint _tmp13_ = 0; -#line 935 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 957 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp11_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 935 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 957 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp12_ = _tmp11_; -#line 935 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 957 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp13_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_DATA_COLLECTION, DataCollection)); -#line 935 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 957 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp7_ = _tmp13_ > 0; -#line 935 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 957 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _data_collection_unref0 (_tmp12_); -#line 6471 "ImportPage.c" +#line 6624 "ImportPage.c" } else { -#line 935 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 957 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp7_ = FALSE; -#line 6475 "ImportPage.c" +#line 6628 "ImportPage.c" } -#line 935 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 957 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ImportAll", _tmp7_); -#line 936 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 958 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp15_ = self->priv->busy; -#line 936 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 958 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (!_tmp15_) { -#line 6483 "ImportPage.c" +#line 6636 "ImportPage.c" ViewCollection* _tmp16_ = NULL; ViewCollection* _tmp17_ = NULL; gint _tmp18_ = 0; -#line 936 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 958 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp16_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 936 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 958 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp17_ = _tmp16_; -#line 936 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 958 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp18_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_DATA_COLLECTION, DataCollection)); -#line 936 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 958 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp14_ = _tmp18_ > 0; -#line 936 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 958 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _data_collection_unref0 (_tmp17_); -#line 6497 "ImportPage.c" +#line 6650 "ImportPage.c" } else { -#line 936 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 958 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp14_ = FALSE; -#line 6501 "ImportPage.c" +#line 6654 "ImportPage.c" } -#line 936 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 958 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CommonSelectAll", _tmp14_); -#line 938 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 960 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_update_toolbar_state (self); -#line 6507 "ImportPage.c" +#line 6660 "ImportPage.c" } static void import_page_on_media_added_removed (ImportPage* self) { ImportPageImportPageSearchViewFilter* _tmp0_ = NULL; -#line 941 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 963 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_if_fail (IS_IMPORT_PAGE (self)); -#line 942 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 964 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = self->priv->search_filter; -#line 942 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 964 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_VIEW_FILTER, ViewFilter), "refresh"); -#line 6519 "ImportPage.c" +#line 6672 "ImportPage.c" } @@ -6528,33 +6681,33 @@ static void import_page_on_display_titles (ImportPage* self, GSimpleAction* acti ConfigFacade* _tmp3_ = NULL; GSimpleAction* _tmp4_ = NULL; GVariant* _tmp5_ = NULL; -#line 945 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 967 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_if_fail (IS_IMPORT_PAGE (self)); -#line 945 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 967 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_if_fail (G_IS_SIMPLE_ACTION (action)); -#line 946 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 968 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = value; -#line 946 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 968 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = g_variant_get_boolean (_tmp0_); -#line 946 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 968 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" display = _tmp1_; -#line 948 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 970 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" checkerboard_page_set_display_titles (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), display); -#line 950 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 972 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = config_facade_get_instance (); -#line 950 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 972 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp3_ = _tmp2_; -#line 950 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 972 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" configuration_facade_set_display_photo_titles (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), display); -#line 950 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 972 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_tmp3_); -#line 951 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 973 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp4_ = action; -#line 951 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 973 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp5_ = value; -#line 951 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 973 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_simple_action_set_state (_tmp4_, _tmp5_); -#line 6557 "ImportPage.c" +#line 6710 "ImportPage.c" } @@ -6563,36 +6716,36 @@ static void import_page_real_switched_to (Page* base) { ConfigFacade* _tmp0_ = NULL; ConfigFacade* _tmp1_ = NULL; gboolean _tmp2_ = FALSE; -#line 954 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 976 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_PAGE, ImportPage); -#line 955 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 977 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = config_facade_get_instance (); -#line 955 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 977 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = _tmp0_; -#line 955 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 977 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = configuration_facade_get_display_photo_titles (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 955 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 977 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" checkerboard_page_set_display_titles (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), _tmp2_); -#line 955 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 977 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_tmp1_); -#line 957 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 979 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" PAGE_CLASS (import_page_parent_class)->switched_to (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page)); -#line 6580 "ImportPage.c" +#line 6733 "ImportPage.c" } static void import_page_real_ready (Page* base) { ImportPage * self; ImportPageHideImportedViewFilter* _tmp0_ = NULL; -#line 960 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 982 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_PAGE, ImportPage); -#line 961 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 983 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_try_refreshing_camera (self, FALSE); -#line 962 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 984 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = self->priv->hide_imported_filter; -#line 962 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 984 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_VIEW_FILTER, ViewFilter), "refresh"); -#line 6595 "ImportPage.c" +#line 6748 "ImportPage.c" } @@ -6603,50 +6756,50 @@ static void import_page_try_refreshing_camera (ImportPage* self, gboolean fail_o ImportPageRefreshResult _tmp3_ = 0; ImportPageRefreshResult _tmp4_ = 0; GError * _inner_error_ = NULL; -#line 965 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 987 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_if_fail (IS_IMPORT_PAGE (self)); -#line 967 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 989 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = self->priv->refreshed; -#line 967 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 989 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp1_) { -#line 967 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 989 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = TRUE; -#line 6614 "ImportPage.c" +#line 6767 "ImportPage.c" } else { gboolean _tmp2_ = FALSE; -#line 967 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 989 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = self->priv->busy; -#line 967 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 989 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = _tmp2_; -#line 6621 "ImportPage.c" +#line 6774 "ImportPage.c" } -#line 967 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 989 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp0_) { -#line 968 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 990 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return; -#line 6627 "ImportPage.c" +#line 6780 "ImportPage.c" } -#line 970 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 992 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp3_ = import_page_refresh_camera (self); -#line 970 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 992 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" res = _tmp3_; -#line 971 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 993 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp4_ = res; -#line 971 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 993 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" switch (_tmp4_) { -#line 971 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 993 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" case IMPORT_PAGE_REFRESH_RESULT_OK: -#line 971 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 993 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" case IMPORT_PAGE_REFRESH_RESULT_BUSY: -#line 6641 "ImportPage.c" +#line 6794 "ImportPage.c" { -#line 976 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 998 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" break; -#line 6645 "ImportPage.c" +#line 6798 "ImportPage.c" } -#line 971 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 993 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" case IMPORT_PAGE_REFRESH_RESULT_LOCKED: -#line 6649 "ImportPage.c" +#line 6802 "ImportPage.c" { gboolean _tmp5_ = FALSE; const gchar* _tmp6_ = NULL; @@ -6655,89 +6808,89 @@ static void import_page_try_refreshing_camera (ImportPage* self, gboolean fail_o GFile* _tmp8_ = NULL; GMount* mount = NULL; GMount* _tmp13_ = NULL; -#line 979 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1001 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp5_ = fail_on_locked; -#line 979 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1001 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp5_) { -#line 980 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1002 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" app_window_error_message (IMPORT_PAGE_UNMOUNT_FAILED_MSG, NULL); -#line 982 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1004 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" break; -#line 6666 "ImportPage.c" +#line 6819 "ImportPage.c" } -#line 986 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1008 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp6_ = self->priv->uri; -#line 986 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_debug ("ImportPage.vala:986: Checking if %s is mounted…", _tmp6_); -#line 988 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1008 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + g_debug ("ImportPage.vala:1008: Checking if %s is mounted…", _tmp6_); +#line 1010 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp7_ = self->priv->uri; -#line 988 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1010 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp8_ = g_file_new_for_uri (_tmp7_); -#line 988 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1010 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" uri = _tmp8_; -#line 990 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1012 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" mount = NULL; -#line 6680 "ImportPage.c" +#line 6833 "ImportPage.c" { GMount* _tmp9_ = NULL; GFile* _tmp10_ = NULL; GMount* _tmp11_ = NULL; GMount* _tmp12_ = NULL; -#line 992 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1014 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp10_ = uri; -#line 992 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1014 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp11_ = g_file_find_enclosing_mount (_tmp10_, NULL, &_inner_error_); -#line 992 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1014 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp9_ = _tmp11_; -#line 992 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1014 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 6694 "ImportPage.c" - goto __catch62_g_error; +#line 6847 "ImportPage.c" + goto __catch64_g_error; } -#line 992 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1014 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp12_ = _tmp9_; -#line 992 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1014 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp9_ = NULL; -#line 992 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1014 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (mount); -#line 992 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1014 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" mount = _tmp12_; -#line 991 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1013 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_tmp9_); -#line 6707 "ImportPage.c" +#line 6860 "ImportPage.c" } - goto __finally62; - __catch62_g_error: + goto __finally64; + __catch64_g_error: { GError* err = NULL; -#line 991 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1013 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" err = _inner_error_; -#line 991 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1013 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _inner_error_ = NULL; -#line 991 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1013 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_error_free0 (err); -#line 6719 "ImportPage.c" +#line 6872 "ImportPage.c" } - __finally62: -#line 991 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + __finally64: +#line 1013 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 991 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1013 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (mount); -#line 991 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1013 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (uri); -#line 991 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1013 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 991 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1013 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_clear_error (&_inner_error_); -#line 991 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1013 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return; -#line 6734 "ImportPage.c" +#line 6887 "ImportPage.c" } -#line 997 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1019 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp13_ = mount; -#line 997 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1019 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp13_ != NULL) { -#line 6740 "ImportPage.c" +#line 6893 "ImportPage.c" gchar* mounted_message = NULL; const gchar* _tmp14_ = NULL; gchar* _tmp15_ = NULL; @@ -6755,73 +6908,73 @@ static void import_page_try_refreshing_camera (ImportPage* self, gboolean fail_o gint _tmp25_ = 0; GtkMessageDialog* _tmp26_ = NULL; gint _tmp27_ = 0; -#line 999 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1021 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp14_ = _ ("Shotwell needs to unmount the camera from the filesystem in order to a" \ "ccess it. Continue?"); -#line 999 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1021 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp15_ = g_strdup (_tmp14_); -#line 999 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1021 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" mounted_message = _tmp15_; -#line 1001 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1023 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp16_ = app_window_get_instance (); -#line 1001 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1023 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp17_ = _tmp16_; -#line 1001 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1023 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp18_ = mounted_message; -#line 1001 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1023 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp19_ = (GtkMessageDialog*) gtk_message_dialog_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_window_get_type (), GtkWindow), GTK_DIALOG_MODAL, GTK_MESSAGE_QUESTION, GTK_BUTTONS_CANCEL, "%s", _tmp18_); -#line 1001 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1023 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_object_ref_sink (_tmp19_); -#line 1001 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1023 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp20_ = _tmp19_; -#line 1001 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1023 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_tmp17_); -#line 1001 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1023 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" dialog = _tmp20_; -#line 1004 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1026 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp21_ = dialog; -#line 1004 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1026 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_window_get_type (), GtkWindow), RESOURCES_APP_TITLE); -#line 1005 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1027 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp22_ = dialog; -#line 1005 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1027 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp23_ = _ ("_Unmount"); -#line 1005 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1027 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_dialog_add_button (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_dialog_get_type (), GtkDialog), _tmp23_, (gint) GTK_RESPONSE_YES); -#line 1006 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1028 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp24_ = dialog; -#line 1006 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1028 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp25_ = gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, gtk_dialog_get_type (), GtkDialog)); -#line 1006 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1028 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" dialog_res = _tmp25_; -#line 1007 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1029 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp26_ = dialog; -#line 1007 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1029 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, gtk_widget_get_type (), GtkWidget)); -#line 1009 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1031 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp27_ = dialog_res; -#line 1009 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1031 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp27_ != ((gint) GTK_RESPONSE_YES)) { -#line 6804 "ImportPage.c" +#line 6957 "ImportPage.c" const gchar* _tmp28_ = NULL; -#line 1010 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1032 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp28_ = _ ("Please unmount the camera."); -#line 1010 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1032 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" checkerboard_page_set_page_message (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), _tmp28_); -#line 6810 "ImportPage.c" +#line 6963 "ImportPage.c" } else { GMount* _tmp29_ = NULL; -#line 1012 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1034 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp29_ = mount; -#line 1012 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1034 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_unmount_camera (self, _tmp29_); -#line 6817 "ImportPage.c" +#line 6970 "ImportPage.c" } -#line 997 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1019 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (dialog); -#line 997 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1019 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (mounted_message); -#line 6823 "ImportPage.c" +#line 6976 "ImportPage.c" } else { gchar* locked_message = NULL; const gchar* _tmp30_ = NULL; @@ -6836,115 +6989,115 @@ static void import_page_try_refreshing_camera (ImportPage* self, gboolean fail_o GtkMessageDialog* _tmp38_ = NULL; GtkMessageDialog* _tmp39_ = NULL; const gchar* _tmp40_ = NULL; -#line 1015 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1037 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp30_ = _ ("The camera is locked by another application. Shotwell can only access " \ "the camera when it’s unlocked. Please close any other application usin" \ "g the camera and try again."); -#line 1015 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1037 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp31_ = g_strdup (_tmp30_); -#line 1015 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1037 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" locked_message = _tmp31_; -#line 1018 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1040 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp32_ = app_window_get_instance (); -#line 1018 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1040 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp33_ = _tmp32_; -#line 1018 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1040 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp34_ = locked_message; -#line 1018 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1040 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp35_ = (GtkMessageDialog*) gtk_message_dialog_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, gtk_window_get_type (), GtkWindow), GTK_DIALOG_MODAL, GTK_MESSAGE_WARNING, GTK_BUTTONS_OK, "%s", _tmp34_); -#line 1018 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1040 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_object_ref_sink (_tmp35_); -#line 1018 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1040 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp36_ = _tmp35_; -#line 1018 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1040 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_tmp33_); -#line 1018 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1040 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" dialog = _tmp36_; -#line 1021 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1043 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp37_ = dialog; -#line 1021 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1043 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, gtk_window_get_type (), GtkWindow), RESOURCES_APP_TITLE); -#line 1022 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1044 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp38_ = dialog; -#line 1022 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1044 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, gtk_dialog_get_type (), GtkDialog)); -#line 1023 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1045 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp39_ = dialog; -#line 1023 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1045 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, gtk_widget_get_type (), GtkWidget)); -#line 1025 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1047 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp40_ = _ ("Please close any other application using the camera."); -#line 1025 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1047 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" checkerboard_page_set_page_message (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), _tmp40_); -#line 997 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1019 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (dialog); -#line 997 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1019 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (locked_message); -#line 6880 "ImportPage.c" +#line 7033 "ImportPage.c" } -#line 1027 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1049 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (mount); -#line 1027 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1049 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (uri); -#line 1027 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1049 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" break; -#line 6888 "ImportPage.c" +#line 7041 "ImportPage.c" } -#line 971 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 993 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" case IMPORT_PAGE_REFRESH_RESULT_LIBRARY_ERROR: -#line 6892 "ImportPage.c" +#line 7045 "ImportPage.c" { const gchar* _tmp41_ = NULL; gchar* _tmp42_ = NULL; gchar* _tmp43_ = NULL; gchar* _tmp44_ = NULL; gchar* _tmp45_ = NULL; -#line 1030 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1052 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp41_ = _ ("Unable to fetch previews from the camera:\n%s"); -#line 1030 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1052 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp42_ = import_page_get_refresh_message (self); -#line 1030 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1052 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp43_ = _tmp42_; -#line 1030 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1052 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp44_ = g_strdup_printf (_tmp41_, _tmp43_); -#line 1030 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1052 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp45_ = _tmp44_; -#line 1030 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1052 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" app_window_error_message (_tmp45_, NULL); -#line 1030 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1052 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (_tmp45_); -#line 1030 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1052 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (_tmp43_); -#line 1032 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1054 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" break; -#line 6917 "ImportPage.c" +#line 7070 "ImportPage.c" } default: { ImportPageRefreshResult _tmp46_ = 0; -#line 1035 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1057 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp46_ = res; -#line 1035 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_error ("ImportPage.vala:1035: Unknown result type %d", (gint) _tmp46_); -#line 6926 "ImportPage.c" +#line 1057 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + g_error ("ImportPage.vala:1057: Unknown result type %d", (gint) _tmp46_); +#line 7079 "ImportPage.c" } } } static void _import_page_on_unmounted_g_mount_unmounted (GMount* _sender, gpointer self) { -#line 1052 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1074 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_on_unmounted ((ImportPage*) self, _sender); -#line 6935 "ImportPage.c" +#line 7088 "ImportPage.c" } static void _import_page_on_unmount_finished_gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) { -#line 1055 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1077 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_on_unmount_finished ((ImportPage*) self, source_object, res); -#line 1055 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1077 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_object_unref (self); -#line 6944 "ImportPage.c" +#line 7097 "ImportPage.c" } @@ -6962,67 +7115,67 @@ gboolean import_page_unmount_camera (ImportPage* self, GMount* mount) { AppWindow* _tmp9_ = NULL; GtkMountOperation* _tmp10_ = NULL; GtkMountOperation* _tmp11_ = NULL; -#line 1039 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1061 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (IS_IMPORT_PAGE (self), FALSE); -#line 1039 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1061 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (G_IS_MOUNT (mount), FALSE); -#line 1040 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1062 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = self->priv->busy; -#line 1040 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1062 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp0_) { -#line 1041 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1063 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = FALSE; -#line 1041 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1063 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 6974 "ImportPage.c" +#line 7127 "ImportPage.c" } -#line 1043 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1065 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_update_status (self, TRUE, FALSE); -#line 1044 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1066 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = self->priv->progress_bar; -#line 1044 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1066 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 1045 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1067 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = self->priv->progress_bar; -#line 1045 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1067 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_progress_bar_set_fraction (_tmp2_, 0.0); -#line 1046 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1068 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp3_ = self->priv->progress_bar; -#line 1046 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1068 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_progress_bar_set_ellipsize (_tmp3_, PANGO_ELLIPSIZE_NONE); -#line 1047 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1069 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp4_ = self->priv->progress_bar; -#line 1047 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1069 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp5_ = _ ("Unmounting…"); -#line 1047 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1069 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_progress_bar_set_text (_tmp4_, _tmp5_); -#line 1052 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1074 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp6_ = mount; -#line 1052 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1074 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_signal_connect_object (_tmp6_, "unmounted", (GCallback) _import_page_on_unmounted_g_mount_unmounted, self, 0); -#line 1054 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_debug ("ImportPage.vala:1054: Unmounting camera…"); -#line 1055 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1076 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + g_debug ("ImportPage.vala:1076: Unmounting camera…"); +#line 1077 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp7_ = mount; -#line 1055 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1077 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp8_ = app_window_get_instance (); -#line 1055 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1077 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp9_ = _tmp8_; -#line 1055 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1077 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp10_ = (GtkMountOperation*) gtk_mount_operation_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_window_get_type (), GtkWindow)); -#line 1055 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1077 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp11_ = _tmp10_; -#line 1055 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1077 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_mount_unmount_with_operation (_tmp7_, G_MOUNT_UNMOUNT_NONE, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, g_mount_operation_get_type (), GMountOperation), NULL, _import_page_on_unmount_finished_gasync_ready_callback, g_object_ref (self)); -#line 1055 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1077 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_tmp11_); -#line 1055 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1077 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_tmp9_); -#line 1058 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1080 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = TRUE; -#line 1058 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1080 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 7022 "ImportPage.c" +#line 7175 "ImportPage.c" } @@ -7031,35 +7184,35 @@ static void import_page_on_unmount_finished (ImportPage* self, GObject* source, GObject* _tmp0_ = NULL; GMount* _tmp1_ = NULL; GError * _inner_error_ = NULL; -#line 1061 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1083 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_if_fail (IS_IMPORT_PAGE (self)); -#line 1061 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1083 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_if_fail ((source == NULL) || G_IS_OBJECT (source)); -#line 1061 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1083 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_if_fail (G_IS_ASYNC_RESULT (aresult)); -#line 1062 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_debug ("ImportPage.vala:1062: Async unmount finished"); -#line 1064 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1084 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + g_debug ("ImportPage.vala:1084: Async unmount finished"); +#line 1086 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = source; -#line 1064 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1086 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, g_mount_get_type (), GMount)); -#line 1064 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1086 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" mount = _tmp1_; -#line 7045 "ImportPage.c" +#line 7198 "ImportPage.c" { GAsyncResult* _tmp2_ = NULL; -#line 1066 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1088 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = aresult; -#line 1066 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1088 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_mount_unmount_with_operation_finish (mount, _tmp2_, &_inner_error_); -#line 1066 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1088 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 7054 "ImportPage.c" - goto __catch63_g_error; +#line 7207 "ImportPage.c" + goto __catch65_g_error; } } - goto __finally63; - __catch63_g_error: + goto __finally65; + __catch65_g_error: { GError* err = NULL; guint _tmp3_ = 0U; @@ -7067,52 +7220,52 @@ static void import_page_on_unmount_finished (ImportPage* self, GObject* source, GtkProgressBar* _tmp5_ = NULL; GtkProgressBar* _tmp6_ = NULL; GtkProgressBar* _tmp7_ = NULL; -#line 1065 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1087 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" err = _inner_error_; -#line 1065 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1087 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _inner_error_ = NULL; -#line 1068 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1090 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" app_window_error_message (IMPORT_PAGE_UNMOUNT_FAILED_MSG, NULL); -#line 1071 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1093 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_signal_parse_name ("unmounted", g_mount_get_type (), &_tmp3_, NULL, FALSE); -#line 1071 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1093 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_signal_handlers_disconnect_matched (mount, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _import_page_on_unmounted_g_mount_unmounted, self); -#line 1073 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1095 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp4_ = self->priv->refreshed; -#line 1073 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1095 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_update_status (self, FALSE, _tmp4_); -#line 1074 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1096 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp5_ = self->priv->progress_bar; -#line 1074 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1096 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_progress_bar_set_ellipsize (_tmp5_, PANGO_ELLIPSIZE_NONE); -#line 1075 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1097 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp6_ = self->priv->progress_bar; -#line 1075 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1097 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_progress_bar_set_text (_tmp6_, ""); -#line 1076 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1098 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp7_ = self->priv->progress_bar; -#line 1076 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1098 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1065 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1087 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_error_free0 (err); -#line 7095 "ImportPage.c" +#line 7248 "ImportPage.c" } - __finally63: -#line 1065 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + __finally65: +#line 1087 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1065 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1087 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (mount); -#line 1065 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1087 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1065 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1087 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_clear_error (&_inner_error_); -#line 1065 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1087 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return; -#line 7108 "ImportPage.c" +#line 7261 "ImportPage.c" } -#line 1061 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1083 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (mount); -#line 7112 "ImportPage.c" +#line 7265 "ImportPage.c" } @@ -7121,31 +7274,31 @@ static void import_page_on_unmounted (ImportPage* self, GMount* mount) { GtkProgressBar* _tmp1_ = NULL; GtkProgressBar* _tmp2_ = NULL; GtkProgressBar* _tmp3_ = NULL; -#line 1080 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1102 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_if_fail (IS_IMPORT_PAGE (self)); -#line 1080 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1102 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_if_fail (G_IS_MOUNT (mount)); -#line 1081 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_debug ("ImportPage.vala:1081: on_unmounted"); -#line 1083 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1103 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + g_debug ("ImportPage.vala:1103: on_unmounted"); +#line 1105 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = self->priv->refreshed; -#line 1083 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1105 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_update_status (self, FALSE, _tmp0_); -#line 1084 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1106 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = self->priv->progress_bar; -#line 1084 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1106 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_progress_bar_set_ellipsize (_tmp1_, PANGO_ELLIPSIZE_NONE); -#line 1085 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1107 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = self->priv->progress_bar; -#line 1085 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1107 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_progress_bar_set_text (_tmp2_, ""); -#line 1086 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1108 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp3_ = self->priv->progress_bar; -#line 1086 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1108 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1088 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1110 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_try_refreshing_camera (self, TRUE); -#line 7145 "ImportPage.c" +#line 7298 "ImportPage.c" } @@ -7154,23 +7307,23 @@ static void import_page_clear_all_import_sources (ImportPage* self) { SourceCollection* _tmp0_ = NULL; Marker* _tmp1_ = NULL; SourceCollection* _tmp2_ = NULL; -#line 1091 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1113 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_if_fail (IS_IMPORT_PAGE (self)); -#line 1092 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1114 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = self->priv->import_sources; -#line 1092 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1114 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = data_collection_start_marking (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1092 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1114 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" marker = _tmp1_; -#line 1093 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1115 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" marker_mark_all (marker); -#line 1094 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1116 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = self->priv->import_sources; -#line 1094 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1116 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" source_collection_destroy_marked (_tmp2_, marker, FALSE, NULL, NULL, NULL); -#line 1091 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1113 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (marker); -#line 7170 "ImportPage.c" +#line 7323 "ImportPage.c" } @@ -7204,93 +7357,93 @@ static gboolean import_page_check_directory_exists (ImportPage* self, gint fsid, gint list_len = 0; CameraList* _tmp15_ = NULL; gint _tmp16_ = 0; -#line 1104 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1126 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (IS_IMPORT_PAGE (self), FALSE); -#line 1104 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1126 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (dir != NULL, FALSE); -#line 1104 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1126 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (search_target != NULL, FALSE); -#line 1105 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1127 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = self->priv->camera; -#line 1105 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1127 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = self->priv->camera_name; -#line 1105 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1127 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = fsid; -#line 1105 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1127 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp3_ = dir; -#line 1105 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1127 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp4_ = import_page_get_fulldir (_tmp0_, _tmp1_, _tmp2_, _tmp3_); -#line 1105 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1127 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" fulldir = _tmp4_; -#line 1109 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1131 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp6_ = gp_list_new (&_tmp5_); -#line 1109 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1131 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _gp_list_unref0 (folders); -#line 1109 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1131 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" folders = _tmp5_; -#line 1109 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1131 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _result_ = _tmp6_; -#line 1110 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1132 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp7_ = _result_; -#line 1110 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1132 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp7_ != GP_OK) { -#line 1112 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1134 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = FALSE; -#line 1112 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1134 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _gp_list_unref0 (folders); -#line 1112 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1134 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (fulldir); -#line 1112 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1134 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 7242 "ImportPage.c" +#line 7395 "ImportPage.c" } -#line 1115 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1137 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp8_ = self->priv->camera; -#line 1115 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1137 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp9_ = fulldir; -#line 1115 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1137 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp10_ = folders; -#line 1115 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1137 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp11_ = import_page_spin_idle_context; -#line 1115 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1137 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp12_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper)->context; -#line 1115 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1137 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp13_ = gp_camera_folder_list_folders (_tmp8_, _tmp9_, _tmp10_, _tmp12_); -#line 1115 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1137 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _result_ = _tmp13_; -#line 1116 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1138 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp14_ = _result_; -#line 1116 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1138 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp14_ != GP_OK) { -#line 1118 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1140 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = FALSE; -#line 1118 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1140 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _gp_list_unref0 (folders); -#line 1118 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1140 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (fulldir); -#line 1118 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1140 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 7270 "ImportPage.c" +#line 7423 "ImportPage.c" } -#line 1121 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1143 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp15_ = folders; -#line 1121 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1143 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp16_ = gp_list_count (_tmp15_); -#line 1121 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1143 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" list_len = _tmp16_; -#line 7278 "ImportPage.c" +#line 7431 "ImportPage.c" { gint list_index = 0; -#line 1123 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1145 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" list_index = 0; -#line 7283 "ImportPage.c" +#line 7436 "ImportPage.c" { gboolean _tmp17_ = FALSE; -#line 1123 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1145 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp17_ = TRUE; -#line 1123 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1145 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" while (TRUE) { -#line 7290 "ImportPage.c" +#line 7443 "ImportPage.c" gint _tmp19_ = 0; gint _tmp20_ = 0; gchar* tmp = NULL; @@ -7300,73 +7453,73 @@ static gboolean import_page_check_directory_exists (ImportPage* self, gint fsid, gchar* _tmp24_ = NULL; const gchar* _tmp25_ = NULL; const gchar* _tmp26_ = NULL; -#line 1123 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1145 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (!_tmp17_) { -#line 7302 "ImportPage.c" +#line 7455 "ImportPage.c" gint _tmp18_ = 0; -#line 1123 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1145 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp18_ = list_index; -#line 1123 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1145 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" list_index = _tmp18_ + 1; -#line 7308 "ImportPage.c" +#line 7461 "ImportPage.c" } -#line 1123 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1145 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp17_ = FALSE; -#line 1123 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1145 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp19_ = list_index; -#line 1123 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1145 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp20_ = list_len; -#line 1123 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1145 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (!(_tmp19_ < _tmp20_)) { -#line 1123 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1145 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" break; -#line 7320 "ImportPage.c" +#line 7473 "ImportPage.c" } -#line 1126 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1148 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp21_ = folders; -#line 1126 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1148 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp22_ = list_index; -#line 1126 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1148 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gp_list_get_name (_tmp21_, _tmp22_, &_tmp23_); -#line 1126 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1148 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (tmp); -#line 1126 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1148 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp24_ = g_strdup (_tmp23_); -#line 1126 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1148 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" tmp = _tmp24_; -#line 1127 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1149 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp25_ = tmp; -#line 1127 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1149 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp26_ = search_target; -#line 1127 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1149 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (g_strcmp0 (_tmp25_, _tmp26_) == 0) { -#line 1128 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1150 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = TRUE; -#line 1128 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1150 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (tmp); -#line 1128 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1150 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _gp_list_unref0 (folders); -#line 1128 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1150 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (fulldir); -#line 1128 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1150 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 7350 "ImportPage.c" +#line 7503 "ImportPage.c" } -#line 1123 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1145 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (tmp); -#line 7354 "ImportPage.c" +#line 7507 "ImportPage.c" } } } -#line 1131 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1153 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = FALSE; -#line 1131 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1153 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _gp_list_unref0 (folders); -#line 1131 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1153 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (fulldir); -#line 1131 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1153 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 7366 "ImportPage.c" +#line 7519 "ImportPage.c" } @@ -7411,143 +7564,143 @@ static ImportPageRefreshResult import_page_refresh_camera (ImportPage* self) { int _tmp85_ = 0; int _tmp89_ = 0; int _tmp94_ = 0; -#line 1134 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1156 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (IS_IMPORT_PAGE (self), 0); -#line 1135 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1157 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = self->priv->busy; -#line 1135 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1157 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp0_) { -#line 1136 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1158 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = IMPORT_PAGE_REFRESH_RESULT_BUSY; -#line 1136 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1158 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 7421 "ImportPage.c" +#line 7574 "ImportPage.c" } -#line 1138 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1160 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = _ ("Starting import, please wait…"); -#line 1138 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1160 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" checkerboard_page_set_page_message (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), _tmp1_); -#line 1140 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1162 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = self->priv->busy; -#line 1140 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1162 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_update_status (self, _tmp2_, FALSE); -#line 1142 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1164 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (self->priv->refresh_error); -#line 1142 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1164 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->refresh_error = NULL; -#line 1143 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1165 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp3_ = self->priv->camera; -#line 1143 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1165 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp4_ = import_page_spin_idle_context; -#line 1143 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1165 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper)->context; -#line 1143 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1165 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp6_ = gp_camera_init (_tmp3_, _tmp5_); -#line 1143 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1165 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->refresh_result = _tmp6_; -#line 1144 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1166 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp7_ = self->priv->refresh_result; -#line 1144 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1166 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp7_ != GP_OK) { -#line 7449 "ImportPage.c" +#line 7602 "ImportPage.c" int _tmp8_ = 0; gchar* _tmp9_ = NULL; gchar* _tmp10_ = NULL; ImportPageRefreshResult _tmp11_ = 0; int _tmp12_ = 0; -#line 1145 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1167 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp8_ = self->priv->refresh_result; -#line 1145 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1167 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp9_ = gp_result_to_full_string (_tmp8_); -#line 1145 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1167 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp10_ = _tmp9_; -#line 1145 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_warning ("ImportPage.vala:1145: Unable to initialize camera: %s", _tmp10_); -#line 1145 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1167 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + g_warning ("ImportPage.vala:1167: Unable to initialize camera: %s", _tmp10_); +#line 1167 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (_tmp10_); -#line 1147 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1169 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp12_ = self->priv->refresh_result; -#line 1147 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1169 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp12_ == GP_ERROR_IO_LOCK) { -#line 1147 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1169 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp11_ = IMPORT_PAGE_REFRESH_RESULT_LOCKED; -#line 7471 "ImportPage.c" +#line 7624 "ImportPage.c" } else { -#line 1147 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1169 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp11_ = IMPORT_PAGE_REFRESH_RESULT_LIBRARY_ERROR; -#line 7475 "ImportPage.c" +#line 7628 "ImportPage.c" } -#line 1147 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1169 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = _tmp11_; -#line 1147 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1169 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 7481 "ImportPage.c" +#line 7634 "ImportPage.c" } -#line 1150 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1172 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp13_ = self->priv->refreshed; -#line 1150 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1172 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_update_status (self, TRUE, _tmp13_); -#line 1152 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1174 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_on_view_changed (self); -#line 1154 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1176 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp14_ = self->priv->progress_bar; -#line 1154 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1176 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_progress_bar_set_ellipsize (_tmp14_, PANGO_ELLIPSIZE_NONE); -#line 1155 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1177 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp15_ = self->priv->progress_bar; -#line 1155 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1177 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp16_ = _ ("Fetching photo information"); -#line 1155 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1177 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_progress_bar_set_text (_tmp15_, _tmp16_); -#line 1156 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1178 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp17_ = self->priv->progress_bar; -#line 1156 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1178 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_progress_bar_set_fraction (_tmp17_, 0.0); -#line 1157 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1179 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp18_ = self->priv->progress_bar; -#line 1157 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1179 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_progress_bar_set_pulse_step (_tmp18_, 0.01); -#line 1158 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1180 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp19_ = self->priv->progress_bar; -#line 1158 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1180 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 1160 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1182 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp20_ = gee_array_list_new (TYPE_IMPORT_SOURCE, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL); -#line 1160 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1182 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_list = _tmp20_; -#line 1162 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1184 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" sifs = NULL; -#line 1163 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1185 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" count = 0; -#line 1164 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1186 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp21_ = self->priv->camera; -#line 1164 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1186 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp22_ = import_page_spin_idle_context; -#line 1164 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1186 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp23_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper)->context; -#line 1164 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1186 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp25_ = gp_camera_get_storageinfo (_tmp21_, &sifs, &_tmp24_, _tmp23_); -#line 1164 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1186 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" count = _tmp24_; -#line 1164 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1186 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->refresh_result = _tmp25_; -#line 1165 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1187 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp26_ = self->priv->refresh_result; -#line 1165 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1187 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp26_ == GP_OK) { -#line 7535 "ImportPage.c" +#line 7688 "ImportPage.c" { gint fsid = 0; -#line 1166 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1188 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" fsid = 0; -#line 7540 "ImportPage.c" +#line 7693 "ImportPage.c" { gboolean _tmp27_ = FALSE; -#line 1166 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1188 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp27_ = TRUE; -#line 1166 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1188 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" while (TRUE) { -#line 7547 "ImportPage.c" +#line 7700 "ImportPage.c" gint _tmp29_ = 0; gint _tmp30_ = 0; gboolean got_well_known_dir = FALSE; @@ -7572,381 +7725,381 @@ static ImportPageRefreshResult import_page_refresh_camera (ImportPage* self) { gint _tmp67_ = 0; gboolean _tmp68_ = FALSE; gboolean _tmp71_ = FALSE; -#line 1166 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1188 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (!_tmp27_) { -#line 7574 "ImportPage.c" +#line 7727 "ImportPage.c" gint _tmp28_ = 0; -#line 1166 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1188 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp28_ = fsid; -#line 1166 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1188 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" fsid = _tmp28_ + 1; -#line 7580 "ImportPage.c" +#line 7733 "ImportPage.c" } -#line 1166 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1188 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp27_ = FALSE; -#line 1166 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1188 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp29_ = fsid; -#line 1166 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1188 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp30_ = count; -#line 1166 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1188 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (!(_tmp29_ < _tmp30_)) { -#line 1166 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1188 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" break; -#line 7592 "ImportPage.c" +#line 7745 "ImportPage.c" } -#line 1170 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1192 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" got_well_known_dir = FALSE; -#line 1173 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1195 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp31_ = fsid; -#line 1173 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1195 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp32_ = import_page_check_directory_exists (self, _tmp31_, "/", "DCIM"); -#line 1173 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1195 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp32_) { -#line 7602 "ImportPage.c" +#line 7755 "ImportPage.c" gint _tmp33_ = 0; GeeArrayList* _tmp34_ = NULL; -#line 1174 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1196 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp33_ = fsid; -#line 1174 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1196 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp34_ = import_list; -#line 1174 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1196 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_enumerate_files (self, _tmp33_, "/DCIM", _tmp34_); -#line 1175 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1197 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" got_well_known_dir = TRUE; -#line 7613 "ImportPage.c" +#line 7766 "ImportPage.c" } -#line 1177 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1199 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp35_ = fsid; -#line 1177 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1199 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp36_ = import_page_check_directory_exists (self, _tmp35_, "/", "dcim"); -#line 1177 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1199 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp36_) { -#line 7621 "ImportPage.c" +#line 7774 "ImportPage.c" gint _tmp37_ = 0; GeeArrayList* _tmp38_ = NULL; -#line 1178 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1200 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp37_ = fsid; -#line 1178 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1200 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp38_ = import_list; -#line 1178 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1200 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_enumerate_files (self, _tmp37_, "/dcim", _tmp38_); -#line 1179 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1201 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" got_well_known_dir = TRUE; -#line 7632 "ImportPage.c" +#line 7785 "ImportPage.c" } -#line 1184 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1206 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp39_ = fsid; -#line 1184 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1206 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp40_ = import_page_check_directory_exists (self, _tmp39_, "/PRIVATE/", "AVCHD"); -#line 1184 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1206 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp40_) { -#line 7640 "ImportPage.c" +#line 7793 "ImportPage.c" gint _tmp41_ = 0; GeeArrayList* _tmp42_ = NULL; -#line 1185 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1207 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp41_ = fsid; -#line 1185 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1207 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp42_ = import_list; -#line 1185 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1207 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_enumerate_files (self, _tmp41_, "/PRIVATE/AVCHD", _tmp42_); -#line 1186 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1208 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" got_well_known_dir = TRUE; -#line 7651 "ImportPage.c" +#line 7804 "ImportPage.c" } -#line 1188 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1210 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp43_ = fsid; -#line 1188 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1210 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp44_ = import_page_check_directory_exists (self, _tmp43_, "/private/", "avchd"); -#line 1188 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1210 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp44_) { -#line 7659 "ImportPage.c" +#line 7812 "ImportPage.c" gint _tmp45_ = 0; GeeArrayList* _tmp46_ = NULL; -#line 1189 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1211 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp45_ = fsid; -#line 1189 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1211 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp46_ = import_list; -#line 1189 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1211 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_enumerate_files (self, _tmp45_, "/private/avchd", _tmp46_); -#line 1190 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1212 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" got_well_known_dir = TRUE; -#line 7670 "ImportPage.c" +#line 7823 "ImportPage.c" } -#line 1192 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1214 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp47_ = fsid; -#line 1192 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1214 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp48_ = import_page_check_directory_exists (self, _tmp47_, "/", "AVCHD"); -#line 1192 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1214 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp48_) { -#line 7678 "ImportPage.c" +#line 7831 "ImportPage.c" gint _tmp49_ = 0; GeeArrayList* _tmp50_ = NULL; -#line 1193 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1215 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp49_ = fsid; -#line 1193 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1215 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp50_ = import_list; -#line 1193 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1215 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_enumerate_files (self, _tmp49_, "/AVCHD", _tmp50_); -#line 1194 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1216 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" got_well_known_dir = TRUE; -#line 7689 "ImportPage.c" +#line 7842 "ImportPage.c" } -#line 1196 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1218 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp51_ = fsid; -#line 1196 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1218 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp52_ = import_page_check_directory_exists (self, _tmp51_, "/", "avchd"); -#line 1196 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1218 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp52_) { -#line 7697 "ImportPage.c" +#line 7850 "ImportPage.c" gint _tmp53_ = 0; GeeArrayList* _tmp54_ = NULL; -#line 1197 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1219 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp53_ = fsid; -#line 1197 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1219 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp54_ = import_list; -#line 1197 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1219 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_enumerate_files (self, _tmp53_, "/avchd", _tmp54_); -#line 1198 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1220 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" got_well_known_dir = TRUE; -#line 7708 "ImportPage.c" +#line 7861 "ImportPage.c" } -#line 1203 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1225 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp55_ = fsid; -#line 1203 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1225 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp56_ = import_page_check_directory_exists (self, _tmp55_, "/PRIVATE/", "SONY"); -#line 1203 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1225 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp56_) { -#line 7716 "ImportPage.c" +#line 7869 "ImportPage.c" gint _tmp57_ = 0; GeeArrayList* _tmp58_ = NULL; -#line 1204 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1226 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp57_ = fsid; -#line 1204 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1226 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp58_ = import_list; -#line 1204 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1226 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_enumerate_files (self, _tmp57_, "/PRIVATE/SONY", _tmp58_); -#line 1205 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1227 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" got_well_known_dir = TRUE; -#line 7727 "ImportPage.c" +#line 7880 "ImportPage.c" } -#line 1207 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1229 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp59_ = fsid; -#line 1207 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1229 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp60_ = import_page_check_directory_exists (self, _tmp59_, "/private/", "sony"); -#line 1207 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1229 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp60_) { -#line 7735 "ImportPage.c" +#line 7888 "ImportPage.c" gint _tmp61_ = 0; GeeArrayList* _tmp62_ = NULL; -#line 1208 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1230 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp61_ = fsid; -#line 1208 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1230 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp62_ = import_list; -#line 1208 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1230 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_enumerate_files (self, _tmp61_, "/private/sony", _tmp62_); -#line 1209 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1231 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" got_well_known_dir = TRUE; -#line 7746 "ImportPage.c" +#line 7899 "ImportPage.c" } -#line 1213 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1235 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp63_ = fsid; -#line 1213 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1235 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp64_ = import_page_check_directory_exists (self, _tmp63_, "/", "MP_ROOT"); -#line 1213 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1235 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp64_) { -#line 7754 "ImportPage.c" +#line 7907 "ImportPage.c" gint _tmp65_ = 0; GeeArrayList* _tmp66_ = NULL; -#line 1214 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1236 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp65_ = fsid; -#line 1214 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1236 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp66_ = import_list; -#line 1214 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1236 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_enumerate_files (self, _tmp65_, "/MP_ROOT", _tmp66_); -#line 1215 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1237 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" got_well_known_dir = TRUE; -#line 7765 "ImportPage.c" +#line 7918 "ImportPage.c" } -#line 1217 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1239 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp67_ = fsid; -#line 1217 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1239 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp68_ = import_page_check_directory_exists (self, _tmp67_, "/", "mp_root"); -#line 1217 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1239 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp68_) { -#line 7773 "ImportPage.c" +#line 7926 "ImportPage.c" gint _tmp69_ = 0; GeeArrayList* _tmp70_ = NULL; -#line 1218 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1240 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp69_ = fsid; -#line 1218 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1240 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp70_ = import_list; -#line 1218 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1240 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_enumerate_files (self, _tmp69_, "/mp_root", _tmp70_); -#line 1219 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1241 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" got_well_known_dir = TRUE; -#line 7784 "ImportPage.c" +#line 7937 "ImportPage.c" } -#line 1224 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1246 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp71_ = got_well_known_dir; -#line 1224 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1246 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (!_tmp71_) { -#line 7790 "ImportPage.c" +#line 7943 "ImportPage.c" gint _tmp72_ = 0; GeeArrayList* _tmp73_ = NULL; gboolean _tmp74_ = FALSE; -#line 1225 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1247 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp72_ = fsid; -#line 1225 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1247 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp73_ = import_list; -#line 1225 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1247 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp74_ = import_page_enumerate_files (self, _tmp72_, "/", _tmp73_); -#line 1225 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1247 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (!_tmp74_) { -#line 1226 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1248 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" break; -#line 7804 "ImportPage.c" +#line 7957 "ImportPage.c" } } } } } } -#line 1231 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1253 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_clear_all_import_sources (self); -#line 1234 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1256 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp75_ = import_list; -#line 1234 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1256 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_auto_match_raw_jpeg (self, _tmp75_); -#line 1241 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1263 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp76_ = import_list; -#line 1241 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1263 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_load_previews_and_metadata (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp76_, GEE_TYPE_LIST, GeeList)); -#line 1248 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1270 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp77_ = self->priv->progress_bar; -#line 1248 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1270 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp77_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1249 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1271 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp78_ = self->priv->progress_bar; -#line 1249 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1271 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_progress_bar_set_ellipsize (_tmp78_, PANGO_ELLIPSIZE_NONE); -#line 1250 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1272 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp79_ = self->priv->progress_bar; -#line 1250 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1272 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_progress_bar_set_text (_tmp79_, ""); -#line 1251 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1273 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp80_ = self->priv->progress_bar; -#line 1251 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1273 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_progress_bar_set_fraction (_tmp80_, 0.0); -#line 1253 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1275 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp81_ = self->priv->camera; -#line 1253 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1275 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp82_ = import_page_spin_idle_context; -#line 1253 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1275 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp83_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp82_, GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper)->context; -#line 1253 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1275 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp84_ = gp_camera_exit (_tmp81_, _tmp83_); -#line 1253 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1275 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" res = _tmp84_; -#line 1254 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1276 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp85_ = res; -#line 1254 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1276 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp85_ != GP_OK) { -#line 7851 "ImportPage.c" +#line 8004 "ImportPage.c" int _tmp86_ = 0; gchar* _tmp87_ = NULL; gchar* _tmp88_ = NULL; -#line 1256 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1278 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp86_ = res; -#line 1256 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1278 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp87_ = gp_result_to_full_string (_tmp86_); -#line 1256 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1278 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp88_ = _tmp87_; -#line 1256 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_warning ("ImportPage.vala:1256: Unable to unlock camera: %s", _tmp88_); -#line 1256 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1278 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + g_warning ("ImportPage.vala:1278: Unable to unlock camera: %s", _tmp88_); +#line 1278 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (_tmp88_); -#line 7865 "ImportPage.c" +#line 8018 "ImportPage.c" } -#line 1259 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1281 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp89_ = self->priv->refresh_result; -#line 1259 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1281 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp89_ == GP_OK) { -#line 7871 "ImportPage.c" +#line 8024 "ImportPage.c" SourceCollection* _tmp90_ = NULL; gint _tmp91_ = 0; -#line 1260 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1282 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp90_ = self->priv->import_sources; -#line 1260 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1282 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp91_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp90_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1260 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1282 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp91_ == 0) { -#line 7880 "ImportPage.c" +#line 8033 "ImportPage.c" gchar* _tmp92_ = NULL; gchar* _tmp93_ = NULL; -#line 1261 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1283 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp92_ = checkerboard_page_get_view_empty_message (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage)); -#line 1261 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1283 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp93_ = _tmp92_; -#line 1261 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1283 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" checkerboard_page_set_page_message (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), _tmp93_); -#line 1261 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1283 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (_tmp93_); -#line 7891 "ImportPage.c" +#line 8044 "ImportPage.c" } -#line 1263 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1285 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_update_status (self, FALSE, TRUE); -#line 7895 "ImportPage.c" +#line 8048 "ImportPage.c" } else { -#line 1265 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1287 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_update_status (self, FALSE, FALSE); -#line 1268 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1290 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_clear_all_import_sources (self); -#line 7901 "ImportPage.c" +#line 8054 "ImportPage.c" } -#line 1271 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1293 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_on_view_changed (self); -#line 1273 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1295 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp94_ = self->priv->refresh_result; -#line 1273 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1295 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" switch (_tmp94_) { -#line 1273 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1295 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" case GP_OK: -#line 7911 "ImportPage.c" +#line 8064 "ImportPage.c" { -#line 1275 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1297 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = IMPORT_PAGE_REFRESH_RESULT_OK; -#line 1275 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1297 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (import_list); -#line 1275 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1297 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 7919 "ImportPage.c" +#line 8072 "ImportPage.c" } -#line 1273 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1295 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" case GP_ERROR_IO_LOCK: -#line 7923 "ImportPage.c" +#line 8076 "ImportPage.c" { -#line 1278 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1300 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = IMPORT_PAGE_REFRESH_RESULT_LOCKED; -#line 1278 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1300 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (import_list); -#line 1278 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1300 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 7931 "ImportPage.c" +#line 8084 "ImportPage.c" } default: { -#line 1281 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1303 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = IMPORT_PAGE_REFRESH_RESULT_LIBRARY_ERROR; -#line 1281 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1303 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (import_list); -#line 1281 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1303 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 7941 "ImportPage.c" +#line 8094 "ImportPage.c" } } -#line 1134 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1156 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (import_list); -#line 7946 "ImportPage.c" +#line 8099 "ImportPage.c" } @@ -7954,17 +8107,17 @@ static gchar string_get (const gchar* self, glong index) { gchar result = '\0'; glong _tmp0_ = 0L; gchar _tmp1_ = '\0'; -#line 1086 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1086 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, '\0'); -#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = index; -#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = ((gchar*) self)[_tmp0_]; -#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp1_; -#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; -#line 7964 "ImportPage.c" +#line 8117 "ImportPage.c" } @@ -7985,105 +8138,105 @@ static gchar* string_slice (const gchar* self, glong start, glong end) { glong _tmp19_ = 0L; glong _tmp20_ = 0L; gchar* _tmp21_ = NULL; -#line 1328 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1328 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, NULL); -#line 1329 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1329 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = strlen (self); -#line 1329 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1329 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = _tmp0_; -#line 1329 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1329 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" string_length = (glong) _tmp1_; -#line 1330 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1330 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = start; -#line 1330 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1330 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp2_ < ((glong) 0)) { -#line 7997 "ImportPage.c" +#line 8150 "ImportPage.c" glong _tmp3_ = 0L; glong _tmp4_ = 0L; -#line 1331 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1331 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = string_length; -#line 1331 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1331 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = start; -#line 1331 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1331 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" start = _tmp3_ + _tmp4_; -#line 8006 "ImportPage.c" +#line 8159 "ImportPage.c" } -#line 1333 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1333 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = end; -#line 1333 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1333 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp5_ < ((glong) 0)) { -#line 8012 "ImportPage.c" +#line 8165 "ImportPage.c" glong _tmp6_ = 0L; glong _tmp7_ = 0L; -#line 1334 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1334 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp6_ = string_length; -#line 1334 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1334 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp7_ = end; -#line 1334 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1334 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" end = _tmp6_ + _tmp7_; -#line 8021 "ImportPage.c" +#line 8174 "ImportPage.c" } -#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp9_ = start; -#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp9_ >= ((glong) 0)) { -#line 8027 "ImportPage.c" +#line 8180 "ImportPage.c" glong _tmp10_ = 0L; glong _tmp11_ = 0L; -#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp10_ = start; -#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp11_ = string_length; -#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp8_ = _tmp10_ <= _tmp11_; -#line 8036 "ImportPage.c" +#line 8189 "ImportPage.c" } else { -#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp8_ = FALSE; -#line 8040 "ImportPage.c" +#line 8193 "ImportPage.c" } -#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (_tmp8_, NULL); -#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp13_ = end; -#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp13_ >= ((glong) 0)) { -#line 8048 "ImportPage.c" +#line 8201 "ImportPage.c" glong _tmp14_ = 0L; glong _tmp15_ = 0L; -#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp14_ = end; -#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp15_ = string_length; -#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp12_ = _tmp14_ <= _tmp15_; -#line 8057 "ImportPage.c" +#line 8210 "ImportPage.c" } else { -#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp12_ = FALSE; -#line 8061 "ImportPage.c" +#line 8214 "ImportPage.c" } -#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (_tmp12_, NULL); -#line 1338 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1338 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp16_ = start; -#line 1338 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1338 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp17_ = end; -#line 1338 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1338 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (_tmp16_ <= _tmp17_, NULL); -#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp18_ = start; -#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp19_ = end; -#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp20_ = start; -#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp21_ = g_strndup (((gchar*) self) + _tmp18_, (gsize) (_tmp19_ - _tmp20_)); -#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp21_; -#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; -#line 8083 "ImportPage.c" +#line 8236 "ImportPage.c" } @@ -8094,71 +8247,71 @@ static gchar* import_page_chomp_ch (const gchar* str, gchar ch) { gint _tmp1_ = 0; gint _tmp2_ = 0; gchar* _tmp12_ = NULL; -#line 1285 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1307 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (str != NULL, NULL); -#line 1286 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1308 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = str; -#line 1286 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1308 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = strlen (_tmp0_); -#line 1286 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1308 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = _tmp1_; -#line 1286 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1308 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" offset = (glong) _tmp2_; -#line 1287 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1309 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" while (TRUE) { -#line 8106 "ImportPage.c" +#line 8259 "ImportPage.c" glong _tmp3_ = 0L; glong _tmp4_ = 0L; const gchar* _tmp5_ = NULL; glong _tmp6_ = 0L; gchar _tmp7_ = '\0'; gchar _tmp8_ = '\0'; -#line 1287 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1309 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp3_ = offset; -#line 1287 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1309 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" offset = _tmp3_ - 1; -#line 1287 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1309 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp4_ = offset; -#line 1287 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1309 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (!(_tmp4_ >= ((glong) 0))) { -#line 1287 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1309 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" break; -#line 8123 "ImportPage.c" +#line 8276 "ImportPage.c" } -#line 1288 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1310 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp5_ = str; -#line 1288 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1310 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp6_ = offset; -#line 1288 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1310 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp7_ = string_get (_tmp5_, _tmp6_); -#line 1288 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1310 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp8_ = ch; -#line 1288 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1310 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp7_ != _tmp8_) { -#line 8135 "ImportPage.c" +#line 8288 "ImportPage.c" const gchar* _tmp9_ = NULL; glong _tmp10_ = 0L; gchar* _tmp11_ = NULL; -#line 1289 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1311 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp9_ = str; -#line 1289 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1311 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp10_ = offset; -#line 1289 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1311 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp11_ = string_slice (_tmp9_, (glong) 0, _tmp10_); -#line 1289 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1311 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = _tmp11_; -#line 1289 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1311 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 8149 "ImportPage.c" +#line 8302 "ImportPage.c" } } -#line 1292 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1314 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp12_ = g_strdup (""); -#line 1292 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1314 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = _tmp12_; -#line 1292 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1314 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 8158 "ImportPage.c" +#line 8311 "ImportPage.c" } @@ -8167,127 +8320,127 @@ gchar* import_page_append_path (const gchar* basepath, const gchar* addition) { gboolean _tmp0_ = FALSE; const gchar* _tmp1_ = NULL; gboolean _tmp2_ = FALSE; -#line 1295 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1317 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (basepath != NULL, NULL); -#line 1295 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1317 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (addition != NULL, NULL); -#line 1296 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1318 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = basepath; -#line 1296 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1318 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = g_str_has_suffix (_tmp1_, "/"); -#line 1296 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1318 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (!_tmp2_) { -#line 8177 "ImportPage.c" +#line 8330 "ImportPage.c" const gchar* _tmp3_ = NULL; gboolean _tmp4_ = FALSE; -#line 1296 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1318 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp3_ = addition; -#line 1296 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1318 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp4_ = g_str_has_prefix (_tmp3_, "/"); -#line 1296 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1318 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = !_tmp4_; -#line 8186 "ImportPage.c" +#line 8339 "ImportPage.c" } else { -#line 1296 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1318 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = FALSE; -#line 8190 "ImportPage.c" +#line 8343 "ImportPage.c" } -#line 1296 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1318 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp0_) { -#line 8194 "ImportPage.c" +#line 8347 "ImportPage.c" const gchar* _tmp5_ = NULL; gchar* _tmp6_ = NULL; gchar* _tmp7_ = NULL; const gchar* _tmp8_ = NULL; gchar* _tmp9_ = NULL; gchar* _tmp10_ = NULL; -#line 1297 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1319 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp5_ = basepath; -#line 1297 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1319 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp6_ = g_strconcat (_tmp5_, "/", NULL); -#line 1297 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1319 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp7_ = _tmp6_; -#line 1297 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1319 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp8_ = addition; -#line 1297 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1319 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp9_ = g_strconcat (_tmp7_, _tmp8_, NULL); -#line 1297 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1319 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp10_ = _tmp9_; -#line 1297 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1319 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (_tmp7_); -#line 1297 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1319 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = _tmp10_; -#line 1297 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1319 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 8219 "ImportPage.c" +#line 8372 "ImportPage.c" } else { gboolean _tmp11_ = FALSE; const gchar* _tmp12_ = NULL; gboolean _tmp13_ = FALSE; -#line 1298 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1320 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp12_ = basepath; -#line 1298 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1320 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp13_ = g_str_has_suffix (_tmp12_, "/"); -#line 1298 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1320 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp13_) { -#line 8230 "ImportPage.c" +#line 8383 "ImportPage.c" const gchar* _tmp14_ = NULL; gboolean _tmp15_ = FALSE; -#line 1298 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1320 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp14_ = addition; -#line 1298 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1320 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp15_ = g_str_has_prefix (_tmp14_, "/"); -#line 1298 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1320 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp11_ = _tmp15_; -#line 8239 "ImportPage.c" +#line 8392 "ImportPage.c" } else { -#line 1298 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1320 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp11_ = FALSE; -#line 8243 "ImportPage.c" +#line 8396 "ImportPage.c" } -#line 1298 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1320 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp11_) { -#line 8247 "ImportPage.c" +#line 8400 "ImportPage.c" const gchar* _tmp16_ = NULL; gchar* _tmp17_ = NULL; gchar* _tmp18_ = NULL; const gchar* _tmp19_ = NULL; gchar* _tmp20_ = NULL; gchar* _tmp21_ = NULL; -#line 1299 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1321 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp16_ = basepath; -#line 1299 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1321 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp17_ = import_page_chomp_ch (_tmp16_, '/'); -#line 1299 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1321 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp18_ = _tmp17_; -#line 1299 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1321 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp19_ = addition; -#line 1299 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1321 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp20_ = g_strconcat (_tmp18_, _tmp19_, NULL); -#line 1299 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1321 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp21_ = _tmp20_; -#line 1299 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1321 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (_tmp18_); -#line 1299 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1321 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = _tmp21_; -#line 1299 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1321 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 8272 "ImportPage.c" +#line 8425 "ImportPage.c" } else { const gchar* _tmp22_ = NULL; const gchar* _tmp23_ = NULL; gchar* _tmp24_ = NULL; -#line 1301 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1323 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp22_ = basepath; -#line 1301 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1323 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp23_ = addition; -#line 1301 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1323 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp24_ = g_strconcat (_tmp22_, _tmp23_, NULL); -#line 1301 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1323 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = _tmp24_; -#line 1301 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1323 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 8287 "ImportPage.c" +#line 8440 "ImportPage.c" } } } @@ -8313,80 +8466,80 @@ gchar* import_page_get_fs_basedir (Camera* camera, gint fsid) { CameraStorageInformation* _tmp11_ = NULL; CameraStorageInfoFields _tmp12_ = 0; gchar* _tmp15_ = NULL; -#line 1306 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1328 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (camera != NULL, NULL); -#line 1307 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1329 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" sifs = NULL; -#line 1308 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1330 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" count = 0; -#line 1309 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1331 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = camera; -#line 1309 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1331 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = import_page_null_context; -#line 1309 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1331 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = _tmp1_->context; -#line 1309 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1331 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp4_ = gp_camera_get_storageinfo (_tmp0_, &sifs, &_tmp3_, _tmp2_); -#line 1309 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1331 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" count = _tmp3_; -#line 1309 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1331 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" res = _tmp4_; -#line 1310 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1332 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp5_ = res; -#line 1310 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1332 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp5_ != GP_OK) { -#line 1311 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1333 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = NULL; -#line 1311 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1333 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 8339 "ImportPage.c" +#line 8492 "ImportPage.c" } -#line 1313 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1335 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp6_ = fsid; -#line 1313 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1335 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp7_ = count; -#line 1313 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1335 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp6_ >= _tmp7_) { -#line 1314 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1336 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = NULL; -#line 1314 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1336 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 8351 "ImportPage.c" +#line 8504 "ImportPage.c" } -#line 1316 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1338 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp8_ = sifs; -#line 1316 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1338 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp9_ = fsid; -#line 1316 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1338 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" ifs = _tmp8_ + _tmp9_; -#line 1318 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1340 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp11_ = ifs; -#line 1318 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1340 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp12_ = (*_tmp11_).fields; -#line 1318 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1340 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if ((_tmp12_ & GP_STORAGEINFO_BASE) != 0) { -#line 8365 "ImportPage.c" +#line 8518 "ImportPage.c" CameraStorageInformation* _tmp13_ = NULL; const gchar* _tmp14_ = NULL; -#line 1318 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1340 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp13_ = ifs; -#line 1318 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1340 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp14_ = (*_tmp13_).basedir; -#line 1318 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1340 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp10_ = _tmp14_; -#line 8374 "ImportPage.c" +#line 8527 "ImportPage.c" } else { -#line 1318 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1340 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp10_ = "/"; -#line 8378 "ImportPage.c" +#line 8531 "ImportPage.c" } -#line 1318 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1340 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp15_ = g_strdup (_tmp10_); -#line 1318 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1340 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = _tmp15_; -#line 1318 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1340 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 8386 "ImportPage.c" +#line 8539 "ImportPage.c" } @@ -8403,74 +8556,74 @@ gchar* import_page_get_fulldir (Camera* camera, const gchar* camera_name, gint f const gchar* _tmp11_ = NULL; const gchar* _tmp12_ = NULL; gchar* _tmp13_ = NULL; -#line 1321 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1343 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (camera != NULL, NULL); -#line 1321 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1343 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (camera_name != NULL, NULL); -#line 1321 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1343 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (folder != NULL, NULL); -#line 1322 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1344 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = folder; -#line 1322 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1344 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = strlen (_tmp0_); -#line 1322 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1344 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = _tmp1_; -#line 1322 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1344 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp2_ > GP_MAX_BASEDIR_LENGTH) { -#line 1323 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1345 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = NULL; -#line 1323 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1345 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 8421 "ImportPage.c" +#line 8574 "ImportPage.c" } -#line 1325 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1347 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp3_ = camera; -#line 1325 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1347 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp4_ = fsid; -#line 1325 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1347 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp5_ = import_page_get_fs_basedir (_tmp3_, _tmp4_); -#line 1325 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1347 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" basedir = _tmp5_; -#line 1326 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1348 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp6_ = basedir; -#line 1326 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1348 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp6_ == NULL) { -#line 8435 "ImportPage.c" +#line 8588 "ImportPage.c" const gchar* _tmp7_ = NULL; gint _tmp8_ = 0; const gchar* _tmp9_ = NULL; gchar* _tmp10_ = NULL; -#line 1327 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1349 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp7_ = camera_name; -#line 1327 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1349 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp8_ = fsid; -#line 1327 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_debug ("ImportPage.vala:1327: Unable to find base directory for %s fsid %d", _tmp7_, _tmp8_); -#line 1329 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1349 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + g_debug ("ImportPage.vala:1349: Unable to find base directory for %s fsid %d", _tmp7_, _tmp8_); +#line 1351 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp9_ = folder; -#line 1329 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1351 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp10_ = g_strdup (_tmp9_); -#line 1329 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1351 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = _tmp10_; -#line 1329 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1351 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (basedir); -#line 1329 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1351 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 8456 "ImportPage.c" +#line 8609 "ImportPage.c" } -#line 1332 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1354 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp11_ = basedir; -#line 1332 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1354 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp12_ = folder; -#line 1332 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1354 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp13_ = import_page_append_path (_tmp11_, _tmp12_); -#line 1332 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1354 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = _tmp13_; -#line 1332 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1354 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (basedir); -#line 1332 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1354 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 8470 "ImportPage.c" +#line 8623 "ImportPage.c" } @@ -8506,137 +8659,137 @@ static gboolean import_page_enumerate_files (ImportPage* self, gint fsid, const int _tmp120_ = 0; int _tmp121_ = 0; GError * _inner_error_ = NULL; -#line 1335 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1357 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (IS_IMPORT_PAGE (self), FALSE); -#line 1335 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1357 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (dir != NULL, FALSE); -#line 1335 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1357 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (GEE_IS_ARRAY_LIST (import_list), FALSE); -#line 1336 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1358 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = self->priv->camera; -#line 1336 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1358 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = self->priv->camera_name; -#line 1336 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1358 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = fsid; -#line 1336 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1358 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp3_ = dir; -#line 1336 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1358 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp4_ = import_page_get_fulldir (_tmp0_, _tmp1_, _tmp2_, _tmp3_); -#line 1336 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1358 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" fulldir = _tmp4_; -#line 1337 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1359 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp5_ = fulldir; -#line 1337 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1359 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp5_ == NULL) { -#line 8528 "ImportPage.c" +#line 8681 "ImportPage.c" const gchar* _tmp6_ = NULL; -#line 1338 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1360 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp6_ = dir; -#line 1338 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_warning ("ImportPage.vala:1338: Skipping enumerating %s: invalid folder name", _tmp6_); -#line 1340 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1360 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + g_warning ("ImportPage.vala:1360: Skipping enumerating %s: invalid folder name", _tmp6_); +#line 1362 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = TRUE; -#line 1340 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1362 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (fulldir); -#line 1340 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1362 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 8540 "ImportPage.c" +#line 8693 "ImportPage.c" } -#line 1344 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1366 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp8_ = gp_list_new (&_tmp7_); -#line 1344 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1366 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _gp_list_unref0 (files); -#line 1344 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1366 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" files = _tmp7_; -#line 1344 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1366 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->refresh_result = _tmp8_; -#line 1345 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1367 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp9_ = self->priv->refresh_result; -#line 1345 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1367 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp9_ != GP_OK) { -#line 8554 "ImportPage.c" +#line 8707 "ImportPage.c" int _tmp10_ = 0; gchar* _tmp11_ = NULL; gchar* _tmp12_ = NULL; -#line 1346 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1368 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp10_ = self->priv->refresh_result; -#line 1346 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1368 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp11_ = gp_result_to_full_string (_tmp10_); -#line 1346 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1368 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp12_ = _tmp11_; -#line 1346 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_warning ("ImportPage.vala:1346: Unable to create file list: %s", _tmp12_); -#line 1346 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1368 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + g_warning ("ImportPage.vala:1368: Unable to create file list: %s", _tmp12_); +#line 1368 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (_tmp12_); -#line 1348 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1370 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = FALSE; -#line 1348 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1370 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _gp_list_unref0 (files); -#line 1348 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1370 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (fulldir); -#line 1348 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1370 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 8576 "ImportPage.c" +#line 8729 "ImportPage.c" } -#line 1351 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp13_ = self->priv->camera; -#line 1351 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp14_ = fulldir; -#line 1351 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp15_ = files; -#line 1351 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp16_ = import_page_spin_idle_context; -#line 1351 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp17_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper)->context; -#line 1351 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp18_ = gp_camera_folder_list_files (_tmp13_, _tmp14_, _tmp15_, _tmp17_); -#line 1351 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->refresh_result = _tmp18_; -#line 1352 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1374 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp19_ = self->priv->refresh_result; -#line 1352 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1374 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp19_ != GP_OK) { -#line 8596 "ImportPage.c" +#line 8749 "ImportPage.c" const gchar* _tmp20_ = NULL; int _tmp21_ = 0; gchar* _tmp22_ = NULL; gchar* _tmp23_ = NULL; -#line 1353 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1375 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp20_ = fulldir; -#line 1353 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1375 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp21_ = self->priv->refresh_result; -#line 1353 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1375 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp22_ = gp_result_to_full_string (_tmp21_); -#line 1353 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1375 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp23_ = _tmp22_; -#line 1353 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_warning ("ImportPage.vala:1353: Unable to list files in %s: %s", _tmp20_, _tmp23_); -#line 1353 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1375 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + g_warning ("ImportPage.vala:1375: Unable to list files in %s: %s", _tmp20_, _tmp23_); +#line 1375 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (_tmp23_); -#line 1356 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1378 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->refresh_result = GP_OK; -#line 1358 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1380 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = TRUE; -#line 1358 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1380 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _gp_list_unref0 (files); -#line 1358 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1380 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (fulldir); -#line 1358 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1380 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 8623 "ImportPage.c" +#line 8776 "ImportPage.c" } { gint ctr = 0; -#line 1361 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1383 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" ctr = 0; -#line 8629 "ImportPage.c" +#line 8782 "ImportPage.c" { gboolean _tmp24_ = FALSE; -#line 1361 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1383 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp24_ = TRUE; -#line 1361 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1383 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" while (TRUE) { -#line 8636 "ImportPage.c" +#line 8789 "ImportPage.c" gint _tmp26_ = 0; CameraList* _tmp27_ = NULL; gint _tmp28_ = 0; @@ -8647,79 +8800,79 @@ static gboolean import_page_enumerate_files (ImportPage* self, gint fsid, const int _tmp32_ = 0; gchar* _tmp33_ = NULL; int _tmp34_ = 0; -#line 1361 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1383 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (!_tmp24_) { -#line 8649 "ImportPage.c" +#line 8802 "ImportPage.c" gint _tmp25_ = 0; -#line 1361 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1383 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp25_ = ctr; -#line 1361 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1383 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" ctr = _tmp25_ + 1; -#line 8655 "ImportPage.c" +#line 8808 "ImportPage.c" } -#line 1361 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1383 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp24_ = FALSE; -#line 1361 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1383 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp26_ = ctr; -#line 1361 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1383 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp27_ = files; -#line 1361 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1383 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp28_ = gp_list_count (_tmp27_); -#line 1361 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1383 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (!(_tmp26_ < _tmp28_)) { -#line 1361 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1383 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" break; -#line 8669 "ImportPage.c" +#line 8822 "ImportPage.c" } -#line 1363 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1385 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp29_ = files; -#line 1363 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1385 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp30_ = ctr; -#line 1363 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1385 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp32_ = gp_list_get_name (_tmp29_, _tmp30_, &_tmp31_); -#line 1363 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1385 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (filename); -#line 1363 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1385 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp33_ = g_strdup (_tmp31_); -#line 1363 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1385 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" filename = _tmp33_; -#line 1363 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1385 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->refresh_result = _tmp32_; -#line 1364 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1386 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp34_ = self->priv->refresh_result; -#line 1364 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1386 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp34_ != GP_OK) { -#line 8689 "ImportPage.c" +#line 8842 "ImportPage.c" gint _tmp35_ = 0; const gchar* _tmp36_ = NULL; int _tmp37_ = 0; gchar* _tmp38_ = NULL; gchar* _tmp39_ = NULL; -#line 1365 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1387 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp35_ = ctr; -#line 1365 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1387 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp36_ = fulldir; -#line 1365 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1387 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp37_ = self->priv->refresh_result; -#line 1365 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1387 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp38_ = gp_result_to_full_string (_tmp37_); -#line 1365 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1387 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp39_ = _tmp38_; -#line 1365 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_warning ("ImportPage.vala:1365: Unable to get the name of file %d in %s: %s", _tmp35_, _tmp36_, _tmp39_); -#line 1365 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1387 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + g_warning ("ImportPage.vala:1387: Unable to get the name of file %d in %s: %s", _tmp35_, _tmp36_, _tmp39_); +#line 1387 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (_tmp39_); -#line 1368 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1390 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = FALSE; -#line 1368 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1390 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (filename); -#line 1368 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1390 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _gp_list_unref0 (files); -#line 1368 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1390 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (fulldir); -#line 1368 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1390 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 8719 "ImportPage.c" +#line 8872 "ImportPage.c" } { CameraFileInfo info = {0}; @@ -8737,91 +8890,91 @@ static gboolean import_page_enumerate_files (ImportPage* self, gint fsid, const const gchar* _tmp58_ = NULL; gboolean _tmp59_ = FALSE; GtkProgressBar* _tmp102_ = NULL; -#line 1373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1395 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp41_ = import_page_spin_idle_context; -#line 1373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1395 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp42_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper)->context; -#line 1373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1395 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp43_ = self->priv->camera; -#line 1373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1395 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp44_ = fulldir; -#line 1373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1395 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp45_ = filename; -#line 1373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1395 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp47_ = gp_get_info (_tmp42_, _tmp43_, _tmp44_, _tmp45_, &_tmp46_, &_inner_error_); -#line 1373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1395 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" (info); -#line 1373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1395 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" info = _tmp46_; -#line 1373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1395 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp40_ = _tmp47_; -#line 1373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1395 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1395 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" (info); -#line 8759 "ImportPage.c" - goto __catch64_g_error; +#line 8912 "ImportPage.c" + goto __catch66_g_error; } -#line 1373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1395 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (!_tmp40_) { -#line 8764 "ImportPage.c" +#line 8917 "ImportPage.c" const gchar* _tmp48_ = NULL; const gchar* _tmp49_ = NULL; -#line 1374 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1396 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp48_ = fulldir; -#line 1374 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1396 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp49_ = filename; -#line 1374 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_warning ("ImportPage.vala:1374: Skipping import of %s/%s: name too long", _tmp48_, _tmp49_); -#line 1376 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1396 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + g_warning ("ImportPage.vala:1396: Skipping import of %s/%s: name too long", _tmp48_, _tmp49_); +#line 1398 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" (info); -#line 1376 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1398 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (filename); -#line 1376 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1398 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" continue; -#line 8779 "ImportPage.c" +#line 8932 "ImportPage.c" } -#line 1379 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1401 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp50_ = info; -#line 1379 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1401 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp51_ = _tmp50_.file; -#line 1379 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1401 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp52_ = _tmp51_.fields; -#line 1379 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1401 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if ((_tmp52_ & GP_FILE_INFO_TYPE) == 0) { -#line 8789 "ImportPage.c" +#line 8942 "ImportPage.c" const gchar* _tmp53_ = NULL; const gchar* _tmp54_ = NULL; CameraFileInfo _tmp55_ = {0}; CameraFileInfoFile _tmp56_ = {0}; CameraFileInfoFields _tmp57_ = 0; -#line 1380 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1402 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp53_ = fulldir; -#line 1380 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1402 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp54_ = filename; -#line 1380 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1402 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp55_ = info; -#line 1380 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1402 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp56_ = _tmp55_.file; -#line 1380 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1402 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp57_ = _tmp56_.fields; -#line 1380 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_message ("ImportPage.vala:1380: Skipping %s/%s: No file (file=%02Xh)", _tmp53_, _tmp54_, (guint) _tmp57_); -#line 1383 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1402 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + g_message ("ImportPage.vala:1402: Skipping %s/%s: No file (file=%02Xh)", _tmp53_, _tmp54_, (guint) _tmp57_); +#line 1405 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" (info); -#line 1383 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1405 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (filename); -#line 1383 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1405 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" continue; -#line 8813 "ImportPage.c" +#line 8966 "ImportPage.c" } -#line 1386 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1408 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp58_ = filename; -#line 1386 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1408 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp59_ = video_reader_is_supported_video_filename (_tmp58_); -#line 1386 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1408 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp59_) { -#line 8821 "ImportPage.c" +#line 8974 "ImportPage.c" VideoImportSource* video_source = NULL; const gchar* _tmp60_ = NULL; Camera* _tmp61_ = NULL; @@ -8837,41 +8990,41 @@ static gboolean import_page_enumerate_files (ImportPage* self, gint fsid, const VideoImportSource* _tmp71_ = NULL; GeeArrayList* _tmp72_ = NULL; VideoImportSource* _tmp73_ = NULL; -#line 1387 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1409 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp60_ = self->priv->camera_name; -#line 1387 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1409 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp61_ = self->priv->camera; -#line 1387 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1409 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp62_ = fsid; -#line 1387 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1409 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp63_ = dir; -#line 1387 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1409 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp64_ = filename; -#line 1387 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1409 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp65_ = info; -#line 1387 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1409 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp66_ = _tmp65_.file; -#line 1387 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1409 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp67_ = _tmp66_.size; -#line 1387 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1409 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp68_ = info; -#line 1387 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1409 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp69_ = _tmp68_.file; -#line 1387 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1409 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp70_ = _tmp69_.mtime; -#line 1387 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1409 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp71_ = video_import_source_new (_tmp60_, _tmp61_, _tmp62_, _tmp63_, _tmp64_, _tmp67_, _tmp70_); -#line 1387 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1409 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" video_source = _tmp71_; -#line 1389 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp72_ = import_list; -#line 1389 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp73_ = video_source; -#line 1389 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp72_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp73_, TYPE_IMPORT_SOURCE, ImportSource)); -#line 1386 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1408 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (video_source); -#line 8871 "ImportPage.c" +#line 9024 "ImportPage.c" } else { PhotoFileFormat file_format = 0; CameraFileInfo _tmp74_ = {0}; @@ -8894,110 +9047,110 @@ static gboolean import_page_enumerate_files (ImportPage* self, gint fsid, const PhotoFileFormat _tmp99_ = 0; PhotoImportSource* _tmp100_ = NULL; PhotoImportSource* _tmp101_ = NULL; -#line 1392 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1414 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp74_ = info; -#line 1392 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1414 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp75_ = _tmp74_.file; -#line 1392 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1414 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp76_ = _tmp75_.type; -#line 1392 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1414 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp77_ = photo_file_format_from_gphoto_type (_tmp76_); -#line 1392 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1414 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" file_format = _tmp77_; -#line 1393 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp78_ = file_format; -#line 1393 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp78_ == PHOTO_FILE_FORMAT_UNKNOWN) { -#line 8908 "ImportPage.c" +#line 9061 "ImportPage.c" const gchar* _tmp79_ = NULL; PhotoFileFormat _tmp80_ = 0; PhotoFileFormat _tmp81_ = 0; -#line 1394 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1416 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp79_ = filename; -#line 1394 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1416 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp80_ = photo_file_format_get_by_basename_extension (_tmp79_); -#line 1394 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1416 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" file_format = _tmp80_; -#line 1395 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1417 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp81_ = file_format; -#line 1395 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1417 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp81_ == PHOTO_FILE_FORMAT_UNKNOWN) { -#line 8922 "ImportPage.c" +#line 9075 "ImportPage.c" const gchar* _tmp82_ = NULL; const gchar* _tmp83_ = NULL; CameraFileInfo _tmp84_ = {0}; CameraFileInfoFile _tmp85_ = {0}; const gchar* _tmp86_ = NULL; -#line 1396 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1418 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp82_ = fulldir; -#line 1396 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1418 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp83_ = filename; -#line 1396 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1418 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp84_ = info; -#line 1396 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1418 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp85_ = _tmp84_.file; -#line 1396 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1418 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp86_ = _tmp85_.type; -#line 1396 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_message ("ImportPage.vala:1396: Skipping %s/%s: Not a supported file extension (" \ +#line 1418 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + g_message ("ImportPage.vala:1418: Skipping %s/%s: Not a supported file extension (" \ "%s)", _tmp82_, _tmp83_, _tmp86_); -#line 1399 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1421 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" (info); -#line 1399 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1421 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (filename); -#line 1399 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1421 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" continue; -#line 8946 "ImportPage.c" +#line 9099 "ImportPage.c" } } -#line 1402 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1424 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp87_ = import_list; -#line 1402 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1424 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp88_ = self->priv->camera_name; -#line 1402 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1424 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp89_ = self->priv->camera; -#line 1402 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1424 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp90_ = fsid; -#line 1402 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1424 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp91_ = dir; -#line 1402 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1424 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp92_ = filename; -#line 1402 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1424 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp93_ = info; -#line 1402 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1424 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp94_ = _tmp93_.file; -#line 1402 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1424 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp95_ = _tmp94_.size; -#line 1402 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1424 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp96_ = info; -#line 1402 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1424 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp97_ = _tmp96_.file; -#line 1402 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1424 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp98_ = _tmp97_.mtime; -#line 1402 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1424 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp99_ = file_format; -#line 1402 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1424 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp100_ = photo_import_source_new (_tmp88_, _tmp89_, _tmp90_, _tmp91_, _tmp92_, _tmp95_, _tmp98_, _tmp99_); -#line 1402 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1424 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp101_ = _tmp100_; -#line 1402 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1424 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp87_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp101_, TYPE_IMPORT_SOURCE, ImportSource)); -#line 1402 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1424 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_tmp101_); -#line 8983 "ImportPage.c" +#line 9136 "ImportPage.c" } -#line 1406 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1428 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp102_ = self->priv->progress_bar; -#line 1406 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1428 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_progress_bar_pulse (_tmp102_); -#line 1409 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1431 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" spin_event_loop (); -#line 1371 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1393 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" (info); -#line 8993 "ImportPage.c" +#line 9146 "ImportPage.c" } - goto __finally64; - __catch64_g_error: + goto __finally66; + __catch66_g_error: { GError* err = NULL; const gchar* _tmp103_ = NULL; @@ -9006,164 +9159,164 @@ static gboolean import_page_enumerate_files (ImportPage* self, gint fsid, const GError* _tmp106_ = NULL; const gchar* _tmp107_ = NULL; gchar* _tmp108_ = NULL; -#line 1371 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1393 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" err = _inner_error_; -#line 1371 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1393 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _inner_error_ = NULL; -#line 1411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1433 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp103_ = fulldir; -#line 1411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1433 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp104_ = err; -#line 1411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1433 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp105_ = _tmp104_->message; -#line 1411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_warning ("ImportPage.vala:1411: Error while enumerating files in %s: %s", _tmp103_, _tmp105_); -#line 1413 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1433 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + g_warning ("ImportPage.vala:1433: Error while enumerating files in %s: %s", _tmp103_, _tmp105_); +#line 1435 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp106_ = err; -#line 1413 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1435 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp107_ = _tmp106_->message; -#line 1413 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1435 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp108_ = g_strdup (_tmp107_); -#line 1413 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1435 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (self->priv->refresh_error); -#line 1413 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1435 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->refresh_error = _tmp108_; -#line 1415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = FALSE; -#line 1415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_error_free0 (err); -#line 1415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (filename); -#line 1415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _gp_list_unref0 (files); -#line 1415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (fulldir); -#line 1415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 9039 "ImportPage.c" +#line 9192 "ImportPage.c" } - __finally64: -#line 1371 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + __finally66: +#line 1393 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1371 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1393 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (filename); -#line 1371 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1393 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _gp_list_unref0 (files); -#line 1371 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1393 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (fulldir); -#line 1371 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1393 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1371 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1393 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_clear_error (&_inner_error_); -#line 1371 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1393 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return FALSE; -#line 9056 "ImportPage.c" +#line 9209 "ImportPage.c" } -#line 1361 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1383 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (filename); -#line 9060 "ImportPage.c" +#line 9213 "ImportPage.c" } } } -#line 1420 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1442 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp110_ = gp_list_new (&_tmp109_); -#line 1420 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1442 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _gp_list_unref0 (folders); -#line 1420 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1442 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" folders = _tmp109_; -#line 1420 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1442 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->refresh_result = _tmp110_; -#line 1421 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1443 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp111_ = self->priv->refresh_result; -#line 1421 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1443 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp111_ != GP_OK) { -#line 9076 "ImportPage.c" +#line 9229 "ImportPage.c" int _tmp112_ = 0; gchar* _tmp113_ = NULL; gchar* _tmp114_ = NULL; -#line 1422 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1444 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp112_ = self->priv->refresh_result; -#line 1422 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1444 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp113_ = gp_result_to_full_string (_tmp112_); -#line 1422 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1444 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp114_ = _tmp113_; -#line 1422 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_warning ("ImportPage.vala:1422: Unable to create folder list: %s", _tmp114_); -#line 1422 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1444 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + g_warning ("ImportPage.vala:1444: Unable to create folder list: %s", _tmp114_); +#line 1444 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (_tmp114_); -#line 1424 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1446 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = FALSE; -#line 1424 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1446 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _gp_list_unref0 (folders); -#line 1424 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1446 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _gp_list_unref0 (files); -#line 1424 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1446 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (fulldir); -#line 1424 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1446 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 9100 "ImportPage.c" +#line 9253 "ImportPage.c" } -#line 1427 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1449 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp115_ = self->priv->camera; -#line 1427 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1449 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp116_ = fulldir; -#line 1427 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1449 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp117_ = folders; -#line 1427 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1449 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp118_ = import_page_spin_idle_context; -#line 1427 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1449 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp119_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp118_, GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper)->context; -#line 1427 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1449 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp120_ = gp_camera_folder_list_folders (_tmp115_, _tmp116_, _tmp117_, _tmp119_); -#line 1427 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1449 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->refresh_result = _tmp120_; -#line 1428 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1450 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp121_ = self->priv->refresh_result; -#line 1428 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1450 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp121_ != GP_OK) { -#line 9120 "ImportPage.c" +#line 9273 "ImportPage.c" const gchar* _tmp122_ = NULL; int _tmp123_ = 0; gchar* _tmp124_ = NULL; gchar* _tmp125_ = NULL; -#line 1429 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1451 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp122_ = fulldir; -#line 1429 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1451 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp123_ = self->priv->refresh_result; -#line 1429 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1451 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp124_ = gp_result_to_full_string (_tmp123_); -#line 1429 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1451 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp125_ = _tmp124_; -#line 1429 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_warning ("ImportPage.vala:1429: Unable to list folders in %s: %s", _tmp122_, _tmp125_); -#line 1429 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1451 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + g_warning ("ImportPage.vala:1451: Unable to list folders in %s: %s", _tmp122_, _tmp125_); +#line 1451 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (_tmp125_); -#line 1432 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1454 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->refresh_result = GP_OK; -#line 1434 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1456 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = TRUE; -#line 1434 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1456 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _gp_list_unref0 (folders); -#line 1434 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1456 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _gp_list_unref0 (files); -#line 1434 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1456 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (fulldir); -#line 1434 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1456 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 9149 "ImportPage.c" +#line 9302 "ImportPage.c" } { gint ctr = 0; -#line 1437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1459 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" ctr = 0; -#line 9155 "ImportPage.c" +#line 9308 "ImportPage.c" { gboolean _tmp126_ = FALSE; -#line 1437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1459 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp126_ = TRUE; -#line 1437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1459 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" while (TRUE) { -#line 9162 "ImportPage.c" +#line 9315 "ImportPage.c" gint _tmp128_ = 0; CameraList* _tmp129_ = NULL; gint _tmp130_ = 0; @@ -9182,151 +9335,151 @@ static gboolean import_page_enumerate_files (ImportPage* self, gint fsid, const GeeArrayList* _tmp146_ = NULL; gboolean _tmp147_ = FALSE; gboolean _tmp148_ = FALSE; -#line 1437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1459 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (!_tmp126_) { -#line 9183 "ImportPage.c" +#line 9336 "ImportPage.c" gint _tmp127_ = 0; -#line 1437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1459 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp127_ = ctr; -#line 1437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1459 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" ctr = _tmp127_ + 1; -#line 9189 "ImportPage.c" +#line 9342 "ImportPage.c" } -#line 1437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1459 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp126_ = FALSE; -#line 1437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1459 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp128_ = ctr; -#line 1437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1459 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp129_ = folders; -#line 1437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1459 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp130_ = gp_list_count (_tmp129_); -#line 1437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1459 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (!(_tmp128_ < _tmp130_)) { -#line 1437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1459 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" break; -#line 9203 "ImportPage.c" +#line 9356 "ImportPage.c" } -#line 1439 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1461 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp131_ = folders; -#line 1439 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1461 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp132_ = ctr; -#line 1439 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1461 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp134_ = gp_list_get_name (_tmp131_, _tmp132_, &_tmp133_); -#line 1439 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1461 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (subdir); -#line 1439 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1461 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp135_ = g_strdup (_tmp133_); -#line 1439 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1461 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" subdir = _tmp135_; -#line 1439 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1461 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->refresh_result = _tmp134_; -#line 1440 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1462 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp136_ = self->priv->refresh_result; -#line 1440 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1462 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp136_ != GP_OK) { -#line 9223 "ImportPage.c" +#line 9376 "ImportPage.c" gint _tmp137_ = 0; int _tmp138_ = 0; gchar* _tmp139_ = NULL; gchar* _tmp140_ = NULL; -#line 1441 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1463 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp137_ = ctr; -#line 1441 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1463 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp138_ = self->priv->refresh_result; -#line 1441 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1463 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp139_ = gp_result_to_full_string (_tmp138_); -#line 1441 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1463 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp140_ = _tmp139_; -#line 1441 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_warning ("ImportPage.vala:1441: Unable to get name of folder %d: %s", _tmp137_, _tmp140_); -#line 1441 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1463 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + g_warning ("ImportPage.vala:1463: Unable to get name of folder %d: %s", _tmp137_, _tmp140_); +#line 1463 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (_tmp140_); -#line 1443 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = FALSE; -#line 1443 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (subdir); -#line 1443 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _gp_list_unref0 (folders); -#line 1443 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _gp_list_unref0 (files); -#line 1443 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (fulldir); -#line 1443 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 9252 "ImportPage.c" +#line 9405 "ImportPage.c" } -#line 1446 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1468 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp141_ = fsid; -#line 1446 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1468 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp142_ = dir; -#line 1446 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1468 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp143_ = subdir; -#line 1446 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1468 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp144_ = import_page_append_path (_tmp142_, _tmp143_); -#line 1446 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1468 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp145_ = _tmp144_; -#line 1446 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1468 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp146_ = import_list; -#line 1446 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1468 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp147_ = import_page_enumerate_files (self, _tmp141_, _tmp145_, _tmp146_); -#line 1446 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1468 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp148_ = !_tmp147_; -#line 1446 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1468 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (_tmp145_); -#line 1446 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1468 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp148_) { -#line 1447 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1469 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = FALSE; -#line 1447 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1469 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (subdir); -#line 1447 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1469 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _gp_list_unref0 (folders); -#line 1447 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1469 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _gp_list_unref0 (files); -#line 1447 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1469 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (fulldir); -#line 1447 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1469 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 9286 "ImportPage.c" +#line 9439 "ImportPage.c" } -#line 1437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1459 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (subdir); -#line 9290 "ImportPage.c" +#line 9443 "ImportPage.c" } } } -#line 1450 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1472 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = TRUE; -#line 1450 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1472 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _gp_list_unref0 (folders); -#line 1450 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1472 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _gp_list_unref0 (files); -#line 1450 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1472 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (fulldir); -#line 1450 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1472 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 9304 "ImportPage.c" +#line 9457 "ImportPage.c" } static void import_page_auto_match_raw_jpeg (ImportPage* self, GeeArrayList* import_list) { -#line 1454 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1476 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_if_fail (IS_IMPORT_PAGE (self)); -#line 1454 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1476 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_if_fail (GEE_IS_ARRAY_LIST (import_list)); -#line 9313 "ImportPage.c" +#line 9466 "ImportPage.c" { gint i = 0; -#line 1455 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1477 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" i = 0; -#line 9318 "ImportPage.c" +#line 9471 "ImportPage.c" { gboolean _tmp0_ = FALSE; -#line 1455 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1477 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = TRUE; -#line 1455 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1477 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" while (TRUE) { -#line 9325 "ImportPage.c" +#line 9478 "ImportPage.c" gint _tmp2_ = 0; GeeArrayList* _tmp3_ = NULL; gint _tmp4_ = 0; @@ -9350,162 +9503,162 @@ static void import_page_auto_match_raw_jpeg (ImportPage* self, GeeArrayList* imp PhotoImportSource* _tmp29_ = NULL; gboolean _tmp30_ = FALSE; PhotoImportSource* _tmp31_ = NULL; -#line 1455 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1477 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (!_tmp0_) { -#line 9351 "ImportPage.c" +#line 9504 "ImportPage.c" gint _tmp1_ = 0; -#line 1455 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1477 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = i; -#line 1455 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1477 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" i = _tmp1_ + 1; -#line 9357 "ImportPage.c" +#line 9510 "ImportPage.c" } -#line 1455 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1477 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = FALSE; -#line 1455 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1477 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = i; -#line 1455 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1477 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp3_ = import_list; -#line 1455 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1477 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp4_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1455 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1477 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp5_ = _tmp4_; -#line 1455 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1477 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (!(_tmp2_ < _tmp5_)) { -#line 1455 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1477 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" break; -#line 9373 "ImportPage.c" +#line 9526 "ImportPage.c" } -#line 1456 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1478 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp6_ = import_list; -#line 1456 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1478 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp7_ = i; -#line 1456 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1478 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp8_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp7_); -#line 1456 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1478 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp9_ = (ImportSource*) _tmp8_; -#line 1456 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1478 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp10_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, TYPE_PHOTO_IMPORT_SOURCE) ? ((PhotoImportSource*) _tmp9_) : NULL; -#line 1456 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1478 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp10_ == NULL) { -#line 1456 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1478 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_tmp9_); -#line 9389 "ImportPage.c" +#line 9542 "ImportPage.c" } -#line 1456 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1478 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" current = _tmp10_; -#line 1457 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1479 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp12_ = i; -#line 1457 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1479 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp13_ = import_list; -#line 1457 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1479 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp14_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1457 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1479 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp15_ = _tmp14_; -#line 1457 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1479 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if ((_tmp12_ + 1) < _tmp15_) { -#line 9403 "ImportPage.c" +#line 9556 "ImportPage.c" GeeArrayList* _tmp16_ = NULL; gint _tmp17_ = 0; gpointer _tmp18_ = NULL; ImportSource* _tmp19_ = NULL; PhotoImportSource* _tmp20_ = NULL; -#line 1458 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp16_ = import_list; -#line 1458 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp17_ = i; -#line 1458 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp18_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp17_ + 1); -#line 1458 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp19_ = (ImportSource*) _tmp18_; -#line 1458 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp20_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp19_, TYPE_PHOTO_IMPORT_SOURCE) ? ((PhotoImportSource*) _tmp19_) : NULL; -#line 1458 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp20_ == NULL) { -#line 1458 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_tmp19_); -#line 9423 "ImportPage.c" +#line 9576 "ImportPage.c" } -#line 1458 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_tmp11_); -#line 1458 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp11_ = _tmp20_; -#line 9429 "ImportPage.c" +#line 9582 "ImportPage.c" } else { -#line 1458 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_tmp11_); -#line 1458 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp11_ = NULL; -#line 9435 "ImportPage.c" +#line 9588 "ImportPage.c" } -#line 1457 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1479 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp21_ = _g_object_ref0 (_tmp11_); -#line 1457 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1479 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" next = _tmp21_; -#line 1459 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1481 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp23_ = i; -#line 1459 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1481 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp23_ > 0) { -#line 9445 "ImportPage.c" +#line 9598 "ImportPage.c" GeeArrayList* _tmp24_ = NULL; gint _tmp25_ = 0; gpointer _tmp26_ = NULL; ImportSource* _tmp27_ = NULL; PhotoImportSource* _tmp28_ = NULL; -#line 1460 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1482 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp24_ = import_list; -#line 1460 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1482 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp25_ = i; -#line 1460 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1482 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp26_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp25_ - 1); -#line 1460 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1482 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp27_ = (ImportSource*) _tmp26_; -#line 1460 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1482 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp28_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp27_, TYPE_PHOTO_IMPORT_SOURCE) ? ((PhotoImportSource*) _tmp27_) : NULL; -#line 1460 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1482 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp28_ == NULL) { -#line 1460 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1482 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_tmp27_); -#line 9465 "ImportPage.c" +#line 9618 "ImportPage.c" } -#line 1460 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1482 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_tmp22_); -#line 1460 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1482 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp22_ = _tmp28_; -#line 9471 "ImportPage.c" +#line 9624 "ImportPage.c" } else { -#line 1460 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1482 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_tmp22_); -#line 1460 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1482 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp22_ = NULL; -#line 9477 "ImportPage.c" +#line 9630 "ImportPage.c" } -#line 1459 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1481 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp29_ = _g_object_ref0 (_tmp22_); -#line 1459 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1481 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" prev = _tmp29_; -#line 1461 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1483 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp31_ = current; -#line 1461 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1483 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp31_ != NULL) { -#line 9487 "ImportPage.c" +#line 9640 "ImportPage.c" PhotoImportSource* _tmp32_ = NULL; PhotoFileFormat _tmp33_ = 0; -#line 1461 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1483 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp32_ = current; -#line 1461 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1483 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp33_ = photo_import_source_get_file_format (_tmp32_); -#line 1461 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1483 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp30_ = _tmp33_ == PHOTO_FILE_FORMAT_RAW; -#line 9496 "ImportPage.c" +#line 9649 "ImportPage.c" } else { -#line 1461 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1483 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp30_ = FALSE; -#line 9500 "ImportPage.c" +#line 9653 "ImportPage.c" } -#line 1461 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1483 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp30_) { -#line 9504 "ImportPage.c" +#line 9657 "ImportPage.c" gchar* current_name = NULL; gchar* ext = NULL; PhotoImportSource* _tmp34_ = NULL; @@ -9519,48 +9672,48 @@ static void import_page_auto_match_raw_jpeg (ImportPage* self, GeeArrayList* imp gboolean _tmp52_ = FALSE; PhotoImportSource* _tmp53_ = NULL; PhotoImportSource* _tmp65_ = NULL; -#line 1464 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1486 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp34_ = current; -#line 1464 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1486 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp35_ = import_source_get_filename (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, TYPE_IMPORT_SOURCE, ImportSource)); -#line 1464 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1486 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp36_ = _tmp35_; -#line 1464 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1486 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" disassemble_filename (_tmp36_, &_tmp37_, &_tmp38_); -#line 1464 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1486 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (current_name); -#line 1464 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1486 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" current_name = _tmp37_; -#line 1464 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1486 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (ext); -#line 1464 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1486 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" ext = _tmp38_; -#line 1464 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1486 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (_tmp36_); -#line 1467 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1489 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" associated = NULL; -#line 1468 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1490 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp40_ = next; -#line 1468 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1490 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp40_ != NULL) { -#line 9542 "ImportPage.c" +#line 9695 "ImportPage.c" PhotoImportSource* _tmp41_ = NULL; PhotoFileFormat _tmp42_ = 0; -#line 1468 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1490 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp41_ = next; -#line 1468 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1490 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp42_ = photo_import_source_get_file_format (_tmp41_); -#line 1468 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1490 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp39_ = _tmp42_ == PHOTO_FILE_FORMAT_JFIF; -#line 9551 "ImportPage.c" +#line 9704 "ImportPage.c" } else { -#line 1468 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1490 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp39_ = FALSE; -#line 9555 "ImportPage.c" +#line 9708 "ImportPage.c" } -#line 1468 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1490 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp39_) { -#line 9559 "ImportPage.c" +#line 9712 "ImportPage.c" gchar* next_name = NULL; PhotoImportSource* _tmp43_ = NULL; gchar* _tmp44_ = NULL; @@ -9569,69 +9722,69 @@ static void import_page_auto_match_raw_jpeg (ImportPage* self, GeeArrayList* imp gchar* _tmp47_ = NULL; const gchar* _tmp48_ = NULL; const gchar* _tmp49_ = NULL; -#line 1470 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1492 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp43_ = next; -#line 1470 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1492 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp44_ = import_source_get_filename (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, TYPE_IMPORT_SOURCE, ImportSource)); -#line 1470 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1492 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp45_ = _tmp44_; -#line 1470 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1492 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" disassemble_filename (_tmp45_, &_tmp46_, &_tmp47_); -#line 1470 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1492 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (next_name); -#line 1470 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1492 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" next_name = _tmp46_; -#line 1470 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1492 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (ext); -#line 1470 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1492 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" ext = _tmp47_; -#line 1470 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1492 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (_tmp45_); -#line 1471 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1493 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp48_ = next_name; -#line 1471 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1493 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp49_ = current_name; -#line 1471 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1493 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (g_strcmp0 (_tmp48_, _tmp49_) == 0) { -#line 9592 "ImportPage.c" +#line 9745 "ImportPage.c" PhotoImportSource* _tmp50_ = NULL; PhotoImportSource* _tmp51_ = NULL; -#line 1472 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1494 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp50_ = next; -#line 1472 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1494 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp51_ = _g_object_ref0 (_tmp50_); -#line 1472 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1494 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (associated); -#line 1472 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1494 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" associated = _tmp51_; -#line 9603 "ImportPage.c" +#line 9756 "ImportPage.c" } -#line 1468 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1490 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (next_name); -#line 9607 "ImportPage.c" +#line 9760 "ImportPage.c" } -#line 1474 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp53_ = prev; -#line 1474 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp53_ != NULL) { -#line 9613 "ImportPage.c" +#line 9766 "ImportPage.c" PhotoImportSource* _tmp54_ = NULL; PhotoFileFormat _tmp55_ = 0; -#line 1474 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp54_ = prev; -#line 1474 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp55_ = photo_import_source_get_file_format (_tmp54_); -#line 1474 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp52_ = _tmp55_ == PHOTO_FILE_FORMAT_JFIF; -#line 9622 "ImportPage.c" +#line 9775 "ImportPage.c" } else { -#line 1474 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp52_ = FALSE; -#line 9626 "ImportPage.c" +#line 9779 "ImportPage.c" } -#line 1474 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp52_) { -#line 9630 "ImportPage.c" +#line 9783 "ImportPage.c" gchar* prev_name = NULL; PhotoImportSource* _tmp56_ = NULL; gchar* _tmp57_ = NULL; @@ -9640,52 +9793,52 @@ static void import_page_auto_match_raw_jpeg (ImportPage* self, GeeArrayList* imp gchar* _tmp60_ = NULL; const gchar* _tmp61_ = NULL; const gchar* _tmp62_ = NULL; -#line 1476 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1498 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp56_ = prev; -#line 1476 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1498 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp57_ = import_source_get_filename (G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, TYPE_IMPORT_SOURCE, ImportSource)); -#line 1476 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1498 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp58_ = _tmp57_; -#line 1476 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1498 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" disassemble_filename (_tmp58_, &_tmp59_, &_tmp60_); -#line 1476 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1498 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (prev_name); -#line 1476 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1498 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" prev_name = _tmp59_; -#line 1476 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1498 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (ext); -#line 1476 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1498 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" ext = _tmp60_; -#line 1476 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1498 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (_tmp58_); -#line 1477 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1499 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp61_ = prev_name; -#line 1477 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1499 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp62_ = current_name; -#line 1477 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1499 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (g_strcmp0 (_tmp61_, _tmp62_) == 0) { -#line 9663 "ImportPage.c" +#line 9816 "ImportPage.c" PhotoImportSource* _tmp63_ = NULL; PhotoImportSource* _tmp64_ = NULL; -#line 1478 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1500 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp63_ = prev; -#line 1478 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1500 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp64_ = _g_object_ref0 (_tmp63_); -#line 1478 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1500 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (associated); -#line 1478 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1500 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" associated = _tmp64_; -#line 9674 "ImportPage.c" +#line 9827 "ImportPage.c" } -#line 1474 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (prev_name); -#line 9678 "ImportPage.c" +#line 9831 "ImportPage.c" } -#line 1482 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1504 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp65_ = associated; -#line 1482 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1504 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp65_ != NULL) { -#line 9684 "ImportPage.c" +#line 9837 "ImportPage.c" PhotoImportSource* _tmp66_ = NULL; gchar* _tmp67_ = NULL; gchar* _tmp68_ = NULL; @@ -9697,68 +9850,68 @@ static void import_page_auto_match_raw_jpeg (ImportPage* self, GeeArrayList* imp GeeArrayList* _tmp74_ = NULL; PhotoImportSource* _tmp75_ = NULL; gboolean _tmp76_ = FALSE; -#line 1483 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp66_ = current; -#line 1483 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp67_ = import_source_get_filename (G_TYPE_CHECK_INSTANCE_CAST (_tmp66_, TYPE_IMPORT_SOURCE, ImportSource)); -#line 1483 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp68_ = _tmp67_; -#line 1483 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp69_ = associated; -#line 1483 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp70_ = import_source_get_filename (G_TYPE_CHECK_INSTANCE_CAST (_tmp69_, TYPE_IMPORT_SOURCE, ImportSource)); -#line 1483 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp71_ = _tmp70_; -#line 1483 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_debug ("ImportPage.vala:1483: Found RAW+JPEG pair: %s and %s", _tmp68_, _tmp71_); -#line 1483 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + g_debug ("ImportPage.vala:1505: Found RAW+JPEG pair: %s and %s", _tmp68_, _tmp71_); +#line 1505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (_tmp71_); -#line 1483 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (_tmp68_); -#line 1484 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1506 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp72_ = current; -#line 1484 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1506 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp73_ = associated; -#line 1484 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1506 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" photo_import_source_set_associated (_tmp72_, _tmp73_); -#line 1485 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1507 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp74_ = import_list; -#line 1485 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1507 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp75_ = associated; -#line 1485 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1507 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp76_ = gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp74_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp75_, TYPE_IMPORT_SOURCE, ImportSource)); -#line 1485 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1507 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (!_tmp76_) { -#line 9728 "ImportPage.c" +#line 9881 "ImportPage.c" PhotoImportSource* _tmp77_ = NULL; -#line 1486 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_debug ("ImportPage.vala:1486: Unable to associate files"); -#line 1487 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1508 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + g_debug ("ImportPage.vala:1508: Unable to associate files"); +#line 1509 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp77_ = current; -#line 1487 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1509 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" photo_import_source_set_associated (_tmp77_, NULL); -#line 9736 "ImportPage.c" +#line 9889 "ImportPage.c" } } -#line 1461 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1483 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (associated); -#line 1461 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1483 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (ext); -#line 1461 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1483 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (current_name); -#line 9745 "ImportPage.c" +#line 9898 "ImportPage.c" } -#line 1455 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1477 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (prev); -#line 1455 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1477 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_tmp22_); -#line 1455 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1477 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (next); -#line 1455 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1477 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_tmp11_); -#line 1455 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1477 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (current); -#line 9757 "ImportPage.c" +#line 9910 "ImportPage.c" } } } @@ -9768,13 +9921,13 @@ static void import_page_auto_match_raw_jpeg (ImportPage* self, GeeArrayList* imp static void import_page_load_previews_and_metadata (ImportPage* self, GeeList* import_list) { gint loaded_photos = 0; GError * _inner_error_ = NULL; -#line 1494 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1516 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_if_fail (IS_IMPORT_PAGE (self)); -#line 1494 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1516 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_if_fail (GEE_IS_LIST (import_list)); -#line 1495 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1517 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" loaded_photos = 0; -#line 9773 "ImportPage.c" +#line 9926 "ImportPage.c" { GeeList* _import_source_list = NULL; GeeList* _tmp0_ = NULL; @@ -9784,25 +9937,25 @@ static void import_page_load_previews_and_metadata (ImportPage* self, GeeList* i gint _tmp3_ = 0; gint _tmp4_ = 0; gint _import_source_index = 0; -#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1518 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = import_list; -#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1518 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = _g_object_ref0 (_tmp0_); -#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1518 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _import_source_list = _tmp1_; -#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1518 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = _import_source_list; -#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1518 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1518 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp4_ = _tmp3_; -#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1518 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _import_source_size = _tmp4_; -#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1518 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _import_source_index = -1; -#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1518 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" while (TRUE) { -#line 9801 "ImportPage.c" +#line 9954 "ImportPage.c" gint _tmp5_ = 0; gint _tmp6_ = 0; gint _tmp7_ = 0; @@ -9853,143 +10006,143 @@ static void import_page_load_previews_and_metadata (ImportPage* self, GeeList* i GeeList* _tmp130_ = NULL; gint _tmp131_ = 0; gint _tmp132_ = 0; -#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1518 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp5_ = _import_source_index; -#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1518 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _import_source_index = _tmp5_ + 1; -#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1518 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp6_ = _import_source_index; -#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1518 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp7_ = _import_source_size; -#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1518 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (!(_tmp6_ < _tmp7_)) { -#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1518 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" break; -#line 9864 "ImportPage.c" +#line 10017 "ImportPage.c" } -#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1518 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp8_ = _import_source_list; -#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1518 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp9_ = _import_source_index; -#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1518 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp10_ = gee_list_get (_tmp8_, _tmp9_); -#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1518 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_source = (ImportSource*) _tmp10_; -#line 1497 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1519 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp11_ = import_source; -#line 1497 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1519 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp12_ = import_source_get_filename (_tmp11_); -#line 1497 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1519 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" filename = _tmp12_; -#line 1498 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1520 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp13_ = import_source; -#line 1498 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1520 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp14_ = import_source_get_fulldir (_tmp13_); -#line 1498 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1520 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" fulldir = _tmp14_; -#line 1499 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1521 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp15_ = fulldir; -#line 1499 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1521 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp15_ == NULL) { -#line 9890 "ImportPage.c" +#line 10043 "ImportPage.c" ImportSource* _tmp16_ = NULL; gchar* _tmp17_ = NULL; gchar* _tmp18_ = NULL; -#line 1500 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1522 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp16_ = import_source; -#line 1500 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1522 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp17_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_DATA_OBJECT, DataObject)); -#line 1500 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1522 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp18_ = _tmp17_; -#line 1500 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_warning ("ImportPage.vala:1500: Skipping loading preview of %s: invalid folder n" \ +#line 1522 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + g_warning ("ImportPage.vala:1522: Skipping loading preview of %s: invalid folder n" \ "ame", _tmp18_); -#line 1500 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1522 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (_tmp18_); -#line 1502 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1524 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (fulldir); -#line 1502 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1524 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (filename); -#line 1502 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1524 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (import_source); -#line 1502 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1524 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" continue; -#line 9912 "ImportPage.c" +#line 10065 "ImportPage.c" } -#line 1506 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1528 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" associated = NULL; -#line 1507 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1529 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp20_ = import_source; -#line 1507 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1529 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp20_, TYPE_PHOTO_IMPORT_SOURCE)) { -#line 9920 "ImportPage.c" +#line 10073 "ImportPage.c" ImportSource* _tmp21_ = NULL; PhotoImportSource* _tmp22_ = NULL; PhotoImportSource* _tmp23_ = NULL; -#line 1508 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1530 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp21_ = import_source; -#line 1508 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1530 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp22_ = photo_import_source_get_associated (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSource)); -#line 1508 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1530 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp23_ = _tmp22_; -#line 1508 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1530 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp19_ = _tmp23_ != NULL; -#line 1508 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1530 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_tmp23_); -#line 9934 "ImportPage.c" +#line 10087 "ImportPage.c" } else { -#line 1507 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1529 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp19_ = FALSE; -#line 9938 "ImportPage.c" +#line 10091 "ImportPage.c" } -#line 1507 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1529 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp19_) { -#line 9942 "ImportPage.c" +#line 10095 "ImportPage.c" ImportSource* _tmp24_ = NULL; PhotoImportSource* _tmp25_ = NULL; -#line 1509 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1531 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp24_ = import_source; -#line 1509 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1531 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp25_ = photo_import_source_get_associated (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSource)); -#line 1509 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1531 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (associated); -#line 1509 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1531 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" associated = _tmp25_; -#line 9953 "ImportPage.c" +#line 10106 "ImportPage.c" } -#line 1512 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1534 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp26_ = self->priv->progress_bar; -#line 1512 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1534 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_progress_bar_set_ellipsize (_tmp26_, PANGO_ELLIPSIZE_MIDDLE); -#line 1513 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1535 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp27_ = self->priv->progress_bar; -#line 1513 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1535 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp28_ = _ ("Fetching preview for %s"); -#line 1513 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1535 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp29_ = import_source; -#line 1513 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1535 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp30_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_DATA_OBJECT, DataObject)); -#line 1513 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1535 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp31_ = _tmp30_; -#line 1513 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1535 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp32_ = g_strdup_printf (_tmp28_, _tmp31_); -#line 1513 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1535 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp33_ = _tmp32_; -#line 1513 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1535 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_progress_bar_set_text (_tmp27_, _tmp33_); -#line 1513 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1535 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (_tmp33_); -#line 1513 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1535 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (_tmp31_); -#line 1520 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1542 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" metadata = NULL; -#line 1521 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1543 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp34_ = filename; -#line 1521 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1543 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp35_ = video_reader_is_supported_video_filename (_tmp34_); -#line 1521 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1543 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (!_tmp35_) { -#line 9987 "ImportPage.c" +#line 10140 "ImportPage.c" { PhotoMetadata* _tmp36_ = NULL; GPSpinIdleWrapper* _tmp37_ = NULL; @@ -9999,94 +10152,94 @@ static void import_page_load_previews_and_metadata (ImportPage* self, GeeList* i const gchar* _tmp41_ = NULL; PhotoMetadata* _tmp42_ = NULL; PhotoMetadata* _tmp43_ = NULL; -#line 1523 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1545 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp37_ = import_page_spin_idle_context; -#line 1523 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1545 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp38_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper)->context; -#line 1523 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1545 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp39_ = self->priv->camera; -#line 1523 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1545 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp40_ = fulldir; -#line 1523 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1545 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp41_ = filename; -#line 1523 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1545 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp42_ = gp_load_metadata (_tmp38_, _tmp39_, _tmp40_, _tmp41_, &_inner_error_); -#line 1523 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1545 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp36_ = _tmp42_; -#line 1523 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1545 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 10013 "ImportPage.c" - goto __catch65_g_error; +#line 10166 "ImportPage.c" + goto __catch67_g_error; } -#line 1523 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1545 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp43_ = _tmp36_; -#line 1523 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1545 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp36_ = NULL; -#line 1523 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1545 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _media_metadata_unref0 (metadata); -#line 1523 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1545 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" metadata = _tmp43_; -#line 1522 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1544 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _media_metadata_unref0 (_tmp36_); -#line 10026 "ImportPage.c" +#line 10179 "ImportPage.c" } - goto __finally65; - __catch65_g_error: + goto __finally67; + __catch67_g_error: { GError* err = NULL; const gchar* _tmp44_ = NULL; const gchar* _tmp45_ = NULL; GError* _tmp46_ = NULL; const gchar* _tmp47_ = NULL; -#line 1522 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1544 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" err = _inner_error_; -#line 1522 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1544 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _inner_error_ = NULL; -#line 1526 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1548 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp44_ = fulldir; -#line 1526 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1548 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp45_ = filename; -#line 1526 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1548 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp46_ = err; -#line 1526 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1548 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp47_ = _tmp46_->message; -#line 1526 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_warning ("ImportPage.vala:1526: Unable to fetch metadata for %s/%s: %s", _tmp44_, _tmp45_, _tmp47_); -#line 1522 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1548 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + g_warning ("ImportPage.vala:1548: Unable to fetch metadata for %s/%s: %s", _tmp44_, _tmp45_, _tmp47_); +#line 1544 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_error_free0 (err); -#line 10052 "ImportPage.c" +#line 10205 "ImportPage.c" } - __finally65: -#line 1522 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + __finally67: +#line 1544 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1522 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1544 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _media_metadata_unref0 (metadata); -#line 1522 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1544 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (associated); -#line 1522 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1544 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (fulldir); -#line 1522 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1544 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (filename); -#line 1522 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1544 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (import_source); -#line 1522 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1544 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_import_source_list); -#line 1522 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1544 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1522 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1544 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_clear_error (&_inner_error_); -#line 1522 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1544 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return; -#line 10075 "ImportPage.c" +#line 10228 "ImportPage.c" } } -#line 1532 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1554 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" exif_only_md5 = NULL; -#line 1533 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp48_ = metadata; -#line 1533 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp48_ != NULL) { -#line 10084 "ImportPage.c" +#line 10237 "ImportPage.c" guint8* flattened_sans_thumbnail = NULL; PhotoMetadata* _tmp49_ = NULL; gint _tmp50_ = 0; @@ -10096,76 +10249,76 @@ static void import_page_load_previews_and_metadata (ImportPage* self, GeeList* i gboolean _tmp52_ = FALSE; guint8* _tmp53_ = NULL; gint _tmp53__length1 = 0; -#line 1534 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1556 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp49_ = metadata; -#line 1534 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1556 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp51_ = photo_metadata_flatten_exif (_tmp49_, FALSE, &_tmp50_); -#line 1534 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1556 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" flattened_sans_thumbnail = _tmp51_; -#line 1534 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1556 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" flattened_sans_thumbnail_length1 = _tmp50_; -#line 1534 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1556 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _flattened_sans_thumbnail_size_ = flattened_sans_thumbnail_length1; -#line 1535 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1557 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp53_ = flattened_sans_thumbnail; -#line 1535 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1557 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp53__length1 = flattened_sans_thumbnail_length1; -#line 1535 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1557 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp53_ != NULL) { -#line 10110 "ImportPage.c" +#line 10263 "ImportPage.c" guint8* _tmp54_ = NULL; gint _tmp54__length1 = 0; -#line 1535 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1557 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp54_ = flattened_sans_thumbnail; -#line 1535 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1557 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp54__length1 = flattened_sans_thumbnail_length1; -#line 1535 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1557 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp52_ = _tmp54__length1 > 0; -#line 10119 "ImportPage.c" +#line 10272 "ImportPage.c" } else { -#line 1535 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1557 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp52_ = FALSE; -#line 10123 "ImportPage.c" +#line 10276 "ImportPage.c" } -#line 1535 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1557 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp52_) { -#line 10127 "ImportPage.c" +#line 10280 "ImportPage.c" guint8* _tmp55_ = NULL; gint _tmp55__length1 = 0; guint8* _tmp56_ = NULL; gint _tmp56__length1 = 0; gchar* _tmp57_ = NULL; -#line 1536 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1558 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp55_ = flattened_sans_thumbnail; -#line 1536 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1558 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp55__length1 = flattened_sans_thumbnail_length1; -#line 1536 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1558 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp56_ = flattened_sans_thumbnail; -#line 1536 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1558 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp56__length1 = flattened_sans_thumbnail_length1; -#line 1536 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1558 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp57_ = md5_binary (_tmp55_, (gsize) _tmp56__length1); -#line 1536 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1558 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (exif_only_md5); -#line 1536 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1558 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" exif_only_md5 = _tmp57_; -#line 10147 "ImportPage.c" +#line 10300 "ImportPage.c" } -#line 1533 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" flattened_sans_thumbnail = (g_free (flattened_sans_thumbnail), NULL); -#line 10151 "ImportPage.c" +#line 10304 "ImportPage.c" } -#line 1545 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1567 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" preview_raw = NULL; -#line 1545 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1567 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" preview_raw_length1 = 0; -#line 1545 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1567 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _preview_raw_size_ = preview_raw_length1; -#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1568 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" preview_raw_length = (gsize) 0; -#line 1547 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1569 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" preview = NULL; -#line 10163 "ImportPage.c" +#line 10316 "ImportPage.c" { gchar* preview_fulldir = NULL; const gchar* _tmp58_ = NULL; @@ -10185,260 +10338,260 @@ static void import_page_load_previews_and_metadata (ImportPage* self, GeeList* i gsize _tmp75_ = 0UL; GdkPixbuf* _tmp76_ = NULL; GdkPixbuf* _tmp77_ = NULL; -#line 1549 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1571 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp58_ = fulldir; -#line 1549 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1571 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp59_ = g_strdup (_tmp58_); -#line 1549 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1571 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" preview_fulldir = _tmp59_; -#line 1550 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1572 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp60_ = filename; -#line 1550 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1572 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp61_ = g_strdup (_tmp60_); -#line 1550 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1572 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" preview_filename = _tmp61_; -#line 1551 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1573 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp62_ = associated; -#line 1551 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1573 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp62_ != NULL) { -#line 10199 "ImportPage.c" +#line 10352 "ImportPage.c" PhotoImportSource* _tmp63_ = NULL; gchar* _tmp64_ = NULL; PhotoImportSource* _tmp65_ = NULL; gchar* _tmp66_ = NULL; -#line 1552 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1574 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp63_ = associated; -#line 1552 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1574 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp64_ = import_source_get_fulldir (G_TYPE_CHECK_INSTANCE_CAST (_tmp63_, TYPE_IMPORT_SOURCE, ImportSource)); -#line 1552 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1574 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (preview_fulldir); -#line 1552 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1574 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" preview_fulldir = _tmp64_; -#line 1553 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1575 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp65_ = associated; -#line 1553 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1575 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp66_ = import_source_get_filename (G_TYPE_CHECK_INSTANCE_CAST (_tmp65_, TYPE_IMPORT_SOURCE, ImportSource)); -#line 1553 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1575 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (preview_filename); -#line 1553 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1575 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" preview_filename = _tmp66_; -#line 10220 "ImportPage.c" +#line 10373 "ImportPage.c" } -#line 1555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1577 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp68_ = import_page_spin_idle_context; -#line 1555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1577 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp69_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp68_, GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper)->context; -#line 1555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1577 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp70_ = self->priv->camera; -#line 1555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1577 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp71_ = preview_fulldir; -#line 1555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1577 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp72_ = preview_filename; -#line 1555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1577 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp76_ = gp_load_preview (_tmp69_, _tmp70_, _tmp71_, _tmp72_, &_tmp73_, &_tmp74_, &_tmp75_, &_inner_error_); -#line 1555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1577 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" preview_raw = (g_free (preview_raw), NULL); -#line 1555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1577 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" preview_raw = _tmp73_; -#line 1555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1577 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" preview_raw_length1 = _tmp74_; -#line 1555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1577 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _preview_raw_size_ = preview_raw_length1; -#line 1555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1577 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" preview_raw_length = _tmp75_; -#line 1555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1577 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp67_ = _tmp76_; -#line 1555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1577 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1577 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (preview_filename); -#line 1555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1577 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (preview_fulldir); -#line 10252 "ImportPage.c" - goto __catch66_g_error; +#line 10405 "ImportPage.c" + goto __catch68_g_error; } -#line 1555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1577 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp77_ = _tmp67_; -#line 1555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1577 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp67_ = NULL; -#line 1555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1577 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (preview); -#line 1555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1577 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" preview = _tmp77_; -#line 1548 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1570 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_tmp67_); -#line 1548 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1570 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (preview_filename); -#line 1548 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1570 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (preview_fulldir); -#line 10269 "ImportPage.c" +#line 10422 "ImportPage.c" } - goto __finally66; - __catch66_g_error: + goto __finally68; + __catch68_g_error: { GError* err = NULL; const gchar* _tmp78_ = NULL; gboolean _tmp79_ = FALSE; -#line 1548 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1570 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" err = _inner_error_; -#line 1548 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1570 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _inner_error_ = NULL; -#line 1563 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1585 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp78_ = filename; -#line 1563 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1585 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp79_ = video_reader_is_supported_video_filename (_tmp78_); -#line 1563 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1585 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (!_tmp79_) { -#line 10287 "ImportPage.c" +#line 10440 "ImportPage.c" const gchar* _tmp80_ = NULL; const gchar* _tmp81_ = NULL; GError* _tmp82_ = NULL; const gchar* _tmp83_ = NULL; -#line 1564 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1586 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp80_ = fulldir; -#line 1564 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1586 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp81_ = filename; -#line 1564 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1586 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp82_ = err; -#line 1564 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1586 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp83_ = _tmp82_->message; -#line 1564 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_warning ("ImportPage.vala:1564: Unable to fetch preview for %s/%s: %s", _tmp80_, _tmp81_, _tmp83_); -#line 10302 "ImportPage.c" +#line 1586 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + g_warning ("ImportPage.vala:1586: Unable to fetch preview for %s/%s: %s", _tmp80_, _tmp81_, _tmp83_); +#line 10455 "ImportPage.c" } -#line 1548 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1570 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_error_free0 (err); -#line 10306 "ImportPage.c" +#line 10459 "ImportPage.c" } - __finally66: -#line 1548 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + __finally68: +#line 1570 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1548 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1570 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (preview); -#line 1548 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1570 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" preview_raw = (g_free (preview_raw), NULL); -#line 1548 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1570 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (exif_only_md5); -#line 1548 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1570 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _media_metadata_unref0 (metadata); -#line 1548 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1570 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (associated); -#line 1548 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1570 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (fulldir); -#line 1548 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1570 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (filename); -#line 1548 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1570 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (import_source); -#line 1548 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1570 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_import_source_list); -#line 1548 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1570 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1548 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1570 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_clear_error (&_inner_error_); -#line 1548 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1570 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return; -#line 10335 "ImportPage.c" +#line 10488 "ImportPage.c" } -#line 1569 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1591 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" preview_md5 = NULL; -#line 1570 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1592 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp86_ = preview; -#line 1570 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1592 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp86_ != NULL) { -#line 10343 "ImportPage.c" +#line 10496 "ImportPage.c" guint8* _tmp87_ = NULL; gint _tmp87__length1 = 0; -#line 1570 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1592 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp87_ = preview_raw; -#line 1570 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1592 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp87__length1 = preview_raw_length1; -#line 1570 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1592 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp85_ = _tmp87_ != NULL; -#line 10352 "ImportPage.c" +#line 10505 "ImportPage.c" } else { -#line 1570 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1592 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp85_ = FALSE; -#line 10356 "ImportPage.c" +#line 10509 "ImportPage.c" } -#line 1570 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1592 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp85_) { -#line 10360 "ImportPage.c" +#line 10513 "ImportPage.c" gsize _tmp88_ = 0UL; -#line 1570 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1592 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp88_ = preview_raw_length; -#line 1570 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1592 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp84_ = _tmp88_ > ((gsize) 0); -#line 10366 "ImportPage.c" +#line 10519 "ImportPage.c" } else { -#line 1570 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1592 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp84_ = FALSE; -#line 10370 "ImportPage.c" +#line 10523 "ImportPage.c" } -#line 1570 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1592 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp84_) { -#line 10374 "ImportPage.c" +#line 10527 "ImportPage.c" guint8* _tmp89_ = NULL; gint _tmp89__length1 = 0; gsize _tmp90_ = 0UL; gchar* _tmp91_ = NULL; -#line 1571 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1593 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp89_ = preview_raw; -#line 1571 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1593 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp89__length1 = preview_raw_length1; -#line 1571 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1593 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp90_ = preview_raw_length; -#line 1571 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1593 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp91_ = md5_binary (_tmp89_, _tmp90_); -#line 1571 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1593 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (preview_md5); -#line 1571 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1593 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" preview_md5 = _tmp91_; -#line 10391 "ImportPage.c" +#line 10544 "ImportPage.c" } -#line 1577 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1599 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp92_ = import_source; -#line 1577 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1599 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp92_, TYPE_VIDEO_IMPORT_SOURCE)) { -#line 10397 "ImportPage.c" +#line 10550 "ImportPage.c" ImportSource* _tmp93_ = NULL; GdkPixbuf* _tmp94_ = NULL; -#line 1578 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1600 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp93_ = import_source; -#line 1578 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1600 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp94_ = preview; -#line 1578 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1600 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" video_import_source_update (G_TYPE_CHECK_INSTANCE_TYPE (_tmp93_, TYPE_VIDEO_IMPORT_SOURCE) ? ((VideoImportSource*) _tmp93_) : NULL, _tmp94_); -#line 10406 "ImportPage.c" +#line 10559 "ImportPage.c" } -#line 1580 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1602 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp95_ = import_source; -#line 1580 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1602 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp95_, TYPE_PHOTO_IMPORT_SOURCE)) { -#line 10412 "ImportPage.c" +#line 10565 "ImportPage.c" ImportSource* _tmp96_ = NULL; GdkPixbuf* _tmp97_ = NULL; const gchar* _tmp98_ = NULL; PhotoMetadata* _tmp99_ = NULL; const gchar* _tmp100_ = NULL; -#line 1581 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1603 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp96_ = import_source; -#line 1581 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1603 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp97_ = preview; -#line 1581 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1603 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp98_ = preview_md5; -#line 1581 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1603 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp99_ = metadata; -#line 1581 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1603 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp100_ = exif_only_md5; -#line 1581 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1603 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" photo_import_source_update (G_TYPE_CHECK_INSTANCE_TYPE (_tmp96_, TYPE_PHOTO_IMPORT_SOURCE) ? ((PhotoImportSource*) _tmp96_) : NULL, _tmp97_, _tmp98_, _tmp99_, _tmp100_); -#line 10430 "ImportPage.c" +#line 10583 "ImportPage.c" } -#line 1584 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1606 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp101_ = associated; -#line 1584 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1606 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp101_ != NULL) { -#line 10436 "ImportPage.c" +#line 10589 "ImportPage.c" { PhotoMetadata* associated_metadata = NULL; GPSpinIdleWrapper* _tmp102_ = NULL; @@ -10456,55 +10609,55 @@ static void import_page_load_previews_and_metadata (ImportPage* self, GeeList* i GdkPixbuf* _tmp114_ = NULL; const gchar* _tmp115_ = NULL; PhotoMetadata* _tmp116_ = NULL; -#line 1586 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1608 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp102_ = import_page_spin_idle_context; -#line 1586 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1608 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp103_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp102_, GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper)->context; -#line 1586 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1608 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp104_ = self->priv->camera; -#line 1586 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1608 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp105_ = associated; -#line 1586 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1608 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp106_ = import_source_get_fulldir (G_TYPE_CHECK_INSTANCE_CAST (_tmp105_, TYPE_IMPORT_SOURCE, ImportSource)); -#line 1586 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1608 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp107_ = _tmp106_; -#line 1586 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1608 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp108_ = associated; -#line 1586 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1608 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp109_ = import_source_get_filename (G_TYPE_CHECK_INSTANCE_CAST (_tmp108_, TYPE_IMPORT_SOURCE, ImportSource)); -#line 1586 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1608 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp110_ = _tmp109_; -#line 1586 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1608 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp111_ = gp_load_metadata (_tmp103_, _tmp104_, _tmp107_, _tmp110_, &_inner_error_); -#line 1586 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1608 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp112_ = _tmp111_; -#line 1586 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1608 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (_tmp110_); -#line 1586 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1608 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (_tmp107_); -#line 1586 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1608 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" associated_metadata = _tmp112_; -#line 1586 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1608 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 10484 "ImportPage.c" - goto __catch67_g_error; +#line 10637 "ImportPage.c" + goto __catch69_g_error; } -#line 1588 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1610 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp113_ = associated; -#line 1588 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1610 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp114_ = preview; -#line 1588 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1610 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp115_ = preview_md5; -#line 1588 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1610 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp116_ = associated_metadata; -#line 1588 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1610 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" photo_import_source_update (_tmp113_, _tmp114_, _tmp115_, _tmp116_, NULL); -#line 1585 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1607 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _media_metadata_unref0 (associated_metadata); -#line 10499 "ImportPage.c" +#line 10652 "ImportPage.c" } - goto __finally67; - __catch67_g_error: + goto __finally69; + __catch69_g_error: { GError* err = NULL; PhotoImportSource* _tmp117_ = NULL; @@ -10515,115 +10668,115 @@ static void import_page_load_previews_and_metadata (ImportPage* self, GeeList* i gchar* _tmp122_ = NULL; GError* _tmp123_ = NULL; const gchar* _tmp124_ = NULL; -#line 1585 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1607 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" err = _inner_error_; -#line 1585 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1607 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _inner_error_ = NULL; -#line 1590 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1612 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp117_ = associated; -#line 1590 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1612 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp118_ = import_source_get_fulldir (G_TYPE_CHECK_INSTANCE_CAST (_tmp117_, TYPE_IMPORT_SOURCE, ImportSource)); -#line 1590 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1612 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp119_ = _tmp118_; -#line 1590 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1612 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp120_ = associated; -#line 1590 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1612 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp121_ = import_source_get_filename (G_TYPE_CHECK_INSTANCE_CAST (_tmp120_, TYPE_IMPORT_SOURCE, ImportSource)); -#line 1590 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1612 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp122_ = _tmp121_; -#line 1590 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1612 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp123_ = err; -#line 1590 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1612 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp124_ = _tmp123_->message; -#line 1590 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_warning ("ImportPage.vala:1590: Unable to fetch metadata for %s/%s: %s", _tmp119_, _tmp122_, _tmp124_); -#line 1590 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1612 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + g_warning ("ImportPage.vala:1612: Unable to fetch metadata for %s/%s: %s", _tmp119_, _tmp122_, _tmp124_); +#line 1612 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (_tmp122_); -#line 1590 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1612 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (_tmp119_); -#line 1585 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1607 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_error_free0 (err); -#line 10541 "ImportPage.c" +#line 10694 "ImportPage.c" } - __finally67: -#line 1585 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + __finally69: +#line 1607 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1585 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1607 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (preview_md5); -#line 1585 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1607 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (preview); -#line 1585 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1607 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" preview_raw = (g_free (preview_raw), NULL); -#line 1585 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1607 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (exif_only_md5); -#line 1585 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1607 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _media_metadata_unref0 (metadata); -#line 1585 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1607 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (associated); -#line 1585 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1607 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (fulldir); -#line 1585 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1607 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (filename); -#line 1585 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1607 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (import_source); -#line 1585 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1607 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_import_source_list); -#line 1585 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1607 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1585 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1607 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_clear_error (&_inner_error_); -#line 1585 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1607 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return; -#line 10572 "ImportPage.c" +#line 10725 "ImportPage.c" } } -#line 1596 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1618 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp125_ = self->priv->import_sources; -#line 1596 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1618 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp126_ = import_source; -#line 1596 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1618 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp125_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp126_, TYPE_DATA_OBJECT, DataObject)); -#line 1598 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1620 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp127_ = self->priv->progress_bar; -#line 1598 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1620 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp128_ = loaded_photos; -#line 1598 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1620 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" loaded_photos = _tmp128_ + 1; -#line 1598 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1620 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp129_ = loaded_photos; -#line 1598 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1620 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp130_ = import_list; -#line 1598 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1620 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp131_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp130_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1598 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1620 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp132_ = _tmp131_; -#line 1598 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1620 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_progress_bar_set_fraction (_tmp127_, ((gdouble) _tmp129_) / ((gdouble) _tmp132_)); -#line 1605 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1627 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" spin_event_loop (); -#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1518 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (preview_md5); -#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1518 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (preview); -#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1518 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" preview_raw = (g_free (preview_raw), NULL); -#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1518 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (exif_only_md5); -#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1518 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _media_metadata_unref0 (metadata); -#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1518 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (associated); -#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1518 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (fulldir); -#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1518 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (filename); -#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1518 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (import_source); -#line 10617 "ImportPage.c" +#line 10770 "ImportPage.c" } -#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1518 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_import_source_list); -#line 10621 "ImportPage.c" +#line 10774 "ImportPage.c" } } @@ -10635,58 +10788,58 @@ static void import_page_on_hide_imported (ImportPage* self) { ConfigFacade* _tmp9_ = NULL; GtkCheckButton* _tmp10_ = NULL; gboolean _tmp11_ = FALSE; -#line 1609 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1631 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_if_fail (IS_IMPORT_PAGE (self)); -#line 1610 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1632 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = self->priv->hide_imported; -#line 1610 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1632 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 1610 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1632 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp1_) { -#line 10641 "ImportPage.c" +#line 10794 "ImportPage.c" ViewCollection* _tmp2_ = NULL; ViewCollection* _tmp3_ = NULL; ImportPageHideImportedViewFilter* _tmp4_ = NULL; -#line 1611 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1633 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1611 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1633 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp3_ = _tmp2_; -#line 1611 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1633 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp4_ = self->priv->hide_imported_filter; -#line 1611 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1633 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" view_collection_install_view_filter (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_VIEW_FILTER, ViewFilter)); -#line 1611 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1633 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _data_collection_unref0 (_tmp3_); -#line 10655 "ImportPage.c" +#line 10808 "ImportPage.c" } else { ViewCollection* _tmp5_ = NULL; ViewCollection* _tmp6_ = NULL; ImportPageHideImportedViewFilter* _tmp7_ = NULL; -#line 1613 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1635 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1613 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1635 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp6_ = _tmp5_; -#line 1613 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1635 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp7_ = self->priv->hide_imported_filter; -#line 1613 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1635 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" view_collection_remove_view_filter (_tmp6_, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_VIEW_FILTER, ViewFilter)); -#line 1613 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1635 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _data_collection_unref0 (_tmp6_); -#line 10670 "ImportPage.c" +#line 10823 "ImportPage.c" } -#line 1615 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1637 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp8_ = config_facade_get_instance (); -#line 1615 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1637 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp9_ = _tmp8_; -#line 1615 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1637 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp10_ = self->priv->hide_imported; -#line 1615 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1637 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp11_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 1615 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1637 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" configuration_facade_set_hide_photos_already_imported (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp11_); -#line 1615 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1637 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_tmp9_); -#line 10684 "ImportPage.c" +#line 10837 "ImportPage.c" } @@ -10695,23 +10848,23 @@ static void import_page_on_import_selected (ImportPage* self) { ViewCollection* _tmp1_ = NULL; GeeList* _tmp2_ = NULL; GeeList* _tmp3_ = NULL; -#line 1618 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1640 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_if_fail (IS_IMPORT_PAGE (self)); -#line 1619 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1641 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1619 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1641 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = _tmp0_; -#line 1619 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1641 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = view_collection_get_selected (_tmp1_); -#line 1619 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1641 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp3_ = _tmp2_; -#line 1619 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1641 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_import (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1619 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1641 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_tmp3_); -#line 1619 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1641 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _data_collection_unref0 (_tmp1_); -#line 10709 "ImportPage.c" +#line 10862 "ImportPage.c" } @@ -10720,53 +10873,53 @@ static void import_page_on_import_all (ImportPage* self) { ViewCollection* _tmp1_ = NULL; GeeCollection* _tmp2_ = NULL; GeeCollection* _tmp3_ = NULL; -#line 1622 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1644 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_if_fail (IS_IMPORT_PAGE (self)); -#line 1623 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1645 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1623 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1645 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = _tmp0_; -#line 1623 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1645 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1623 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1645 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp3_ = _tmp2_; -#line 1623 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1645 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_import (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1623 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1645 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_tmp3_); -#line 1623 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1645 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _data_collection_unref0 (_tmp1_); -#line 10734 "ImportPage.c" +#line 10887 "ImportPage.c" } static gint64 _import_page_import_job_comparator_comparator (void* a, void* b, gpointer self) { gint64 result; result = import_page_import_job_comparator ((ImportPage*) self, a, b); -#line 1639 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1661 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 10743 "ImportPage.c" +#line 10896 "ImportPage.c" } static void _import_page_import_reporter_batch_import_import_reporter (ImportManifest* manifest, BatchImportRoll* import_roll, gpointer self) { -#line 1675 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1697 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_import_reporter ((ImportPage*) self, manifest); -#line 10750 "ImportPage.c" +#line 10903 "ImportPage.c" } static void _import_page_on_import_job_failed_batch_import_import_job_failed (BatchImport* _sender, BatchImportResult* _result_, gpointer self) { -#line 1677 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1699 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_on_import_job_failed ((ImportPage*) self, _result_); -#line 10757 "ImportPage.c" +#line 10910 "ImportPage.c" } static void _import_page_close_import_batch_import_import_complete (BatchImport* _sender, ImportManifest* manifest, BatchImportRoll* import_roll, gpointer self) { -#line 1678 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1700 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_close_import ((ImportPage*) self); -#line 10764 "ImportPage.c" +#line 10917 "ImportPage.c" } @@ -10790,85 +10943,85 @@ static void import_page_import (ImportPage* self, GeeIterable* items) { SortedList* _tmp59_ = NULL; gint _tmp60_ = 0; gint _tmp61_ = 0; -#line 1626 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1648 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_if_fail (IS_IMPORT_PAGE (self)); -#line 1626 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1648 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_if_fail (GEE_IS_ITERABLE (items)); -#line 1627 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1649 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = self->priv->camera; -#line 1627 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1649 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = import_page_spin_idle_context; -#line 1627 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1649 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper)->context; -#line 1627 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1649 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp3_ = gp_camera_init (_tmp0_, _tmp2_); -#line 1627 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1649 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" res = _tmp3_; -#line 1628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1650 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp4_ = res; -#line 1628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1650 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp4_ != GP_OK) { -#line 10806 "ImportPage.c" +#line 10959 "ImportPage.c" const gchar* _tmp5_ = NULL; int _tmp6_ = 0; gchar* _tmp7_ = NULL; gchar* _tmp8_ = NULL; gchar* _tmp9_ = NULL; gchar* _tmp10_ = NULL; -#line 1629 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1651 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp5_ = _ ("Unable to lock camera: %s"); -#line 1629 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1651 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp6_ = res; -#line 1629 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1651 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp7_ = gp_result_to_full_string (_tmp6_); -#line 1629 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1651 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp8_ = _tmp7_; -#line 1629 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1651 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp9_ = g_strdup_printf (_tmp5_, _tmp8_); -#line 1629 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1651 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp10_ = _tmp9_; -#line 1629 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1651 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" app_window_error_message (_tmp10_, NULL); -#line 1629 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1651 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (_tmp10_); -#line 1629 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1651 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (_tmp8_); -#line 1631 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1653 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return; -#line 10833 "ImportPage.c" +#line 10986 "ImportPage.c" } -#line 1634 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1656 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp11_ = self->priv->refreshed; -#line 1634 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1656 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_update_status (self, TRUE, _tmp11_); -#line 1636 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1658 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_on_view_changed (self); -#line 1637 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1659 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp12_ = self->priv->progress_bar; -#line 1637 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1659 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1639 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1661 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp13_ = sorted_list_new (IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB, (GBoxedCopyFunc) batch_import_job_ref, batch_import_job_unref, _import_page_import_job_comparator_comparator, self); -#line 1639 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1661 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" jobs = _tmp13_; -#line 1640 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1662 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp14_ = gee_array_list_new (IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB, (GBoxedCopyFunc) batch_import_job_ref, batch_import_job_unref, NULL, NULL, NULL); -#line 1640 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1662 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" already_imported = _tmp14_; -#line 10853 "ImportPage.c" +#line 11006 "ImportPage.c" { GeeIterator* _object_it = NULL; GeeIterable* _tmp15_ = NULL; GeeIterator* _tmp16_ = NULL; -#line 1642 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1664 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp15_ = items; -#line 1642 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1664 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp16_ = gee_iterable_iterator (_tmp15_); -#line 1642 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1664 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _object_it = _tmp16_; -#line 1642 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1664 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" while (TRUE) { -#line 10866 "ImportPage.c" +#line 11019 "ImportPage.c" GeeIterator* _tmp17_ = NULL; gboolean _tmp18_ = FALSE; DataObject* object = NULL; @@ -10890,41 +11043,41 @@ static void import_page_import (ImportPage* self, GeeIterable* items) { ImportSource* _tmp42_ = NULL; SortedList* _tmp53_ = NULL; ImportPageCameraImportJob* _tmp54_ = NULL; -#line 1642 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1664 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp17_ = _object_it; -#line 1642 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1664 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp18_ = gee_iterator_next (_tmp17_); -#line 1642 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1664 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (!_tmp18_) { -#line 1642 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1664 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" break; -#line 10896 "ImportPage.c" +#line 11049 "ImportPage.c" } -#line 1642 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1664 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp19_ = _object_it; -#line 1642 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1664 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp20_ = gee_iterator_get (_tmp19_); -#line 1642 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1664 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" object = (DataObject*) _tmp20_; -#line 1643 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1665 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp21_ = object; -#line 1643 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1665 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp22_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_IMPORT_PREVIEW, ImportPreview)); -#line 1643 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1665 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" preview = _tmp22_; -#line 1644 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1666 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp23_ = preview; -#line 1644 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1666 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp24_ = data_view_get_source (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_DATA_VIEW, DataView)); -#line 1644 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1666 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_file = G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_IMPORT_SOURCE, ImportSource); -#line 1646 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1668 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp25_ = preview; -#line 1646 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1668 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp26_ = import_preview_is_already_imported (_tmp25_); -#line 1646 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1668 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp26_) { -#line 10922 "ImportPage.c" +#line 11075 "ImportPage.c" ImportSource* _tmp27_ = NULL; gchar* _tmp28_ = NULL; gchar* _tmp29_ = NULL; @@ -10936,84 +11089,84 @@ static void import_page_import (ImportPage* self, GeeIterable* items) { DuplicatedFile* _tmp35_ = NULL; ImportPageCameraImportJob* _tmp36_ = NULL; ImportPageCameraImportJob* _tmp37_ = NULL; -#line 1647 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1669 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp27_ = import_file; -#line 1647 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1669 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp28_ = import_source_get_filename (_tmp27_); -#line 1647 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1669 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp29_ = _tmp28_; -#line 1647 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_message ("ImportPage.vala:1647: Skipping import of %s: checksum detected in libr" \ +#line 1669 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + g_message ("ImportPage.vala:1669: Skipping import of %s: checksum detected in libr" \ "ary", _tmp29_); -#line 1647 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1669 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (_tmp29_); -#line 1650 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1672 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp30_ = already_imported; -#line 1650 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1672 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp31_ = import_page_null_context; -#line 1650 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1672 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp32_ = import_file; -#line 1650 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1672 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp33_ = preview; -#line 1650 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1672 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp34_ = import_preview_get_duplicated_file (_tmp33_); -#line 1650 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1672 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp35_ = _tmp34_; -#line 1650 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1672 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp36_ = import_page_camera_import_job_new (_tmp31_, _tmp32_, _tmp35_); -#line 1650 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1672 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp37_ = _tmp36_; -#line 1650 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1672 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp37_); -#line 1650 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1672 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _batch_import_job_unref0 (_tmp37_); -#line 1650 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1672 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_tmp35_); -#line 1653 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1675 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (import_file); -#line 1653 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1675 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (preview); -#line 1653 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1675 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (object); -#line 1653 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1675 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" continue; -#line 10974 "ImportPage.c" +#line 11127 "ImportPage.c" } -#line 1656 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1678 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp38_ = import_page_null_context; -#line 1656 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1678 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp39_ = import_file; -#line 1656 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1678 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp40_ = import_page_camera_import_job_new (_tmp38_, _tmp39_, NULL); -#line 1656 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1678 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_job = _tmp40_; -#line 1659 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1681 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp42_ = import_file; -#line 1659 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1681 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp42_, TYPE_PHOTO_IMPORT_SOURCE)) { -#line 10988 "ImportPage.c" +#line 11141 "ImportPage.c" ImportSource* _tmp43_ = NULL; PhotoImportSource* _tmp44_ = NULL; PhotoImportSource* _tmp45_ = NULL; -#line 1660 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1682 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp43_ = import_file; -#line 1660 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1682 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp44_ = photo_import_source_get_associated (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSource)); -#line 1660 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1682 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp45_ = _tmp44_; -#line 1660 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1682 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp41_ = _tmp45_ != NULL; -#line 1660 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1682 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_tmp45_); -#line 11002 "ImportPage.c" +#line 11155 "ImportPage.c" } else { -#line 1659 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1681 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp41_ = FALSE; -#line 11006 "ImportPage.c" +#line 11159 "ImportPage.c" } -#line 1659 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1681 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp41_) { -#line 11010 "ImportPage.c" +#line 11163 "ImportPage.c" ImportPageCameraImportJob* _tmp46_ = NULL; GPContextWrapper* _tmp47_ = NULL; ImportSource* _tmp48_ = NULL; @@ -11021,67 +11174,67 @@ static void import_page_import (ImportPage* self, GeeIterable* items) { PhotoImportSource* _tmp50_ = NULL; ImportPageCameraImportJob* _tmp51_ = NULL; ImportPageCameraImportJob* _tmp52_ = NULL; -#line 1661 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1683 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp46_ = import_job; -#line 1661 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1683 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp47_ = import_page_null_context; -#line 1661 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1683 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp48_ = import_file; -#line 1661 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1683 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp49_ = photo_import_source_get_associated (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSource)); -#line 1661 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1683 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp50_ = _tmp49_; -#line 1661 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1683 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp51_ = import_page_camera_import_job_new (_tmp47_, G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, TYPE_IMPORT_SOURCE, ImportSource), NULL); -#line 1661 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1683 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp52_ = _tmp51_; -#line 1661 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1683 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" batch_import_job_set_associated (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, TYPE_BATCH_IMPORT_JOB, BatchImportJob), G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, TYPE_BATCH_IMPORT_JOB, BatchImportJob)); -#line 1661 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1683 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _batch_import_job_unref0 (_tmp52_); -#line 1661 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1683 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_tmp50_); -#line 11038 "ImportPage.c" +#line 11191 "ImportPage.c" } -#line 1665 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1687 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp53_ = jobs; -#line 1665 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1687 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp54_ = import_job; -#line 1665 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1687 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, GEE_TYPE_COLLECTION, GeeCollection), _tmp54_); -#line 1642 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1664 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _batch_import_job_unref0 (import_job); -#line 1642 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1664 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (import_file); -#line 1642 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1664 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (preview); -#line 1642 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1664 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (object); -#line 11054 "ImportPage.c" +#line 11207 "ImportPage.c" } -#line 1642 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1664 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_object_it); -#line 11058 "ImportPage.c" +#line 11211 "ImportPage.c" } -#line 1668 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1690 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp55_ = jobs; -#line 1668 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1690 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp56_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1668 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1690 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp57_ = _tmp56_; -#line 1668 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1690 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp58_ = self->priv->camera_name; -#line 1668 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_debug ("ImportPage.vala:1668: Importing %d files from %s", _tmp57_, _tmp58_); -#line 1670 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1690 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + g_debug ("ImportPage.vala:1690: Importing %d files from %s", _tmp57_, _tmp58_); +#line 1692 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp59_ = jobs; -#line 1670 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1692 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp60_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp59_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1670 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1692 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp61_ = _tmp60_; -#line 1670 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1692 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp61_ > 0) { -#line 11078 "ImportPage.c" +#line 11231 "ImportPage.c" ImportPage* _tmp62_ = NULL; ImportPage* _tmp63_ = NULL; BatchImport* batch_import = NULL; @@ -11096,92 +11249,92 @@ static void import_page_import (ImportPage* self, GeeIterable* items) { BatchImport* _tmp72_ = NULL; LibraryWindow* _tmp73_ = NULL; LibraryWindow* _tmp74_ = NULL; -#line 1672 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1694 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp62_ = self->priv->local_ref; -#line 1672 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1694 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _vala_assert (_tmp62_ == NULL, "local_ref == null"); -#line 1673 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1695 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp63_ = _g_object_ref0 (self); -#line 1673 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1695 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (self->priv->local_ref); -#line 1673 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1695 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->local_ref = _tmp63_; -#line 1675 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1697 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp64_ = jobs; -#line 1675 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1697 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp65_ = self->priv->camera_name; -#line 1675 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1697 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp66_ = already_imported; -#line 1675 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1697 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp67_ = batch_import_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, GEE_TYPE_ITERABLE, GeeIterable), _tmp65_, _import_page_import_reporter_batch_import_import_reporter, self, NULL, _tmp66_, NULL, NULL, NULL); -#line 1675 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1697 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" batch_import = _tmp67_; -#line 1677 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1699 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp68_ = batch_import; -#line 1677 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1699 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_signal_connect_object (_tmp68_, "import-job-failed", (GCallback) _import_page_on_import_job_failed_batch_import_import_job_failed, self, 0); -#line 1678 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1700 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp69_ = batch_import; -#line 1678 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1700 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_signal_connect_object (_tmp69_, "import-complete", (GCallback) _import_page_close_import_batch_import_import_complete, self, 0); -#line 1680 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1702 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp70_ = library_window_get_app (); -#line 1680 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1702 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp71_ = _tmp70_; -#line 1680 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1702 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp72_ = batch_import; -#line 1680 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1702 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" library_window_enqueue_batch_import (_tmp71_, _tmp72_, TRUE); -#line 1680 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1702 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_tmp71_); -#line 1681 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1703 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp73_ = library_window_get_app (); -#line 1681 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1703 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp74_ = _tmp73_; -#line 1681 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1703 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" library_window_switch_to_import_queue_page (_tmp74_); -#line 1681 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1703 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_tmp74_); -#line 1670 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1692 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (batch_import); -#line 11141 "ImportPage.c" +#line 11294 "ImportPage.c" } else { GeeArrayList* _tmp75_ = NULL; gint _tmp76_ = 0; gint _tmp77_ = 0; -#line 1685 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1707 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp75_ = already_imported; -#line 1685 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1707 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp76_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp75_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1685 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1707 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp77_ = _tmp76_; -#line 1685 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1707 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp77_ > 0) { -#line 11154 "ImportPage.c" +#line 11307 "ImportPage.c" GeeArrayList* _tmp78_ = NULL; ImportManifest* _tmp79_ = NULL; ImportManifest* _tmp80_ = NULL; -#line 1686 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1708 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp78_ = already_imported; -#line 1686 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1708 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp79_ = import_manifest_new (NULL, G_TYPE_CHECK_INSTANCE_CAST (_tmp78_, GEE_TYPE_LIST, GeeList)); -#line 1686 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1708 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp80_ = _tmp79_; -#line 1686 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1708 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_import_reporter (self, _tmp80_); -#line 1686 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1708 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _import_manifest_unref0 (_tmp80_); -#line 11168 "ImportPage.c" +#line 11321 "ImportPage.c" } -#line 1688 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1710 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_close_import (self); -#line 11172 "ImportPage.c" +#line 11325 "ImportPage.c" } -#line 1626 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1648 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (already_imported); -#line 1626 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1648 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (jobs); -#line 11178 "ImportPage.c" +#line 11331 "ImportPage.c" } @@ -11190,53 +11343,53 @@ static void import_page_on_import_job_failed (ImportPage* self, BatchImportResul BatchImportResult* _tmp1_ = NULL; GFile* _tmp2_ = NULL; GError * _inner_error_ = NULL; -#line 1692 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1714 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_if_fail (IS_IMPORT_PAGE (self)); -#line 1692 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1714 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_if_fail (IS_BATCH_IMPORT_RESULT (_result_)); -#line 1693 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1715 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = _result_; -#line 1693 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1715 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = _tmp1_->file; -#line 1693 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1715 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp2_ == NULL) { -#line 1693 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1715 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = TRUE; -#line 11199 "ImportPage.c" +#line 11352 "ImportPage.c" } else { BatchImportResult* _tmp3_ = NULL; ImportResult _tmp4_ = 0; -#line 1693 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1715 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp3_ = _result_; -#line 1693 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1715 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp4_ = _tmp3_->result; -#line 1693 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1715 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = _tmp4_ == IMPORT_RESULT_SUCCESS; -#line 11209 "ImportPage.c" +#line 11362 "ImportPage.c" } -#line 1693 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1715 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp0_) { -#line 1694 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1716 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return; -#line 11215 "ImportPage.c" +#line 11368 "ImportPage.c" } { BatchImportResult* _tmp5_ = NULL; GFile* _tmp6_ = NULL; -#line 1698 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1720 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp5_ = _result_; -#line 1698 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1720 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp6_ = _tmp5_->file; -#line 1698 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1720 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_file_delete (_tmp6_, NULL, &_inner_error_); -#line 1698 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1720 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 11228 "ImportPage.c" - goto __catch68_g_error; +#line 11381 "ImportPage.c" + goto __catch70_g_error; } } - goto __finally68; - __catch68_g_error: + goto __finally70; + __catch70_g_error: { GError* err = NULL; BatchImportResult* _tmp7_ = NULL; @@ -11245,57 +11398,57 @@ static void import_page_on_import_job_failed (ImportPage* self, BatchImportResul gchar* _tmp10_ = NULL; GError* _tmp11_ = NULL; const gchar* _tmp12_ = NULL; -#line 1697 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1719 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" err = _inner_error_; -#line 1697 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1719 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _inner_error_ = NULL; -#line 1700 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1722 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp7_ = _result_; -#line 1700 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1722 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp8_ = _tmp7_->file; -#line 1700 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1722 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp9_ = g_file_get_path (_tmp8_); -#line 1700 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1722 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp10_ = _tmp9_; -#line 1700 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1722 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp11_ = err; -#line 1700 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1722 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp12_ = _tmp11_->message; -#line 1700 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_message ("ImportPage.vala:1700: Unable to delete downloaded file %s: %s", _tmp10_, _tmp12_); -#line 1700 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1722 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + g_message ("ImportPage.vala:1722: Unable to delete downloaded file %s: %s", _tmp10_, _tmp12_); +#line 1722 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (_tmp10_); -#line 1697 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1719 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_error_free0 (err); -#line 11264 "ImportPage.c" +#line 11417 "ImportPage.c" } - __finally68: -#line 1697 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + __finally70: +#line 1719 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1697 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1719 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1697 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1719 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_clear_error (&_inner_error_); -#line 1697 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1719 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return; -#line 11275 "ImportPage.c" +#line 11428 "ImportPage.c" } } static gpointer _batch_import_job_ref0 (gpointer self) { -#line 1744 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1766 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return self ? batch_import_job_ref (self) : NULL; -#line 11283 "ImportPage.c" +#line 11436 "ImportPage.c" } static gboolean _progress_dialog_monitor_progress_monitor (guint64 current, guint64 total, gboolean do_event_loop, gpointer self) { gboolean result; result = progress_dialog_monitor ((ProgressDialog*) self, current, total, do_event_loop); -#line 1751 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1773 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 11292 "ImportPage.c" +#line 11445 "ImportPage.c" } @@ -11325,31 +11478,31 @@ static void import_page_import_reporter (ImportPage* self, ImportManifest* manif gint _tmp91_ = 0; gint _tmp92_ = 0; ProgressDialog* _tmp98_ = NULL; -#line 1704 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1726 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_if_fail (IS_IMPORT_PAGE (self)); -#line 1704 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1726 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_if_fail (IS_IMPORT_MANIFEST (manifest)); -#line 1710 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1732 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = self->priv->local_ref; -#line 1710 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1732 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = _g_object_ref0 (_tmp0_); -#line 1710 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1732 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" local_ref = _tmp1_; -#line 1711 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1733 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (self->priv->local_ref); -#line 1711 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1733 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->local_ref = NULL; -#line 1713 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1735 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = manifest; -#line 1713 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1735 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp3_ = _tmp2_->success; -#line 1713 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1735 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp4_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1713 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1735 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp5_ = _tmp4_; -#line 1713 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1735 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp5_ > 0) { -#line 11346 "ImportPage.c" +#line 11499 "ImportPage.c" gchar* photos_string = NULL; ImportManifest* _tmp6_ = NULL; GeeList* _tmp7_ = NULL; @@ -11409,176 +11562,176 @@ static void import_page_import_reporter (ImportPage* self, ImportManifest* manif ImportManifest* _tmp56_ = NULL; ImportUIQuestionParams* _tmp57_ = NULL; gboolean _tmp58_ = FALSE; -#line 1714 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1736 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp6_ = manifest; -#line 1714 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1736 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp7_ = _tmp6_->success; -#line 1714 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1736 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp8_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1714 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1736 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp9_ = _tmp8_; -#line 1714 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1736 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp10_ = ngettext ("Delete this photo from camera?", "Delete these %d photos from camera?", (gulong) _tmp9_); -#line 1714 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1736 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp11_ = manifest; -#line 1714 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1736 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp12_ = _tmp11_->success; -#line 1714 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1736 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp13_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1714 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1736 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp14_ = _tmp13_; -#line 1714 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1736 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp15_ = g_strdup_printf (_tmp10_, _tmp14_); -#line 1714 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1736 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" photos_string = _tmp15_; -#line 1717 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1739 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp16_ = manifest; -#line 1717 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1739 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp17_ = _tmp16_->success; -#line 1717 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1739 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp18_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1717 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1739 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp19_ = _tmp18_; -#line 1717 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1739 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp20_ = ngettext ("Delete this video from camera?", "Delete these %d videos from camera?", (gulong) _tmp19_); -#line 1717 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1739 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp21_ = manifest; -#line 1717 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1739 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp22_ = _tmp21_->success; -#line 1717 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1739 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp23_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1717 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1739 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp24_ = _tmp23_; -#line 1717 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1739 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp25_ = g_strdup_printf (_tmp20_, _tmp24_); -#line 1717 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1739 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" videos_string = _tmp25_; -#line 1720 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1742 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp26_ = manifest; -#line 1720 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1742 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp27_ = _tmp26_->success; -#line 1720 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1742 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp28_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1720 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1742 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp29_ = _tmp28_; -#line 1720 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1742 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp30_ = ngettext ("Delete this photo/video from camera?", "Delete these %d photos/videos from camera?", (gulong) _tmp29_); -#line 1720 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1742 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp31_ = manifest; -#line 1720 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1742 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp32_ = _tmp31_->success; -#line 1720 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1742 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp33_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1720 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1742 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp34_ = _tmp33_; -#line 1720 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1742 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp35_ = g_strdup_printf (_tmp30_, _tmp34_); -#line 1720 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1742 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" both_string = _tmp35_; -#line 1723 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1745 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp36_ = manifest; -#line 1723 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1745 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp37_ = _tmp36_->success; -#line 1723 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1745 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp38_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1723 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1745 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp39_ = _tmp38_; -#line 1723 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1745 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp40_ = ngettext ("Delete these files from camera?", "Delete these %d files from camera?", (gulong) _tmp39_); -#line 1723 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1745 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp41_ = manifest; -#line 1723 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1745 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp42_ = _tmp41_->success; -#line 1723 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1745 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp43_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1723 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1745 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp44_ = _tmp43_; -#line 1723 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1745 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp45_ = g_strdup_printf (_tmp40_, _tmp44_); -#line 1723 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1745 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" neither_string = _tmp45_; -#line 1727 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1749 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp46_ = manifest; -#line 1727 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1749 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp47_ = _tmp46_->success; -#line 1727 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1749 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp48_ = photos_string; -#line 1727 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1749 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp49_ = videos_string; -#line 1727 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1749 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp50_ = both_string; -#line 1727 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1749 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp51_ = neither_string; -#line 1727 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1749 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp52_ = import_ui_get_media_specific_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, GEE_TYPE_COLLECTION, GeeCollection), _tmp48_, _tmp49_, _tmp50_, _tmp51_); -#line 1727 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1749 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" question_string = _tmp52_; -#line 1730 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1752 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp53_ = question_string; -#line 1730 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1752 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp54_ = _ ("_Keep"); -#line 1730 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1752 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp55_ = import_ui_question_params_new (_tmp53_, RESOURCES_DELETE_LABEL, _tmp54_); -#line 1730 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1752 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" question = _tmp55_; -#line 1733 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1755 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp56_ = manifest; -#line 1733 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1755 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp57_ = question; -#line 1733 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1755 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp58_ = import_ui_report_manifest (_tmp56_, FALSE, _tmp57_); -#line 1733 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1755 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (!_tmp58_) { -#line 1734 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1756 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _import_ui_question_params_unref0 (question); -#line 1734 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1756 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (question_string); -#line 1734 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1756 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (neither_string); -#line 1734 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1756 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (both_string); -#line 1734 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1756 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (videos_string); -#line 1734 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1756 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (photos_string); -#line 1734 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1756 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (local_ref); -#line 1734 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1756 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return; -#line 11542 "ImportPage.c" +#line 11695 "ImportPage.c" } -#line 1713 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1735 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _import_ui_question_params_unref0 (question); -#line 1713 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1735 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (question_string); -#line 1713 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1735 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (neither_string); -#line 1713 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1735 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (both_string); -#line 1713 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1735 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (videos_string); -#line 1713 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1735 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (photos_string); -#line 11556 "ImportPage.c" +#line 11709 "ImportPage.c" } else { ImportManifest* _tmp59_ = NULL; -#line 1736 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1758 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp59_ = manifest; -#line 1736 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1758 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_ui_report_manifest (_tmp59_, FALSE, NULL); -#line 1737 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1759 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (local_ref); -#line 1737 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1759 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return; -#line 11567 "ImportPage.c" +#line 11720 "ImportPage.c" } -#line 1742 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1764 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp60_ = self->priv->import_sources; -#line 1742 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1764 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp61_ = data_collection_start_marking (G_TYPE_CHECK_INSTANCE_CAST (_tmp60_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1742 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1764 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" marker = _tmp61_; -#line 11575 "ImportPage.c" +#line 11728 "ImportPage.c" { GeeList* _batch_result_list = NULL; ImportManifest* _tmp62_ = NULL; @@ -11589,27 +11742,27 @@ static void import_page_import_reporter (ImportPage* self, ImportManifest* manif gint _tmp66_ = 0; gint _tmp67_ = 0; gint _batch_result_index = 0; -#line 1743 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1765 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp62_ = manifest; -#line 1743 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1765 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp63_ = _tmp62_->success; -#line 1743 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1765 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp64_ = _g_object_ref0 (_tmp63_); -#line 1743 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1765 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _batch_result_list = _tmp64_; -#line 1743 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1765 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp65_ = _batch_result_list; -#line 1743 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1765 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp66_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp65_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1743 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1765 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp67_ = _tmp66_; -#line 1743 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1765 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _batch_result_size = _tmp67_; -#line 1743 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1765 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _batch_result_index = -1; -#line 1743 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1765 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" while (TRUE) { -#line 11606 "ImportPage.c" +#line 11759 "ImportPage.c" gint _tmp68_ = 0; gint _tmp69_ = 0; gint _tmp70_ = 0; @@ -11625,134 +11778,134 @@ static void import_page_import_reporter (ImportPage* self, ImportManifest* manif ImportPageCameraImportJob* _tmp78_ = NULL; ImportSource* _tmp79_ = NULL; ImportSource* _tmp80_ = NULL; -#line 1743 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1765 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp68_ = _batch_result_index; -#line 1743 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1765 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _batch_result_index = _tmp68_ + 1; -#line 1743 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1765 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp69_ = _batch_result_index; -#line 1743 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1765 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp70_ = _batch_result_size; -#line 1743 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1765 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (!(_tmp69_ < _tmp70_)) { -#line 1743 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1765 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" break; -#line 11634 "ImportPage.c" +#line 11787 "ImportPage.c" } -#line 1743 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1765 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp71_ = _batch_result_list; -#line 1743 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1765 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp72_ = _batch_result_index; -#line 1743 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1765 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp73_ = gee_list_get (_tmp71_, _tmp72_); -#line 1743 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1765 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" batch_result = (BatchImportResult*) _tmp73_; -#line 1744 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1766 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp74_ = batch_result; -#line 1744 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1766 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp75_ = _tmp74_->job; -#line 1744 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1766 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp76_ = _batch_import_job_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp75_, IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB) ? ((ImportPageCameraImportJob*) _tmp75_) : NULL); -#line 1744 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1766 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" job = _tmp76_; -#line 1746 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1768 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp77_ = marker; -#line 1746 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1768 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp78_ = job; -#line 1746 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1768 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp79_ = import_page_camera_import_job_get_source (_tmp78_); -#line 1746 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1768 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp80_ = _tmp79_; -#line 1746 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1768 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" marker_mark (_tmp77_, G_TYPE_CHECK_INSTANCE_CAST (_tmp80_, TYPE_DATA_OBJECT, DataObject)); -#line 1746 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1768 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_tmp80_); -#line 1743 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1765 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _batch_import_job_unref0 (job); -#line 1743 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1765 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _batch_import_result_unref0 (batch_result); -#line 11668 "ImportPage.c" +#line 11821 "ImportPage.c" } -#line 1743 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1765 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_batch_result_list); -#line 11672 "ImportPage.c" +#line 11825 "ImportPage.c" } -#line 1749 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1771 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp81_ = app_window_get_instance (); -#line 1749 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1771 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp82_ = _tmp81_; -#line 1749 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1771 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp83_ = _ ("Removing photos/videos from camera"); -#line 1749 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1771 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp84_ = g_cancellable_new (); -#line 1749 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1771 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp85_ = _tmp84_; -#line 1749 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1771 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp86_ = progress_dialog_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp82_, gtk_window_get_type (), GtkWindow), _tmp83_, _tmp85_); -#line 1749 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1771 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_object_ref_sink (_tmp86_); -#line 1749 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1771 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp87_ = _tmp86_; -#line 1749 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1771 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_tmp85_); -#line 1749 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1771 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_tmp82_); -#line 1749 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1771 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" progress = _tmp87_; -#line 1751 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1773 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp88_ = self->priv->import_sources; -#line 1751 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1773 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp89_ = marker; -#line 1751 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1773 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp90_ = progress; -#line 1751 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1773 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp91_ = source_collection_destroy_marked (_tmp88_, _tmp89_, TRUE, _progress_dialog_monitor_progress_monitor, _tmp90_, NULL); -#line 1751 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1773 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" error_count = _tmp91_; -#line 1752 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1774 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp92_ = error_count; -#line 1752 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1774 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp92_ > 0) { -#line 11710 "ImportPage.c" +#line 11863 "ImportPage.c" gchar* error_string = NULL; gint _tmp93_ = 0; const gchar* _tmp94_ = NULL; gint _tmp95_ = 0; gchar* _tmp96_ = NULL; const gchar* _tmp97_ = NULL; -#line 1753 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1775 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp93_ = error_count; -#line 1753 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1775 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp94_ = ngettext ("Unable to delete %d photo/video from the camera due to errors.", "Unable to delete %d photos/videos from the camera due to errors.", (gulong) _tmp93_); -#line 1753 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1775 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp95_ = error_count; -#line 1753 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1775 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp96_ = g_strdup_printf (_tmp94_, _tmp95_); -#line 1753 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1775 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" error_string = _tmp96_; -#line 1757 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1779 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp97_ = error_string; -#line 1757 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1779 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" app_window_error_message (_tmp97_, NULL); -#line 1752 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1774 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (error_string); -#line 11733 "ImportPage.c" +#line 11886 "ImportPage.c" } -#line 1760 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1782 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp98_ = progress; -#line 1760 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1782 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" progress_dialog_close (_tmp98_); -#line 1763 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (local_ref); -#line 1763 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" local_ref = NULL; -#line 1704 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1726 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (progress); -#line 1704 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1726 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (marker); -#line 1704 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1726 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (local_ref); -#line 11749 "ImportPage.c" +#line 11902 "ImportPage.c" } @@ -11764,45 +11917,45 @@ static void import_page_close_import (ImportPage* self) { int _tmp3_ = 0; int _tmp4_ = 0; gboolean _tmp8_ = FALSE; -#line 1766 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1788 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_if_fail (IS_IMPORT_PAGE (self)); -#line 1767 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1789 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = self->priv->camera; -#line 1767 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1789 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = import_page_spin_idle_context; -#line 1767 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1789 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper)->context; -#line 1767 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1789 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp3_ = gp_camera_exit (_tmp0_, _tmp2_); -#line 1767 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1789 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" res = _tmp3_; -#line 1768 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1790 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp4_ = res; -#line 1768 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1790 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp4_ != GP_OK) { -#line 11777 "ImportPage.c" +#line 11930 "ImportPage.c" int _tmp5_ = 0; gchar* _tmp6_ = NULL; gchar* _tmp7_ = NULL; -#line 1770 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1792 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp5_ = res; -#line 1770 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1792 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp6_ = gp_result_to_full_string (_tmp5_); -#line 1770 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1792 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp7_ = _tmp6_; -#line 1770 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_message ("ImportPage.vala:1770: Unable to unlock camera: %s", _tmp7_); -#line 1770 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1792 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + g_message ("ImportPage.vala:1792: Unable to unlock camera: %s", _tmp7_); +#line 1792 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (_tmp7_); -#line 11791 "ImportPage.c" +#line 11944 "ImportPage.c" } -#line 1773 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1795 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp8_ = self->priv->refreshed; -#line 1773 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1795 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_update_status (self, FALSE, _tmp8_); -#line 1775 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1797 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_on_view_changed (self); -#line 11799 "ImportPage.c" +#line 11952 "ImportPage.c" } @@ -11810,24 +11963,24 @@ static void import_page_real_set_display_titles (CheckerboardPage* base, gboolea ImportPage * self; gboolean _tmp0_ = FALSE; gboolean _tmp1_ = FALSE; -#line 1778 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1800 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_PAGE, ImportPage); -#line 1779 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1801 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = display; -#line 1779 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1801 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" CHECKERBOARD_PAGE_CLASS (import_page_parent_class)->set_display_titles (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), _tmp0_); -#line 1781 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1803 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = display; -#line 1781 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1803 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" page_set_action_active (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ViewTitle", _tmp1_); -#line 11817 "ImportPage.c" +#line 11970 "ImportPage.c" } static gpointer _view_filter_ref0 (gpointer self) { -#line 1786 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1808 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return self ? view_filter_ref (self) : NULL; -#line 11824 "ImportPage.c" +#line 11977 "ImportPage.c" } @@ -11836,17 +11989,17 @@ static SearchViewFilter* import_page_real_get_search_view_filter (CheckerboardPa SearchViewFilter* result = NULL; ImportPageImportPageSearchViewFilter* _tmp0_ = NULL; SearchViewFilter* _tmp1_ = NULL; -#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1807 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_PAGE, ImportPage); -#line 1786 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1808 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = self->priv->search_filter; -#line 1786 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1808 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = _view_filter_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)); -#line 1786 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1808 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = _tmp1_; -#line 1786 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 1808 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 11843 "ImportPage.c" +#line 11996 "ImportPage.c" } @@ -11854,28 +12007,28 @@ static ImportPageImportViewManager* import_page_import_view_manager_construct (G ImportPageImportViewManager* self = NULL; ImportPage* _tmp0_ = NULL; ImportPage* _tmp1_ = NULL; -#line 463 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 471 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (IS_IMPORT_PAGE (owner), NULL); -#line 463 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 471 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self = (ImportPageImportViewManager*) view_manager_construct (object_type); -#line 464 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 472 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = owner; -#line 464 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 472 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = _g_object_ref0 (_tmp0_); -#line 464 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 472 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (self->priv->owner); -#line 464 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 472 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->owner = _tmp1_; -#line 463 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 471 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return self; -#line 11865 "ImportPage.c" +#line 12018 "ImportPage.c" } static ImportPageImportViewManager* import_page_import_view_manager_new (ImportPage* owner) { -#line 463 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 471 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return import_page_import_view_manager_construct (IMPORT_PAGE_TYPE_IMPORT_VIEW_MANAGER, owner); -#line 11872 "ImportPage.c" +#line 12025 "ImportPage.c" } @@ -11884,51 +12037,51 @@ static DataView* import_page_import_view_manager_real_create_view (ViewManager* DataView* result = NULL; DataSource* _tmp0_ = NULL; ImportPreview* _tmp1_ = NULL; -#line 467 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 475 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, IMPORT_PAGE_TYPE_IMPORT_VIEW_MANAGER, ImportPageImportViewManager); -#line 467 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 475 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (IS_DATA_SOURCE (source), NULL); -#line 468 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 476 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = source; -#line 468 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 476 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = import_preview_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_IMPORT_SOURCE, ImportSource)); -#line 468 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 476 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_VIEW, DataView); -#line 468 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 476 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 11893 "ImportPage.c" +#line 12046 "ImportPage.c" } static void import_page_import_view_manager_class_init (ImportPageImportViewManagerClass * klass) { -#line 460 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 468 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_import_view_manager_parent_class = g_type_class_peek_parent (klass); -#line 460 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 468 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" ((ViewManagerClass *) klass)->finalize = import_page_import_view_manager_finalize; -#line 460 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 468 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_type_class_add_private (klass, sizeof (ImportPageImportViewManagerPrivate)); -#line 460 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 468 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" ((ViewManagerClass *) klass)->create_view = import_page_import_view_manager_real_create_view; -#line 11906 "ImportPage.c" +#line 12059 "ImportPage.c" } static void import_page_import_view_manager_instance_init (ImportPageImportViewManager * self) { -#line 460 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 468 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv = IMPORT_PAGE_IMPORT_VIEW_MANAGER_GET_PRIVATE (self); -#line 11913 "ImportPage.c" +#line 12066 "ImportPage.c" } static void import_page_import_view_manager_finalize (ViewManager* obj) { ImportPageImportViewManager * self; -#line 460 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 468 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (obj, IMPORT_PAGE_TYPE_IMPORT_VIEW_MANAGER, ImportPageImportViewManager); -#line 461 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 469 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (self->priv->owner); -#line 460 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 468 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" VIEW_MANAGER_CLASS (import_page_import_view_manager_parent_class)->finalize (obj); -#line 11925 "ImportPage.c" +#line 12078 "ImportPage.c" } @@ -11945,9 +12098,9 @@ static GType import_page_import_view_manager_get_type (void) { static gpointer _gp_context_wrapper_ref0 (gpointer self) { -#line 487 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 495 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return self ? gp_context_wrapper_ref (self) : NULL; -#line 11944 "ImportPage.c" +#line 12097 "ImportPage.c" } @@ -11973,134 +12126,134 @@ static ImportPageCameraImportJob* import_page_camera_import_job_construct (GType PhotoMetadata* _tmp19_ = NULL; ImportSource* _tmp20_ = NULL; time_t _tmp21_ = 0; -#line 485 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 493 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (GP_IS_CONTEXT_WRAPPER (context), NULL); -#line 485 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 493 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (IS_IMPORT_SOURCE (import_file), NULL); -#line 485 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 493 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail ((duplicated_file == NULL) || IS_DUPLICATED_FILE (duplicated_file), NULL); -#line 485 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 493 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self = (ImportPageCameraImportJob*) batch_import_job_construct (object_type); -#line 487 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 495 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = context; -#line 487 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 495 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = _gp_context_wrapper_ref0 (_tmp0_); -#line 487 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 495 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _gp_context_wrapper_unref0 (self->priv->context); -#line 487 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 495 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->context = _tmp1_; -#line 488 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = import_file; -#line 488 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp3_ = _g_object_ref0 (_tmp2_); -#line 488 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (self->priv->import_file); -#line 488 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->import_file = _tmp3_; -#line 489 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 497 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp4_ = duplicated_file; -#line 489 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 497 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp5_ = _g_object_ref0 (_tmp4_); -#line 489 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 497 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (self->priv->duplicated_file); -#line 489 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 497 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->duplicated_file = _tmp5_; -#line 492 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 500 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp6_ = import_file; -#line 492 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 500 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp7_ = import_source_get_camera (_tmp6_); -#line 492 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 500 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _gp_camera_unref0 (self->priv->camera); -#line 492 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 500 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->camera = _tmp7_; -#line 493 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 501 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp8_ = import_file; -#line 493 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 501 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp9_ = import_source_get_fulldir (_tmp8_); -#line 493 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 501 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (self->priv->fulldir); -#line 493 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 501 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->fulldir = _tmp9_; -#line 495 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 503 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp10_ = self->priv->fulldir; -#line 495 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 503 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _vala_assert (_tmp10_ != NULL, "fulldir != null"); -#line 496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 504 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp11_ = import_file; -#line 496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 504 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp12_ = import_source_get_filename (_tmp11_); -#line 496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 504 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (self->priv->filename); -#line 496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 504 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->filename = _tmp12_; -#line 497 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp13_ = import_file; -#line 497 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp14_ = import_source_get_filesize (_tmp13_); -#line 497 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->filesize = (guint64) _tmp14_; -#line 498 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 506 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp16_ = import_file; -#line 498 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 506 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp16_, TYPE_PHOTO_IMPORT_SOURCE)) { -#line 12040 "ImportPage.c" +#line 12193 "ImportPage.c" ImportSource* _tmp17_ = NULL; PhotoMetadata* _tmp18_ = NULL; -#line 499 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 507 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp17_ = import_file; -#line 499 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 507 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp18_ = photo_import_source_get_metadata (G_TYPE_CHECK_INSTANCE_TYPE (_tmp17_, TYPE_PHOTO_IMPORT_SOURCE) ? ((PhotoImportSource*) _tmp17_) : NULL); -#line 499 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 507 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _media_metadata_unref0 (_tmp15_); -#line 499 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 507 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp15_ = _tmp18_; -#line 12051 "ImportPage.c" +#line 12204 "ImportPage.c" } else { -#line 499 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 507 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _media_metadata_unref0 (_tmp15_); -#line 499 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 507 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp15_ = NULL; -#line 12057 "ImportPage.c" +#line 12210 "ImportPage.c" } -#line 498 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 506 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp19_ = _media_metadata_ref0 (_tmp15_); -#line 498 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 506 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _media_metadata_unref0 (self->priv->metadata); -#line 498 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 506 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->metadata = _tmp19_; -#line 500 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 508 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp20_ = import_file; -#line 500 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 508 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp21_ = import_source_get_exposure_time (_tmp20_); -#line 500 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 508 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->exposure_time = _tmp21_; -#line 485 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 493 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _media_metadata_unref0 (_tmp15_); -#line 485 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 493 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return self; -#line 12075 "ImportPage.c" +#line 12228 "ImportPage.c" } static ImportPageCameraImportJob* import_page_camera_import_job_new (GPContextWrapper* context, ImportSource* import_file, DuplicatedFile* duplicated_file) { -#line 485 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 493 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return import_page_camera_import_job_construct (IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB, context, import_file, duplicated_file); -#line 12082 "ImportPage.c" +#line 12235 "ImportPage.c" } static time_t import_page_camera_import_job_get_exposure_time (ImportPageCameraImportJob* self) { time_t result = 0; time_t _tmp0_ = 0; -#line 503 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 511 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (IMPORT_PAGE_IS_CAMERA_IMPORT_JOB (self), 0); -#line 504 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 512 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = self->priv->exposure_time; -#line 504 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 512 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = _tmp0_; -#line 504 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 512 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 12097 "ImportPage.c" +#line 12250 "ImportPage.c" } @@ -12109,17 +12262,17 @@ static DuplicatedFile* import_page_camera_import_job_real_get_duplicated_file (B DuplicatedFile* result = NULL; DuplicatedFile* _tmp0_ = NULL; DuplicatedFile* _tmp1_ = NULL; -#line 507 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 515 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB, ImportPageCameraImportJob); -#line 508 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 516 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = self->priv->duplicated_file; -#line 508 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 516 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = _g_object_ref0 (_tmp0_); -#line 508 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 516 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = _tmp1_; -#line 508 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 516 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 12116 "ImportPage.c" +#line 12269 "ImportPage.c" } @@ -12128,29 +12281,29 @@ static time_t import_page_camera_import_job_real_get_exposure_time_override (Bat time_t result = 0; time_t _tmp0_ = 0; ImportSource* _tmp1_ = NULL; -#line 511 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 519 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB, ImportPageCameraImportJob); -#line 512 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 520 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = self->priv->import_file; -#line 512 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 520 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, TYPE_VIDEO_IMPORT_SOURCE)) { -#line 12131 "ImportPage.c" +#line 12284 "ImportPage.c" time_t _tmp2_ = 0; -#line 512 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 520 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = import_page_camera_import_job_get_exposure_time (self); -#line 512 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 520 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = _tmp2_; -#line 12137 "ImportPage.c" +#line 12290 "ImportPage.c" } else { -#line 512 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 520 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = (time_t) 0; -#line 12141 "ImportPage.c" +#line 12294 "ImportPage.c" } -#line 512 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 520 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = _tmp0_; -#line 512 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 520 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 12147 "ImportPage.c" +#line 12300 "ImportPage.c" } @@ -12159,17 +12312,17 @@ static gchar* import_page_camera_import_job_real_get_dest_identifier (BatchImpor gchar* result = NULL; const gchar* _tmp0_ = NULL; gchar* _tmp1_ = NULL; -#line 515 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 523 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB, ImportPageCameraImportJob); -#line 516 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 524 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = self->priv->filename; -#line 516 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 524 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = g_strdup (_tmp0_); -#line 516 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 524 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = _tmp1_; -#line 516 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 524 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 12166 "ImportPage.c" +#line 12319 "ImportPage.c" } @@ -12178,17 +12331,17 @@ static gchar* import_page_camera_import_job_real_get_source_identifier (BatchImp gchar* result = NULL; ImportSource* _tmp0_ = NULL; gchar* _tmp1_ = NULL; -#line 519 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 527 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB, ImportPageCameraImportJob); -#line 520 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 528 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = self->priv->import_file; -#line 520 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 528 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = import_source_get_filename (_tmp0_); -#line 520 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 528 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = _tmp1_; -#line 520 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 528 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 12185 "ImportPage.c" +#line 12338 "ImportPage.c" } @@ -12197,17 +12350,17 @@ static gchar* import_page_camera_import_job_real_get_basename (BatchImportJob* b gchar* result = NULL; const gchar* _tmp0_ = NULL; gchar* _tmp1_ = NULL; -#line 523 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 531 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB, ImportPageCameraImportJob); -#line 524 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 532 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = self->priv->filename; -#line 524 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 532 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = g_strdup (_tmp0_); -#line 524 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 532 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = _tmp1_; -#line 524 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 532 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 12204 "ImportPage.c" +#line 12357 "ImportPage.c" } @@ -12216,17 +12369,17 @@ static gchar* import_page_camera_import_job_real_get_path (BatchImportJob* base) gchar* result = NULL; const gchar* _tmp0_ = NULL; gchar* _tmp1_ = NULL; -#line 527 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 535 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB, ImportPageCameraImportJob); -#line 528 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 536 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = self->priv->fulldir; -#line 528 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 536 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = g_strdup (_tmp0_); -#line 528 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 536 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = _tmp1_; -#line 528 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 536 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 12223 "ImportPage.c" +#line 12376 "ImportPage.c" } @@ -12234,19 +12387,19 @@ static void import_page_camera_import_job_real_set_associated (BatchImportJob* b ImportPageCameraImportJob * self; BatchImportJob* _tmp0_ = NULL; ImportPageCameraImportJob* _tmp1_ = NULL; -#line 531 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 539 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB, ImportPageCameraImportJob); -#line 531 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 539 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_if_fail (IS_BATCH_IMPORT_JOB (associated)); -#line 532 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 540 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = associated; -#line 532 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 540 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = _batch_import_job_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB) ? ((ImportPageCameraImportJob*) _tmp0_) : NULL); -#line 532 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 540 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _batch_import_job_unref0 (self->priv->associated); -#line 532 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 540 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->associated = _tmp1_; -#line 12243 "ImportPage.c" +#line 12396 "ImportPage.c" } @@ -12254,30 +12407,30 @@ static ImportSource* import_page_camera_import_job_get_source (ImportPageCameraI ImportSource* result = NULL; ImportSource* _tmp0_ = NULL; ImportSource* _tmp1_ = NULL; -#line 535 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 543 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (IMPORT_PAGE_IS_CAMERA_IMPORT_JOB (self), NULL); -#line 536 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 544 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = self->priv->import_file; -#line 536 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 544 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = _g_object_ref0 (_tmp0_); -#line 536 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 544 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = _tmp1_; -#line 536 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 544 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 12261 "ImportPage.c" +#line 12414 "ImportPage.c" } static gboolean import_page_camera_import_job_real_is_directory (BatchImportJob* base) { ImportPageCameraImportJob * self; gboolean result = FALSE; -#line 539 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 547 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB, ImportPageCameraImportJob); -#line 540 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 548 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = FALSE; -#line 540 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 548 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 12274 "ImportPage.c" +#line 12427 "ImportPage.c" } @@ -12287,37 +12440,37 @@ static gboolean import_page_camera_import_job_real_determine_file_size (BatchImp GFile* _vala_file = NULL; gboolean result = FALSE; guint64 _tmp0_ = 0ULL; -#line 543 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 551 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB, ImportPageCameraImportJob); -#line 544 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 552 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_vala_file); -#line 544 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 552 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _vala_file = NULL; -#line 545 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 553 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = self->priv->filesize; -#line 545 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 553 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _vala_filesize = _tmp0_; -#line 547 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = TRUE; -#line 547 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (filesize) { -#line 547 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" *filesize = _vala_filesize; -#line 12300 "ImportPage.c" +#line 12453 "ImportPage.c" } -#line 547 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (file) { -#line 547 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" *file = _vala_file; -#line 12306 "ImportPage.c" +#line 12459 "ImportPage.c" } else { -#line 547 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_vala_file); -#line 12310 "ImportPage.c" +#line 12463 "ImportPage.c" } -#line 547 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 12314 "ImportPage.c" +#line 12467 "ImportPage.c" } @@ -12333,17 +12486,17 @@ static gboolean import_page_camera_import_job_real_prepare (BatchImportJob* base GFile* _tmp55_ = NULL; GFile* _tmp56_ = NULL; GError * _inner_error_ = NULL; -#line 550 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 558 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB, ImportPageCameraImportJob); -#line 551 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 559 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_vala_file_to_import); -#line 551 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 559 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _vala_file_to_import = NULL; -#line 552 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 560 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _vala_copy_to_library = FALSE; -#line 554 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 562 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" dest_file = NULL; -#line 12340 "ImportPage.c" +#line 12493 "ImportPage.c" { gboolean collision = FALSE; GFile* _tmp0_ = NULL; @@ -12353,37 +12506,37 @@ static gboolean import_page_camera_import_job_real_prepare (BatchImportJob* base gboolean _tmp4_ = FALSE; GFile* _tmp5_ = NULL; GFile* _tmp6_ = NULL; -#line 557 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 565 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = self->priv->filename; -#line 557 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 565 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = self->priv->metadata; -#line 557 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 565 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp3_ = self->priv->exposure_time; -#line 557 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 565 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp5_ = library_files_generate_unique_file (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_MEDIA_METADATA, MediaMetadata), _tmp3_, &_tmp4_, &_inner_error_); -#line 557 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 565 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" collision = _tmp4_; -#line 557 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 565 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = _tmp5_; -#line 557 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 565 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 12364 "ImportPage.c" - goto __catch69_g_error; +#line 12517 "ImportPage.c" + goto __catch71_g_error; } -#line 557 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 565 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp6_ = _tmp0_; -#line 557 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 565 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = NULL; -#line 557 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 565 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (dest_file); -#line 557 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 565 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" dest_file = _tmp6_; -#line 555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 563 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_tmp0_); -#line 12377 "ImportPage.c" +#line 12530 "ImportPage.c" } - goto __finally69; - __catch69_g_error: + goto __finally71; + __catch71_g_error: { GError* err = NULL; ImportSource* _tmp7_ = NULL; @@ -12391,86 +12544,86 @@ static gboolean import_page_camera_import_job_real_prepare (BatchImportJob* base gchar* _tmp9_ = NULL; GError* _tmp10_ = NULL; const gchar* _tmp11_ = NULL; -#line 555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 563 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" err = _inner_error_; -#line 555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 563 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _inner_error_ = NULL; -#line 560 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 568 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp7_ = self->priv->import_file; -#line 560 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 568 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp8_ = import_source_get_filename (_tmp7_); -#line 560 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 568 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp9_ = _tmp8_; -#line 560 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 568 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp10_ = err; -#line 560 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 568 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp11_ = _tmp10_->message; -#line 560 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_warning ("ImportPage.vala:560: Unable to generate local file for %s: %s", _tmp9_, _tmp11_); -#line 560 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 568 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + g_warning ("ImportPage.vala:568: Unable to generate local file for %s: %s", _tmp9_, _tmp11_); +#line 568 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (_tmp9_); -#line 555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 563 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_error_free0 (err); -#line 12408 "ImportPage.c" +#line 12561 "ImportPage.c" } - __finally69: -#line 555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + __finally71: +#line 563 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 563 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_propagate_error (error, _inner_error_); -#line 555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 563 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (dest_file); -#line 555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 563 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return FALSE; -#line 12419 "ImportPage.c" +#line 12572 "ImportPage.c" } -#line 564 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 572 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp12_ = dest_file; -#line 564 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 572 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp12_ == NULL) { -#line 12425 "ImportPage.c" +#line 12578 "ImportPage.c" ImportSource* _tmp13_ = NULL; gchar* _tmp14_ = NULL; gchar* _tmp15_ = NULL; -#line 565 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 573 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp13_ = self->priv->import_file; -#line 565 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 573 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp14_ = import_source_get_filename (_tmp13_); -#line 565 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 573 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp15_ = _tmp14_; -#line 565 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_message ("ImportPage.vala:565: Unable to generate local file for %s", _tmp15_); -#line 565 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 573 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + g_message ("ImportPage.vala:573: Unable to generate local file for %s", _tmp15_); +#line 573 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (_tmp15_); -#line 567 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 575 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = FALSE; -#line 567 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 575 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (dest_file); -#line 567 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 575 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (file_to_import) { -#line 567 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 575 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" *file_to_import = _vala_file_to_import; -#line 12447 "ImportPage.c" +#line 12600 "ImportPage.c" } else { -#line 567 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 575 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_vala_file_to_import); -#line 12451 "ImportPage.c" +#line 12604 "ImportPage.c" } -#line 567 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 575 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (copy_to_library) { -#line 567 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 575 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" *copy_to_library = _vala_copy_to_library; -#line 12457 "ImportPage.c" +#line 12610 "ImportPage.c" } -#line 567 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 575 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 12461 "ImportPage.c" +#line 12614 "ImportPage.c" } -#line 572 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 580 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp16_ = dest_file; -#line 572 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 580 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" library_monitor_blacklist_file (_tmp16_, "CameraImportJob.prepare"); -#line 12467 "ImportPage.c" +#line 12620 "ImportPage.c" { GPContextWrapper* _tmp17_ = NULL; GPContext* _tmp18_ = NULL; @@ -12478,50 +12631,50 @@ static gboolean import_page_camera_import_job_real_prepare (BatchImportJob* base const gchar* _tmp20_ = NULL; const gchar* _tmp21_ = NULL; GFile* _tmp22_ = NULL; -#line 574 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 582 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp17_ = self->priv->context; -#line 574 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 582 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp18_ = _tmp17_->context; -#line 574 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 582 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp19_ = self->priv->camera; -#line 574 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 582 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp20_ = self->priv->fulldir; -#line 574 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 582 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp21_ = self->priv->filename; -#line 574 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 582 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp22_ = dest_file; -#line 574 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 582 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gp_save_image (_tmp18_, _tmp19_, _tmp20_, _tmp21_, _tmp22_, &_inner_error_); -#line 574 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 582 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 12491 "ImportPage.c" - goto __finally70; +#line 12644 "ImportPage.c" + goto __finally72; } } - __finally70: + __finally72: { GFile* _tmp23_ = NULL; -#line 576 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 584 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp23_ = dest_file; -#line 576 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 584 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" library_monitor_unblacklist_file (_tmp23_); -#line 12502 "ImportPage.c" +#line 12655 "ImportPage.c" } -#line 573 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 581 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 573 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 581 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_propagate_error (error, _inner_error_); -#line 573 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 581 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (dest_file); -#line 573 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 581 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return FALSE; -#line 12512 "ImportPage.c" +#line 12665 "ImportPage.c" } -#line 580 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 588 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp24_ = self->priv->associated; -#line 580 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 588 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp24_ != NULL) { -#line 12518 "ImportPage.c" +#line 12671 "ImportPage.c" BackingPhotoRow* _tmp39_ = NULL; GFile* assoc_dest = NULL; BackingPhotoRow* _tmp42_ = NULL; @@ -12539,133 +12692,133 @@ static gboolean import_page_camera_import_job_real_prepare (BatchImportJob* base BackingPhotoRow* _tmp32_ = NULL; BackingPhotoRow* _tmp33_ = NULL; BackingPhotoRow* _tmp34_ = NULL; -#line 583 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 591 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp26_ = dest_file; -#line 583 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 591 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp27_ = g_file_get_path (_tmp26_); -#line 583 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 591 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp28_ = _tmp27_; -#line 583 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 591 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp29_ = self->priv->associated; -#line 583 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 591 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp30_ = batch_import_job_get_basename (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_BATCH_IMPORT_JOB, BatchImportJob)); -#line 583 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 591 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp31_ = _tmp30_; -#line 583 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 591 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp32_ = raw_developer_create_backing_row_for_development (RAW_DEVELOPER_CAMERA, _tmp28_, _tmp31_, &_inner_error_); -#line 583 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 591 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp33_ = _tmp32_; -#line 583 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 591 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (_tmp31_); -#line 583 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 591 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (_tmp28_); -#line 583 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 591 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp25_ = _tmp33_; -#line 583 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 591 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 12560 "ImportPage.c" - goto __catch71_g_error; +#line 12713 "ImportPage.c" + goto __catch73_g_error; } -#line 582 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 590 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp34_ = _tmp25_; -#line 582 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 590 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp25_ = NULL; -#line 582 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 590 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _backing_photo_row_unref0 (self->priv->associated_file); -#line 582 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 590 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->associated_file = _tmp34_; -#line 581 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 589 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _backing_photo_row_unref0 (_tmp25_); -#line 12573 "ImportPage.c" +#line 12726 "ImportPage.c" } - goto __finally71; - __catch71_g_error: + goto __finally73; + __catch73_g_error: { GError* err = NULL; ImportPageCameraImportJob* _tmp35_ = NULL; const gchar* _tmp36_ = NULL; GError* _tmp37_ = NULL; const gchar* _tmp38_ = NULL; -#line 581 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 589 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" err = _inner_error_; -#line 581 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 589 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _inner_error_ = NULL; -#line 586 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 594 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp35_ = self->priv->associated; -#line 586 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 594 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp36_ = _tmp35_->priv->filename; -#line 586 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 594 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp37_ = err; -#line 586 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 594 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp38_ = _tmp37_->message; -#line 586 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_warning ("ImportPage.vala:586: Unable to generate backing associated file for %s" \ +#line 594 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + g_warning ("ImportPage.vala:594: Unable to generate backing associated file for %s" \ ": %s", _tmp36_, _tmp38_); -#line 581 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 589 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_error_free0 (err); -#line 12599 "ImportPage.c" +#line 12752 "ImportPage.c" } - __finally71: -#line 581 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + __finally73: +#line 589 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 581 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 589 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_propagate_error (error, _inner_error_); -#line 581 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 589 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (dest_file); -#line 581 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 589 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return FALSE; -#line 12610 "ImportPage.c" +#line 12763 "ImportPage.c" } -#line 590 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 598 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp39_ = self->priv->associated_file; -#line 590 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 598 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp39_ == NULL) { -#line 12616 "ImportPage.c" +#line 12769 "ImportPage.c" ImportPageCameraImportJob* _tmp40_ = NULL; const gchar* _tmp41_ = NULL; -#line 591 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 599 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp40_ = self->priv->associated; -#line 591 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 599 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp41_ = _tmp40_->priv->filename; -#line 591 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_message ("ImportPage.vala:591: Unable to generate backing associated file for %s", _tmp41_); -#line 592 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 599 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + g_message ("ImportPage.vala:599: Unable to generate backing associated file for %s", _tmp41_); +#line 600 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = FALSE; -#line 592 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 600 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (dest_file); -#line 592 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 600 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (file_to_import) { -#line 592 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 600 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" *file_to_import = _vala_file_to_import; -#line 12633 "ImportPage.c" +#line 12786 "ImportPage.c" } else { -#line 592 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 600 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_vala_file_to_import); -#line 12637 "ImportPage.c" +#line 12790 "ImportPage.c" } -#line 592 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 600 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (copy_to_library) { -#line 592 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 600 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" *copy_to_library = _vala_copy_to_library; -#line 12643 "ImportPage.c" +#line 12796 "ImportPage.c" } -#line 592 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 600 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 12647 "ImportPage.c" +#line 12800 "ImportPage.c" } -#line 595 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 603 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp42_ = self->priv->associated_file; -#line 595 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 603 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp43_ = _tmp42_->filepath; -#line 595 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 603 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp44_ = g_file_new_for_path (_tmp43_); -#line 595 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 603 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" assoc_dest = _tmp44_; -#line 596 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 604 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp45_ = assoc_dest; -#line 596 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 604 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" library_monitor_blacklist_file (_tmp45_, "CameraImportJob.prepare"); -#line 12661 "ImportPage.c" +#line 12814 "ImportPage.c" { GPContextWrapper* _tmp46_ = NULL; GPContext* _tmp47_ = NULL; @@ -12675,88 +12828,88 @@ static gboolean import_page_camera_import_job_real_prepare (BatchImportJob* base ImportPageCameraImportJob* _tmp51_ = NULL; const gchar* _tmp52_ = NULL; GFile* _tmp53_ = NULL; -#line 598 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 606 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp46_ = self->priv->context; -#line 598 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 606 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp47_ = _tmp46_->context; -#line 598 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 606 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp48_ = self->priv->camera; -#line 598 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 606 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp49_ = self->priv->associated; -#line 598 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 606 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp50_ = _tmp49_->priv->fulldir; -#line 598 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 606 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp51_ = self->priv->associated; -#line 598 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 606 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp52_ = _tmp51_->priv->filename; -#line 598 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 606 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp53_ = assoc_dest; -#line 598 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 606 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" gp_save_image (_tmp47_, _tmp48_, _tmp50_, _tmp52_, _tmp53_, &_inner_error_); -#line 598 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 606 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 12691 "ImportPage.c" - goto __finally72; +#line 12844 "ImportPage.c" + goto __finally74; } } - __finally72: + __finally74: { GFile* _tmp54_ = NULL; -#line 601 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 609 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp54_ = assoc_dest; -#line 601 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 609 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" library_monitor_unblacklist_file (_tmp54_); -#line 12702 "ImportPage.c" +#line 12855 "ImportPage.c" } -#line 597 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 605 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 597 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 605 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_propagate_error (error, _inner_error_); -#line 597 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 605 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (assoc_dest); -#line 597 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 605 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (dest_file); -#line 597 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 605 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return FALSE; -#line 12714 "ImportPage.c" +#line 12867 "ImportPage.c" } -#line 580 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 588 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (assoc_dest); -#line 12718 "ImportPage.c" +#line 12871 "ImportPage.c" } -#line 605 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 613 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp55_ = dest_file; -#line 605 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 613 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp56_ = _g_object_ref0 (_tmp55_); -#line 605 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 613 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_vala_file_to_import); -#line 605 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 613 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _vala_file_to_import = _tmp56_; -#line 606 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 614 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _vala_copy_to_library = FALSE; -#line 608 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 616 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = TRUE; -#line 608 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 616 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (dest_file); -#line 608 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 616 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (file_to_import) { -#line 608 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 616 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" *file_to_import = _vala_file_to_import; -#line 12738 "ImportPage.c" +#line 12891 "ImportPage.c" } else { -#line 608 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 616 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_vala_file_to_import); -#line 12742 "ImportPage.c" +#line 12895 "ImportPage.c" } -#line 608 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 616 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (copy_to_library) { -#line 608 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 616 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" *copy_to_library = _vala_copy_to_library; -#line 12748 "ImportPage.c" +#line 12901 "ImportPage.c" } -#line 608 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 616 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 12752 "ImportPage.c" +#line 12905 "ImportPage.c" } @@ -12766,153 +12919,153 @@ static gboolean import_page_camera_import_job_real_complete (BatchImportJob* bas gboolean ret = FALSE; MediaSource* _tmp0_ = NULL; GError * _inner_error_ = NULL; -#line 611 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 619 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB, ImportPageCameraImportJob); -#line 611 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 619 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (IS_MEDIA_SOURCE (source), FALSE); -#line 611 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 619 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (IS_BATCH_IMPORT_ROLL (import_roll), FALSE); -#line 612 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 620 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" ret = FALSE; -#line 613 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 621 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = source; -#line 613 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 621 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_PHOTO)) { -#line 12774 "ImportPage.c" +#line 12927 "ImportPage.c" Photo* photo = NULL; MediaSource* _tmp1_ = NULL; Photo* _tmp2_ = NULL; BackingPhotoRow* _tmp3_ = NULL; -#line 614 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 622 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = source; -#line 614 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 622 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, TYPE_PHOTO) ? ((Photo*) _tmp1_) : NULL); -#line 614 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 622 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" photo = _tmp2_; -#line 617 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 625 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp3_ = self->priv->associated_file; -#line 617 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 625 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp3_ != NULL) { -#line 12789 "ImportPage.c" +#line 12942 "ImportPage.c" Photo* _tmp4_ = NULL; BackingPhotoRow* _tmp5_ = NULL; Photo* _tmp6_ = NULL; ConfigFacade* _tmp7_ = NULL; ConfigFacade* _tmp8_ = NULL; RawDeveloper _tmp9_ = 0; -#line 618 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 626 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp4_ = photo; -#line 618 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 626 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp5_ = self->priv->associated_file; -#line 618 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 626 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" photo_add_backing_photo_for_development (_tmp4_, RAW_DEVELOPER_CAMERA, _tmp5_, &_inner_error_); -#line 618 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 626 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 618 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 626 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_propagate_error (error, _inner_error_); -#line 618 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 626 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (photo); -#line 618 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 626 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return FALSE; -#line 12810 "ImportPage.c" +#line 12963 "ImportPage.c" } -#line 619 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 627 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" ret = TRUE; -#line 620 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp6_ = photo; -#line 620 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp7_ = config_facade_get_instance (); -#line 620 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp8_ = _tmp7_; -#line 620 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp9_ = configuration_facade_get_default_raw_developer (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 620 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" photo_set_raw_developer (_tmp6_, _tmp9_); -#line 620 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_tmp8_); -#line 12826 "ImportPage.c" +#line 12979 "ImportPage.c" } -#line 613 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 621 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (photo); -#line 12830 "ImportPage.c" +#line 12983 "ImportPage.c" } -#line 623 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 631 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = ret; -#line 623 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 631 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 12836 "ImportPage.c" +#line 12989 "ImportPage.c" } static void import_page_camera_import_job_class_init (ImportPageCameraImportJobClass * klass) { -#line 472 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_camera_import_job_parent_class = g_type_class_peek_parent (klass); -#line 472 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" ((BatchImportJobClass *) klass)->finalize = import_page_camera_import_job_finalize; -#line 472 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_type_class_add_private (klass, sizeof (ImportPageCameraImportJobPrivate)); -#line 472 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" ((BatchImportJobClass *) klass)->get_duplicated_file = import_page_camera_import_job_real_get_duplicated_file; -#line 472 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" ((BatchImportJobClass *) klass)->get_exposure_time_override = import_page_camera_import_job_real_get_exposure_time_override; -#line 472 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" ((BatchImportJobClass *) klass)->get_dest_identifier = import_page_camera_import_job_real_get_dest_identifier; -#line 472 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" ((BatchImportJobClass *) klass)->get_source_identifier = import_page_camera_import_job_real_get_source_identifier; -#line 472 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" ((BatchImportJobClass *) klass)->get_basename = import_page_camera_import_job_real_get_basename; -#line 472 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" ((BatchImportJobClass *) klass)->get_path = import_page_camera_import_job_real_get_path; -#line 472 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" ((BatchImportJobClass *) klass)->set_associated = import_page_camera_import_job_real_set_associated; -#line 472 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" ((BatchImportJobClass *) klass)->is_directory = import_page_camera_import_job_real_is_directory; -#line 472 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" ((BatchImportJobClass *) klass)->determine_file_size = import_page_camera_import_job_real_determine_file_size; -#line 472 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" ((BatchImportJobClass *) klass)->prepare = import_page_camera_import_job_real_prepare; -#line 472 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" ((BatchImportJobClass *) klass)->complete = import_page_camera_import_job_real_complete; -#line 12869 "ImportPage.c" +#line 13022 "ImportPage.c" } static void import_page_camera_import_job_instance_init (ImportPageCameraImportJob * self) { -#line 472 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv = IMPORT_PAGE_CAMERA_IMPORT_JOB_GET_PRIVATE (self); -#line 481 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 489 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->associated = NULL; -#line 482 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 490 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->associated_file = NULL; -#line 12880 "ImportPage.c" +#line 13033 "ImportPage.c" } static void import_page_camera_import_job_finalize (BatchImportJob* obj) { ImportPageCameraImportJob * self; -#line 472 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (obj, IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB, ImportPageCameraImportJob); -#line 473 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 481 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _gp_context_wrapper_unref0 (self->priv->context); -#line 474 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 482 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (self->priv->import_file); -#line 475 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 483 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _gp_camera_unref0 (self->priv->camera); -#line 476 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 484 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (self->priv->fulldir); -#line 477 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 485 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (self->priv->filename); -#line 479 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 487 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _media_metadata_unref0 (self->priv->metadata); -#line 481 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 489 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _batch_import_job_unref0 (self->priv->associated); -#line 482 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 490 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _backing_photo_row_unref0 (self->priv->associated_file); -#line 483 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 491 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (self->priv->duplicated_file); -#line 472 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" BATCH_IMPORT_JOB_CLASS (import_page_camera_import_job_parent_class)->finalize (obj); -#line 12908 "ImportPage.c" +#line 13061 "ImportPage.c" } @@ -12931,13 +13084,13 @@ static GType import_page_camera_import_job_get_type (void) { static guint import_page_import_page_search_view_filter_real_get_criteria (SearchViewFilter* base) { ImportPageImportPageSearchViewFilter * self; guint result = 0U; -#line 628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 636 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, IMPORT_PAGE_TYPE_IMPORT_PAGE_SEARCH_VIEW_FILTER, ImportPageImportPageSearchViewFilter); -#line 629 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 637 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = (guint) (SEARCH_FILTER_CRITERIA_TEXT | SEARCH_FILTER_CRITERIA_MEDIA); -#line 629 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 637 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 12933 "ImportPage.c" +#line 13086 "ImportPage.c" } @@ -12945,19 +13098,19 @@ static gboolean string_contains (const gchar* self, const gchar* needle) { gboolean result = FALSE; const gchar* _tmp0_ = NULL; gchar* _tmp1_ = NULL; -#line 1376 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1376 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, FALSE); -#line 1376 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1376 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (needle != NULL, FALSE); -#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = needle; -#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = strstr ((gchar*) self, (gchar*) _tmp0_); -#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp1_ != NULL; -#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; -#line 12953 "ImportPage.c" +#line 13106 "ImportPage.c" } @@ -12970,186 +13123,186 @@ static gboolean import_page_import_page_search_view_filter_real_predicate (ViewF gboolean _tmp2_ = FALSE; guint _tmp3_ = 0U; guint _tmp26_ = 0U; -#line 632 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 640 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, IMPORT_PAGE_TYPE_IMPORT_PAGE_SEARCH_VIEW_FILTER, ImportPageImportPageSearchViewFilter); -#line 632 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 640 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (IS_DATA_VIEW (view), FALSE); -#line 633 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 641 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = view; -#line 633 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 641 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = import_preview_get_import_source (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_IMPORT_PREVIEW, ImportPreview)); -#line 633 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 641 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" source = _tmp1_; -#line 636 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 644 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp3_ = search_view_filter_get_criteria (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)); -#line 636 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 644 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if ((gboolean) (SEARCH_FILTER_CRITERIA_MEDIA & _tmp3_)) { -#line 12980 "ImportPage.c" +#line 13133 "ImportPage.c" gboolean _tmp4_ = FALSE; -#line 636 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 644 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp4_ = search_view_filter_filter_by_media_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)); -#line 636 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 644 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = _tmp4_; -#line 12986 "ImportPage.c" +#line 13139 "ImportPage.c" } else { -#line 636 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 644 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = FALSE; -#line 12990 "ImportPage.c" +#line 13143 "ImportPage.c" } -#line 636 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 644 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp2_) { -#line 12994 "ImportPage.c" +#line 13147 "ImportPage.c" ImportSource* _tmp5_ = NULL; -#line 637 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 645 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp5_ = source; -#line 637 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 645 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, TYPE_VIDEO_IMPORT_SOURCE)) { -#line 13000 "ImportPage.c" +#line 13153 "ImportPage.c" gboolean _tmp6_ = FALSE; gboolean _tmp7_ = FALSE; -#line 638 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 646 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp6_ = search_view_filter_get_show_media_video (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)); -#line 638 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 646 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp7_ = _tmp6_; -#line 638 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 646 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (!_tmp7_) { -#line 639 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 647 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = FALSE; -#line 639 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 647 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (source); -#line 639 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 647 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 13015 "ImportPage.c" +#line 13168 "ImportPage.c" } } else { ImportSource* _tmp8_ = NULL; -#line 640 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 648 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp8_ = source; -#line 640 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 648 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp8_, TYPE_PHOTO_IMPORT_SOURCE)) { -#line 13023 "ImportPage.c" +#line 13176 "ImportPage.c" PhotoImportSource* photo = NULL; ImportSource* _tmp9_ = NULL; PhotoImportSource* _tmp10_ = NULL; PhotoImportSource* _tmp11_ = NULL; PhotoFileFormat _tmp12_ = 0; -#line 641 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 649 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp9_ = source; -#line 641 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 649 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp10_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, TYPE_PHOTO_IMPORT_SOURCE) ? ((PhotoImportSource*) _tmp9_) : NULL); -#line 641 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 649 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" photo = _tmp10_; -#line 642 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 650 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp11_ = photo; -#line 642 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 650 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp12_ = photo_import_source_get_file_format (_tmp11_); -#line 642 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 650 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp12_ == PHOTO_FILE_FORMAT_RAW) { -#line 13041 "ImportPage.c" +#line 13194 "ImportPage.c" PhotoImportSource* _tmp13_ = NULL; PhotoImportSource* _tmp14_ = NULL; PhotoImportSource* _tmp15_ = NULL; gboolean _tmp16_ = FALSE; -#line 643 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 651 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp13_ = photo; -#line 643 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 651 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp14_ = photo_import_source_get_associated (_tmp13_); -#line 643 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 651 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp15_ = _tmp14_; -#line 643 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 651 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp16_ = _tmp15_ != NULL; -#line 643 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 651 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (_tmp15_); -#line 643 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 651 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp16_) { -#line 13058 "ImportPage.c" +#line 13211 "ImportPage.c" gboolean _tmp17_ = FALSE; gboolean _tmp18_ = FALSE; gboolean _tmp19_ = FALSE; -#line 644 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 652 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp18_ = search_view_filter_get_show_media_photos (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)); -#line 644 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 652 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp19_ = _tmp18_; -#line 644 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 652 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (!_tmp19_) { -#line 13068 "ImportPage.c" +#line 13221 "ImportPage.c" gboolean _tmp20_ = FALSE; gboolean _tmp21_ = FALSE; -#line 644 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 652 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp20_ = search_view_filter_get_show_media_raw (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)); -#line 644 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 652 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp21_ = _tmp20_; -#line 644 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 652 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp17_ = !_tmp21_; -#line 13077 "ImportPage.c" +#line 13230 "ImportPage.c" } else { -#line 644 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 652 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp17_ = FALSE; -#line 13081 "ImportPage.c" +#line 13234 "ImportPage.c" } -#line 644 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 652 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp17_) { -#line 645 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 653 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = FALSE; -#line 645 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 653 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (photo); -#line 645 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 653 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (source); -#line 645 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 653 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 13093 "ImportPage.c" +#line 13246 "ImportPage.c" } } else { gboolean _tmp22_ = FALSE; gboolean _tmp23_ = FALSE; -#line 646 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 654 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp22_ = search_view_filter_get_show_media_raw (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)); -#line 646 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 654 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp23_ = _tmp22_; -#line 646 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 654 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (!_tmp23_) { -#line 647 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 655 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = FALSE; -#line 647 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 655 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (photo); -#line 647 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 655 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (source); -#line 647 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 655 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 13112 "ImportPage.c" +#line 13265 "ImportPage.c" } } } else { gboolean _tmp24_ = FALSE; gboolean _tmp25_ = FALSE; -#line 649 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 657 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp24_ = search_view_filter_get_show_media_photos (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)); -#line 649 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 657 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp25_ = _tmp24_; -#line 649 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 657 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (!_tmp25_) { -#line 650 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 658 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = FALSE; -#line 650 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 658 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (photo); -#line 650 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 658 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (source); -#line 650 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 658 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 13132 "ImportPage.c" +#line 13285 "ImportPage.c" } } -#line 640 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 648 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (photo); -#line 13137 "ImportPage.c" +#line 13290 "ImportPage.c" } } } -#line 654 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 662 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp26_ = search_view_filter_get_criteria (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)); -#line 654 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 662 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if ((gboolean) (SEARCH_FILTER_CRITERIA_TEXT & _tmp26_)) { -#line 13145 "ImportPage.c" +#line 13298 "ImportPage.c" const gchar* keywords = NULL; ImportSource* _tmp27_ = NULL; const gchar* _tmp28_ = NULL; @@ -13157,104 +13310,104 @@ static gboolean import_page_import_page_search_view_filter_real_predicate (ViewF gboolean _tmp30_ = FALSE; gint _tmp31_ = 0; gchar** _tmp32_ = NULL; -#line 655 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 663 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp27_ = source; -#line 655 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 663 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp28_ = indexable_get_indexable_keywords (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, TYPE_INDEXABLE, Indexable)); -#line 655 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 663 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" keywords = _tmp28_; -#line 656 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 664 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp29_ = keywords; -#line 656 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 664 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp30_ = is_string_empty (_tmp29_); -#line 656 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 664 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (_tmp30_) { -#line 657 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 665 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = FALSE; -#line 657 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 665 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (source); -#line 657 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 665 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 13171 "ImportPage.c" +#line 13324 "ImportPage.c" } -#line 660 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 668 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp32_ = search_view_filter_get_search_filter_words (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter), &_tmp31_); -#line 13175 "ImportPage.c" +#line 13328 "ImportPage.c" { gchar** word_collection = NULL; gint word_collection_length1 = 0; gint _word_collection_size_ = 0; gint word_it = 0; -#line 660 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 668 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" word_collection = _tmp32_; -#line 660 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 668 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" word_collection_length1 = _tmp31_; -#line 660 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 668 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" for (word_it = 0; word_it < _tmp31_; word_it = word_it + 1) { -#line 13187 "ImportPage.c" +#line 13340 "ImportPage.c" const gchar* word = NULL; -#line 660 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 668 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" word = word_collection[word_it]; -#line 13191 "ImportPage.c" +#line 13344 "ImportPage.c" { const gchar* _tmp33_ = NULL; const gchar* _tmp34_ = NULL; gboolean _tmp35_ = FALSE; -#line 661 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 669 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp33_ = keywords; -#line 661 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 669 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp34_ = word; -#line 661 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 669 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp35_ = string_contains (_tmp33_, _tmp34_); -#line 661 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 669 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" if (!_tmp35_) { -#line 662 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 670 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = FALSE; -#line 662 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 670 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (source); -#line 662 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 670 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 13210 "ImportPage.c" +#line 13363 "ImportPage.c" } } } } } -#line 666 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 674 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = TRUE; -#line 666 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 674 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (source); -#line 666 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 674 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 13222 "ImportPage.c" +#line 13375 "ImportPage.c" } static ImportPageImportPageSearchViewFilter* import_page_import_page_search_view_filter_construct (GType object_type) { ImportPageImportPageSearchViewFilter* self = NULL; -#line 627 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 635 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self = (ImportPageImportPageSearchViewFilter*) search_view_filter_construct (object_type); -#line 627 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 635 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return self; -#line 13232 "ImportPage.c" +#line 13385 "ImportPage.c" } static ImportPageImportPageSearchViewFilter* import_page_import_page_search_view_filter_new (void) { -#line 627 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 635 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return import_page_import_page_search_view_filter_construct (IMPORT_PAGE_TYPE_IMPORT_PAGE_SEARCH_VIEW_FILTER); -#line 13239 "ImportPage.c" +#line 13392 "ImportPage.c" } static void import_page_import_page_search_view_filter_class_init (ImportPageImportPageSearchViewFilterClass * klass) { -#line 627 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 635 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_import_page_search_view_filter_parent_class = g_type_class_peek_parent (klass); -#line 627 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 635 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" ((SearchViewFilterClass *) klass)->get_criteria = import_page_import_page_search_view_filter_real_get_criteria; -#line 627 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 635 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" ((ViewFilterClass *) klass)->predicate = import_page_import_page_search_view_filter_real_predicate; -#line 13250 "ImportPage.c" +#line 13403 "ImportPage.c" } @@ -13279,45 +13432,45 @@ static gboolean import_page_hide_imported_view_filter_real_predicate (ViewFilter gboolean result = FALSE; DataView* _tmp0_ = NULL; gboolean _tmp1_ = FALSE; -#line 672 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 680 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, IMPORT_PAGE_TYPE_HIDE_IMPORTED_VIEW_FILTER, ImportPageHideImportedViewFilter); -#line 672 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 680 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_return_val_if_fail (IS_DATA_VIEW (view), FALSE); -#line 673 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 681 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = view; -#line 673 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 681 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = import_preview_is_already_imported (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_IMPORT_PREVIEW, ImportPreview)); -#line 673 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 681 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" result = !_tmp1_; -#line 673 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 681 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return result; -#line 13287 "ImportPage.c" +#line 13440 "ImportPage.c" } static ImportPageHideImportedViewFilter* import_page_hide_imported_view_filter_construct (GType object_type) { ImportPageHideImportedViewFilter* self = NULL; -#line 671 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 679 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self = (ImportPageHideImportedViewFilter*) view_filter_construct (object_type); -#line 671 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 679 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return self; -#line 13297 "ImportPage.c" +#line 13450 "ImportPage.c" } static ImportPageHideImportedViewFilter* import_page_hide_imported_view_filter_new (void) { -#line 671 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 679 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" return import_page_hide_imported_view_filter_construct (IMPORT_PAGE_TYPE_HIDE_IMPORTED_VIEW_FILTER); -#line 13304 "ImportPage.c" +#line 13457 "ImportPage.c" } static void import_page_hide_imported_view_filter_class_init (ImportPageHideImportedViewFilterClass * klass) { -#line 671 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 679 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_hide_imported_view_filter_parent_class = g_type_class_peek_parent (klass); -#line 671 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 679 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" ((ViewFilterClass *) klass)->predicate = import_page_hide_imported_view_filter_real_predicate; -#line 13313 "ImportPage.c" +#line 13466 "ImportPage.c" } @@ -13338,35 +13491,37 @@ static GType import_page_hide_imported_view_filter_get_type (void) { static void import_page_class_init (ImportPageClass * klass) { -#line 457 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" import_page_parent_class = g_type_class_peek_parent (klass); -#line 457 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_type_class_add_private (klass, sizeof (ImportPagePrivate)); -#line 457 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" ((PageClass *) klass)->get_toolbar = import_page_real_get_toolbar; -#line 457 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" ((CheckerboardPageClass *) klass)->get_view_tracker = import_page_real_get_view_tracker; -#line 457 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" ((CheckerboardPageClass *) klass)->get_view_empty_message = import_page_real_get_view_empty_message; -#line 457 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" ((CheckerboardPageClass *) klass)->get_filter_no_match_message = import_page_real_get_filter_no_match_message; -#line 457 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" ((PageClass *) klass)->init_collect_ui_filenames = import_page_real_init_collect_ui_filenames; -#line 457 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" ((PageClass *) klass)->add_actions = import_page_real_add_actions; -#line 457 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" + ((PageClass *) klass)->remove_actions = import_page_real_remove_actions; +#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" ((PageClass *) klass)->init_actions = import_page_real_init_actions; -#line 457 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" ((PageClass *) klass)->switched_to = import_page_real_switched_to; -#line 457 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" ((PageClass *) klass)->ready = import_page_real_ready; -#line 457 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" ((CheckerboardPageClass *) klass)->set_display_titles = import_page_real_set_display_titles; -#line 457 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" ((CheckerboardPageClass *) klass)->get_search_view_filter = import_page_real_get_search_view_filter; -#line 457 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" G_OBJECT_CLASS (klass)->finalize = import_page_finalize; -#line 13362 "ImportPage.c" +#line 13517 "ImportPage.c" } @@ -13375,43 +13530,43 @@ static void import_page_instance_init (ImportPage * self) { GtkProgressBar* _tmp1_ = NULL; ImportPageImportPageSearchViewFilter* _tmp2_ = NULL; ImportPageHideImportedViewFilter* _tmp3_ = NULL; -#line 457 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv = IMPORT_PAGE_GET_PRIVATE (self); -#line 680 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 688 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->import_sources = NULL; -#line 681 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 689 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = (GtkLabel*) gtk_label_new (NULL); -#line 681 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 689 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_object_ref_sink (_tmp0_); -#line 681 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 689 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->camera_label = _tmp0_; -#line 683 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 691 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp1_ = (GtkProgressBar*) gtk_progress_bar_new (); -#line 683 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 691 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_object_ref_sink (_tmp1_); -#line 683 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 691 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->progress_bar = _tmp1_; -#line 686 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 694 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->busy = FALSE; -#line 687 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 695 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->refreshed = FALSE; -#line 688 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 696 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->refresh_result = GP_OK; -#line 689 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 697 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->refresh_error = NULL; -#line 691 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 699 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->volume_monitor = NULL; -#line 692 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 700 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->local_ref = NULL; -#line 694 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 702 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = import_page_import_page_search_view_filter_new (); -#line 694 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 702 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->search_filter = _tmp2_; -#line 695 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 703 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp3_ = import_page_hide_imported_view_filter_new (); -#line 695 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 703 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self->priv->hide_imported_filter = _tmp3_; -#line 13407 "ImportPage.c" +#line 13562 "ImportPage.c" } @@ -13421,51 +13576,51 @@ static void import_page_finalize (GObject* obj) { guint _tmp1_ = 0U; VideoSourceCollection* _tmp2_ = NULL; guint _tmp3_ = 0U; -#line 457 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_IMPORT_PAGE, ImportPage); -#line 766 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 774 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp0_ = library_photo_global; -#line 766 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 774 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_signal_parse_name ("contents-altered", TYPE_DATA_COLLECTION, &_tmp1_, NULL, FALSE); -#line 766 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 774 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _import_page_on_media_added_removed_data_collection_contents_altered, self); -#line 767 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 775 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _tmp2_ = video_global; -#line 767 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 775 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_signal_parse_name ("contents-altered", TYPE_DATA_COLLECTION, &_tmp3_, NULL, FALSE); -#line 767 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 775 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _import_page_on_media_added_removed_data_collection_contents_altered, self); -#line 680 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 688 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _data_collection_unref0 (self->priv->import_sources); -#line 681 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 689 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (self->priv->camera_label); -#line 682 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 690 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (self->priv->hide_imported); -#line 683 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 691 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (self->priv->progress_bar); -#line 684 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 692 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _gp_camera_unref0 (self->priv->camera); -#line 685 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 693 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (self->priv->uri); -#line 689 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 697 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (self->priv->refresh_error); -#line 690 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 698 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (self->priv->camera_name); -#line 691 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 699 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (self->priv->volume_monitor); -#line 692 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 700 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_object_unref0 (self->priv->local_ref); -#line 693 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 701 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _g_free0 (self->priv->icon); -#line 694 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 702 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _view_filter_unref0 (self->priv->search_filter); -#line 695 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 703 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _view_filter_unref0 (self->priv->hide_imported_filter); -#line 696 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 704 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" _core_tracker_unref0 (self->priv->tracker); -#line 457 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" +#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" G_OBJECT_CLASS (import_page_parent_class)->finalize (obj); -#line 13461 "ImportPage.c" +#line 13616 "ImportPage.c" } diff --git a/src/camera/ImportPage.vala b/src/camera/ImportPage.vala index 92445bb..4e055ec 100644 --- a/src/camera/ImportPage.vala +++ b/src/camera/ImportPage.vala @@ -338,14 +338,22 @@ class ImportPreview : MediaSourceItem { uint64 filesize = get_import_source().get_filesize(); // unlikely to be a problem, but what the hay if (filesize <= int64.MAX) { - if (LibraryPhoto.global.has_basename_filesize_duplicate( - get_import_source().get_filename(), (int64) filesize)) { + PhotoID duplicated_photo_id = LibraryPhoto.global.get_basename_filesize_duplicate( + get_import_source().get_filename(), (int64) filesize); + + if (duplicated_photo_id.is_valid()) { + // Check exposure timestamp + LibraryPhoto duplicated_photo = LibraryPhoto.global.fetch(duplicated_photo_id); + time_t photo_exposure_time = photo_import_source.get_exposure_time(); + time_t duplicated_photo_exposure_time = duplicated_photo.get_exposure_time(); - duplicated_file = DuplicatedFile.create_from_photo_id( - LibraryPhoto.global.get_basename_filesize_duplicate( - get_import_source().get_filename(), (int64) filesize)); - - return true; + if (photo_exposure_time == duplicated_photo_exposure_time) { + duplicated_file = DuplicatedFile.create_from_photo_id( + LibraryPhoto.global.get_basename_filesize_duplicate( + get_import_source().get_filename(), (int64) filesize)); + + return true; + } } } } @@ -801,6 +809,7 @@ public class ImportPage : CheckerboardPage { // Find button Gtk.ToggleToolButton find_button = new Gtk.ToggleToolButton(); + find_button.set_icon_name("edit-find"); find_button.set_action_name ("win.CommonDisplaySearchbar"); toolbar.insert(find_button, -1); @@ -810,14 +819,20 @@ public class ImportPage : CheckerboardPage { // Import selected Gtk.ToolButton import_selected_button = new Gtk.ToolButton(null, null); - import_selected_button.set_icon_name(Resources.IMPORT); + import_selected_button.set_icon_name("import"); + import_selected_button.set_label(_("Import _Selected")); + import_selected_button.is_important = true; + import_selected_button.use_underline = true; import_selected_button.set_action_name ("win.ImportSelected"); toolbar.insert(import_selected_button, -1); // Import all Gtk.ToolButton import_all_button = new Gtk.ToolButton(null, null); - import_all_button.set_icon_name(Resources.IMPORT_ALL); + import_all_button.set_icon_name("import-all"); + import_all_button.set_label(_("Import _All")); + import_all_button.is_important = true; + import_all_button.use_underline = true; import_all_button.set_action_name ("win.ImportAll"); toolbar.insert(import_all_button, -1); @@ -872,14 +887,21 @@ public class ImportPage : CheckerboardPage { { "ViewTitle", on_action_toggle, null, "false", on_display_titles }, }; - protected override void add_actions () { - base.add_actions (); + protected override void add_actions (GLib.ActionMap map) { + base.add_actions (map); - AppWindow.get_instance ().add_action_entries (entries, this); + map.add_action_entries (entries, this); get_action ("ViewTitle").change_state (Config.Facade.get_instance ().get_display_photo_titles ()); } - + + protected override void remove_actions(GLib.ActionMap map) { + base.remove_actions(map); + foreach (var entry in entries) { + map.remove_action(entry.name); + } + } + public GPhoto.Camera get_camera() { return camera; } diff --git a/src/config/Config.c b/src/config/Config.c index a8afbd2..a4faeb0 100644 --- a/src/config/Config.c +++ b/src/config/Config.c @@ -1,4 +1,4 @@ -/* Config.c generated by valac 0.32.1, the Vala compiler +/* Config.c generated by valac 0.34.4, the Vala compiler * generated from Config.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/config/ConfigurationInterfaces.c b/src/config/ConfigurationInterfaces.c index 3b5e59a..09a6eb1 100644 --- a/src/config/ConfigurationInterfaces.c +++ b/src/config/ConfigurationInterfaces.c @@ -1,4 +1,4 @@ -/* ConfigurationInterfaces.c generated by valac 0.32.1, the Vala compiler +/* ConfigurationInterfaces.c generated by valac 0.34.4, the Vala compiler * generated from ConfigurationInterfaces.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -2107,7 +2107,7 @@ static gboolean configuration_facade_real_get_auto_import_from_library (Configur #line 415 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 2105 "ConfigurationInterfaces.c" - goto __catch79_configuration_error; + goto __catch81_configuration_error; } #line 415 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -2123,8 +2123,8 @@ static gboolean configuration_facade_real_get_auto_import_from_library (Configur return result; #line 2120 "ConfigurationInterfaces.c" } - goto __finally79; - __catch79_configuration_error: + goto __finally81; + __catch81_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -2144,7 +2144,7 @@ static gboolean configuration_facade_real_get_auto_import_from_library (Configur return result; #line 2141 "ConfigurationInterfaces.c" } - __finally79: + __finally81: #line 414 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 414 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -2185,7 +2185,7 @@ static void configuration_facade_real_set_auto_import_from_library (Configuratio #line 425 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 2183 "ConfigurationInterfaces.c" - goto __catch80_configuration_error; + goto __catch82_configuration_error; } #line 425 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -2196,8 +2196,8 @@ static void configuration_facade_real_set_auto_import_from_library (Configuratio #line 2192 "ConfigurationInterfaces.c" } } - goto __finally80; - __catch80_configuration_error: + goto __finally82; + __catch82_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -2215,7 +2215,7 @@ static void configuration_facade_real_set_auto_import_from_library (Configuratio return; #line 2212 "ConfigurationInterfaces.c" } - __finally80: + __finally82: #line 424 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 424 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -2265,7 +2265,7 @@ static gchar* configuration_facade_real_get_bg_color_name (ConfigurationFacade* #line 438 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 2263 "ConfigurationInterfaces.c" - goto __catch81_configuration_error; + goto __catch83_configuration_error; } #line 438 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -2287,8 +2287,8 @@ static gchar* configuration_facade_real_get_bg_color_name (ConfigurationFacade* return result; #line 2284 "ConfigurationInterfaces.c" } - goto __finally81; - __catch81_configuration_error: + goto __finally83; + __catch83_configuration_error: { GError* err = NULL; GError* _tmp6_ = NULL; @@ -2311,7 +2311,7 @@ static gchar* configuration_facade_real_get_bg_color_name (ConfigurationFacade* return result; #line 2308 "ConfigurationInterfaces.c" } - __finally81: + __finally83: #line 437 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 437 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -2355,7 +2355,7 @@ static void configuration_facade_real_set_bg_color_name (ConfigurationFacade* se #line 448 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 2353 "ConfigurationInterfaces.c" - goto __catch82_configuration_error; + goto __catch84_configuration_error; } #line 448 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -2366,8 +2366,8 @@ static void configuration_facade_real_set_bg_color_name (ConfigurationFacade* se #line 2362 "ConfigurationInterfaces.c" } } - goto __finally82; - __catch82_configuration_error: + goto __finally84; + __catch84_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -2385,7 +2385,7 @@ static void configuration_facade_real_set_bg_color_name (ConfigurationFacade* se return; #line 2382 "ConfigurationInterfaces.c" } - __finally82: + __finally84: #line 447 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 447 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -2434,7 +2434,7 @@ static gboolean configuration_facade_real_get_commit_metadata_to_masters (Config #line 460 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 2432 "ConfigurationInterfaces.c" - goto __catch83_configuration_error; + goto __catch85_configuration_error; } #line 460 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -2450,8 +2450,8 @@ static gboolean configuration_facade_real_get_commit_metadata_to_masters (Config return result; #line 2447 "ConfigurationInterfaces.c" } - goto __finally83; - __catch83_configuration_error: + goto __finally85; + __catch85_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -2471,7 +2471,7 @@ static gboolean configuration_facade_real_get_commit_metadata_to_masters (Config return result; #line 2468 "ConfigurationInterfaces.c" } - __finally83: + __finally85: #line 459 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 459 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -2512,7 +2512,7 @@ static void configuration_facade_real_set_commit_metadata_to_masters (Configurat #line 470 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 2510 "ConfigurationInterfaces.c" - goto __catch84_configuration_error; + goto __catch86_configuration_error; } #line 470 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -2523,8 +2523,8 @@ static void configuration_facade_real_set_commit_metadata_to_masters (Configurat #line 2519 "ConfigurationInterfaces.c" } } - goto __finally84; - __catch84_configuration_error: + goto __finally86; + __catch86_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -2542,7 +2542,7 @@ static void configuration_facade_real_set_commit_metadata_to_masters (Configurat return; #line 2539 "ConfigurationInterfaces.c" } - __finally84: + __finally86: #line 469 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 469 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -2592,7 +2592,7 @@ static gchar* configuration_facade_real_get_desktop_background (ConfigurationFac #line 483 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 2590 "ConfigurationInterfaces.c" - goto __catch85_configuration_error; + goto __catch87_configuration_error; } #line 483 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -2614,8 +2614,8 @@ static gchar* configuration_facade_real_get_desktop_background (ConfigurationFac return result; #line 2611 "ConfigurationInterfaces.c" } - goto __finally85; - __catch85_configuration_error: + goto __finally87; + __catch87_configuration_error: { GError* err = NULL; GError* _tmp6_ = NULL; @@ -2638,7 +2638,7 @@ static gchar* configuration_facade_real_get_desktop_background (ConfigurationFac return result; #line 2635 "ConfigurationInterfaces.c" } - __finally85: + __finally87: #line 482 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 482 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -2684,7 +2684,7 @@ static void configuration_facade_real_set_desktop_background (ConfigurationFacad #line 493 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 2682 "ConfigurationInterfaces.c" - goto __catch86_configuration_error; + goto __catch88_configuration_error; } #line 493 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -2707,7 +2707,7 @@ static void configuration_facade_real_set_desktop_background (ConfigurationFacad #line 495 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 2705 "ConfigurationInterfaces.c" - goto __catch86_configuration_error; + goto __catch88_configuration_error; } #line 495 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -2718,8 +2718,8 @@ static void configuration_facade_real_set_desktop_background (ConfigurationFacad #line 2714 "ConfigurationInterfaces.c" } } - goto __finally86; - __catch86_configuration_error: + goto __finally88; + __catch88_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -2735,7 +2735,7 @@ static void configuration_facade_real_set_desktop_background (ConfigurationFacad _g_error_free0 (err); #line 2732 "ConfigurationInterfaces.c" } - __finally86: + __finally88: #line 492 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 492 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -2785,7 +2785,7 @@ static gchar* configuration_facade_real_get_screensaver (ConfigurationFacade* se #line 507 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 2783 "ConfigurationInterfaces.c" - goto __catch87_configuration_error; + goto __catch89_configuration_error; } #line 507 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -2807,8 +2807,8 @@ static gchar* configuration_facade_real_get_screensaver (ConfigurationFacade* se return result; #line 2804 "ConfigurationInterfaces.c" } - goto __finally87; - __catch87_configuration_error: + goto __finally89; + __catch89_configuration_error: { GError* err = NULL; GError* _tmp6_ = NULL; @@ -2831,7 +2831,7 @@ static gchar* configuration_facade_real_get_screensaver (ConfigurationFacade* se return result; #line 2828 "ConfigurationInterfaces.c" } - __finally87: + __finally89: #line 506 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 506 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -2877,7 +2877,7 @@ static void configuration_facade_real_set_screensaver (ConfigurationFacade* self #line 517 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 2875 "ConfigurationInterfaces.c" - goto __catch88_configuration_error; + goto __catch90_configuration_error; } #line 517 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -2900,7 +2900,7 @@ static void configuration_facade_real_set_screensaver (ConfigurationFacade* self #line 519 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 2898 "ConfigurationInterfaces.c" - goto __catch88_configuration_error; + goto __catch90_configuration_error; } #line 519 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -2911,8 +2911,8 @@ static void configuration_facade_real_set_screensaver (ConfigurationFacade* self #line 2907 "ConfigurationInterfaces.c" } } - goto __finally88; - __catch88_configuration_error: + goto __finally90; + __catch90_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -2928,7 +2928,7 @@ static void configuration_facade_real_set_screensaver (ConfigurationFacade* self _g_error_free0 (err); #line 2925 "ConfigurationInterfaces.c" } - __finally88: + __finally90: #line 516 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 516 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -2979,7 +2979,7 @@ static gchar* configuration_facade_real_get_directory_pattern (ConfigurationFaca #line 531 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 2977 "ConfigurationInterfaces.c" - goto __catch89_configuration_error; + goto __catch91_configuration_error; } #line 531 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -3009,8 +3009,8 @@ static gchar* configuration_facade_real_get_directory_pattern (ConfigurationFaca return result; #line 3006 "ConfigurationInterfaces.c" } - goto __finally89; - __catch89_configuration_error: + goto __finally91; + __catch91_configuration_error: { GError* err = NULL; GError* _tmp6_ = NULL; @@ -3033,7 +3033,7 @@ static gchar* configuration_facade_real_get_directory_pattern (ConfigurationFaca return result; #line 3030 "ConfigurationInterfaces.c" } - __finally89: + __finally91: #line 530 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 530 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -3083,7 +3083,7 @@ static void configuration_facade_real_set_directory_pattern (ConfigurationFacade #line 545 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 3081 "ConfigurationInterfaces.c" - goto __catch90_configuration_error; + goto __catch92_configuration_error; } #line 545 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -3094,8 +3094,8 @@ static void configuration_facade_real_set_directory_pattern (ConfigurationFacade #line 3090 "ConfigurationInterfaces.c" } } - goto __finally90; - __catch90_configuration_error: + goto __finally92; + __catch92_configuration_error: { GError* err = NULL; GError* _tmp4_ = NULL; @@ -3111,7 +3111,7 @@ static void configuration_facade_real_set_directory_pattern (ConfigurationFacade _g_error_free0 (err); #line 3108 "ConfigurationInterfaces.c" } - __finally90: + __finally92: #line 541 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 541 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -3161,7 +3161,7 @@ static gchar* configuration_facade_real_get_directory_pattern_custom (Configurat #line 556 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 3159 "ConfigurationInterfaces.c" - goto __catch91_configuration_error; + goto __catch93_configuration_error; } #line 556 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -3183,8 +3183,8 @@ static gchar* configuration_facade_real_get_directory_pattern_custom (Configurat return result; #line 3180 "ConfigurationInterfaces.c" } - goto __finally91; - __catch91_configuration_error: + goto __finally93; + __catch93_configuration_error: { GError* err = NULL; GError* _tmp6_ = NULL; @@ -3207,7 +3207,7 @@ static gchar* configuration_facade_real_get_directory_pattern_custom (Configurat return result; #line 3204 "ConfigurationInterfaces.c" } - __finally91: + __finally93: #line 555 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 555 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -3251,7 +3251,7 @@ static void configuration_facade_real_set_directory_pattern_custom (Configuratio #line 566 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 3249 "ConfigurationInterfaces.c" - goto __catch92_configuration_error; + goto __catch94_configuration_error; } #line 566 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -3262,8 +3262,8 @@ static void configuration_facade_real_set_directory_pattern_custom (Configuratio #line 3258 "ConfigurationInterfaces.c" } } - goto __finally92; - __catch92_configuration_error: + goto __finally94; + __catch94_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -3279,7 +3279,7 @@ static void configuration_facade_real_set_directory_pattern_custom (Configuratio _g_error_free0 (err); #line 3276 "ConfigurationInterfaces.c" } - __finally92: + __finally94: #line 565 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 565 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -3346,7 +3346,7 @@ static void configuration_facade_real_get_direct_window_state (ConfigurationFaca #line 579 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 3344 "ConfigurationInterfaces.c" - goto __catch93_configuration_error; + goto __catch95_configuration_error; } #line 579 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -3375,7 +3375,7 @@ static void configuration_facade_real_get_direct_window_state (ConfigurationFaca #line 580 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 3373 "ConfigurationInterfaces.c" - goto __catch93_configuration_error; + goto __catch95_configuration_error; } #line 580 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -3402,7 +3402,7 @@ static void configuration_facade_real_get_direct_window_state (ConfigurationFaca #line 581 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 3400 "ConfigurationInterfaces.c" - goto __catch93_configuration_error; + goto __catch95_configuration_error; } #line 581 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -3420,8 +3420,8 @@ static void configuration_facade_real_get_direct_window_state (ConfigurationFaca dimensions_init (&_vala_dimensions, _tmp13_, _tmp14_); #line 3417 "ConfigurationInterfaces.c" } - goto __finally93; - __catch93_configuration_error: + goto __finally95; + __catch95_configuration_error: { GError* err = NULL; GError* _tmp15_ = NULL; @@ -3437,7 +3437,7 @@ static void configuration_facade_real_get_direct_window_state (ConfigurationFaca _g_error_free0 (err); #line 3434 "ConfigurationInterfaces.c" } - __finally93: + __finally95: #line 578 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 578 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -3504,7 +3504,7 @@ static void configuration_facade_real_set_direct_window_state (ConfigurationFaca #line 590 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 3502 "ConfigurationInterfaces.c" - goto __catch94_configuration_error; + goto __catch96_configuration_error; } #line 590 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -3531,7 +3531,7 @@ static void configuration_facade_real_set_direct_window_state (ConfigurationFaca #line 591 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 3529 "ConfigurationInterfaces.c" - goto __catch94_configuration_error; + goto __catch96_configuration_error; } #line 591 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -3558,7 +3558,7 @@ static void configuration_facade_real_set_direct_window_state (ConfigurationFaca #line 593 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 3556 "ConfigurationInterfaces.c" - goto __catch94_configuration_error; + goto __catch96_configuration_error; } #line 593 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -3569,8 +3569,8 @@ static void configuration_facade_real_set_direct_window_state (ConfigurationFaca #line 3565 "ConfigurationInterfaces.c" } } - goto __finally94; - __catch94_configuration_error: + goto __finally96; + __catch96_configuration_error: { GError* err = NULL; GError* _tmp11_ = NULL; @@ -3586,7 +3586,7 @@ static void configuration_facade_real_set_direct_window_state (ConfigurationFaca _g_error_free0 (err); #line 3583 "ConfigurationInterfaces.c" } - __finally94: + __finally96: #line 589 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 589 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -3635,7 +3635,7 @@ static gboolean configuration_facade_real_get_display_basic_properties (Configur #line 605 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 3633 "ConfigurationInterfaces.c" - goto __catch95_configuration_error; + goto __catch97_configuration_error; } #line 605 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -3651,8 +3651,8 @@ static gboolean configuration_facade_real_get_display_basic_properties (Configur return result; #line 3648 "ConfigurationInterfaces.c" } - goto __finally95; - __catch95_configuration_error: + goto __finally97; + __catch97_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -3672,7 +3672,7 @@ static gboolean configuration_facade_real_get_display_basic_properties (Configur return result; #line 3669 "ConfigurationInterfaces.c" } - __finally95: + __finally97: #line 604 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 604 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -3713,7 +3713,7 @@ static void configuration_facade_real_set_display_basic_properties (Configuratio #line 615 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 3711 "ConfigurationInterfaces.c" - goto __catch96_configuration_error; + goto __catch98_configuration_error; } #line 615 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -3724,8 +3724,8 @@ static void configuration_facade_real_set_display_basic_properties (Configuratio #line 3720 "ConfigurationInterfaces.c" } } - goto __finally96; - __catch96_configuration_error: + goto __finally98; + __catch98_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -3741,7 +3741,7 @@ static void configuration_facade_real_set_display_basic_properties (Configuratio _g_error_free0 (err); #line 3738 "ConfigurationInterfaces.c" } - __finally96: + __finally98: #line 614 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 614 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -3790,7 +3790,7 @@ static gboolean configuration_facade_real_get_display_extended_properties (Confi #line 626 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 3788 "ConfigurationInterfaces.c" - goto __catch97_configuration_error; + goto __catch99_configuration_error; } #line 626 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -3806,8 +3806,8 @@ static gboolean configuration_facade_real_get_display_extended_properties (Confi return result; #line 3803 "ConfigurationInterfaces.c" } - goto __finally97; - __catch97_configuration_error: + goto __finally99; + __catch99_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -3827,7 +3827,7 @@ static gboolean configuration_facade_real_get_display_extended_properties (Confi return result; #line 3824 "ConfigurationInterfaces.c" } - __finally97: + __finally99: #line 625 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 625 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -3868,7 +3868,7 @@ static void configuration_facade_real_set_display_extended_properties (Configura #line 636 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 3866 "ConfigurationInterfaces.c" - goto __catch98_configuration_error; + goto __catch100_configuration_error; } #line 636 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -3879,8 +3879,8 @@ static void configuration_facade_real_set_display_extended_properties (Configura #line 3875 "ConfigurationInterfaces.c" } } - goto __finally98; - __catch98_configuration_error: + goto __finally100; + __catch100_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -3896,7 +3896,7 @@ static void configuration_facade_real_set_display_extended_properties (Configura _g_error_free0 (err); #line 3893 "ConfigurationInterfaces.c" } - __finally98: + __finally100: #line 635 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 635 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -3945,7 +3945,7 @@ static gboolean configuration_facade_real_get_display_sidebar (ConfigurationFaca #line 648 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 3943 "ConfigurationInterfaces.c" - goto __catch99_configuration_error; + goto __catch101_configuration_error; } #line 648 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -3961,8 +3961,8 @@ static gboolean configuration_facade_real_get_display_sidebar (ConfigurationFaca return result; #line 3958 "ConfigurationInterfaces.c" } - goto __finally99; - __catch99_configuration_error: + goto __finally101; + __catch101_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -3982,7 +3982,7 @@ static gboolean configuration_facade_real_get_display_sidebar (ConfigurationFaca return result; #line 3979 "ConfigurationInterfaces.c" } - __finally99: + __finally101: #line 647 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 647 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -4023,7 +4023,7 @@ static void configuration_facade_real_set_display_sidebar (ConfigurationFacade* #line 658 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 4021 "ConfigurationInterfaces.c" - goto __catch100_configuration_error; + goto __catch102_configuration_error; } #line 658 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -4034,8 +4034,8 @@ static void configuration_facade_real_set_display_sidebar (ConfigurationFacade* #line 4030 "ConfigurationInterfaces.c" } } - goto __finally100; - __catch100_configuration_error: + goto __finally102; + __catch102_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -4051,7 +4051,7 @@ static void configuration_facade_real_set_display_sidebar (ConfigurationFacade* _g_error_free0 (err); #line 4048 "ConfigurationInterfaces.c" } - __finally100: + __finally102: #line 657 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 657 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -4100,7 +4100,7 @@ static gboolean configuration_facade_real_get_display_toolbar (ConfigurationFaca #line 670 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 4098 "ConfigurationInterfaces.c" - goto __catch101_configuration_error; + goto __catch103_configuration_error; } #line 670 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -4116,8 +4116,8 @@ static gboolean configuration_facade_real_get_display_toolbar (ConfigurationFaca return result; #line 4113 "ConfigurationInterfaces.c" } - goto __finally101; - __catch101_configuration_error: + goto __finally103; + __catch103_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -4137,7 +4137,7 @@ static gboolean configuration_facade_real_get_display_toolbar (ConfigurationFaca return result; #line 4134 "ConfigurationInterfaces.c" } - __finally101: + __finally103: #line 669 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 669 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -4178,7 +4178,7 @@ static void configuration_facade_real_set_display_toolbar (ConfigurationFacade* #line 680 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 4176 "ConfigurationInterfaces.c" - goto __catch102_configuration_error; + goto __catch104_configuration_error; } #line 680 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -4189,8 +4189,8 @@ static void configuration_facade_real_set_display_toolbar (ConfigurationFacade* #line 4185 "ConfigurationInterfaces.c" } } - goto __finally102; - __catch102_configuration_error: + goto __finally104; + __catch104_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -4206,7 +4206,7 @@ static void configuration_facade_real_set_display_toolbar (ConfigurationFacade* _g_error_free0 (err); #line 4203 "ConfigurationInterfaces.c" } - __finally102: + __finally104: #line 679 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 679 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -4255,7 +4255,7 @@ static gboolean configuration_facade_real_get_display_search_bar (ConfigurationF #line 691 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 4253 "ConfigurationInterfaces.c" - goto __catch103_configuration_error; + goto __catch105_configuration_error; } #line 691 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -4271,8 +4271,8 @@ static gboolean configuration_facade_real_get_display_search_bar (ConfigurationF return result; #line 4268 "ConfigurationInterfaces.c" } - goto __finally103; - __catch103_configuration_error: + goto __finally105; + __catch105_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -4292,7 +4292,7 @@ static gboolean configuration_facade_real_get_display_search_bar (ConfigurationF return result; #line 4289 "ConfigurationInterfaces.c" } - __finally103: + __finally105: #line 690 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 690 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -4333,7 +4333,7 @@ static void configuration_facade_real_set_display_search_bar (ConfigurationFacad #line 701 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 4331 "ConfigurationInterfaces.c" - goto __catch104_configuration_error; + goto __catch106_configuration_error; } #line 701 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -4344,8 +4344,8 @@ static void configuration_facade_real_set_display_search_bar (ConfigurationFacad #line 4340 "ConfigurationInterfaces.c" } } - goto __finally104; - __catch104_configuration_error: + goto __finally106; + __catch106_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -4361,7 +4361,7 @@ static void configuration_facade_real_set_display_search_bar (ConfigurationFacad _g_error_free0 (err); #line 4358 "ConfigurationInterfaces.c" } - __finally104: + __finally106: #line 700 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 700 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -4410,7 +4410,7 @@ static gboolean configuration_facade_real_get_display_photo_ratings (Configurati #line 712 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 4408 "ConfigurationInterfaces.c" - goto __catch105_configuration_error; + goto __catch107_configuration_error; } #line 712 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -4426,8 +4426,8 @@ static gboolean configuration_facade_real_get_display_photo_ratings (Configurati return result; #line 4423 "ConfigurationInterfaces.c" } - goto __finally105; - __catch105_configuration_error: + goto __finally107; + __catch107_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -4447,7 +4447,7 @@ static gboolean configuration_facade_real_get_display_photo_ratings (Configurati return result; #line 4444 "ConfigurationInterfaces.c" } - __finally105: + __finally107: #line 711 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 711 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -4488,7 +4488,7 @@ static void configuration_facade_real_set_display_photo_ratings (ConfigurationFa #line 722 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 4486 "ConfigurationInterfaces.c" - goto __catch106_configuration_error; + goto __catch108_configuration_error; } #line 722 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -4499,8 +4499,8 @@ static void configuration_facade_real_set_display_photo_ratings (ConfigurationFa #line 4495 "ConfigurationInterfaces.c" } } - goto __finally106; - __catch106_configuration_error: + goto __finally108; + __catch108_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -4516,7 +4516,7 @@ static void configuration_facade_real_set_display_photo_ratings (ConfigurationFa _g_error_free0 (err); #line 4513 "ConfigurationInterfaces.c" } - __finally106: + __finally108: #line 721 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 721 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -4565,7 +4565,7 @@ static gboolean configuration_facade_real_get_display_photo_tags (ConfigurationF #line 733 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 4563 "ConfigurationInterfaces.c" - goto __catch107_configuration_error; + goto __catch109_configuration_error; } #line 733 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -4581,8 +4581,8 @@ static gboolean configuration_facade_real_get_display_photo_tags (ConfigurationF return result; #line 4578 "ConfigurationInterfaces.c" } - goto __finally107; - __catch107_configuration_error: + goto __finally109; + __catch109_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -4602,7 +4602,7 @@ static gboolean configuration_facade_real_get_display_photo_tags (ConfigurationF return result; #line 4599 "ConfigurationInterfaces.c" } - __finally107: + __finally109: #line 732 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 732 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -4643,7 +4643,7 @@ static void configuration_facade_real_set_display_photo_tags (ConfigurationFacad #line 743 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 4641 "ConfigurationInterfaces.c" - goto __catch108_configuration_error; + goto __catch110_configuration_error; } #line 743 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -4654,8 +4654,8 @@ static void configuration_facade_real_set_display_photo_tags (ConfigurationFacad #line 4650 "ConfigurationInterfaces.c" } } - goto __finally108; - __catch108_configuration_error: + goto __finally110; + __catch110_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -4671,7 +4671,7 @@ static void configuration_facade_real_set_display_photo_tags (ConfigurationFacad _g_error_free0 (err); #line 4668 "ConfigurationInterfaces.c" } - __finally108: + __finally110: #line 742 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 742 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -4720,7 +4720,7 @@ static gboolean configuration_facade_real_get_display_photo_titles (Configuratio #line 754 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 4718 "ConfigurationInterfaces.c" - goto __catch109_configuration_error; + goto __catch111_configuration_error; } #line 754 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -4736,8 +4736,8 @@ static gboolean configuration_facade_real_get_display_photo_titles (Configuratio return result; #line 4733 "ConfigurationInterfaces.c" } - goto __finally109; - __catch109_configuration_error: + goto __finally111; + __catch111_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -4757,7 +4757,7 @@ static gboolean configuration_facade_real_get_display_photo_titles (Configuratio return result; #line 4754 "ConfigurationInterfaces.c" } - __finally109: + __finally111: #line 753 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 753 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -4798,7 +4798,7 @@ static void configuration_facade_real_set_display_photo_titles (ConfigurationFac #line 764 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 4796 "ConfigurationInterfaces.c" - goto __catch110_configuration_error; + goto __catch112_configuration_error; } #line 764 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -4809,8 +4809,8 @@ static void configuration_facade_real_set_display_photo_titles (ConfigurationFac #line 4805 "ConfigurationInterfaces.c" } } - goto __finally110; - __catch110_configuration_error: + goto __finally112; + __catch112_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -4826,7 +4826,7 @@ static void configuration_facade_real_set_display_photo_titles (ConfigurationFac _g_error_free0 (err); #line 4823 "ConfigurationInterfaces.c" } - __finally110: + __finally112: #line 763 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 763 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -4875,7 +4875,7 @@ static gboolean configuration_facade_real_get_display_photo_comments (Configurat #line 775 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 4873 "ConfigurationInterfaces.c" - goto __catch111_configuration_error; + goto __catch113_configuration_error; } #line 775 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -4891,8 +4891,8 @@ static gboolean configuration_facade_real_get_display_photo_comments (Configurat return result; #line 4888 "ConfigurationInterfaces.c" } - goto __finally111; - __catch111_configuration_error: + goto __finally113; + __catch113_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -4912,7 +4912,7 @@ static gboolean configuration_facade_real_get_display_photo_comments (Configurat return result; #line 4909 "ConfigurationInterfaces.c" } - __finally111: + __finally113: #line 774 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 774 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -4953,7 +4953,7 @@ static void configuration_facade_real_set_display_photo_comments (ConfigurationF #line 785 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 4951 "ConfigurationInterfaces.c" - goto __catch112_configuration_error; + goto __catch114_configuration_error; } #line 785 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -4964,8 +4964,8 @@ static void configuration_facade_real_set_display_photo_comments (ConfigurationF #line 4960 "ConfigurationInterfaces.c" } } - goto __finally112; - __catch112_configuration_error: + goto __finally114; + __catch114_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -4981,7 +4981,7 @@ static void configuration_facade_real_set_display_photo_comments (ConfigurationF _g_error_free0 (err); #line 4978 "ConfigurationInterfaces.c" } - __finally112: + __finally114: #line 784 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 784 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -5030,7 +5030,7 @@ static gboolean configuration_facade_real_get_display_event_comments (Configurat #line 796 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 5028 "ConfigurationInterfaces.c" - goto __catch113_configuration_error; + goto __catch115_configuration_error; } #line 796 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -5046,8 +5046,8 @@ static gboolean configuration_facade_real_get_display_event_comments (Configurat return result; #line 5043 "ConfigurationInterfaces.c" } - goto __finally113; - __catch113_configuration_error: + goto __finally115; + __catch115_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -5067,7 +5067,7 @@ static gboolean configuration_facade_real_get_display_event_comments (Configurat return result; #line 5064 "ConfigurationInterfaces.c" } - __finally113: + __finally115: #line 795 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 795 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -5108,7 +5108,7 @@ static void configuration_facade_real_set_display_event_comments (ConfigurationF #line 806 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 5106 "ConfigurationInterfaces.c" - goto __catch114_configuration_error; + goto __catch116_configuration_error; } #line 806 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -5119,8 +5119,8 @@ static void configuration_facade_real_set_display_event_comments (ConfigurationF #line 5115 "ConfigurationInterfaces.c" } } - goto __finally114; - __catch114_configuration_error: + goto __finally116; + __catch116_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -5136,7 +5136,7 @@ static void configuration_facade_real_set_display_event_comments (ConfigurationF _g_error_free0 (err); #line 5133 "ConfigurationInterfaces.c" } - __finally114: + __finally116: #line 805 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 805 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -5196,7 +5196,7 @@ static void configuration_facade_real_get_event_photos_sort (ConfigurationFacade #line 819 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 5194 "ConfigurationInterfaces.c" - goto __catch115_configuration_error; + goto __catch117_configuration_error; } #line 819 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -5225,7 +5225,7 @@ static void configuration_facade_real_get_event_photos_sort (ConfigurationFacade #line 821 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 5223 "ConfigurationInterfaces.c" - goto __catch115_configuration_error; + goto __catch117_configuration_error; } #line 821 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -5239,8 +5239,8 @@ static void configuration_facade_real_get_event_photos_sort (ConfigurationFacade _vala_sort_by = _tmp5_; #line 5236 "ConfigurationInterfaces.c" } - goto __finally115; - __catch115_configuration_error: + goto __finally117; + __catch117_configuration_error: { GError* err = NULL; GError* _tmp10_ = NULL; @@ -5256,7 +5256,7 @@ static void configuration_facade_real_get_event_photos_sort (ConfigurationFacade _g_error_free0 (err); #line 5253 "ConfigurationInterfaces.c" } - __finally115: + __finally117: #line 818 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 818 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -5315,7 +5315,7 @@ static void configuration_facade_real_set_event_photos_sort (ConfigurationFacade #line 829 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 5313 "ConfigurationInterfaces.c" - goto __catch116_configuration_error; + goto __catch118_configuration_error; } #line 829 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -5340,7 +5340,7 @@ static void configuration_facade_real_set_event_photos_sort (ConfigurationFacade #line 831 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 5338 "ConfigurationInterfaces.c" - goto __catch116_configuration_error; + goto __catch118_configuration_error; } #line 831 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -5351,8 +5351,8 @@ static void configuration_facade_real_set_event_photos_sort (ConfigurationFacade #line 5347 "ConfigurationInterfaces.c" } } - goto __finally116; - __catch116_configuration_error: + goto __finally118; + __catch118_configuration_error: { GError* err = NULL; GError* _tmp6_ = NULL; @@ -5368,7 +5368,7 @@ static void configuration_facade_real_set_event_photos_sort (ConfigurationFacade _g_error_free0 (err); #line 5365 "ConfigurationInterfaces.c" } - __finally116: + __finally118: #line 828 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 828 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -5417,7 +5417,7 @@ static gboolean configuration_facade_real_get_events_sort_ascending (Configurati #line 843 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 5415 "ConfigurationInterfaces.c" - goto __catch117_configuration_error; + goto __catch119_configuration_error; } #line 843 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -5433,8 +5433,8 @@ static gboolean configuration_facade_real_get_events_sort_ascending (Configurati return result; #line 5430 "ConfigurationInterfaces.c" } - goto __finally117; - __catch117_configuration_error: + goto __finally119; + __catch119_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -5454,7 +5454,7 @@ static gboolean configuration_facade_real_get_events_sort_ascending (Configurati return result; #line 5451 "ConfigurationInterfaces.c" } - __finally117: + __finally119: #line 842 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 842 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -5495,7 +5495,7 @@ static void configuration_facade_real_set_events_sort_ascending (ConfigurationFa #line 853 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 5493 "ConfigurationInterfaces.c" - goto __catch118_configuration_error; + goto __catch120_configuration_error; } #line 853 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -5506,8 +5506,8 @@ static void configuration_facade_real_set_events_sort_ascending (ConfigurationFa #line 5502 "ConfigurationInterfaces.c" } } - goto __finally118; - __catch118_configuration_error: + goto __finally120; + __catch120_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -5525,7 +5525,7 @@ static void configuration_facade_real_set_events_sort_ascending (ConfigurationFa return; #line 5522 "ConfigurationInterfaces.c" } - __finally118: + __finally120: #line 852 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 852 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -5575,7 +5575,7 @@ static gchar* configuration_facade_real_get_external_photo_app (ConfigurationFac #line 865 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 5573 "ConfigurationInterfaces.c" - goto __catch119_configuration_error; + goto __catch121_configuration_error; } #line 865 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -5597,8 +5597,8 @@ static gchar* configuration_facade_real_get_external_photo_app (ConfigurationFac return result; #line 5594 "ConfigurationInterfaces.c" } - goto __finally119; - __catch119_configuration_error: + goto __finally121; + __catch121_configuration_error: { GError* err = NULL; GError* _tmp6_ = NULL; @@ -5621,7 +5621,7 @@ static gchar* configuration_facade_real_get_external_photo_app (ConfigurationFac return result; #line 5618 "ConfigurationInterfaces.c" } - __finally119: + __finally121: #line 864 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 864 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -5665,7 +5665,7 @@ static void configuration_facade_real_set_external_photo_app (ConfigurationFacad #line 875 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 5663 "ConfigurationInterfaces.c" - goto __catch120_configuration_error; + goto __catch122_configuration_error; } #line 875 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -5676,8 +5676,8 @@ static void configuration_facade_real_set_external_photo_app (ConfigurationFacad #line 5672 "ConfigurationInterfaces.c" } } - goto __finally120; - __catch120_configuration_error: + goto __finally122; + __catch122_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -5695,7 +5695,7 @@ static void configuration_facade_real_set_external_photo_app (ConfigurationFacad return; #line 5692 "ConfigurationInterfaces.c" } - __finally120: + __finally122: #line 874 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 874 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -5745,7 +5745,7 @@ static gchar* configuration_facade_real_get_external_raw_app (ConfigurationFacad #line 888 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 5743 "ConfigurationInterfaces.c" - goto __catch121_configuration_error; + goto __catch123_configuration_error; } #line 888 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -5767,8 +5767,8 @@ static gchar* configuration_facade_real_get_external_raw_app (ConfigurationFacad return result; #line 5764 "ConfigurationInterfaces.c" } - goto __finally121; - __catch121_configuration_error: + goto __finally123; + __catch123_configuration_error: { GError* err = NULL; GError* _tmp6_ = NULL; @@ -5791,7 +5791,7 @@ static gchar* configuration_facade_real_get_external_raw_app (ConfigurationFacad return result; #line 5788 "ConfigurationInterfaces.c" } - __finally121: + __finally123: #line 887 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 887 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -5835,7 +5835,7 @@ static void configuration_facade_real_set_external_raw_app (ConfigurationFacade* #line 898 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 5833 "ConfigurationInterfaces.c" - goto __catch122_configuration_error; + goto __catch124_configuration_error; } #line 898 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -5846,8 +5846,8 @@ static void configuration_facade_real_set_external_raw_app (ConfigurationFacade* #line 5842 "ConfigurationInterfaces.c" } } - goto __finally122; - __catch122_configuration_error: + goto __finally124; + __catch124_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -5865,7 +5865,7 @@ static void configuration_facade_real_set_external_raw_app (ConfigurationFacade* return; #line 5862 "ConfigurationInterfaces.c" } - __finally122: + __finally124: #line 897 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 897 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -5914,7 +5914,7 @@ static ScaleConstraint configuration_facade_real_get_export_constraint (Configur #line 911 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 5912 "ConfigurationInterfaces.c" - goto __catch123_configuration_error; + goto __catch125_configuration_error; } #line 911 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -5930,8 +5930,8 @@ static ScaleConstraint configuration_facade_real_get_export_constraint (Configur return result; #line 5927 "ConfigurationInterfaces.c" } - goto __finally123; - __catch123_configuration_error: + goto __finally125; + __catch125_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -5951,7 +5951,7 @@ static ScaleConstraint configuration_facade_real_get_export_constraint (Configur return result; #line 5948 "ConfigurationInterfaces.c" } - __finally123: + __finally125: #line 910 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 910 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -5992,7 +5992,7 @@ static void configuration_facade_real_set_export_constraint (ConfigurationFacade #line 921 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 5990 "ConfigurationInterfaces.c" - goto __catch124_configuration_error; + goto __catch126_configuration_error; } #line 921 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -6003,8 +6003,8 @@ static void configuration_facade_real_set_export_constraint (ConfigurationFacade #line 5999 "ConfigurationInterfaces.c" } } - goto __finally124; - __catch124_configuration_error: + goto __finally126; + __catch126_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -6022,7 +6022,7 @@ static void configuration_facade_real_set_export_constraint (ConfigurationFacade return; #line 6019 "ConfigurationInterfaces.c" } - __finally124: + __finally126: #line 920 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 920 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -6071,7 +6071,7 @@ static ExportFormatMode configuration_facade_real_get_export_export_format_mode #line 930 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 6069 "ConfigurationInterfaces.c" - goto __catch125_configuration_error; + goto __catch127_configuration_error; } #line 930 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -6087,8 +6087,8 @@ static ExportFormatMode configuration_facade_real_get_export_export_format_mode return result; #line 6084 "ConfigurationInterfaces.c" } - goto __finally125; - __catch125_configuration_error: + goto __finally127; + __catch127_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -6108,7 +6108,7 @@ static ExportFormatMode configuration_facade_real_get_export_export_format_mode return result; #line 6105 "ConfigurationInterfaces.c" } - __finally125: + __finally127: #line 929 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 929 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -6149,7 +6149,7 @@ static void configuration_facade_real_set_export_export_format_mode (Configurati #line 940 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 6147 "ConfigurationInterfaces.c" - goto __catch126_configuration_error; + goto __catch128_configuration_error; } #line 940 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -6160,8 +6160,8 @@ static void configuration_facade_real_set_export_export_format_mode (Configurati #line 6156 "ConfigurationInterfaces.c" } } - goto __finally126; - __catch126_configuration_error: + goto __finally128; + __catch128_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -6179,7 +6179,7 @@ static void configuration_facade_real_set_export_export_format_mode (Configurati return; #line 6176 "ConfigurationInterfaces.c" } - __finally126: + __finally128: #line 939 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 939 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -6228,7 +6228,7 @@ static gboolean configuration_facade_real_get_export_export_metadata (Configurat #line 949 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 6226 "ConfigurationInterfaces.c" - goto __catch127_configuration_error; + goto __catch129_configuration_error; } #line 949 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -6244,8 +6244,8 @@ static gboolean configuration_facade_real_get_export_export_metadata (Configurat return result; #line 6241 "ConfigurationInterfaces.c" } - goto __finally127; - __catch127_configuration_error: + goto __finally129; + __catch129_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -6265,7 +6265,7 @@ static gboolean configuration_facade_real_get_export_export_metadata (Configurat return result; #line 6262 "ConfigurationInterfaces.c" } - __finally127: + __finally129: #line 948 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 948 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -6306,7 +6306,7 @@ static void configuration_facade_real_set_export_export_metadata (ConfigurationF #line 959 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 6304 "ConfigurationInterfaces.c" - goto __catch128_configuration_error; + goto __catch130_configuration_error; } #line 959 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -6317,8 +6317,8 @@ static void configuration_facade_real_set_export_export_metadata (ConfigurationF #line 6313 "ConfigurationInterfaces.c" } } - goto __finally128; - __catch128_configuration_error: + goto __finally130; + __catch130_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -6336,7 +6336,7 @@ static void configuration_facade_real_set_export_export_metadata (ConfigurationF return; #line 6333 "ConfigurationInterfaces.c" } - __finally128: + __finally130: #line 958 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 958 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -6386,7 +6386,7 @@ static PhotoFileFormat configuration_facade_real_get_export_photo_file_format (C #line 968 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 6384 "ConfigurationInterfaces.c" - goto __catch129_configuration_error; + goto __catch131_configuration_error; } #line 968 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -6404,8 +6404,8 @@ static PhotoFileFormat configuration_facade_real_get_export_photo_file_format (C return result; #line 6401 "ConfigurationInterfaces.c" } - goto __finally129; - __catch129_configuration_error: + goto __finally131; + __catch131_configuration_error: { GError* err = NULL; GError* _tmp6_ = NULL; @@ -6425,7 +6425,7 @@ static PhotoFileFormat configuration_facade_real_get_export_photo_file_format (C return result; #line 6422 "ConfigurationInterfaces.c" } - __finally129: + __finally131: #line 967 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 967 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -6469,7 +6469,7 @@ static void configuration_facade_real_set_export_photo_file_format (Configuratio #line 978 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 6467 "ConfigurationInterfaces.c" - goto __catch130_configuration_error; + goto __catch132_configuration_error; } #line 978 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -6480,8 +6480,8 @@ static void configuration_facade_real_set_export_photo_file_format (Configuratio #line 6476 "ConfigurationInterfaces.c" } } - goto __finally130; - __catch130_configuration_error: + goto __finally132; + __catch132_configuration_error: { GError* err = NULL; GError* _tmp4_ = NULL; @@ -6499,7 +6499,7 @@ static void configuration_facade_real_set_export_photo_file_format (Configuratio return; #line 6496 "ConfigurationInterfaces.c" } - __finally130: + __finally132: #line 977 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 977 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -6548,7 +6548,7 @@ static JpegQuality configuration_facade_real_get_export_quality (ConfigurationFa #line 987 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 6546 "ConfigurationInterfaces.c" - goto __catch131_configuration_error; + goto __catch133_configuration_error; } #line 987 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -6564,8 +6564,8 @@ static JpegQuality configuration_facade_real_get_export_quality (ConfigurationFa return result; #line 6561 "ConfigurationInterfaces.c" } - goto __finally131; - __catch131_configuration_error: + goto __finally133; + __catch133_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -6585,7 +6585,7 @@ static JpegQuality configuration_facade_real_get_export_quality (ConfigurationFa return result; #line 6582 "ConfigurationInterfaces.c" } - __finally131: + __finally133: #line 986 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 986 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -6626,7 +6626,7 @@ static void configuration_facade_real_set_export_quality (ConfigurationFacade* s #line 997 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 6624 "ConfigurationInterfaces.c" - goto __catch132_configuration_error; + goto __catch134_configuration_error; } #line 997 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -6637,8 +6637,8 @@ static void configuration_facade_real_set_export_quality (ConfigurationFacade* s #line 6633 "ConfigurationInterfaces.c" } } - goto __finally132; - __catch132_configuration_error: + goto __finally134; + __catch134_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -6656,7 +6656,7 @@ static void configuration_facade_real_set_export_quality (ConfigurationFacade* s return; #line 6653 "ConfigurationInterfaces.c" } - __finally132: + __finally134: #line 996 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 996 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -6705,7 +6705,7 @@ static gint configuration_facade_real_get_export_scale (ConfigurationFacade* sel #line 1006 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 6703 "ConfigurationInterfaces.c" - goto __catch133_configuration_error; + goto __catch135_configuration_error; } #line 1006 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -6721,8 +6721,8 @@ static gint configuration_facade_real_get_export_scale (ConfigurationFacade* sel return result; #line 6718 "ConfigurationInterfaces.c" } - goto __finally133; - __catch133_configuration_error: + goto __finally135; + __catch135_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -6742,7 +6742,7 @@ static gint configuration_facade_real_get_export_scale (ConfigurationFacade* sel return result; #line 6739 "ConfigurationInterfaces.c" } - __finally133: + __finally135: #line 1005 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 1005 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -6783,7 +6783,7 @@ static void configuration_facade_real_set_export_scale (ConfigurationFacade* sel #line 1016 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 6781 "ConfigurationInterfaces.c" - goto __catch134_configuration_error; + goto __catch136_configuration_error; } #line 1016 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -6794,8 +6794,8 @@ static void configuration_facade_real_set_export_scale (ConfigurationFacade* sel #line 6790 "ConfigurationInterfaces.c" } } - goto __finally134; - __catch134_configuration_error: + goto __finally136; + __catch136_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -6813,7 +6813,7 @@ static void configuration_facade_real_set_export_scale (ConfigurationFacade* sel return; #line 6810 "ConfigurationInterfaces.c" } - __finally134: + __finally136: #line 1015 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1015 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -6863,7 +6863,7 @@ static RawDeveloper configuration_facade_real_get_default_raw_developer (Configu #line 1028 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 6861 "ConfigurationInterfaces.c" - goto __catch135_configuration_error; + goto __catch137_configuration_error; } #line 1028 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -6883,8 +6883,8 @@ static RawDeveloper configuration_facade_real_get_default_raw_developer (Configu return result; #line 6880 "ConfigurationInterfaces.c" } - goto __finally135; - __catch135_configuration_error: + goto __finally137; + __catch137_configuration_error: { GError* err = NULL; GError* _tmp6_ = NULL; @@ -6904,7 +6904,7 @@ static RawDeveloper configuration_facade_real_get_default_raw_developer (Configu return result; #line 6901 "ConfigurationInterfaces.c" } - __finally135: + __finally137: #line 1027 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 1027 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -6953,7 +6953,7 @@ static void configuration_facade_real_set_default_raw_developer (ConfigurationFa #line 1039 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 6951 "ConfigurationInterfaces.c" - goto __catch136_configuration_error; + goto __catch138_configuration_error; } #line 1039 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -6964,8 +6964,8 @@ static void configuration_facade_real_set_default_raw_developer (ConfigurationFa #line 6960 "ConfigurationInterfaces.c" } } - goto __finally136; - __catch136_configuration_error: + goto __finally138; + __catch138_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -6983,7 +6983,7 @@ static void configuration_facade_real_set_default_raw_developer (ConfigurationFa return; #line 6980 "ConfigurationInterfaces.c" } - __finally136: + __finally138: #line 1038 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1038 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -7032,7 +7032,7 @@ static gboolean configuration_facade_real_get_hide_photos_already_imported (Conf #line 1052 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 7030 "ConfigurationInterfaces.c" - goto __catch137_configuration_error; + goto __catch139_configuration_error; } #line 1052 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -7048,8 +7048,8 @@ static gboolean configuration_facade_real_get_hide_photos_already_imported (Conf return result; #line 7045 "ConfigurationInterfaces.c" } - goto __finally137; - __catch137_configuration_error: + goto __finally139; + __catch139_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -7069,7 +7069,7 @@ static gboolean configuration_facade_real_get_hide_photos_already_imported (Conf return result; #line 7066 "ConfigurationInterfaces.c" } - __finally137: + __finally139: #line 1051 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 1051 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -7110,7 +7110,7 @@ static void configuration_facade_real_set_hide_photos_already_imported (Configur #line 1062 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 7108 "ConfigurationInterfaces.c" - goto __catch138_configuration_error; + goto __catch140_configuration_error; } #line 1062 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -7121,8 +7121,8 @@ static void configuration_facade_real_set_hide_photos_already_imported (Configur #line 7117 "ConfigurationInterfaces.c" } } - goto __finally138; - __catch138_configuration_error: + goto __finally140; + __catch140_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -7138,7 +7138,7 @@ static void configuration_facade_real_set_hide_photos_already_imported (Configur _g_error_free0 (err); #line 7135 "ConfigurationInterfaces.c" } - __finally138: + __finally140: #line 1061 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1061 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -7188,7 +7188,7 @@ static gchar* configuration_facade_real_get_import_dir (ConfigurationFacade* sel #line 1073 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 7186 "ConfigurationInterfaces.c" - goto __catch139_configuration_error; + goto __catch141_configuration_error; } #line 1073 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -7210,8 +7210,8 @@ static gchar* configuration_facade_real_get_import_dir (ConfigurationFacade* sel return result; #line 7207 "ConfigurationInterfaces.c" } - goto __finally139; - __catch139_configuration_error: + goto __finally141; + __catch141_configuration_error: { GError* err = NULL; GError* _tmp6_ = NULL; @@ -7234,7 +7234,7 @@ static gchar* configuration_facade_real_get_import_dir (ConfigurationFacade* sel return result; #line 7231 "ConfigurationInterfaces.c" } - __finally139: + __finally141: #line 1072 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 1072 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -7278,7 +7278,7 @@ static void configuration_facade_real_set_import_dir (ConfigurationFacade* self, #line 1083 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 7276 "ConfigurationInterfaces.c" - goto __catch140_configuration_error; + goto __catch142_configuration_error; } #line 1083 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -7289,8 +7289,8 @@ static void configuration_facade_real_set_import_dir (ConfigurationFacade* self, #line 7285 "ConfigurationInterfaces.c" } } - goto __finally140; - __catch140_configuration_error: + goto __finally142; + __catch142_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -7306,7 +7306,7 @@ static void configuration_facade_real_set_import_dir (ConfigurationFacade* self, _g_error_free0 (err); #line 7303 "ConfigurationInterfaces.c" } - __finally140: + __finally142: #line 1082 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1082 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -7355,7 +7355,7 @@ static gboolean configuration_facade_real_get_keep_relativity (ConfigurationFaca #line 1094 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 7353 "ConfigurationInterfaces.c" - goto __catch141_configuration_error; + goto __catch143_configuration_error; } #line 1094 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -7371,8 +7371,8 @@ static gboolean configuration_facade_real_get_keep_relativity (ConfigurationFaca return result; #line 7368 "ConfigurationInterfaces.c" } - goto __finally141; - __catch141_configuration_error: + goto __finally143; + __catch143_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -7392,7 +7392,7 @@ static gboolean configuration_facade_real_get_keep_relativity (ConfigurationFaca return result; #line 7389 "ConfigurationInterfaces.c" } - __finally141: + __finally143: #line 1093 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 1093 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -7433,7 +7433,7 @@ static void configuration_facade_real_set_keep_relativity (ConfigurationFacade* #line 1104 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 7431 "ConfigurationInterfaces.c" - goto __catch142_configuration_error; + goto __catch144_configuration_error; } #line 1104 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -7444,8 +7444,8 @@ static void configuration_facade_real_set_keep_relativity (ConfigurationFacade* #line 7440 "ConfigurationInterfaces.c" } } - goto __finally142; - __catch142_configuration_error: + goto __finally144; + __catch144_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -7461,7 +7461,7 @@ static void configuration_facade_real_set_keep_relativity (ConfigurationFacade* _g_error_free0 (err); #line 7458 "ConfigurationInterfaces.c" } - __finally142: + __finally144: #line 1103 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1103 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -7510,7 +7510,7 @@ static gboolean configuration_facade_real_get_pin_toolbar_state (ConfigurationFa #line 1115 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 7508 "ConfigurationInterfaces.c" - goto __catch143_configuration_error; + goto __catch145_configuration_error; } #line 1115 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -7526,8 +7526,8 @@ static gboolean configuration_facade_real_get_pin_toolbar_state (ConfigurationFa return result; #line 7523 "ConfigurationInterfaces.c" } - goto __finally143; - __catch143_configuration_error: + goto __finally145; + __catch145_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -7547,7 +7547,7 @@ static gboolean configuration_facade_real_get_pin_toolbar_state (ConfigurationFa return result; #line 7544 "ConfigurationInterfaces.c" } - __finally143: + __finally145: #line 1114 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 1114 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -7588,7 +7588,7 @@ static void configuration_facade_real_set_pin_toolbar_state (ConfigurationFacade #line 1124 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 7586 "ConfigurationInterfaces.c" - goto __catch144_configuration_error; + goto __catch146_configuration_error; } #line 1124 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -7599,8 +7599,8 @@ static void configuration_facade_real_set_pin_toolbar_state (ConfigurationFacade #line 7595 "ConfigurationInterfaces.c" } } - goto __finally144; - __catch144_configuration_error: + goto __finally146; + __catch146_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -7616,7 +7616,7 @@ static void configuration_facade_real_set_pin_toolbar_state (ConfigurationFacade _g_error_free0 (err); #line 7613 "ConfigurationInterfaces.c" } - __finally144: + __finally146: #line 1123 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1123 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -7665,7 +7665,7 @@ static gint configuration_facade_real_get_last_crop_height (ConfigurationFacade* #line 1135 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 7663 "ConfigurationInterfaces.c" - goto __catch145_configuration_error; + goto __catch147_configuration_error; } #line 1135 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -7681,8 +7681,8 @@ static gint configuration_facade_real_get_last_crop_height (ConfigurationFacade* return result; #line 7678 "ConfigurationInterfaces.c" } - goto __finally145; - __catch145_configuration_error: + goto __finally147; + __catch147_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -7702,7 +7702,7 @@ static gint configuration_facade_real_get_last_crop_height (ConfigurationFacade* return result; #line 7699 "ConfigurationInterfaces.c" } - __finally145: + __finally147: #line 1134 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 1134 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -7743,7 +7743,7 @@ static void configuration_facade_real_set_last_crop_height (ConfigurationFacade* #line 1144 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 7741 "ConfigurationInterfaces.c" - goto __catch146_configuration_error; + goto __catch148_configuration_error; } #line 1144 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -7754,8 +7754,8 @@ static void configuration_facade_real_set_last_crop_height (ConfigurationFacade* #line 7750 "ConfigurationInterfaces.c" } } - goto __finally146; - __catch146_configuration_error: + goto __finally148; + __catch148_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -7771,7 +7771,7 @@ static void configuration_facade_real_set_last_crop_height (ConfigurationFacade* _g_error_free0 (err); #line 7768 "ConfigurationInterfaces.c" } - __finally146: + __finally148: #line 1143 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1143 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -7820,7 +7820,7 @@ static gint configuration_facade_real_get_last_crop_menu_choice (ConfigurationFa #line 1155 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 7818 "ConfigurationInterfaces.c" - goto __catch147_configuration_error; + goto __catch149_configuration_error; } #line 1155 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -7836,8 +7836,8 @@ static gint configuration_facade_real_get_last_crop_menu_choice (ConfigurationFa return result; #line 7833 "ConfigurationInterfaces.c" } - goto __finally147; - __catch147_configuration_error: + goto __finally149; + __catch149_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -7857,7 +7857,7 @@ static gint configuration_facade_real_get_last_crop_menu_choice (ConfigurationFa return result; #line 7854 "ConfigurationInterfaces.c" } - __finally147: + __finally149: #line 1154 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 1154 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -7898,7 +7898,7 @@ static void configuration_facade_real_set_last_crop_menu_choice (ConfigurationFa #line 1168 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 7896 "ConfigurationInterfaces.c" - goto __catch148_configuration_error; + goto __catch150_configuration_error; } #line 1168 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -7909,8 +7909,8 @@ static void configuration_facade_real_set_last_crop_menu_choice (ConfigurationFa #line 7905 "ConfigurationInterfaces.c" } } - goto __finally148; - __catch148_configuration_error: + goto __finally150; + __catch150_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -7926,7 +7926,7 @@ static void configuration_facade_real_set_last_crop_menu_choice (ConfigurationFa _g_error_free0 (err); #line 7923 "ConfigurationInterfaces.c" } - __finally148: + __finally150: #line 1167 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1167 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -7975,7 +7975,7 @@ static gint configuration_facade_real_get_last_crop_width (ConfigurationFacade* #line 1179 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 7973 "ConfigurationInterfaces.c" - goto __catch149_configuration_error; + goto __catch151_configuration_error; } #line 1179 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -7991,8 +7991,8 @@ static gint configuration_facade_real_get_last_crop_width (ConfigurationFacade* return result; #line 7988 "ConfigurationInterfaces.c" } - goto __finally149; - __catch149_configuration_error: + goto __finally151; + __catch151_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -8012,7 +8012,7 @@ static gint configuration_facade_real_get_last_crop_width (ConfigurationFacade* return result; #line 8009 "ConfigurationInterfaces.c" } - __finally149: + __finally151: #line 1178 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 1178 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -8053,7 +8053,7 @@ static void configuration_facade_real_set_last_crop_width (ConfigurationFacade* #line 1188 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 8051 "ConfigurationInterfaces.c" - goto __catch150_configuration_error; + goto __catch152_configuration_error; } #line 1188 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -8064,8 +8064,8 @@ static void configuration_facade_real_set_last_crop_width (ConfigurationFacade* #line 8060 "ConfigurationInterfaces.c" } } - goto __finally150; - __catch150_configuration_error: + goto __finally152; + __catch152_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -8081,7 +8081,7 @@ static void configuration_facade_real_set_last_crop_width (ConfigurationFacade* _g_error_free0 (err); #line 8078 "ConfigurationInterfaces.c" } - __finally150: + __finally152: #line 1187 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1187 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -8131,7 +8131,7 @@ static gchar* configuration_facade_real_get_last_used_service (ConfigurationFaca #line 1199 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 8129 "ConfigurationInterfaces.c" - goto __catch151_configuration_error; + goto __catch153_configuration_error; } #line 1199 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -8153,8 +8153,8 @@ static gchar* configuration_facade_real_get_last_used_service (ConfigurationFaca return result; #line 8150 "ConfigurationInterfaces.c" } - goto __finally151; - __catch151_configuration_error: + goto __finally153; + __catch153_configuration_error: { GError* err = NULL; GError* _tmp6_ = NULL; @@ -8177,7 +8177,7 @@ static gchar* configuration_facade_real_get_last_used_service (ConfigurationFaca return result; #line 8174 "ConfigurationInterfaces.c" } - __finally151: + __finally153: #line 1198 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 1198 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -8221,7 +8221,7 @@ static void configuration_facade_real_set_last_used_service (ConfigurationFacade #line 1212 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 8219 "ConfigurationInterfaces.c" - goto __catch152_configuration_error; + goto __catch154_configuration_error; } #line 1212 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -8232,8 +8232,8 @@ static void configuration_facade_real_set_last_used_service (ConfigurationFacade #line 8228 "ConfigurationInterfaces.c" } } - goto __finally152; - __catch152_configuration_error: + goto __finally154; + __catch154_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -8249,7 +8249,7 @@ static void configuration_facade_real_set_last_used_service (ConfigurationFacade _g_error_free0 (err); #line 8246 "ConfigurationInterfaces.c" } - __finally152: + __finally154: #line 1211 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1211 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -8299,7 +8299,7 @@ static gchar* configuration_facade_real_get_last_used_dataimports_service (Confi #line 1223 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 8297 "ConfigurationInterfaces.c" - goto __catch153_configuration_error; + goto __catch155_configuration_error; } #line 1223 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -8321,8 +8321,8 @@ static gchar* configuration_facade_real_get_last_used_dataimports_service (Confi return result; #line 8318 "ConfigurationInterfaces.c" } - goto __finally153; - __catch153_configuration_error: + goto __finally155; + __catch155_configuration_error: { GError* err = NULL; GError* _tmp6_ = NULL; @@ -8345,7 +8345,7 @@ static gchar* configuration_facade_real_get_last_used_dataimports_service (Confi return result; #line 8342 "ConfigurationInterfaces.c" } - __finally153: + __finally155: #line 1222 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 1222 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -8389,7 +8389,7 @@ static void configuration_facade_real_set_last_used_dataimports_service (Configu #line 1236 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 8387 "ConfigurationInterfaces.c" - goto __catch154_configuration_error; + goto __catch156_configuration_error; } #line 1236 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -8400,8 +8400,8 @@ static void configuration_facade_real_set_last_used_dataimports_service (Configu #line 8396 "ConfigurationInterfaces.c" } } - goto __finally154; - __catch154_configuration_error: + goto __finally156; + __catch156_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -8417,7 +8417,7 @@ static void configuration_facade_real_set_last_used_dataimports_service (Configu _g_error_free0 (err); #line 8414 "ConfigurationInterfaces.c" } - __finally154: + __finally156: #line 1235 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1235 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -8477,7 +8477,7 @@ static void configuration_facade_real_get_library_photos_sort (ConfigurationFaca #line 1249 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 8475 "ConfigurationInterfaces.c" - goto __catch155_configuration_error; + goto __catch157_configuration_error; } #line 1249 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -8506,7 +8506,7 @@ static void configuration_facade_real_get_library_photos_sort (ConfigurationFaca #line 1251 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 8504 "ConfigurationInterfaces.c" - goto __catch155_configuration_error; + goto __catch157_configuration_error; } #line 1251 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -8520,8 +8520,8 @@ static void configuration_facade_real_get_library_photos_sort (ConfigurationFaca _vala_sort_by = _tmp5_; #line 8517 "ConfigurationInterfaces.c" } - goto __finally155; - __catch155_configuration_error: + goto __finally157; + __catch157_configuration_error: { GError* err = NULL; GError* _tmp10_ = NULL; @@ -8537,7 +8537,7 @@ static void configuration_facade_real_get_library_photos_sort (ConfigurationFaca _g_error_free0 (err); #line 8534 "ConfigurationInterfaces.c" } - __finally155: + __finally157: #line 1248 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1248 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -8596,7 +8596,7 @@ static void configuration_facade_real_set_library_photos_sort (ConfigurationFaca #line 1259 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 8594 "ConfigurationInterfaces.c" - goto __catch156_configuration_error; + goto __catch158_configuration_error; } #line 1259 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -8621,7 +8621,7 @@ static void configuration_facade_real_set_library_photos_sort (ConfigurationFaca #line 1261 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 8619 "ConfigurationInterfaces.c" - goto __catch156_configuration_error; + goto __catch158_configuration_error; } #line 1261 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -8632,8 +8632,8 @@ static void configuration_facade_real_set_library_photos_sort (ConfigurationFaca #line 8628 "ConfigurationInterfaces.c" } } - goto __finally156; - __catch156_configuration_error: + goto __finally158; + __catch158_configuration_error: { GError* err = NULL; GError* _tmp6_ = NULL; @@ -8649,7 +8649,7 @@ static void configuration_facade_real_set_library_photos_sort (ConfigurationFaca _g_error_free0 (err); #line 8646 "ConfigurationInterfaces.c" } - __finally156: + __finally158: #line 1258 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1258 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -8716,7 +8716,7 @@ static void configuration_facade_real_get_library_window_state (ConfigurationFac #line 1275 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 8714 "ConfigurationInterfaces.c" - goto __catch157_configuration_error; + goto __catch159_configuration_error; } #line 1275 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -8745,7 +8745,7 @@ static void configuration_facade_real_get_library_window_state (ConfigurationFac #line 1276 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 8743 "ConfigurationInterfaces.c" - goto __catch157_configuration_error; + goto __catch159_configuration_error; } #line 1276 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -8772,7 +8772,7 @@ static void configuration_facade_real_get_library_window_state (ConfigurationFac #line 1277 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 8770 "ConfigurationInterfaces.c" - goto __catch157_configuration_error; + goto __catch159_configuration_error; } #line 1277 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -8790,8 +8790,8 @@ static void configuration_facade_real_get_library_window_state (ConfigurationFac dimensions_init (&_vala_dimensions, _tmp13_, _tmp14_); #line 8787 "ConfigurationInterfaces.c" } - goto __finally157; - __catch157_configuration_error: + goto __finally159; + __catch159_configuration_error: { GError* err = NULL; GError* _tmp15_ = NULL; @@ -8807,7 +8807,7 @@ static void configuration_facade_real_get_library_window_state (ConfigurationFac _g_error_free0 (err); #line 8804 "ConfigurationInterfaces.c" } - __finally157: + __finally159: #line 1274 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1274 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -8874,7 +8874,7 @@ static void configuration_facade_real_set_library_window_state (ConfigurationFac #line 1286 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 8872 "ConfigurationInterfaces.c" - goto __catch158_configuration_error; + goto __catch160_configuration_error; } #line 1286 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -8901,7 +8901,7 @@ static void configuration_facade_real_set_library_window_state (ConfigurationFac #line 1287 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 8899 "ConfigurationInterfaces.c" - goto __catch158_configuration_error; + goto __catch160_configuration_error; } #line 1287 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -8928,7 +8928,7 @@ static void configuration_facade_real_set_library_window_state (ConfigurationFac #line 1289 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 8926 "ConfigurationInterfaces.c" - goto __catch158_configuration_error; + goto __catch160_configuration_error; } #line 1289 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -8939,8 +8939,8 @@ static void configuration_facade_real_set_library_window_state (ConfigurationFac #line 8935 "ConfigurationInterfaces.c" } } - goto __finally158; - __catch158_configuration_error: + goto __finally160; + __catch160_configuration_error: { GError* err = NULL; GError* _tmp11_ = NULL; @@ -8956,7 +8956,7 @@ static void configuration_facade_real_set_library_window_state (ConfigurationFac _g_error_free0 (err); #line 8953 "ConfigurationInterfaces.c" } - __finally158: + __finally160: #line 1285 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1285 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -9005,7 +9005,7 @@ static gboolean configuration_facade_real_get_modify_originals (ConfigurationFac #line 1301 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 9003 "ConfigurationInterfaces.c" - goto __catch159_configuration_error; + goto __catch161_configuration_error; } #line 1301 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -9021,8 +9021,8 @@ static gboolean configuration_facade_real_get_modify_originals (ConfigurationFac return result; #line 9018 "ConfigurationInterfaces.c" } - goto __finally159; - __catch159_configuration_error: + goto __finally161; + __catch161_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -9042,7 +9042,7 @@ static gboolean configuration_facade_real_get_modify_originals (ConfigurationFac return result; #line 9039 "ConfigurationInterfaces.c" } - __finally159: + __finally161: #line 1300 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 1300 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -9083,7 +9083,7 @@ static void configuration_facade_real_set_modify_originals (ConfigurationFacade* #line 1312 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 9081 "ConfigurationInterfaces.c" - goto __catch160_configuration_error; + goto __catch162_configuration_error; } #line 1312 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -9094,8 +9094,8 @@ static void configuration_facade_real_set_modify_originals (ConfigurationFacade* #line 9090 "ConfigurationInterfaces.c" } } - goto __finally160; - __catch160_configuration_error: + goto __finally162; + __catch162_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -9111,7 +9111,7 @@ static void configuration_facade_real_set_modify_originals (ConfigurationFacade* _g_error_free0 (err); #line 9108 "ConfigurationInterfaces.c" } - __finally160: + __finally162: #line 1311 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1311 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -9160,7 +9160,7 @@ static gint configuration_facade_real_get_photo_thumbnail_scale (ConfigurationFa #line 1323 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 9158 "ConfigurationInterfaces.c" - goto __catch161_configuration_error; + goto __catch163_configuration_error; } #line 1323 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -9176,8 +9176,8 @@ static gint configuration_facade_real_get_photo_thumbnail_scale (ConfigurationFa return result; #line 9173 "ConfigurationInterfaces.c" } - goto __finally161; - __catch161_configuration_error: + goto __finally163; + __catch163_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -9203,7 +9203,7 @@ static gint configuration_facade_real_get_photo_thumbnail_scale (ConfigurationFa return result; #line 9200 "ConfigurationInterfaces.c" } - __finally161: + __finally163: #line 1322 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 1322 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -9244,7 +9244,7 @@ static void configuration_facade_real_set_photo_thumbnail_scale (ConfigurationFa #line 1332 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 9242 "ConfigurationInterfaces.c" - goto __catch162_configuration_error; + goto __catch164_configuration_error; } #line 1332 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -9255,8 +9255,8 @@ static void configuration_facade_real_set_photo_thumbnail_scale (ConfigurationFa #line 9251 "ConfigurationInterfaces.c" } } - goto __finally162; - __catch162_configuration_error: + goto __finally164; + __catch164_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -9272,7 +9272,7 @@ static void configuration_facade_real_set_photo_thumbnail_scale (ConfigurationFa _g_error_free0 (err); #line 9269 "ConfigurationInterfaces.c" } - __finally162: + __finally164: #line 1331 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1331 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -9321,7 +9321,7 @@ static gdouble configuration_facade_real_get_printing_content_height (Configurat #line 1343 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 9319 "ConfigurationInterfaces.c" - goto __catch163_configuration_error; + goto __catch165_configuration_error; } #line 1343 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -9337,8 +9337,8 @@ static gdouble configuration_facade_real_get_printing_content_height (Configurat return result; #line 9334 "ConfigurationInterfaces.c" } - goto __finally163; - __catch163_configuration_error: + goto __finally165; + __catch165_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -9358,7 +9358,7 @@ static gdouble configuration_facade_real_get_printing_content_height (Configurat return result; #line 9355 "ConfigurationInterfaces.c" } - __finally163: + __finally165: #line 1342 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 1342 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -9399,7 +9399,7 @@ static void configuration_facade_real_set_printing_content_height (Configuration #line 1353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 9397 "ConfigurationInterfaces.c" - goto __catch164_configuration_error; + goto __catch166_configuration_error; } #line 1353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -9410,8 +9410,8 @@ static void configuration_facade_real_set_printing_content_height (Configuration #line 9406 "ConfigurationInterfaces.c" } } - goto __finally164; - __catch164_configuration_error: + goto __finally166; + __catch166_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -9427,7 +9427,7 @@ static void configuration_facade_real_set_printing_content_height (Configuration _g_error_free0 (err); #line 9424 "ConfigurationInterfaces.c" } - __finally164: + __finally166: #line 1352 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1352 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -9476,7 +9476,7 @@ static gint configuration_facade_real_get_printing_content_layout (Configuration #line 1365 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 9474 "ConfigurationInterfaces.c" - goto __catch165_configuration_error; + goto __catch167_configuration_error; } #line 1365 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -9492,8 +9492,8 @@ static gint configuration_facade_real_get_printing_content_layout (Configuration return result; #line 9489 "ConfigurationInterfaces.c" } - goto __finally165; - __catch165_configuration_error: + goto __finally167; + __catch167_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -9513,7 +9513,7 @@ static gint configuration_facade_real_get_printing_content_layout (Configuration return result; #line 9510 "ConfigurationInterfaces.c" } - __finally165: + __finally167: #line 1364 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 1364 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -9554,7 +9554,7 @@ static void configuration_facade_real_set_printing_content_layout (Configuration #line 1375 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 9552 "ConfigurationInterfaces.c" - goto __catch166_configuration_error; + goto __catch168_configuration_error; } #line 1375 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -9565,8 +9565,8 @@ static void configuration_facade_real_set_printing_content_layout (Configuration #line 9561 "ConfigurationInterfaces.c" } } - goto __finally166; - __catch166_configuration_error: + goto __finally168; + __catch168_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -9582,7 +9582,7 @@ static void configuration_facade_real_set_printing_content_layout (Configuration _g_error_free0 (err); #line 9579 "ConfigurationInterfaces.c" } - __finally166: + __finally168: #line 1374 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1374 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -9631,7 +9631,7 @@ static gint configuration_facade_real_get_printing_content_ppi (ConfigurationFac #line 1387 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 9629 "ConfigurationInterfaces.c" - goto __catch167_configuration_error; + goto __catch169_configuration_error; } #line 1387 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -9647,8 +9647,8 @@ static gint configuration_facade_real_get_printing_content_ppi (ConfigurationFac return result; #line 9644 "ConfigurationInterfaces.c" } - goto __finally167; - __catch167_configuration_error: + goto __finally169; + __catch169_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -9668,7 +9668,7 @@ static gint configuration_facade_real_get_printing_content_ppi (ConfigurationFac return result; #line 9665 "ConfigurationInterfaces.c" } - __finally167: + __finally169: #line 1386 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 1386 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -9709,7 +9709,7 @@ static void configuration_facade_real_set_printing_content_ppi (ConfigurationFac #line 1397 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 9707 "ConfigurationInterfaces.c" - goto __catch168_configuration_error; + goto __catch170_configuration_error; } #line 1397 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -9720,8 +9720,8 @@ static void configuration_facade_real_set_printing_content_ppi (ConfigurationFac #line 9716 "ConfigurationInterfaces.c" } } - goto __finally168; - __catch168_configuration_error: + goto __finally170; + __catch170_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -9737,7 +9737,7 @@ static void configuration_facade_real_set_printing_content_ppi (ConfigurationFac _g_error_free0 (err); #line 9734 "ConfigurationInterfaces.c" } - __finally168: + __finally170: #line 1396 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1396 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -9786,7 +9786,7 @@ static gint configuration_facade_real_get_printing_content_units (ConfigurationF #line 1408 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 9784 "ConfigurationInterfaces.c" - goto __catch169_configuration_error; + goto __catch171_configuration_error; } #line 1408 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -9802,8 +9802,8 @@ static gint configuration_facade_real_get_printing_content_units (ConfigurationF return result; #line 9799 "ConfigurationInterfaces.c" } - goto __finally169; - __catch169_configuration_error: + goto __finally171; + __catch171_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -9823,7 +9823,7 @@ static gint configuration_facade_real_get_printing_content_units (ConfigurationF return result; #line 9820 "ConfigurationInterfaces.c" } - __finally169: + __finally171: #line 1407 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 1407 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -9864,7 +9864,7 @@ static void configuration_facade_real_set_printing_content_units (ConfigurationF #line 1418 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 9862 "ConfigurationInterfaces.c" - goto __catch170_configuration_error; + goto __catch172_configuration_error; } #line 1418 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -9875,8 +9875,8 @@ static void configuration_facade_real_set_printing_content_units (ConfigurationF #line 9871 "ConfigurationInterfaces.c" } } - goto __finally170; - __catch170_configuration_error: + goto __finally172; + __catch172_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -9892,7 +9892,7 @@ static void configuration_facade_real_set_printing_content_units (ConfigurationF _g_error_free0 (err); #line 9889 "ConfigurationInterfaces.c" } - __finally170: + __finally172: #line 1417 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1417 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -9941,7 +9941,7 @@ static gdouble configuration_facade_real_get_printing_content_width (Configurati #line 1430 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 9939 "ConfigurationInterfaces.c" - goto __catch171_configuration_error; + goto __catch173_configuration_error; } #line 1430 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -9957,8 +9957,8 @@ static gdouble configuration_facade_real_get_printing_content_width (Configurati return result; #line 9954 "ConfigurationInterfaces.c" } - goto __finally171; - __catch171_configuration_error: + goto __finally173; + __catch173_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -9978,7 +9978,7 @@ static gdouble configuration_facade_real_get_printing_content_width (Configurati return result; #line 9975 "ConfigurationInterfaces.c" } - __finally171: + __finally173: #line 1429 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 1429 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -10019,7 +10019,7 @@ static void configuration_facade_real_set_printing_content_width (ConfigurationF #line 1440 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 10017 "ConfigurationInterfaces.c" - goto __catch172_configuration_error; + goto __catch174_configuration_error; } #line 1440 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -10030,8 +10030,8 @@ static void configuration_facade_real_set_printing_content_width (ConfigurationF #line 10026 "ConfigurationInterfaces.c" } } - goto __finally172; - __catch172_configuration_error: + goto __finally174; + __catch174_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -10047,7 +10047,7 @@ static void configuration_facade_real_set_printing_content_width (ConfigurationF _g_error_free0 (err); #line 10044 "ConfigurationInterfaces.c" } - __finally172: + __finally174: #line 1439 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1439 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -10096,7 +10096,7 @@ static gint configuration_facade_real_get_printing_images_per_page (Configuratio #line 1452 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 10094 "ConfigurationInterfaces.c" - goto __catch173_configuration_error; + goto __catch175_configuration_error; } #line 1452 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -10112,8 +10112,8 @@ static gint configuration_facade_real_get_printing_images_per_page (Configuratio return result; #line 10109 "ConfigurationInterfaces.c" } - goto __finally173; - __catch173_configuration_error: + goto __finally175; + __catch175_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -10133,7 +10133,7 @@ static gint configuration_facade_real_get_printing_images_per_page (Configuratio return result; #line 10130 "ConfigurationInterfaces.c" } - __finally173: + __finally175: #line 1451 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 1451 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -10174,7 +10174,7 @@ static void configuration_facade_real_set_printing_images_per_page (Configuratio #line 1462 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 10172 "ConfigurationInterfaces.c" - goto __catch174_configuration_error; + goto __catch176_configuration_error; } #line 1462 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -10185,8 +10185,8 @@ static void configuration_facade_real_set_printing_images_per_page (Configuratio #line 10181 "ConfigurationInterfaces.c" } } - goto __finally174; - __catch174_configuration_error: + goto __finally176; + __catch176_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -10202,7 +10202,7 @@ static void configuration_facade_real_set_printing_images_per_page (Configuratio _g_error_free0 (err); #line 10199 "ConfigurationInterfaces.c" } - __finally174: + __finally176: #line 1461 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1461 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -10251,7 +10251,7 @@ static gboolean configuration_facade_real_get_printing_match_aspect_ratio (Confi #line 1474 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 10249 "ConfigurationInterfaces.c" - goto __catch175_configuration_error; + goto __catch177_configuration_error; } #line 1474 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -10267,8 +10267,8 @@ static gboolean configuration_facade_real_get_printing_match_aspect_ratio (Confi return result; #line 10264 "ConfigurationInterfaces.c" } - goto __finally175; - __catch175_configuration_error: + goto __finally177; + __catch177_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -10288,7 +10288,7 @@ static gboolean configuration_facade_real_get_printing_match_aspect_ratio (Confi return result; #line 10285 "ConfigurationInterfaces.c" } - __finally175: + __finally177: #line 1473 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 1473 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -10329,7 +10329,7 @@ static void configuration_facade_real_set_printing_match_aspect_ratio (Configura #line 1484 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 10327 "ConfigurationInterfaces.c" - goto __catch176_configuration_error; + goto __catch178_configuration_error; } #line 1484 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -10340,8 +10340,8 @@ static void configuration_facade_real_set_printing_match_aspect_ratio (Configura #line 10336 "ConfigurationInterfaces.c" } } - goto __finally176; - __catch176_configuration_error: + goto __finally178; + __catch178_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -10357,7 +10357,7 @@ static void configuration_facade_real_set_printing_match_aspect_ratio (Configura _g_error_free0 (err); #line 10354 "ConfigurationInterfaces.c" } - __finally176: + __finally178: #line 1483 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1483 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -10406,7 +10406,7 @@ static gboolean configuration_facade_real_get_printing_print_titles (Configurati #line 1496 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 10404 "ConfigurationInterfaces.c" - goto __catch177_configuration_error; + goto __catch179_configuration_error; } #line 1496 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -10422,8 +10422,8 @@ static gboolean configuration_facade_real_get_printing_print_titles (Configurati return result; #line 10419 "ConfigurationInterfaces.c" } - goto __finally177; - __catch177_configuration_error: + goto __finally179; + __catch179_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -10443,7 +10443,7 @@ static gboolean configuration_facade_real_get_printing_print_titles (Configurati return result; #line 10440 "ConfigurationInterfaces.c" } - __finally177: + __finally179: #line 1495 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 1495 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -10484,7 +10484,7 @@ static void configuration_facade_real_set_printing_print_titles (ConfigurationFa #line 1506 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 10482 "ConfigurationInterfaces.c" - goto __catch178_configuration_error; + goto __catch180_configuration_error; } #line 1506 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -10495,8 +10495,8 @@ static void configuration_facade_real_set_printing_print_titles (ConfigurationFa #line 10491 "ConfigurationInterfaces.c" } } - goto __finally178; - __catch178_configuration_error: + goto __finally180; + __catch180_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -10512,7 +10512,7 @@ static void configuration_facade_real_set_printing_print_titles (ConfigurationFa _g_error_free0 (err); #line 10509 "ConfigurationInterfaces.c" } - __finally178: + __finally180: #line 1505 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1505 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -10561,7 +10561,7 @@ static gint configuration_facade_real_get_printing_size_selection (Configuration #line 1518 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 10559 "ConfigurationInterfaces.c" - goto __catch179_configuration_error; + goto __catch181_configuration_error; } #line 1518 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -10577,8 +10577,8 @@ static gint configuration_facade_real_get_printing_size_selection (Configuration return result; #line 10574 "ConfigurationInterfaces.c" } - goto __finally179; - __catch179_configuration_error: + goto __finally181; + __catch181_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -10598,7 +10598,7 @@ static gint configuration_facade_real_get_printing_size_selection (Configuration return result; #line 10595 "ConfigurationInterfaces.c" } - __finally179: + __finally181: #line 1517 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 1517 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -10639,7 +10639,7 @@ static void configuration_facade_real_set_printing_size_selection (Configuration #line 1528 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 10637 "ConfigurationInterfaces.c" - goto __catch180_configuration_error; + goto __catch182_configuration_error; } #line 1528 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -10650,8 +10650,8 @@ static void configuration_facade_real_set_printing_size_selection (Configuration #line 10646 "ConfigurationInterfaces.c" } } - goto __finally180; - __catch180_configuration_error: + goto __finally182; + __catch182_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -10667,7 +10667,7 @@ static void configuration_facade_real_set_printing_size_selection (Configuration _g_error_free0 (err); #line 10664 "ConfigurationInterfaces.c" } - __finally180: + __finally182: #line 1527 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1527 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -10717,7 +10717,7 @@ static gchar* configuration_facade_real_get_printing_titles_font (ConfigurationF #line 1540 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 10715 "ConfigurationInterfaces.c" - goto __catch181_configuration_error; + goto __catch183_configuration_error; } #line 1540 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -10739,8 +10739,8 @@ static gchar* configuration_facade_real_get_printing_titles_font (ConfigurationF return result; #line 10736 "ConfigurationInterfaces.c" } - goto __finally181; - __catch181_configuration_error: + goto __finally183; + __catch183_configuration_error: { GError* err = NULL; GError* _tmp6_ = NULL; @@ -10763,7 +10763,7 @@ static gchar* configuration_facade_real_get_printing_titles_font (ConfigurationF return result; #line 10760 "ConfigurationInterfaces.c" } - __finally181: + __finally183: #line 1539 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 1539 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -10807,7 +10807,7 @@ static void configuration_facade_real_set_printing_titles_font (ConfigurationFac #line 1552 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 10805 "ConfigurationInterfaces.c" - goto __catch182_configuration_error; + goto __catch184_configuration_error; } #line 1552 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -10818,8 +10818,8 @@ static void configuration_facade_real_set_printing_titles_font (ConfigurationFac #line 10814 "ConfigurationInterfaces.c" } } - goto __finally182; - __catch182_configuration_error: + goto __finally184; + __catch184_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -10835,7 +10835,7 @@ static void configuration_facade_real_set_printing_titles_font (ConfigurationFac _g_error_free0 (err); #line 10832 "ConfigurationInterfaces.c" } - __finally182: + __finally184: #line 1551 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1551 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -10884,7 +10884,7 @@ static gboolean configuration_facade_real_get_show_welcome_dialog (Configuration #line 1563 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 10882 "ConfigurationInterfaces.c" - goto __catch183_configuration_error; + goto __catch185_configuration_error; } #line 1563 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -10900,8 +10900,8 @@ static gboolean configuration_facade_real_get_show_welcome_dialog (Configuration return result; #line 10897 "ConfigurationInterfaces.c" } - goto __finally183; - __catch183_configuration_error: + goto __finally185; + __catch185_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -10921,7 +10921,7 @@ static gboolean configuration_facade_real_get_show_welcome_dialog (Configuration return result; #line 10918 "ConfigurationInterfaces.c" } - __finally183: + __finally185: #line 1562 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 1562 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -10962,7 +10962,7 @@ static void configuration_facade_real_set_show_welcome_dialog (ConfigurationFaca #line 1573 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 10960 "ConfigurationInterfaces.c" - goto __catch184_configuration_error; + goto __catch186_configuration_error; } #line 1573 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -10973,8 +10973,8 @@ static void configuration_facade_real_set_show_welcome_dialog (ConfigurationFaca #line 10969 "ConfigurationInterfaces.c" } } - goto __finally184; - __catch184_configuration_error: + goto __finally186; + __catch186_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -10990,7 +10990,7 @@ static void configuration_facade_real_set_show_welcome_dialog (ConfigurationFaca _g_error_free0 (err); #line 10987 "ConfigurationInterfaces.c" } - __finally184: + __finally186: #line 1572 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1572 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -11039,7 +11039,7 @@ static gint configuration_facade_real_get_sidebar_position (ConfigurationFacade* #line 1585 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 11037 "ConfigurationInterfaces.c" - goto __catch185_configuration_error; + goto __catch187_configuration_error; } #line 1585 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -11055,8 +11055,8 @@ static gint configuration_facade_real_get_sidebar_position (ConfigurationFacade* return result; #line 11052 "ConfigurationInterfaces.c" } - goto __finally185; - __catch185_configuration_error: + goto __finally187; + __catch187_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -11076,7 +11076,7 @@ static gint configuration_facade_real_get_sidebar_position (ConfigurationFacade* return result; #line 11073 "ConfigurationInterfaces.c" } - __finally185: + __finally187: #line 1584 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 1584 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -11117,7 +11117,7 @@ static void configuration_facade_real_set_sidebar_position (ConfigurationFacade* #line 1595 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 11115 "ConfigurationInterfaces.c" - goto __catch186_configuration_error; + goto __catch188_configuration_error; } #line 1595 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -11128,8 +11128,8 @@ static void configuration_facade_real_set_sidebar_position (ConfigurationFacade* #line 11124 "ConfigurationInterfaces.c" } } - goto __finally186; - __catch186_configuration_error: + goto __finally188; + __catch188_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -11145,7 +11145,7 @@ static void configuration_facade_real_set_sidebar_position (ConfigurationFacade* _g_error_free0 (err); #line 11142 "ConfigurationInterfaces.c" } - __finally186: + __finally188: #line 1594 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1594 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -11194,7 +11194,7 @@ static gdouble configuration_facade_real_get_slideshow_delay (ConfigurationFacad #line 1606 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 11192 "ConfigurationInterfaces.c" - goto __catch187_configuration_error; + goto __catch189_configuration_error; } #line 1606 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -11210,8 +11210,8 @@ static gdouble configuration_facade_real_get_slideshow_delay (ConfigurationFacad return result; #line 11207 "ConfigurationInterfaces.c" } - goto __finally187; - __catch187_configuration_error: + goto __finally189; + __catch189_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -11231,7 +11231,7 @@ static gdouble configuration_facade_real_get_slideshow_delay (ConfigurationFacad return result; #line 11228 "ConfigurationInterfaces.c" } - __finally187: + __finally189: #line 1605 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 1605 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -11272,7 +11272,7 @@ static void configuration_facade_real_set_slideshow_delay (ConfigurationFacade* #line 1616 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 11270 "ConfigurationInterfaces.c" - goto __catch188_configuration_error; + goto __catch190_configuration_error; } #line 1616 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -11283,8 +11283,8 @@ static void configuration_facade_real_set_slideshow_delay (ConfigurationFacade* #line 11279 "ConfigurationInterfaces.c" } } - goto __finally188; - __catch188_configuration_error: + goto __finally190; + __catch190_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -11300,7 +11300,7 @@ static void configuration_facade_real_set_slideshow_delay (ConfigurationFacade* _g_error_free0 (err); #line 11297 "ConfigurationInterfaces.c" } - __finally188: + __finally190: #line 1615 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1615 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -11349,7 +11349,7 @@ static gdouble configuration_facade_real_get_slideshow_transition_delay (Configu #line 1627 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 11347 "ConfigurationInterfaces.c" - goto __catch189_configuration_error; + goto __catch191_configuration_error; } #line 1627 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -11365,8 +11365,8 @@ static gdouble configuration_facade_real_get_slideshow_transition_delay (Configu return result; #line 11362 "ConfigurationInterfaces.c" } - goto __finally189; - __catch189_configuration_error: + goto __finally191; + __catch191_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -11386,7 +11386,7 @@ static gdouble configuration_facade_real_get_slideshow_transition_delay (Configu return result; #line 11383 "ConfigurationInterfaces.c" } - __finally189: + __finally191: #line 1626 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 1626 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -11427,7 +11427,7 @@ static void configuration_facade_real_set_slideshow_transition_delay (Configurat #line 1638 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 11425 "ConfigurationInterfaces.c" - goto __catch190_configuration_error; + goto __catch192_configuration_error; } #line 1638 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -11438,8 +11438,8 @@ static void configuration_facade_real_set_slideshow_transition_delay (Configurat #line 11434 "ConfigurationInterfaces.c" } } - goto __finally190; - __catch190_configuration_error: + goto __finally192; + __catch192_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -11455,7 +11455,7 @@ static void configuration_facade_real_set_slideshow_transition_delay (Configurat _g_error_free0 (err); #line 11452 "ConfigurationInterfaces.c" } - __finally190: + __finally192: #line 1637 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1637 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -11505,7 +11505,7 @@ static gchar* configuration_facade_real_get_slideshow_transition_effect_id (Conf #line 1650 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 11503 "ConfigurationInterfaces.c" - goto __catch191_configuration_error; + goto __catch193_configuration_error; } #line 1650 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -11527,8 +11527,8 @@ static gchar* configuration_facade_real_get_slideshow_transition_effect_id (Conf return result; #line 11524 "ConfigurationInterfaces.c" } - goto __finally191; - __catch191_configuration_error: + goto __finally193; + __catch193_configuration_error: { GError* err = NULL; GError* _tmp6_ = NULL; @@ -11551,7 +11551,7 @@ static gchar* configuration_facade_real_get_slideshow_transition_effect_id (Conf return result; #line 11548 "ConfigurationInterfaces.c" } - __finally191: + __finally193: #line 1649 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 1649 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -11595,7 +11595,7 @@ static void configuration_facade_real_set_slideshow_transition_effect_id (Config #line 1663 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 11593 "ConfigurationInterfaces.c" - goto __catch192_configuration_error; + goto __catch194_configuration_error; } #line 1663 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -11606,8 +11606,8 @@ static void configuration_facade_real_set_slideshow_transition_effect_id (Config #line 11602 "ConfigurationInterfaces.c" } } - goto __finally192; - __catch192_configuration_error: + goto __finally194; + __catch194_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -11623,7 +11623,7 @@ static void configuration_facade_real_set_slideshow_transition_effect_id (Config _g_error_free0 (err); #line 11620 "ConfigurationInterfaces.c" } - __finally192: + __finally194: #line 1662 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1662 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -11672,7 +11672,7 @@ static gboolean configuration_facade_real_get_slideshow_show_title (Configuratio #line 1675 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 11670 "ConfigurationInterfaces.c" - goto __catch193_configuration_error; + goto __catch195_configuration_error; } #line 1675 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -11688,8 +11688,8 @@ static gboolean configuration_facade_real_get_slideshow_show_title (Configuratio return result; #line 11685 "ConfigurationInterfaces.c" } - goto __finally193; - __catch193_configuration_error: + goto __finally195; + __catch195_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -11709,7 +11709,7 @@ static gboolean configuration_facade_real_get_slideshow_show_title (Configuratio return result; #line 11706 "ConfigurationInterfaces.c" } - __finally193: + __finally195: #line 1674 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 1674 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -11750,7 +11750,7 @@ static void configuration_facade_real_set_slideshow_show_title (ConfigurationFac #line 1685 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 11748 "ConfigurationInterfaces.c" - goto __catch194_configuration_error; + goto __catch196_configuration_error; } #line 1685 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -11761,8 +11761,8 @@ static void configuration_facade_real_set_slideshow_show_title (ConfigurationFac #line 11757 "ConfigurationInterfaces.c" } } - goto __finally194; - __catch194_configuration_error: + goto __finally196; + __catch196_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -11778,7 +11778,7 @@ static void configuration_facade_real_set_slideshow_show_title (ConfigurationFac _g_error_free0 (err); #line 11775 "ConfigurationInterfaces.c" } - __finally194: + __finally196: #line 1684 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1684 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -11804,13 +11804,13 @@ void configuration_facade_set_slideshow_show_title (ConfigurationFacade* self, g static void g_time_local (time_t time, struct tm* result) { struct tm _result_ = {0}; struct tm _tmp0_ = {0}; -#line 2701 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2750 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" localtime_r (&time, &_tmp0_); -#line 2701 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2750 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _result_ = _tmp0_; -#line 2702 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2751 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" *result = _result_; -#line 2702 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2751 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return; #line 11811 "ConfigurationInterfaces.c" } @@ -11828,35 +11828,35 @@ static gchar* g_time_format (struct tm *self, const gchar* format) { gchar* _tmp3_ = NULL; gint _tmp3__length1 = 0; gchar* _tmp4_ = NULL; -#line 2709 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2758 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (format != NULL, NULL); -#line 2710 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2759 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = g_new0 (gchar, 64); -#line 2710 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2759 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" buffer = _tmp0_; -#line 2710 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2759 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" buffer_length1 = 64; -#line 2710 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2759 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _buffer_size_ = buffer_length1; -#line 2711 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2760 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = buffer; -#line 2711 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2760 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1__length1 = buffer_length1; -#line 2711 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2760 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = format; -#line 2711 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2760 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" strftime (_tmp1_, _tmp1__length1, _tmp2_, &(*self)); -#line 2712 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2761 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = buffer; -#line 2712 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2761 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3__length1 = buffer_length1; -#line 2712 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2761 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = g_strdup ((const gchar*) _tmp3_); -#line 2712 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2761 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp4_; -#line 2712 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2761 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" buffer = (g_free (buffer), NULL); -#line 2712 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2761 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 11857 "ConfigurationInterfaces.c" } @@ -11888,7 +11888,7 @@ static gboolean configuration_facade_real_get_use_24_hour_time (ConfigurationFac #line 1696 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 11886 "ConfigurationInterfaces.c" - goto __catch195_configuration_error; + goto __catch197_configuration_error; } #line 1696 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -11904,8 +11904,8 @@ static gboolean configuration_facade_real_get_use_24_hour_time (ConfigurationFac return result; #line 11901 "ConfigurationInterfaces.c" } - goto __finally195; - __catch195_configuration_error: + goto __finally197; + __catch197_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -11942,7 +11942,7 @@ static gboolean configuration_facade_real_get_use_24_hour_time (ConfigurationFac return result; #line 11939 "ConfigurationInterfaces.c" } - __finally195: + __finally197: #line 1695 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 1695 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -11983,7 +11983,7 @@ static void configuration_facade_real_set_use_24_hour_time (ConfigurationFacade* #line 1708 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 11981 "ConfigurationInterfaces.c" - goto __catch196_configuration_error; + goto __catch198_configuration_error; } #line 1708 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -11994,8 +11994,8 @@ static void configuration_facade_real_set_use_24_hour_time (ConfigurationFacade* #line 11990 "ConfigurationInterfaces.c" } } - goto __finally196; - __catch196_configuration_error: + goto __finally198; + __catch198_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -12011,7 +12011,7 @@ static void configuration_facade_real_set_use_24_hour_time (ConfigurationFacade* _g_error_free0 (err); #line 12008 "ConfigurationInterfaces.c" } - __finally196: + __finally198: #line 1707 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1707 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -12060,7 +12060,7 @@ static gboolean configuration_facade_real_get_use_lowercase_filenames (Configura #line 1719 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 12058 "ConfigurationInterfaces.c" - goto __catch197_configuration_error; + goto __catch199_configuration_error; } #line 1719 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -12076,8 +12076,8 @@ static gboolean configuration_facade_real_get_use_lowercase_filenames (Configura return result; #line 12073 "ConfigurationInterfaces.c" } - goto __finally197; - __catch197_configuration_error: + goto __finally199; + __catch199_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -12097,7 +12097,7 @@ static gboolean configuration_facade_real_get_use_lowercase_filenames (Configura return result; #line 12094 "ConfigurationInterfaces.c" } - __finally197: + __finally199: #line 1718 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 1718 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -12138,7 +12138,7 @@ static void configuration_facade_real_set_use_lowercase_filenames (Configuration #line 1729 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 12136 "ConfigurationInterfaces.c" - goto __catch198_configuration_error; + goto __catch200_configuration_error; } #line 1729 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -12149,8 +12149,8 @@ static void configuration_facade_real_set_use_lowercase_filenames (Configuration #line 12145 "ConfigurationInterfaces.c" } } - goto __finally198; - __catch198_configuration_error: + goto __finally200; + __catch200_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -12166,7 +12166,7 @@ static void configuration_facade_real_set_use_lowercase_filenames (Configuration _g_error_free0 (err); #line 12163 "ConfigurationInterfaces.c" } - __finally198: + __finally200: #line 1728 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1728 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -12215,7 +12215,7 @@ static gint configuration_facade_real_get_video_interpreter_state_cookie (Config #line 1740 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 12213 "ConfigurationInterfaces.c" - goto __catch199_configuration_error; + goto __catch201_configuration_error; } #line 1740 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -12231,8 +12231,8 @@ static gint configuration_facade_real_get_video_interpreter_state_cookie (Config return result; #line 12228 "ConfigurationInterfaces.c" } - goto __finally199; - __catch199_configuration_error: + goto __finally201; + __catch201_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -12252,7 +12252,7 @@ static gint configuration_facade_real_get_video_interpreter_state_cookie (Config return result; #line 12249 "ConfigurationInterfaces.c" } - __finally199: + __finally201: #line 1739 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 1739 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" @@ -12293,7 +12293,7 @@ static void configuration_facade_real_set_video_interpreter_state_cookie (Config #line 1751 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 12291 "ConfigurationInterfaces.c" - goto __catch200_configuration_error; + goto __catch202_configuration_error; } #line 1751 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -12304,8 +12304,8 @@ static void configuration_facade_real_set_video_interpreter_state_cookie (Config #line 12300 "ConfigurationInterfaces.c" } } - goto __finally200; - __catch200_configuration_error: + goto __finally202; + __catch202_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -12321,7 +12321,7 @@ static void configuration_facade_real_set_video_interpreter_state_cookie (Config _g_error_free0 (err); #line 12318 "ConfigurationInterfaces.c" } - __finally200: + __finally202: #line 1750 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1750 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" diff --git a/src/config/GSettingsEngine.c b/src/config/GSettingsEngine.c index 10e5c92..6d9dfe0 100644 --- a/src/config/GSettingsEngine.c +++ b/src/config/GSettingsEngine.c @@ -1,4 +1,4 @@ -/* GSettingsEngine.c generated by valac 0.32.1, the Vala compiler +/* GSettingsEngine.c generated by valac 0.34.4, the Vala compiler * generated from GSettingsEngine.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -3338,11 +3338,11 @@ static void gsettings_configuration_engine_reset_gs_to_default (GSettingsConfigu static gchar* string_replace (const gchar* self, const gchar* old, const gchar* replacement) { gchar* result = NULL; GError * _inner_error_ = NULL; -#line 1380 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1380 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, NULL); -#line 1380 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1380 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (old != NULL, NULL); -#line 1380 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1380 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (replacement != NULL, NULL); #line 3348 "GSettingsEngine.c" { @@ -3357,98 +3357,98 @@ static gchar* string_replace (const gchar* self, const gchar* old, const gchar* const gchar* _tmp7_ = NULL; gchar* _tmp8_ = NULL; gchar* _tmp9_ = NULL; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = old; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = g_regex_escape_string (_tmp0_, -1); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = _tmp1_; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = g_regex_new (_tmp2_, 0, 0, &_inner_error_); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = _tmp3_; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_free0 (_tmp2_); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" regex = _tmp4_; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_inner_error_->domain == G_REGEX_ERROR) { #line 3379 "GSettingsEngine.c" - goto __catch201_g_regex_error; + goto __catch203_g_regex_error; } -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_clear_error (&_inner_error_); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return NULL; #line 3388 "GSettingsEngine.c" } -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp6_ = regex; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp7_ = replacement; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp8_ = g_regex_replace_literal (_tmp6_, self, (gssize) -1, 0, _tmp7_, 0, &_inner_error_); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = _tmp8_; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_regex_unref0 (regex); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_inner_error_->domain == G_REGEX_ERROR) { #line 3404 "GSettingsEngine.c" - goto __catch201_g_regex_error; + goto __catch203_g_regex_error; } -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_regex_unref0 (regex); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_clear_error (&_inner_error_); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return NULL; #line 3415 "GSettingsEngine.c" } -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp9_ = _tmp5_; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = NULL; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp9_; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_free0 (_tmp5_); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_regex_unref0 (regex); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 3429 "GSettingsEngine.c" } - goto __finally201; - __catch201_g_regex_error: + goto __finally203; + __catch203_g_regex_error: { GError* e = NULL; -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" e = _inner_error_; -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _inner_error_ = NULL; -#line 1385 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1385 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_assert_not_reached (); -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_error_free0 (e); #line 3443 "GSettingsEngine.c" } - __finally201: -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" + __finally203: +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_clear_error (&_inner_error_); -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return NULL; #line 3454 "GSettingsEngine.c" } @@ -3460,19 +3460,19 @@ static gchar* string_strip (const gchar* self) { gchar* _result_ = NULL; gchar* _tmp0_ = NULL; const gchar* _tmp1_ = NULL; -#line 1207 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1207 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, NULL); -#line 1208 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1208 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = g_strdup (self); -#line 1208 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1208 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _result_ = _tmp0_; -#line 1209 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1209 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = _result_; -#line 1209 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1209 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_strstrip (_tmp1_); -#line 1210 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1210 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _result_; -#line 1210 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1210 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 3478 "GSettingsEngine.c" } @@ -3941,37 +3941,37 @@ static glong string_strnlen (gchar* str, glong maxlen) { glong _tmp1_ = 0L; gchar* _tmp2_ = NULL; gchar* _tmp3_ = NULL; -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = str; -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = maxlen; -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = memchr (_tmp0_, 0, (gsize) _tmp1_); -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" end = _tmp2_; -#line 1296 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1296 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = end; -#line 1296 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1296 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp3_ == NULL) { #line 3957 "GSettingsEngine.c" glong _tmp4_ = 0L; -#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = maxlen; -#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp4_; -#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 3965 "GSettingsEngine.c" } else { gchar* _tmp5_ = NULL; gchar* _tmp6_ = NULL; -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = end; -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp6_ = str; -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = (glong) (_tmp5_ - _tmp6_); -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 3977 "GSettingsEngine.c" } @@ -3991,112 +3991,112 @@ static gchar* string_substring (const gchar* self, glong offset, glong len) { glong _tmp20_ = 0L; glong _tmp21_ = 0L; gchar* _tmp22_ = NULL; -#line 1306 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1306 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, NULL); -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = offset; -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp1_ >= ((glong) 0)) { #line 4001 "GSettingsEngine.c" glong _tmp2_ = 0L; -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = len; -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = _tmp2_ >= ((glong) 0); #line 4007 "GSettingsEngine.c" } else { -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = FALSE; #line 4011 "GSettingsEngine.c" } -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp0_) { #line 4015 "GSettingsEngine.c" glong _tmp3_ = 0L; glong _tmp4_ = 0L; glong _tmp5_ = 0L; -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = offset; -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = len; -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = string_strnlen ((gchar*) self, _tmp3_ + _tmp4_); -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" string_length = _tmp5_; #line 4027 "GSettingsEngine.c" } else { gint _tmp6_ = 0; gint _tmp7_ = 0; -#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp6_ = strlen (self); -#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp7_ = _tmp6_; -#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" string_length = (glong) _tmp7_; #line 4037 "GSettingsEngine.c" } -#line 1315 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1315 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp8_ = offset; -#line 1315 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1315 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp8_ < ((glong) 0)) { #line 4043 "GSettingsEngine.c" glong _tmp9_ = 0L; glong _tmp10_ = 0L; glong _tmp11_ = 0L; -#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp9_ = string_length; -#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp10_ = offset; -#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" offset = _tmp9_ + _tmp10_; -#line 1317 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1317 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp11_ = offset; -#line 1317 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1317 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (_tmp11_ >= ((glong) 0), NULL); #line 4057 "GSettingsEngine.c" } else { glong _tmp12_ = 0L; glong _tmp13_ = 0L; -#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp12_ = offset; -#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp13_ = string_length; -#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (_tmp12_ <= _tmp13_, NULL); #line 4067 "GSettingsEngine.c" } -#line 1321 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1321 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp14_ = len; -#line 1321 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1321 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp14_ < ((glong) 0)) { #line 4073 "GSettingsEngine.c" glong _tmp15_ = 0L; glong _tmp16_ = 0L; -#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp15_ = string_length; -#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp16_ = offset; -#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" len = _tmp15_ - _tmp16_; #line 4082 "GSettingsEngine.c" } -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp17_ = offset; -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp18_ = len; -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp19_ = string_length; -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail ((_tmp17_ + _tmp18_) <= _tmp19_, NULL); -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp20_ = offset; -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp21_ = len; -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp22_ = g_strndup (((gchar*) self) + _tmp20_, (gsize) _tmp21_); -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp22_; -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 4102 "GSettingsEngine.c" } @@ -4600,7 +4600,7 @@ static gboolean gsettings_configuration_engine_real_get_plugin_bool (Configurati #line 373 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 4603 "GSettingsEngine.c" - goto __catch202_configuration_error; + goto __catch204_configuration_error; } #line 373 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" _g_free0 (schema_name); @@ -4620,8 +4620,8 @@ static gboolean gsettings_configuration_engine_real_get_plugin_bool (Configurati return result; #line 4622 "GSettingsEngine.c" } - goto __finally202; - __catch202_configuration_error: + goto __finally204; + __catch204_configuration_error: { GError* err = NULL; GError* _tmp9_ = NULL; @@ -4649,7 +4649,7 @@ static gboolean gsettings_configuration_engine_real_get_plugin_bool (Configurati return result; #line 4651 "GSettingsEngine.c" } - __finally202: + __finally204: #line 372 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" _g_free0 (schema_name); #line 372 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" @@ -4708,7 +4708,7 @@ static void gsettings_configuration_engine_real_set_plugin_bool (ConfigurationEn #line 384 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 4711 "GSettingsEngine.c" - goto __catch203_configuration_error; + goto __catch205_configuration_error; } #line 384 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" _g_free0 (schema_name); @@ -4721,8 +4721,8 @@ static void gsettings_configuration_engine_real_set_plugin_bool (ConfigurationEn #line 4722 "GSettingsEngine.c" } } - goto __finally203; - __catch203_configuration_error: + goto __finally205; + __catch205_configuration_error: { GError* err = NULL; GError* _tmp7_ = NULL; @@ -4741,7 +4741,7 @@ static void gsettings_configuration_engine_real_set_plugin_bool (ConfigurationEn _g_error_free0 (err); #line 4743 "GSettingsEngine.c" } - __finally203: + __finally205: #line 383 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 383 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" @@ -4811,7 +4811,7 @@ static gdouble gsettings_configuration_engine_real_get_plugin_double (Configurat #line 394 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 4814 "GSettingsEngine.c" - goto __catch204_configuration_error; + goto __catch206_configuration_error; } #line 394 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" _g_free0 (schema_name); @@ -4831,8 +4831,8 @@ static gdouble gsettings_configuration_engine_real_get_plugin_double (Configurat return result; #line 4833 "GSettingsEngine.c" } - goto __finally204; - __catch204_configuration_error: + goto __finally206; + __catch206_configuration_error: { GError* err = NULL; GError* _tmp9_ = NULL; @@ -4860,7 +4860,7 @@ static gdouble gsettings_configuration_engine_real_get_plugin_double (Configurat return result; #line 4862 "GSettingsEngine.c" } - __finally204: + __finally206: #line 393 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" _g_free0 (schema_name); #line 393 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" @@ -4919,7 +4919,7 @@ static void gsettings_configuration_engine_real_set_plugin_double (Configuration #line 405 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 4922 "GSettingsEngine.c" - goto __catch205_configuration_error; + goto __catch207_configuration_error; } #line 405 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" _g_free0 (schema_name); @@ -4932,8 +4932,8 @@ static void gsettings_configuration_engine_real_set_plugin_double (Configuration #line 4933 "GSettingsEngine.c" } } - goto __finally205; - __catch205_configuration_error: + goto __finally207; + __catch207_configuration_error: { GError* err = NULL; GError* _tmp7_ = NULL; @@ -4952,7 +4952,7 @@ static void gsettings_configuration_engine_real_set_plugin_double (Configuration _g_error_free0 (err); #line 4954 "GSettingsEngine.c" } - __finally205: + __finally207: #line 404 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 404 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" @@ -5022,7 +5022,7 @@ static gint gsettings_configuration_engine_real_get_plugin_int (ConfigurationEng #line 415 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 5025 "GSettingsEngine.c" - goto __catch206_configuration_error; + goto __catch208_configuration_error; } #line 415 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" _g_free0 (schema_name); @@ -5042,8 +5042,8 @@ static gint gsettings_configuration_engine_real_get_plugin_int (ConfigurationEng return result; #line 5044 "GSettingsEngine.c" } - goto __finally206; - __catch206_configuration_error: + goto __finally208; + __catch208_configuration_error: { GError* err = NULL; GError* _tmp9_ = NULL; @@ -5071,7 +5071,7 @@ static gint gsettings_configuration_engine_real_get_plugin_int (ConfigurationEng return result; #line 5073 "GSettingsEngine.c" } - __finally206: + __finally208: #line 414 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" _g_free0 (schema_name); #line 414 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" @@ -5130,7 +5130,7 @@ static void gsettings_configuration_engine_real_set_plugin_int (ConfigurationEng #line 426 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 5133 "GSettingsEngine.c" - goto __catch207_configuration_error; + goto __catch209_configuration_error; } #line 426 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" _g_free0 (schema_name); @@ -5143,8 +5143,8 @@ static void gsettings_configuration_engine_real_set_plugin_int (ConfigurationEng #line 5144 "GSettingsEngine.c" } } - goto __finally207; - __catch207_configuration_error: + goto __finally209; + __catch209_configuration_error: { GError* err = NULL; GError* _tmp7_ = NULL; @@ -5163,7 +5163,7 @@ static void gsettings_configuration_engine_real_set_plugin_int (ConfigurationEng _g_error_free0 (err); #line 5165 "GSettingsEngine.c" } - __finally207: + __finally209: #line 425 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 425 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" @@ -5234,7 +5234,7 @@ static gchar* gsettings_configuration_engine_real_get_plugin_string (Configurati #line 436 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 5237 "GSettingsEngine.c" - goto __catch208_configuration_error; + goto __catch210_configuration_error; } #line 436 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" _g_free0 (schema_name); @@ -5260,8 +5260,8 @@ static gchar* gsettings_configuration_engine_real_get_plugin_string (Configurati return result; #line 5262 "GSettingsEngine.c" } - goto __finally208; - __catch208_configuration_error: + goto __finally210; + __catch210_configuration_error: { GError* err = NULL; GError* _tmp10_ = NULL; @@ -5292,7 +5292,7 @@ static gchar* gsettings_configuration_engine_real_get_plugin_string (Configurati return result; #line 5294 "GSettingsEngine.c" } - __finally208: + __finally210: #line 435 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" _g_free0 (schema_name); #line 435 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" @@ -5351,7 +5351,7 @@ static void gsettings_configuration_engine_real_set_plugin_string (Configuration #line 447 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 5354 "GSettingsEngine.c" - goto __catch209_configuration_error; + goto __catch211_configuration_error; } #line 447 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" _g_free0 (schema_name); @@ -5364,8 +5364,8 @@ static void gsettings_configuration_engine_real_set_plugin_string (Configuration #line 5365 "GSettingsEngine.c" } } - goto __finally209; - __catch209_configuration_error: + goto __finally211; + __catch211_configuration_error: { GError* err = NULL; GError* _tmp7_ = NULL; @@ -5384,7 +5384,7 @@ static void gsettings_configuration_engine_real_set_plugin_string (Configuration _g_error_free0 (err); #line 5386 "GSettingsEngine.c" } - __finally209: + __finally211: #line 446 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 446 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" @@ -5446,7 +5446,7 @@ static void gsettings_configuration_engine_real_unset_plugin_key (ConfigurationE #line 457 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 5449 "GSettingsEngine.c" - goto __catch210_configuration_error; + goto __catch212_configuration_error; } #line 457 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" _g_free0 (schema_name); @@ -5459,8 +5459,8 @@ static void gsettings_configuration_engine_real_unset_plugin_key (ConfigurationE #line 5460 "GSettingsEngine.c" } } - goto __finally210; - __catch210_configuration_error: + goto __finally212; + __catch212_configuration_error: { GError* err = NULL; GError* _tmp6_ = NULL; @@ -5479,7 +5479,7 @@ static void gsettings_configuration_engine_real_unset_plugin_key (ConfigurationE _g_error_free0 (err); #line 5481 "GSettingsEngine.c" } - __finally210: + __finally212: #line 456 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 456 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" @@ -5529,7 +5529,7 @@ static FuzzyPropertyState gsettings_configuration_engine_real_is_plugin_enabled #line 467 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 5532 "GSettingsEngine.c" - goto __catch211_configuration_error; + goto __catch213_configuration_error; } #line 467 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" _g_free0 (enable_disable_name); @@ -5559,8 +5559,8 @@ static FuzzyPropertyState gsettings_configuration_engine_real_is_plugin_enabled return result; #line 5561 "GSettingsEngine.c" } - goto __finally211; - __catch211_configuration_error: + goto __finally213; + __catch213_configuration_error: { GError* err = NULL; GError* _tmp5_ = NULL; @@ -5585,7 +5585,7 @@ static FuzzyPropertyState gsettings_configuration_engine_real_is_plugin_enabled return result; #line 5587 "GSettingsEngine.c" } - __finally211: + __finally213: #line 466 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" _g_free0 (enable_disable_name); #line 466 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" @@ -5626,7 +5626,7 @@ static void gsettings_configuration_engine_real_set_plugin_enabled (Configuratio #line 479 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" if (_inner_error_->domain == CONFIGURATION_ERROR) { #line 5629 "GSettingsEngine.c" - goto __catch212_configuration_error; + goto __catch214_configuration_error; } #line 479 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" _g_free0 (enable_disable_name); @@ -5639,8 +5639,8 @@ static void gsettings_configuration_engine_real_set_plugin_enabled (Configuratio #line 5640 "GSettingsEngine.c" } } - goto __finally212; - __catch212_configuration_error: + goto __finally214; + __catch214_configuration_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -5659,7 +5659,7 @@ static void gsettings_configuration_engine_real_set_plugin_enabled (Configuratio _g_error_free0 (err); #line 5661 "GSettingsEngine.c" } - __finally212: + __finally214: #line 478 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 478 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" @@ -5712,11 +5712,11 @@ void gsettings_configuration_engine_run_gsettings_migrator (void) { #line 493 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 5715 "GSettingsEngine.c" - goto __catch213_g_error; + goto __catch215_g_error; } } - goto __finally213; - __catch213_g_error: + goto __finally215; + __catch215_g_error: { GError* err = NULL; GError* _tmp6_ = NULL; @@ -5735,7 +5735,7 @@ void gsettings_configuration_engine_run_gsettings_migrator (void) { _g_error_free0 (err); #line 5737 "GSettingsEngine.c" } - __finally213: + __finally215: #line 492 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 492 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" diff --git a/src/core/Alteration.c b/src/core/Alteration.c index 2bb624a..e9e435b 100644 --- a/src/core/Alteration.c +++ b/src/core/Alteration.c @@ -1,4 +1,4 @@ -/* Alteration.c generated by valac 0.32.1, the Vala compiler +/* Alteration.c generated by valac 0.34.4, the Vala compiler * generated from Alteration.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -426,19 +426,19 @@ static gchar* string_strip (const gchar* self) { gchar* _result_ = NULL; gchar* _tmp0_ = NULL; const gchar* _tmp1_ = NULL; -#line 1207 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1207 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, NULL); -#line 1208 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1208 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = g_strdup (self); -#line 1208 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1208 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _result_ = _tmp0_; -#line 1209 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1209 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = _result_; -#line 1209 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1209 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_strstrip (_tmp1_); -#line 1210 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1210 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _result_; -#line 1210 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1210 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 444 "Alteration.c" } diff --git a/src/core/ContainerSourceCollection.c b/src/core/ContainerSourceCollection.c index cd22228..26d26bd 100644 --- a/src/core/ContainerSourceCollection.c +++ b/src/core/ContainerSourceCollection.c @@ -1,4 +1,4 @@ -/* ContainerSourceCollection.c generated by valac 0.32.1, the Vala compiler +/* ContainerSourceCollection.c generated by valac 0.34.4, the Vala compiler * generated from ContainerSourceCollection.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/core/Core.c b/src/core/Core.c index 7fd60d2..7316e4d 100644 --- a/src/core/Core.c +++ b/src/core/Core.c @@ -1,4 +1,4 @@ -/* Core.c generated by valac 0.32.1, the Vala compiler +/* Core.c generated by valac 0.34.4, the Vala compiler * generated from Core.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/core/DataCollection.c b/src/core/DataCollection.c index 7040412..6f03093 100644 --- a/src/core/DataCollection.c +++ b/src/core/DataCollection.c @@ -1,4 +1,4 @@ -/* DataCollection.c generated by valac 0.32.1, the Vala compiler +/* DataCollection.c generated by valac 0.34.4, the Vala compiler * generated from DataCollection.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/core/DataObject.c b/src/core/DataObject.c index 7aaf2eb..372fce2 100644 --- a/src/core/DataObject.c +++ b/src/core/DataObject.c @@ -1,4 +1,4 @@ -/* DataObject.c generated by valac 0.32.1, the Vala compiler +/* DataObject.c generated by valac 0.34.4, the Vala compiler * generated from DataObject.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/core/DataSet.c b/src/core/DataSet.c index 75c2ca2..d0a3119 100644 --- a/src/core/DataSet.c +++ b/src/core/DataSet.c @@ -1,4 +1,4 @@ -/* DataSet.c generated by valac 0.32.1, the Vala compiler +/* DataSet.c generated by valac 0.34.4, the Vala compiler * generated from DataSet.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/core/DataSource.c b/src/core/DataSource.c index cb4dfca..3009d24 100644 --- a/src/core/DataSource.c +++ b/src/core/DataSource.c @@ -1,4 +1,4 @@ -/* DataSource.c generated by valac 0.32.1, the Vala compiler +/* DataSource.c generated by valac 0.34.4, the Vala compiler * generated from DataSource.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -2387,7 +2387,7 @@ gboolean data_source_destroy_orphan (DataSource* self, gboolean delete_backing) #line 370 "/home/jens/Source/shotwell/src/core/DataSource.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 2389 "DataSource.c" - goto __catch47_g_error; + goto __catch49_g_error; } #line 370 "/home/jens/Source/shotwell/src/core/DataSource.vala" ret = _tmp1_; @@ -2409,8 +2409,8 @@ gboolean data_source_destroy_orphan (DataSource* self, gboolean delete_backing) #line 2409 "DataSource.c" } } - goto __finally47; - __catch47_g_error: + goto __finally49; + __catch49_g_error: { GError* err = NULL; gchar* _tmp6_ = NULL; @@ -2439,7 +2439,7 @@ gboolean data_source_destroy_orphan (DataSource* self, gboolean delete_backing) _g_error_free0 (err); #line 2440 "DataSource.c" } - __finally47: + __finally49: #line 369 "/home/jens/Source/shotwell/src/core/DataSource.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 369 "/home/jens/Source/shotwell/src/core/DataSource.vala" @@ -3356,19 +3356,19 @@ static gchar* string_strip (const gchar* self) { gchar* _result_ = NULL; gchar* _tmp0_ = NULL; const gchar* _tmp1_ = NULL; -#line 1207 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1207 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, NULL); -#line 1208 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1208 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = g_strdup (self); -#line 1208 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1208 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _result_ = _tmp0_; -#line 1209 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1209 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = _result_; -#line 1209 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1209 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_strstrip (_tmp1_); -#line 1210 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1210 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _result_; -#line 1210 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1210 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 3373 "DataSource.c" } @@ -3499,17 +3499,17 @@ static gboolean string_contains (const gchar* self, const gchar* needle) { gboolean result = FALSE; const gchar* _tmp0_ = NULL; gchar* _tmp1_ = NULL; -#line 1376 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1376 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, FALSE); -#line 1376 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1376 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (needle != NULL, FALSE); -#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = needle; -#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = strstr ((gchar*) self, (gchar*) _tmp0_); -#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp1_ != NULL; -#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 3514 "DataSource.c" } @@ -3745,15 +3745,15 @@ static gint64 int64_parse (const gchar* str) { gint64 result = 0LL; const gchar* _tmp0_ = NULL; gint64 _tmp1_ = 0LL; -#line 679 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 679 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (str != NULL, 0LL); -#line 680 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 680 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = str; -#line 680 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 680 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = g_ascii_strtoll (_tmp0_, NULL, (guint) 0); -#line 680 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 680 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp1_; -#line 680 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 680 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 3758 "DataSource.c" } diff --git a/src/core/DataSourceTypes.c b/src/core/DataSourceTypes.c index 0abd6e8..ea7d98a 100644 --- a/src/core/DataSourceTypes.c +++ b/src/core/DataSourceTypes.c @@ -1,4 +1,4 @@ -/* DataSourceTypes.c generated by valac 0.32.1, the Vala compiler +/* DataSourceTypes.c generated by valac 0.34.4, the Vala compiler * generated from DataSourceTypes.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/core/DataView.c b/src/core/DataView.c index 40153fc..2e70156 100644 --- a/src/core/DataView.c +++ b/src/core/DataView.c @@ -1,4 +1,4 @@ -/* DataView.c generated by valac 0.32.1, the Vala compiler +/* DataView.c generated by valac 0.34.4, the Vala compiler * generated from DataView.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/core/DataViewTypes.c b/src/core/DataViewTypes.c index 0e55db0..355700d 100644 --- a/src/core/DataViewTypes.c +++ b/src/core/DataViewTypes.c @@ -1,4 +1,4 @@ -/* DataViewTypes.c generated by valac 0.32.1, the Vala compiler +/* DataViewTypes.c generated by valac 0.34.4, the Vala compiler * generated from DataViewTypes.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/core/DatabaseSourceCollection.c b/src/core/DatabaseSourceCollection.c index b83be40..0de87db 100644 --- a/src/core/DatabaseSourceCollection.c +++ b/src/core/DatabaseSourceCollection.c @@ -1,4 +1,4 @@ -/* DatabaseSourceCollection.c generated by valac 0.32.1, the Vala compiler +/* DatabaseSourceCollection.c generated by valac 0.34.4, the Vala compiler * generated from DatabaseSourceCollection.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/core/SourceCollection.c b/src/core/SourceCollection.c index 6321f92..3cca952 100644 --- a/src/core/SourceCollection.c +++ b/src/core/SourceCollection.c @@ -1,4 +1,4 @@ -/* SourceCollection.c generated by valac 0.32.1, the Vala compiler +/* SourceCollection.c generated by valac 0.34.4, the Vala compiler * generated from SourceCollection.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -757,14 +757,14 @@ static gboolean source_collection_destroy_and_delete_source (SourceCollection* s #line 115 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 760 "SourceCollection.c" - goto __catch46_g_error; + goto __catch48_g_error; } #line 115 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" success = _tmp0_; #line 765 "SourceCollection.c" } - goto __finally46; - __catch46_g_error: + goto __finally48; + __catch48_g_error: { GError* err = NULL; #line 114 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" @@ -777,7 +777,7 @@ static gboolean source_collection_destroy_and_delete_source (SourceCollection* s _g_error_free0 (err); #line 779 "SourceCollection.c" } - __finally46: + __finally48: #line 114 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 114 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" diff --git a/src/core/SourceHoldingTank.c b/src/core/SourceHoldingTank.c index ed7d671..eaf1815 100644 --- a/src/core/SourceHoldingTank.c +++ b/src/core/SourceHoldingTank.c @@ -1,4 +1,4 @@ -/* SourceHoldingTank.c generated by valac 0.32.1, the Vala compiler +/* SourceHoldingTank.c generated by valac 0.34.4, the Vala compiler * generated from SourceHoldingTank.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/core/SourceInterfaces.c b/src/core/SourceInterfaces.c index 5cfc5a9..1b3292d 100644 --- a/src/core/SourceInterfaces.c +++ b/src/core/SourceInterfaces.c @@ -1,4 +1,4 @@ -/* SourceInterfaces.c generated by valac 0.32.1, the Vala compiler +/* SourceInterfaces.c generated by valac 0.34.4, the Vala compiler * generated from SourceInterfaces.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -7,7 +7,7 @@ * (version 2.1 or later). See the COPYING file in this distribution. */ /* See the note in MediaInterfaces.vala for some thoughts on the theory of expanding Shotwell's*/ -/* features via interfaces rather than class heirarchies.*/ +/* features via interfaces rather than class hierarchies.*/ /* Indexable DataSources provide raw strings that may be searched against (and, in the future,*/ /* indexed) for free-text search queries. DataSources implementing Indexable must prepare and*/ /* store (i.e. cache) these strings using prepare_indexable_string(s), as preparing the strings*/ diff --git a/src/core/SourceInterfaces.vala b/src/core/SourceInterfaces.vala index b1d1aa6..91a8aca 100644 --- a/src/core/SourceInterfaces.vala +++ b/src/core/SourceInterfaces.vala @@ -5,7 +5,7 @@ */ // See the note in MediaInterfaces.vala for some thoughts on the theory of expanding Shotwell's -// features via interfaces rather than class heirarchies. +// features via interfaces rather than class hierarchies. // Indexable DataSources provide raw strings that may be searched against (and, in the future, // indexed) for free-text search queries. DataSources implementing Indexable must prepare and diff --git a/src/core/Tracker.c b/src/core/Tracker.c index fa66f0e..4a340ab 100644 --- a/src/core/Tracker.c +++ b/src/core/Tracker.c @@ -1,4 +1,4 @@ -/* Tracker.c generated by valac 0.32.1, the Vala compiler +/* Tracker.c generated by valac 0.34.4, the Vala compiler * generated from Tracker.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/core/ViewCollection.c b/src/core/ViewCollection.c index dceff91..fd1e603 100644 --- a/src/core/ViewCollection.c +++ b/src/core/ViewCollection.c @@ -1,4 +1,4 @@ -/* ViewCollection.c generated by valac 0.32.1, the Vala compiler +/* ViewCollection.c generated by valac 0.34.4, the Vala compiler * generated from ViewCollection.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/core/util.c b/src/core/util.c index 0088011..e398d67 100644 --- a/src/core/util.c +++ b/src/core/util.c @@ -1,4 +1,4 @@ -/* util.c generated by valac 0.32.1, the Vala compiler +/* util.c generated by valac 0.34.4, the Vala compiler * generated from util.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/data_imports/DataImportJob.c b/src/data_imports/DataImportJob.c index 1cef36b..68aba6f 100644 --- a/src/data_imports/DataImportJob.c +++ b/src/data_imports/DataImportJob.c @@ -1,4 +1,4 @@ -/* DataImportJob.c generated by valac 0.32.1, the Vala compiler +/* DataImportJob.c generated by valac 0.34.4, the Vala compiler * generated from DataImportJob.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/data_imports/DataImportSource.c b/src/data_imports/DataImportSource.c index 8844716..93664d4 100644 --- a/src/data_imports/DataImportSource.c +++ b/src/data_imports/DataImportSource.c @@ -1,4 +1,4 @@ -/* DataImportSource.c generated by valac 0.32.1, the Vala compiler +/* DataImportSource.c generated by valac 0.34.4, the Vala compiler * generated from DataImportSource.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -364,11 +364,11 @@ SpitDataImportsDataImportSource* spit_data_imports_data_import_source_construct #line 46 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 367 "DataImportSource.c" - goto __catch214_g_error; + goto __catch216_g_error; } } - goto __finally214; - __catch214_g_error: + goto __finally216; + __catch216_g_error: { GError* e = NULL; gchar* _tmp26_ = NULL; @@ -399,7 +399,7 @@ SpitDataImportsDataImportSource* spit_data_imports_data_import_source_construct _g_error_free0 (e); #line 401 "DataImportSource.c" } - __finally214: + __finally216: #line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" @@ -583,7 +583,7 @@ SpitDataImportsDataImportSource* spit_data_imports_data_import_source_construct #line 64 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 586 "DataImportSource.c" - goto __catch215_g_error; + goto __catch217_g_error; } #line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" _tmp57_ = preview_raw; @@ -603,8 +603,8 @@ SpitDataImportsDataImportSource* spit_data_imports_data_import_source_construct preview_raw = (g_free (preview_raw), NULL); #line 605 "DataImportSource.c" } - goto __finally215; - __catch215_g_error: + goto __finally217; + __catch217_g_error: { GError* e = NULL; gchar* _tmp60_ = NULL; @@ -631,7 +631,7 @@ SpitDataImportsDataImportSource* spit_data_imports_data_import_source_construct _g_error_free0 (e); #line 633 "DataImportSource.c" } - __finally215: + __finally217: #line 63 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 63 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" @@ -670,14 +670,14 @@ SpitDataImportsDataImportSource* spit_data_imports_data_import_source_construct #line 75 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 673 "DataImportSource.c" - goto __catch216_g_error; + goto __catch218_g_error; } #line 75 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" self->priv->file_size = _tmp64_; #line 678 "DataImportSource.c" } - goto __finally216; - __catch216_g_error: + goto __finally218; + __catch218_g_error: { GError* e = NULL; gchar* _tmp67_ = NULL; @@ -704,7 +704,7 @@ SpitDataImportsDataImportSource* spit_data_imports_data_import_source_construct _g_error_free0 (e); #line 706 "DataImportSource.c" } - __finally216: + __finally218: #line 74 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 74 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" @@ -742,14 +742,14 @@ SpitDataImportsDataImportSource* spit_data_imports_data_import_source_construct #line 80 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 745 "DataImportSource.c" - goto __catch217_g_error; + goto __catch219_g_error; } #line 80 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" self->priv->modification_time = _tmp71_; #line 750 "DataImportSource.c" } - goto __finally217; - __catch217_g_error: + goto __finally219; + __catch219_g_error: { GError* e = NULL; gchar* _tmp74_ = NULL; @@ -776,7 +776,7 @@ SpitDataImportsDataImportSource* spit_data_imports_data_import_source_construct _g_error_free0 (e); #line 778 "DataImportSource.c" } - __finally217: + __finally219: #line 79 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 79 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" diff --git a/src/data_imports/DataImports.c b/src/data_imports/DataImports.c index 2a1983e..8902b79 100644 --- a/src/data_imports/DataImports.c +++ b/src/data_imports/DataImports.c @@ -1,4 +1,4 @@ -/* DataImports.c generated by valac 0.32.1, the Vala compiler +/* DataImports.c generated by valac 0.34.4, the Vala compiler * generated from DataImports.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -28,7 +28,7 @@ void data_imports_init (GError** error); static void _vala_array_add68 (gchar*** array, int* length, int* size, gchar* value); void plugins_register_extension_point (GType type, const gchar* name, const gchar* icon_name, gchar** core_ids, int core_ids_length1); -#define RESOURCES_IMPORT "shotwell-import" +#define RESOURCES_IMPORT "import" void data_imports_terminate (void); static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func); static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func); diff --git a/src/data_imports/DataImportsPluginHost.c b/src/data_imports/DataImportsPluginHost.c index 8f48c0e..64d9337 100644 --- a/src/data_imports/DataImportsPluginHost.c +++ b/src/data_imports/DataImportsPluginHost.c @@ -1,4 +1,4 @@ -/* DataImportsPluginHost.c generated by valac 0.32.1, the Vala compiler +/* DataImportsPluginHost.c generated by valac 0.34.4, the Vala compiler * generated from DataImportsPluginHost.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/data_imports/DataImportsUI.c b/src/data_imports/DataImportsUI.c index ef4b89a..128ad1c 100644 --- a/src/data_imports/DataImportsUI.c +++ b/src/data_imports/DataImportsUI.c @@ -1,4 +1,4 @@ -/* DataImportsUI.c generated by valac 0.32.1, the Vala compiler +/* DataImportsUI.c generated by valac 0.34.4, the Vala compiler * generated from DataImportsUI.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/db/DatabaseTable.c b/src/db/DatabaseTable.c index d1df4f4..790a6df 100644 --- a/src/db/DatabaseTable.c +++ b/src/db/DatabaseTable.c @@ -1,4 +1,4 @@ -/* DatabaseTable.c generated by valac 0.32.1, the Vala compiler +/* DatabaseTable.c generated by valac 0.34.4, the Vala compiler * generated from DatabaseTable.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -208,7 +208,7 @@ static void database_table_prepare_db (const gchar* filename) { #line 44 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" _g_object_unref0 (file_db); #line 211 "DatabaseTable.c" - goto __catch13_g_error; + goto __catch15_g_error; } #line 45 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" _tmp14_ = info; @@ -241,8 +241,8 @@ static void database_table_prepare_db (const gchar* filename) { _g_object_unref0 (file_db); #line 243 "DatabaseTable.c" } - goto __finally13; - __catch13_g_error: + goto __finally15; + __catch15_g_error: { GError* e = NULL; const gchar* _tmp20_ = NULL; @@ -275,7 +275,7 @@ static void database_table_prepare_db (const gchar* filename) { _g_error_free0 (e); #line 277 "DatabaseTable.c" } - __finally13: + __finally15: #line 42 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 42 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" @@ -343,54 +343,54 @@ static gint _sqlite3_exec (sqlite3* self, const gchar* sql, sqlite3_callback cal const gchar* _tmp2_ = NULL; gint _tmp3_ = 0; const gchar* _tmp6_ = NULL; -#line 34 "/usr/share/vala-0.32/vapi/sqlite3.vapi" +#line 34 "/usr/share/vala-0.34/vapi/sqlite3.vapi" g_return_val_if_fail (self != NULL, 0); -#line 34 "/usr/share/vala-0.32/vapi/sqlite3.vapi" +#line 34 "/usr/share/vala-0.34/vapi/sqlite3.vapi" g_return_val_if_fail (sql != NULL, 0); -#line 36 "/usr/share/vala-0.32/vapi/sqlite3.vapi" +#line 36 "/usr/share/vala-0.34/vapi/sqlite3.vapi" _tmp0_ = sql; -#line 36 "/usr/share/vala-0.32/vapi/sqlite3.vapi" +#line 36 "/usr/share/vala-0.34/vapi/sqlite3.vapi" _tmp1_ = callback; -#line 36 "/usr/share/vala-0.32/vapi/sqlite3.vapi" +#line 36 "/usr/share/vala-0.34/vapi/sqlite3.vapi" _tmp1__target = callback_target; -#line 36 "/usr/share/vala-0.32/vapi/sqlite3.vapi" +#line 36 "/usr/share/vala-0.34/vapi/sqlite3.vapi" _tmp3_ = sqlite3_exec (self, _tmp0_, _tmp1_, _tmp1__target, (char**) (&_tmp2_)); -#line 36 "/usr/share/vala-0.32/vapi/sqlite3.vapi" +#line 36 "/usr/share/vala-0.34/vapi/sqlite3.vapi" sqlite_errmsg = _tmp2_; -#line 36 "/usr/share/vala-0.32/vapi/sqlite3.vapi" +#line 36 "/usr/share/vala-0.34/vapi/sqlite3.vapi" ec = _tmp3_; -#line 37 "/usr/share/vala-0.32/vapi/sqlite3.vapi" +#line 37 "/usr/share/vala-0.34/vapi/sqlite3.vapi" if ((&_vala_errmsg) != NULL) { #line 365 "DatabaseTable.c" const gchar* _tmp4_ = NULL; gchar* _tmp5_ = NULL; -#line 38 "/usr/share/vala-0.32/vapi/sqlite3.vapi" +#line 38 "/usr/share/vala-0.34/vapi/sqlite3.vapi" _tmp4_ = sqlite_errmsg; -#line 38 "/usr/share/vala-0.32/vapi/sqlite3.vapi" +#line 38 "/usr/share/vala-0.34/vapi/sqlite3.vapi" _tmp5_ = g_strdup (_tmp4_); -#line 38 "/usr/share/vala-0.32/vapi/sqlite3.vapi" +#line 38 "/usr/share/vala-0.34/vapi/sqlite3.vapi" _g_free0 (_vala_errmsg); -#line 38 "/usr/share/vala-0.32/vapi/sqlite3.vapi" +#line 38 "/usr/share/vala-0.34/vapi/sqlite3.vapi" _vala_errmsg = _tmp5_; #line 376 "DatabaseTable.c" } -#line 40 "/usr/share/vala-0.32/vapi/sqlite3.vapi" +#line 40 "/usr/share/vala-0.34/vapi/sqlite3.vapi" _tmp6_ = sqlite_errmsg; -#line 40 "/usr/share/vala-0.32/vapi/sqlite3.vapi" +#line 40 "/usr/share/vala-0.34/vapi/sqlite3.vapi" sqlite3_free ((void*) _tmp6_); -#line 41 "/usr/share/vala-0.32/vapi/sqlite3.vapi" +#line 41 "/usr/share/vala-0.34/vapi/sqlite3.vapi" result = ec; -#line 41 "/usr/share/vala-0.32/vapi/sqlite3.vapi" +#line 41 "/usr/share/vala-0.34/vapi/sqlite3.vapi" if (errmsg) { -#line 41 "/usr/share/vala-0.32/vapi/sqlite3.vapi" +#line 41 "/usr/share/vala-0.34/vapi/sqlite3.vapi" *errmsg = _vala_errmsg; #line 388 "DatabaseTable.c" } else { -#line 41 "/usr/share/vala-0.32/vapi/sqlite3.vapi" +#line 41 "/usr/share/vala-0.34/vapi/sqlite3.vapi" _g_free0 (_vala_errmsg); #line 392 "DatabaseTable.c" } -#line 41 "/usr/share/vala-0.32/vapi/sqlite3.vapi" +#line 41 "/usr/share/vala-0.34/vapi/sqlite3.vapi" return result; #line 396 "DatabaseTable.c" } @@ -478,7 +478,7 @@ void database_table_init (const gchar* filename) { #line 87 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" _g_object_unref0 (src); #line 481 "DatabaseTable.c" - goto __catch14_g_error; + goto __catch16_g_error; } #line 90 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" _tmp13_ = filename; @@ -490,8 +490,8 @@ void database_table_init (const gchar* filename) { _g_object_unref0 (src); #line 492 "DatabaseTable.c" } - goto __finally14; - __catch14_g_error: + goto __finally16; + __catch16_g_error: { GError* _error_ = NULL; const gchar* _tmp14_ = NULL; @@ -521,7 +521,7 @@ void database_table_init (const gchar* filename) { _g_error_free0 (_error_); #line 523 "DatabaseTable.c" } - __finally14: + __finally16: #line 84 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 84 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" diff --git a/src/db/Db.c b/src/db/Db.c index 9c7e328..4133a36 100644 --- a/src/db/Db.c +++ b/src/db/Db.c @@ -1,4 +1,4 @@ -/* Db.c generated by valac 0.32.1, the Vala compiler +/* Db.c generated by valac 0.34.4, the Vala compiler * generated from Db.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/db/EventTable.c b/src/db/EventTable.c index 0e763e9..60feebf 100644 --- a/src/db/EventTable.c +++ b/src/db/EventTable.c @@ -1,4 +1,4 @@ -/* EventTable.c generated by valac 0.32.1, the Vala compiler +/* EventTable.c generated by valac 0.34.4, the Vala compiler * generated from EventTable.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/db/PhotoTable.c b/src/db/PhotoTable.c index a2923f7..4cd6830 100644 --- a/src/db/PhotoTable.c +++ b/src/db/PhotoTable.c @@ -1,4 +1,4 @@ -/* PhotoTable.c generated by valac 0.32.1, the Vala compiler +/* PhotoTable.c generated by valac 0.34.4, the Vala compiler * generated from PhotoTable.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -5739,7 +5739,7 @@ GeeHashMap* photo_table_marshall_all_transformations (const gchar* trans) { #line 792 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _g_key_file_unref0 (keyfile); #line 5720 "PhotoTable.c" - goto __catch15_g_error; + goto __catch17_g_error; } #line 792 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (!_tmp6_) { @@ -5829,7 +5829,7 @@ GeeHashMap* photo_table_marshall_all_transformations (const gchar* trans) { #line 799 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _g_key_file_unref0 (keyfile); #line 5810 "PhotoTable.c" - goto __catch15_g_error; + goto __catch17_g_error; } #line 800 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp24_ = keys; @@ -5951,7 +5951,7 @@ GeeHashMap* photo_table_marshall_all_transformations (const gchar* trans) { #line 805 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _g_key_file_unref0 (keyfile); #line 5932 "PhotoTable.c" - goto __catch15_g_error; + goto __catch17_g_error; } #line 805 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp39_ = key_map; @@ -5999,8 +5999,8 @@ GeeHashMap* photo_table_marshall_all_transformations (const gchar* trans) { return result; #line 5979 "PhotoTable.c" } - goto __finally15; - __catch15_g_error: + goto __finally17; + __catch17_g_error: { GError* err = NULL; const gchar* _tmp46_ = NULL; @@ -6016,7 +6016,7 @@ GeeHashMap* photo_table_marshall_all_transformations (const gchar* trans) { _g_error_free0 (err); #line 5996 "PhotoTable.c" } - __finally15: + __finally17: #line 790 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); #line 790 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" @@ -6348,7 +6348,7 @@ gboolean photo_table_set_transformation (PhotoTable* self, PhotoID* photo_id, Ke #line 847 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _g_key_file_unref0 (keyfile); #line 6329 "PhotoTable.c" - goto __catch16_g_error; + goto __catch18_g_error; } #line 847 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (!_tmp4_) { @@ -6481,8 +6481,8 @@ gboolean photo_table_set_transformation (PhotoTable* self, PhotoID* photo_id, Ke _g_key_file_unref0 (keyfile); #line 6461 "PhotoTable.c" } - goto __finally16; - __catch16_g_error: + goto __finally18; + __catch18_g_error: { GError* err = NULL; const gchar* _tmp36_ = NULL; @@ -6498,7 +6498,7 @@ gboolean photo_table_set_transformation (PhotoTable* self, PhotoID* photo_id, Ke _g_error_free0 (err); #line 6478 "PhotoTable.c" } - __finally16: + __finally18: #line 844 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 844 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" @@ -6604,7 +6604,7 @@ gboolean photo_table_remove_transformation (PhotoTable* self, PhotoID* photo_id, #line 877 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _g_key_file_unref0 (keyfile); #line 6585 "PhotoTable.c" - goto __catch17_g_error; + goto __catch19_g_error; } #line 877 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (!_tmp4_) { @@ -6647,7 +6647,7 @@ gboolean photo_table_remove_transformation (PhotoTable* self, PhotoID* photo_id, #line 883 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _g_key_file_unref0 (keyfile); #line 6628 "PhotoTable.c" - goto __catch17_g_error; + goto __catch19_g_error; } #line 886 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp16_ = keyfile; @@ -6667,8 +6667,8 @@ gboolean photo_table_remove_transformation (PhotoTable* self, PhotoID* photo_id, _g_key_file_unref0 (keyfile); #line 6647 "PhotoTable.c" } - goto __finally17; - __catch17_g_error: + goto __finally19; + __catch19_g_error: { GError* err = NULL; const gchar* _tmp20_ = NULL; @@ -6684,7 +6684,7 @@ gboolean photo_table_remove_transformation (PhotoTable* self, PhotoID* photo_id, _g_error_free0 (err); #line 6664 "PhotoTable.c" } - __finally17: + __finally19: #line 875 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 875 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" @@ -6900,7 +6900,7 @@ static sqlite3_stmt* photo_table_get_duplicate_stmt (PhotoTable* self, GFile* fi #line 921 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" first = FALSE; #line 923 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp17_ = thumbnail_md5; + _tmp17_ = md5; #line 923 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (_tmp17_ != NULL) { #line 6885 "PhotoTable.c" @@ -6909,105 +6909,105 @@ static sqlite3_stmt* photo_table_get_duplicate_stmt (PhotoTable* self, GFile* fi #line 924 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp18_ = sql; #line 924 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp19_ = g_strconcat (_tmp18_, " thumbnail_md5=?", NULL); + _tmp19_ = g_strconcat (_tmp18_, " md5=?", NULL); #line 924 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _g_free0 (sql); #line 924 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" sql = _tmp19_; #line 6896 "PhotoTable.c" } -#line 926 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp20_ = md5; -#line 926 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 927 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + _tmp20_ = thumbnail_md5; +#line 927 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (_tmp20_ != NULL) { #line 6902 "PhotoTable.c" const gchar* _tmp21_ = NULL; -#line 927 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp21_ = thumbnail_md5; -#line 927 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 928 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + _tmp21_ = md5; +#line 928 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (_tmp21_ == NULL) { #line 6908 "PhotoTable.c" const gchar* _tmp22_ = NULL; gchar* _tmp23_ = NULL; -#line 928 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 929 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp22_ = sql; -#line 928 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp23_ = g_strconcat (_tmp22_, " md5=?", NULL); -#line 928 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 929 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + _tmp23_ = g_strconcat (_tmp22_, " thumbnail_md5=?", NULL); +#line 929 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _g_free0 (sql); -#line 928 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 929 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" sql = _tmp23_; #line 6919 "PhotoTable.c" } else { const gchar* _tmp24_ = NULL; gchar* _tmp25_ = NULL; -#line 930 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 931 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp24_ = sql; -#line 930 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp25_ = g_strconcat (_tmp24_, " OR md5=?", NULL); -#line 930 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 931 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + _tmp25_ = g_strconcat (_tmp24_, " OR (md5 IS NULL AND thumbnail_md5=?)", NULL); +#line 931 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _g_free0 (sql); -#line 930 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 931 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" sql = _tmp25_; #line 6931 "PhotoTable.c" } } -#line 933 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 934 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp26_ = sql; -#line 933 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 934 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp27_ = g_strconcat (_tmp26_, ")", NULL); -#line 933 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 934 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _g_free0 (sql); -#line 933 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 934 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" sql = _tmp27_; -#line 935 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 936 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp28_ = file_format; -#line 935 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 936 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (_tmp28_ != PHOTO_FILE_FORMAT_UNKNOWN) { #line 6946 "PhotoTable.c" const gchar* _tmp29_ = NULL; gchar* _tmp30_ = NULL; -#line 936 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 937 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp29_ = sql; -#line 936 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 937 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp30_ = g_strconcat (_tmp29_, " AND file_format=?", NULL); -#line 936 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 937 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _g_free0 (sql); -#line 936 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 937 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" sql = _tmp30_; #line 6957 "PhotoTable.c" } -#line 938 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 939 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp31_ = sql; -#line 938 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 939 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp32_ = g_strconcat (_tmp31_, ")", NULL); -#line 938 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 939 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _g_free0 (sql); -#line 938 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 939 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" sql = _tmp32_; #line 6967 "PhotoTable.c" } -#line 942 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 943 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp33_ = database_table_db; -#line 942 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 943 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp34_ = sql; -#line 942 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 943 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp36_ = sqlite3_prepare_v2 (_tmp33_, _tmp34_, -1, &_tmp35_, NULL); -#line 942 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 943 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _sqlite3_finalize0 (stmt); -#line 942 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 943 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" stmt = _tmp35_; -#line 942 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp36_; #line 943 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + res = _tmp36_; +#line 944 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp37_ = res; -#line 943 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 944 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _vala_assert (_tmp37_ == SQLITE_OK, "res == Sqlite.OK"); -#line 945 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 946 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" col = 1; -#line 947 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 948 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp38_ = file; -#line 947 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 948 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (_tmp38_ != NULL) { #line 6991 "PhotoTable.c" sqlite3_stmt* _tmp39_ = NULL; @@ -7017,31 +7017,31 @@ static sqlite3_stmt* photo_table_get_duplicate_stmt (PhotoTable* self, GFile* fi GDestroyNotify _tmp43_ = NULL; gint _tmp44_ = 0; gint _tmp45_ = 0; -#line 948 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 949 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp39_ = stmt; -#line 948 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 949 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp40_ = col; -#line 948 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 949 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" col = _tmp40_ + 1; -#line 948 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 949 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp41_ = file; -#line 948 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 949 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp42_ = g_file_get_path (_tmp41_); -#line 948 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 949 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp43_ = g_free; -#line 948 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 949 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp44_ = sqlite3_bind_text (_tmp39_, _tmp40_, _tmp42_, -1, _tmp43_); -#line 948 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp44_; #line 949 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + res = _tmp44_; +#line 950 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp45_ = res; -#line 949 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 950 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _vala_assert (_tmp45_ == SQLITE_OK, "res == Sqlite.OK"); #line 7019 "PhotoTable.c" } -#line 952 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 953 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp46_ = thumbnail_md5; -#line 952 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 953 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (_tmp46_ != NULL) { #line 7025 "PhotoTable.c" sqlite3_stmt* _tmp47_ = NULL; @@ -7051,31 +7051,31 @@ static sqlite3_stmt* photo_table_get_duplicate_stmt (PhotoTable* self, GFile* fi GDestroyNotify _tmp51_ = NULL; gint _tmp52_ = 0; gint _tmp53_ = 0; -#line 953 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 954 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp47_ = stmt; -#line 953 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 954 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp48_ = col; -#line 953 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 954 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" col = _tmp48_ + 1; -#line 953 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 954 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp49_ = thumbnail_md5; -#line 953 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 954 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp50_ = g_strdup (_tmp49_); -#line 953 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 954 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp51_ = g_free; -#line 953 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 954 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp52_ = sqlite3_bind_text (_tmp47_, _tmp48_, _tmp50_, -1, _tmp51_); -#line 953 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp52_; #line 954 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + res = _tmp52_; +#line 955 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp53_ = res; -#line 954 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 955 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _vala_assert (_tmp53_ == SQLITE_OK, "res == Sqlite.OK"); #line 7053 "PhotoTable.c" } -#line 957 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 958 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp54_ = md5; -#line 957 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 958 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (_tmp54_ != NULL) { #line 7059 "PhotoTable.c" sqlite3_stmt* _tmp55_ = NULL; @@ -7085,58 +7085,58 @@ static sqlite3_stmt* photo_table_get_duplicate_stmt (PhotoTable* self, GFile* fi GDestroyNotify _tmp59_ = NULL; gint _tmp60_ = 0; gint _tmp61_ = 0; -#line 958 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 959 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp55_ = stmt; -#line 958 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 959 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp56_ = col; -#line 958 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 959 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" col = _tmp56_ + 1; -#line 958 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 959 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp57_ = md5; -#line 958 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 959 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp58_ = g_strdup (_tmp57_); -#line 958 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 959 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp59_ = g_free; -#line 958 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 959 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp60_ = sqlite3_bind_text (_tmp55_, _tmp56_, _tmp58_, -1, _tmp59_); -#line 958 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp60_; #line 959 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + res = _tmp60_; +#line 960 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp61_ = res; -#line 959 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 960 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _vala_assert (_tmp61_ == SQLITE_OK, "res == Sqlite.OK"); #line 7087 "PhotoTable.c" } -#line 962 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 963 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp64_ = thumbnail_md5; -#line 962 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 963 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (_tmp64_ != NULL) { -#line 962 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 963 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp63_ = TRUE; #line 7095 "PhotoTable.c" } else { const gchar* _tmp65_ = NULL; -#line 962 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 963 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp65_ = md5; -#line 962 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 963 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp63_ = _tmp65_ != NULL; #line 7102 "PhotoTable.c" } -#line 962 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 963 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (_tmp63_) { #line 7106 "PhotoTable.c" PhotoFileFormat _tmp66_ = 0; -#line 962 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 963 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp66_ = file_format; -#line 962 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 963 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp62_ = _tmp66_ != PHOTO_FILE_FORMAT_UNKNOWN; #line 7112 "PhotoTable.c" } else { -#line 962 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 963 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp62_ = FALSE; #line 7116 "PhotoTable.c" } -#line 962 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 963 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (_tmp62_) { #line 7120 "PhotoTable.c" sqlite3_stmt* _tmp67_ = NULL; @@ -7145,31 +7145,31 @@ static sqlite3_stmt* photo_table_get_duplicate_stmt (PhotoTable* self, GFile* fi gint _tmp70_ = 0; gint _tmp71_ = 0; gint _tmp72_ = 0; -#line 963 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 964 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp67_ = stmt; -#line 963 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 964 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp68_ = col; -#line 963 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 964 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" col = _tmp68_ + 1; -#line 963 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 964 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp69_ = file_format; -#line 963 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 964 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp70_ = photo_file_format_serialize (_tmp69_); -#line 963 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 964 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp71_ = sqlite3_bind_int (_tmp67_, _tmp68_, _tmp70_); -#line 963 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp71_; #line 964 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + res = _tmp71_; +#line 965 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp72_ = res; -#line 964 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 965 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _vala_assert (_tmp72_ == SQLITE_OK, "res == Sqlite.OK"); #line 7145 "PhotoTable.c" } -#line 967 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 968 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" result = stmt; -#line 967 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 968 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _g_free0 (sql); -#line 967 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 968 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return result; #line 7153 "PhotoTable.c" } @@ -7187,83 +7187,83 @@ gboolean photo_table_has_duplicate (PhotoTable* self, GFile* file, const gchar* sqlite3_stmt* _tmp5_ = NULL; gint _tmp6_ = 0; gint _tmp7_ = 0; -#line 970 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 971 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_return_val_if_fail (IS_PHOTO_TABLE (self), FALSE); -#line 970 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail ((file == NULL) || G_IS_FILE (file), FALSE); #line 971 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + g_return_val_if_fail ((file == NULL) || G_IS_FILE (file), FALSE); +#line 972 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp0_ = file; -#line 971 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 972 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp1_ = thumbnail_md5; -#line 971 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 972 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp2_ = md5; -#line 971 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 972 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp3_ = file_format; -#line 971 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 972 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp4_ = photo_table_get_duplicate_stmt (self, _tmp0_, _tmp1_, _tmp2_, _tmp3_); -#line 971 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - stmt = _tmp4_; #line 972 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + stmt = _tmp4_; +#line 973 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp5_ = stmt; -#line 972 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 973 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp6_ = sqlite3_step (_tmp5_); -#line 972 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 973 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" res = _tmp6_; -#line 974 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 975 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp7_ = res; -#line 974 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 975 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (_tmp7_ == SQLITE_DONE) { -#line 976 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 977 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" result = FALSE; -#line 976 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 977 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _sqlite3_finalize0 (stmt); -#line 976 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 977 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return result; #line 7201 "PhotoTable.c" } else { gint _tmp8_ = 0; -#line 977 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 978 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp8_ = res; -#line 977 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 978 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (_tmp8_ == SQLITE_ROW) { -#line 979 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 980 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" result = TRUE; -#line 979 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 980 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _sqlite3_finalize0 (stmt); -#line 979 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 980 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return result; #line 7214 "PhotoTable.c" } else { gint _tmp9_ = 0; -#line 981 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 982 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp9_ = res; -#line 981 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 982 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" database_table_fatal ("has_duplicate", _tmp9_); -#line 983 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 984 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" result = FALSE; -#line 983 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 984 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _sqlite3_finalize0 (stmt); -#line 983 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 984 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return result; #line 7227 "PhotoTable.c" } } -#line 970 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 971 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _sqlite3_finalize0 (stmt); #line 7232 "PhotoTable.c" } static void _vala_array_add2 (PhotoID** array, int* length, int* size, const PhotoID* value) { -#line 995 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 996 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if ((*length) == (*size)) { -#line 995 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 996 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" *size = (*size) ? (2 * (*size)) : 4; -#line 995 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 996 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" *array = g_renew (PhotoID, *array, *size); #line 7243 "PhotoTable.c" } -#line 995 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 996 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" (*array)[(*length)++] = *value; #line 7247 "PhotoTable.c" } @@ -7286,37 +7286,37 @@ PhotoID* photo_table_get_duplicate_ids (PhotoTable* self, GFile* file, const gch gint _tmp7_ = 0; PhotoID* _tmp15_ = NULL; gint _tmp15__length1 = 0; -#line 987 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 988 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_return_val_if_fail (IS_PHOTO_TABLE (self), NULL); -#line 987 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 988 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_return_val_if_fail ((file == NULL) || G_IS_FILE (file), NULL); -#line 989 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 990 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp0_ = file; -#line 989 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 990 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp1_ = thumbnail_md5; -#line 989 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 990 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp2_ = md5; -#line 989 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 990 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp3_ = file_format; -#line 989 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 990 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp4_ = photo_table_get_duplicate_stmt (self, _tmp0_, _tmp1_, _tmp2_, _tmp3_); -#line 989 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 990 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" stmt = _tmp4_; -#line 991 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 992 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp5_ = g_new0 (PhotoID, 0); -#line 991 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 992 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" ids = _tmp5_; -#line 991 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 992 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" ids_length1 = 0; -#line 991 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 992 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _ids_size_ = ids_length1; -#line 993 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 994 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp6_ = stmt; -#line 993 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 994 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp7_ = sqlite3_step (_tmp6_); -#line 993 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp7_; #line 994 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + res = _tmp7_; +#line 995 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" while (TRUE) { #line 7300 "PhotoTable.c" gint _tmp8_ = 0; @@ -7327,49 +7327,49 @@ PhotoID* photo_table_get_duplicate_ids (PhotoTable* self, GFile* file, const gch PhotoID _tmp12_ = {0}; sqlite3_stmt* _tmp13_ = NULL; gint _tmp14_ = 0; -#line 994 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 995 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp8_ = res; -#line 994 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 995 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (!(_tmp8_ == SQLITE_ROW)) { -#line 994 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 995 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" break; #line 7315 "PhotoTable.c" } -#line 995 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 996 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp9_ = ids; -#line 995 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 996 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp9__length1 = ids_length1; -#line 995 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 996 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp10_ = stmt; -#line 995 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 996 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp11_ = sqlite3_column_int64 (_tmp10_, 0); -#line 995 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 996 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" photo_id_init (&_tmp12_, _tmp11_); -#line 995 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_array_add2 (&ids, &ids_length1, &_ids_size_, &_tmp12_); #line 996 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + _vala_array_add2 (&ids, &ids_length1, &_ids_size_, &_tmp12_); +#line 997 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp13_ = stmt; -#line 996 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 997 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp14_ = sqlite3_step (_tmp13_); -#line 996 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 997 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" res = _tmp14_; #line 7335 "PhotoTable.c" } -#line 999 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1000 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp15_ = ids; -#line 999 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1000 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp15__length1 = ids_length1; -#line 999 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1000 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (result_length1) { -#line 999 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1000 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" *result_length1 = _tmp15__length1; #line 7345 "PhotoTable.c" } -#line 999 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1000 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" result = _tmp15_; -#line 999 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1000 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _sqlite3_finalize0 (stmt); -#line 999 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1000 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return result; #line 7353 "PhotoTable.c" } @@ -7381,47 +7381,47 @@ void photo_table_update_backlinks (PhotoTable* self, PhotoID* photo_id, const gc PhotoID _tmp3_ = {0}; gint64 _tmp4_ = 0LL; GError * _inner_error_ = NULL; -#line 1002 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1003 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_return_if_fail (IS_PHOTO_TABLE (self)); -#line 1002 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (photo_id != NULL); #line 1003 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + g_return_if_fail (photo_id != NULL); +#line 1004 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp1_ = backlinks; -#line 1003 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1004 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (_tmp1_ != NULL) { #line 7371 "PhotoTable.c" const gchar* _tmp2_ = NULL; -#line 1003 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1004 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp2_ = backlinks; -#line 1003 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1004 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp0_ = _tmp2_; #line 7377 "PhotoTable.c" } else { -#line 1003 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1004 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp0_ = ""; #line 7381 "PhotoTable.c" } -#line 1003 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1004 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp3_ = *photo_id; -#line 1003 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1004 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp4_ = _tmp3_.id; -#line 1003 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1004 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" database_table_update_text_by_id_2 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp4_, "backlinks", _tmp0_, &_inner_error_); -#line 1003 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1004 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1003 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1004 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (_inner_error_->domain == DATABASE_ERROR) { -#line 1003 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1004 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_propagate_error (error, _inner_error_); -#line 1003 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1004 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return; #line 7397 "PhotoTable.c" } else { -#line 1003 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1004 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1003 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1004 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_clear_error (&_inner_error_); -#line 1003 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1004 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return; #line 7405 "PhotoTable.c" } @@ -7438,48 +7438,48 @@ void photo_table_attach_editable (PhotoTable* self, PhotoRow* row, BackingPhotoI PhotoRow* _tmp5_ = NULL; BackingPhotoID _tmp6_ = {0}; GError * _inner_error_ = NULL; -#line 1006 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1007 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_return_if_fail (IS_PHOTO_TABLE (self)); -#line 1006 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1007 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_return_if_fail (IS_PHOTO_ROW (row)); -#line 1006 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (editable_id != NULL); #line 1007 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + g_return_if_fail (editable_id != NULL); +#line 1008 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp0_ = row; -#line 1007 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1008 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp1_ = _tmp0_->photo_id; -#line 1007 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1008 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp2_ = _tmp1_.id; -#line 1007 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1008 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp3_ = *editable_id; -#line 1007 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1008 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp4_ = _tmp3_.id; -#line 1007 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1008 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" database_table_update_int64_by_id_2 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp2_, "editable_id", _tmp4_, &_inner_error_); -#line 1007 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1008 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1007 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1008 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (_inner_error_->domain == DATABASE_ERROR) { -#line 1007 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1008 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_propagate_error (error, _inner_error_); -#line 1007 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1008 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return; #line 7446 "PhotoTable.c" } else { -#line 1007 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1008 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1007 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1008 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_clear_error (&_inner_error_); -#line 1007 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1008 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return; #line 7454 "PhotoTable.c" } } -#line 1009 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1010 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp5_ = row; -#line 1009 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1010 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp6_ = *editable_id; -#line 1009 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1010 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp5_->editable_id = _tmp6_; #line 7463 "PhotoTable.c" } @@ -7491,40 +7491,40 @@ void photo_table_detach_editable (PhotoTable* self, PhotoRow* row, GError** erro gint64 _tmp2_ = 0LL; PhotoRow* _tmp3_ = NULL; GError * _inner_error_ = NULL; -#line 1012 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1013 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_return_if_fail (IS_PHOTO_TABLE (self)); -#line 1012 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (IS_PHOTO_ROW (row)); #line 1013 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + g_return_if_fail (IS_PHOTO_ROW (row)); +#line 1014 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp0_ = row; -#line 1013 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1014 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp1_ = _tmp0_->photo_id; -#line 1013 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1014 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp2_ = _tmp1_.id; -#line 1013 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1014 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" database_table_update_int64_by_id_2 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp2_, "editable_id", BACKING_PHOTO_ID_INVALID, &_inner_error_); -#line 1013 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1014 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1013 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1014 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (_inner_error_->domain == DATABASE_ERROR) { -#line 1013 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1014 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_propagate_error (error, _inner_error_); -#line 1013 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1014 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return; #line 7493 "PhotoTable.c" } else { -#line 1013 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1014 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1013 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1014 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_clear_error (&_inner_error_); -#line 1013 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1014 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return; #line 7501 "PhotoTable.c" } } -#line 1015 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1016 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp3_ = row; -#line 1015 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1016 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" backing_photo_id_init (&_tmp3_->editable_id, BACKING_PHOTO_ID_INVALID); #line 7508 "PhotoTable.c" } @@ -7536,43 +7536,43 @@ void photo_table_set_metadata_dirty (PhotoTable* self, PhotoID* photo_id, gboole PhotoID _tmp2_ = {0}; gint64 _tmp3_ = 0LL; GError * _inner_error_ = NULL; -#line 1018 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1019 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_return_if_fail (IS_PHOTO_TABLE (self)); -#line 1018 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (photo_id != NULL); #line 1019 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + g_return_if_fail (photo_id != NULL); +#line 1020 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp1_ = dirty; -#line 1019 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1020 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (_tmp1_) { -#line 1019 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1020 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp0_ = 1; #line 7528 "PhotoTable.c" } else { -#line 1019 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1020 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp0_ = 0; #line 7532 "PhotoTable.c" } -#line 1019 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1020 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp2_ = *photo_id; -#line 1019 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1020 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp3_ = _tmp2_.id; -#line 1019 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1020 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" database_table_update_int_by_id_2 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp3_, "metadata_dirty", _tmp0_, &_inner_error_); -#line 1019 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1020 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1019 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1020 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (_inner_error_->domain == DATABASE_ERROR) { -#line 1019 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1020 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_propagate_error (error, _inner_error_); -#line 1019 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1020 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return; #line 7548 "PhotoTable.c" } else { -#line 1019 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1020 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1019 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1020 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_clear_error (&_inner_error_); -#line 1019 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1020 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return; #line 7556 "PhotoTable.c" } @@ -7598,124 +7598,124 @@ void photo_table_update_raw_development (PhotoTable* self, PhotoRow* row, RawDev BackingPhotoID _tmp15_ = {0}; gint64 _tmp16_ = 0LL; GError * _inner_error_ = NULL; -#line 1022 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1023 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_return_if_fail (IS_PHOTO_TABLE (self)); -#line 1022 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1023 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_return_if_fail (IS_PHOTO_ROW (row)); -#line 1022 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1023 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_return_if_fail (backing_photo_id != NULL); -#line 1026 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1027 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp0_ = rd; -#line 1026 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1027 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" switch (_tmp0_) { -#line 1026 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1027 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" case RAW_DEVELOPER_SHOTWELL: #line 7592 "PhotoTable.c" { gchar* _tmp1_ = NULL; -#line 1028 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1029 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp1_ = g_strdup ("develop_shotwell_id"); -#line 1028 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1029 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _g_free0 (col); -#line 1028 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - col = _tmp1_; #line 1029 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + col = _tmp1_; +#line 1030 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" break; #line 7603 "PhotoTable.c" } -#line 1026 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1027 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" case RAW_DEVELOPER_CAMERA: #line 7607 "PhotoTable.c" { gchar* _tmp2_ = NULL; -#line 1032 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1033 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp2_ = g_strdup ("develop_camera_id"); -#line 1032 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1033 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _g_free0 (col); -#line 1032 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - col = _tmp2_; #line 1033 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + col = _tmp2_; +#line 1034 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" break; #line 7618 "PhotoTable.c" } -#line 1026 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1027 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" case RAW_DEVELOPER_EMBEDDED: #line 7622 "PhotoTable.c" { gchar* _tmp3_ = NULL; -#line 1036 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1037 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp3_ = g_strdup ("develop_embedded_id"); -#line 1036 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1037 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _g_free0 (col); -#line 1036 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - col = _tmp3_; #line 1037 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + col = _tmp3_; +#line 1038 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" break; #line 7633 "PhotoTable.c" } default: { -#line 1040 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1041 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_assert_not_reached (); #line 7639 "PhotoTable.c" } } -#line 1043 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1044 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp4_ = row; -#line 1043 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1044 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp5_ = _tmp4_->development_ids; -#line 1043 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1044 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp5__length1 = _tmp4_->development_ids_length1; -#line 1043 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1044 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp6_ = rd; -#line 1043 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1044 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp7_ = *backing_photo_id; -#line 1043 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1044 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp5_[_tmp6_] = _tmp7_; -#line 1043 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp8_ = _tmp5_[_tmp6_]; #line 1044 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + _tmp8_ = _tmp5_[_tmp6_]; +#line 1045 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp9_ = row; -#line 1044 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1045 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp10_ = _tmp9_->photo_id; -#line 1044 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1045 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp11_ = _tmp10_.id; -#line 1044 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1045 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp12_ = col; -#line 1044 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1045 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp13_ = *backing_photo_id; -#line 1044 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1045 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp14_ = _tmp13_.id; -#line 1044 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1045 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" database_table_update_int64_by_id_2 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp11_, _tmp12_, _tmp14_, &_inner_error_); -#line 1044 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1045 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1044 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1045 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (_inner_error_->domain == DATABASE_ERROR) { -#line 1044 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1045 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_propagate_error (error, _inner_error_); -#line 1044 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1045 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _g_free0 (col); -#line 1044 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1045 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return; #line 7680 "PhotoTable.c" } else { -#line 1044 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1045 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _g_free0 (col); -#line 1044 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1045 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1044 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1045 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_clear_error (&_inner_error_); -#line 1044 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1045 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return; #line 7690 "PhotoTable.c" } } -#line 1046 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1047 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp15_ = *backing_photo_id; -#line 1046 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1047 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp16_ = _tmp15_.id; -#line 1046 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1047 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (_tmp16_ != BACKING_PHOTO_ID_INVALID) { #line 7699 "PhotoTable.c" PhotoRow* _tmp17_ = NULL; @@ -7724,47 +7724,47 @@ void photo_table_update_raw_development (PhotoTable* self, PhotoRow* row, RawDev RawDeveloper _tmp20_ = 0; gchar* _tmp21_ = NULL; gchar* _tmp22_ = NULL; -#line 1047 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1048 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp17_ = row; -#line 1047 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1048 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp18_ = _tmp17_->photo_id; -#line 1047 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1048 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp19_ = _tmp18_.id; -#line 1047 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1048 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp20_ = rd; -#line 1047 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1048 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp21_ = raw_developer_to_string (_tmp20_); -#line 1047 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1048 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp22_ = _tmp21_; -#line 1047 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1048 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" database_table_update_text_by_id_2 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp19_, "developer", _tmp22_, &_inner_error_); -#line 1047 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1048 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _g_free0 (_tmp22_); -#line 1047 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1048 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1047 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1048 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (_inner_error_->domain == DATABASE_ERROR) { -#line 1047 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1048 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_propagate_error (error, _inner_error_); -#line 1047 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1048 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _g_free0 (col); -#line 1047 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1048 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return; #line 7732 "PhotoTable.c" } else { -#line 1047 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1048 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _g_free0 (col); -#line 1047 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1048 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1047 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1048 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_clear_error (&_inner_error_); -#line 1047 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1048 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return; #line 7742 "PhotoTable.c" } } } -#line 1022 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1023 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _g_free0 (col); #line 7748 "PhotoTable.c" } @@ -7775,33 +7775,33 @@ void photo_table_remove_development (PhotoTable* self, PhotoRow* row, RawDevelop RawDeveloper _tmp1_ = 0; BackingPhotoID _tmp2_ = {0}; GError * _inner_error_ = NULL; -#line 1050 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1051 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_return_if_fail (IS_PHOTO_TABLE (self)); -#line 1050 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (IS_PHOTO_ROW (row)); #line 1051 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + g_return_if_fail (IS_PHOTO_ROW (row)); +#line 1052 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp0_ = row; -#line 1051 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1052 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp1_ = rd; -#line 1051 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1052 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" backing_photo_id_init (&_tmp2_, BACKING_PHOTO_ID_INVALID); -#line 1051 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1052 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" photo_table_update_raw_development (self, _tmp0_, _tmp1_, &_tmp2_, &_inner_error_); -#line 1051 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1052 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1051 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1052 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (_inner_error_->domain == DATABASE_ERROR) { -#line 1051 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1052 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_propagate_error (error, _inner_error_); -#line 1051 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1052 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return; #line 7777 "PhotoTable.c" } else { -#line 1051 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1052 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1051 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1052 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_clear_error (&_inner_error_); -#line 1051 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1052 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return; #line 7785 "PhotoTable.c" } @@ -7846,11 +7846,11 @@ GType photo_table_get_type (void) { void backing_photo_id_init (BackingPhotoID *self, gint64 id) { gint64 _tmp0_ = 0LL; -#line 1071 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - memset (self, 0, sizeof (BackingPhotoID)); #line 1072 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + memset (self, 0, sizeof (BackingPhotoID)); +#line 1073 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp0_ = id; -#line 1072 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1073 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" (*self).id = _tmp0_; #line 7834 "PhotoTable.c" } @@ -7859,11 +7859,11 @@ void backing_photo_id_init (BackingPhotoID *self, gint64 id) { gboolean backing_photo_id_is_invalid (BackingPhotoID *self) { gboolean result = FALSE; gint64 _tmp0_ = 0LL; -#line 1076 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1077 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp0_ = (*self).id; -#line 1076 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1077 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" result = _tmp0_ == BACKING_PHOTO_ID_INVALID; -#line 1076 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1077 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return result; #line 7847 "PhotoTable.c" } @@ -7872,11 +7872,11 @@ gboolean backing_photo_id_is_invalid (BackingPhotoID *self) { gboolean backing_photo_id_is_valid (BackingPhotoID *self) { gboolean result = FALSE; gint64 _tmp0_ = 0LL; -#line 1080 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1081 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp0_ = (*self).id; -#line 1080 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1081 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" result = _tmp0_ != BACKING_PHOTO_ID_INVALID; -#line 1080 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1081 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return result; #line 7860 "PhotoTable.c" } @@ -7884,18 +7884,18 @@ gboolean backing_photo_id_is_valid (BackingPhotoID *self) { BackingPhotoID* backing_photo_id_dup (const BackingPhotoID* self) { BackingPhotoID* dup; -#line 1066 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1067 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" dup = g_new0 (BackingPhotoID, 1); -#line 1066 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1067 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" memcpy (dup, self, sizeof (BackingPhotoID)); -#line 1066 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1067 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return dup; #line 7872 "PhotoTable.c" } void backing_photo_id_free (BackingPhotoID* self) { -#line 1066 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1067 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_free (self); #line 7879 "PhotoTable.c" } @@ -7921,35 +7921,35 @@ gboolean backing_photo_row_matches_file_info (BackingPhotoRow* self, GFileInfo* GFileInfo* _tmp4_ = NULL; GTimeVal _tmp5_ = {0}; glong _tmp6_ = 0L; -#line 1094 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1095 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_return_val_if_fail (IS_BACKING_PHOTO_ROW (self), FALSE); -#line 1094 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (G_IS_FILE_INFO (info), FALSE); #line 1095 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + g_return_val_if_fail (G_IS_FILE_INFO (info), FALSE); +#line 1096 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp0_ = self->filesize; -#line 1095 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1096 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp1_ = info; -#line 1095 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1096 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp2_ = g_file_info_get_size (_tmp1_); -#line 1095 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp0_ != _tmp2_) { #line 1096 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + if (_tmp0_ != _tmp2_) { +#line 1097 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" result = FALSE; -#line 1096 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1097 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return result; #line 7919 "PhotoTable.c" } -#line 1098 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1099 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp3_ = self->timestamp; -#line 1098 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1099 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp4_ = info; -#line 1098 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1099 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_file_info_get_modification_time (_tmp4_, &_tmp5_); -#line 1098 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1099 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp6_ = _tmp5_.tv_sec; -#line 1098 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1099 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" result = _tmp3_ == ((time_t) _tmp6_); -#line 1098 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1099 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return result; #line 7933 "PhotoTable.c" } @@ -7964,35 +7964,35 @@ gboolean backing_photo_row_is_touched (BackingPhotoRow* self, GFileInfo* info) { GFileInfo* _tmp4_ = NULL; GTimeVal _tmp5_ = {0}; glong _tmp6_ = 0L; -#line 1101 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1102 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_return_val_if_fail (IS_BACKING_PHOTO_ROW (self), FALSE); -#line 1101 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (G_IS_FILE_INFO (info), FALSE); #line 1102 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + g_return_val_if_fail (G_IS_FILE_INFO (info), FALSE); +#line 1103 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp0_ = self->filesize; -#line 1102 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1103 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp1_ = info; -#line 1102 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1103 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp2_ = g_file_info_get_size (_tmp1_); -#line 1102 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp0_ != _tmp2_) { #line 1103 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + if (_tmp0_ != _tmp2_) { +#line 1104 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" result = FALSE; -#line 1103 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1104 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return result; #line 7962 "PhotoTable.c" } -#line 1105 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1106 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp3_ = self->timestamp; -#line 1105 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1106 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp4_ = info; -#line 1105 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1106 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_file_info_get_modification_time (_tmp4_, &_tmp5_); -#line 1105 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1106 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp6_ = _tmp5_.tv_sec; -#line 1105 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1106 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" result = _tmp3_ != ((time_t) _tmp6_); -#line 1105 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1106 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return result; #line 7976 "PhotoTable.c" } @@ -8016,61 +8016,61 @@ void backing_photo_row_copy_from (BackingPhotoRow* self, BackingPhotoRow* from) Dimensions _tmp14_ = {0}; BackingPhotoRow* _tmp15_ = NULL; Orientation _tmp16_ = 0; -#line 1109 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1110 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_return_if_fail (IS_BACKING_PHOTO_ROW (self)); -#line 1109 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (IS_BACKING_PHOTO_ROW (from)); #line 1110 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + g_return_if_fail (IS_BACKING_PHOTO_ROW (from)); +#line 1111 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp0_ = from; -#line 1110 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1111 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp1_ = _tmp0_->id; -#line 1110 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - self->id = _tmp1_; #line 1111 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + self->id = _tmp1_; +#line 1112 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp2_ = from; -#line 1111 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1112 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp3_ = _tmp2_->time_created; -#line 1111 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - self->time_created = _tmp3_; #line 1112 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + self->time_created = _tmp3_; +#line 1113 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp4_ = from; -#line 1112 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1113 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp5_ = _tmp4_->filepath; -#line 1112 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1113 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp6_ = g_strdup (_tmp5_); -#line 1112 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1113 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _g_free0 (self->filepath); -#line 1112 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - self->filepath = _tmp6_; #line 1113 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + self->filepath = _tmp6_; +#line 1114 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp7_ = from; -#line 1113 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1114 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp8_ = _tmp7_->filesize; -#line 1113 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - self->filesize = _tmp8_; #line 1114 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + self->filesize = _tmp8_; +#line 1115 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp9_ = from; -#line 1114 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1115 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp10_ = _tmp9_->timestamp; -#line 1114 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - self->timestamp = _tmp10_; #line 1115 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + self->timestamp = _tmp10_; +#line 1116 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp11_ = from; -#line 1115 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1116 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp12_ = _tmp11_->file_format; -#line 1115 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - self->file_format = _tmp12_; #line 1116 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + self->file_format = _tmp12_; +#line 1117 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp13_ = from; -#line 1116 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1117 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp14_ = _tmp13_->dim; -#line 1116 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - self->dim = _tmp14_; #line 1117 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + self->dim = _tmp14_; +#line 1118 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp15_ = from; -#line 1117 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1118 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp16_ = _tmp15_->original_orientation; -#line 1117 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1118 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" self->original_orientation = _tmp16_; #line 8054 "PhotoTable.c" } @@ -8078,32 +8078,32 @@ void backing_photo_row_copy_from (BackingPhotoRow* self, BackingPhotoRow* from) BackingPhotoRow* backing_photo_row_construct (GType object_type) { BackingPhotoRow* self = NULL; -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" self = (BackingPhotoRow*) g_type_create_instance (object_type); -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return self; #line 8064 "PhotoTable.c" } BackingPhotoRow* backing_photo_row_new (void) { -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return backing_photo_row_construct (TYPE_BACKING_PHOTO_ROW); #line 8071 "PhotoTable.c" } static void value_backing_photo_row_init (GValue* value) { -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" value->data[0].v_pointer = NULL; #line 8078 "PhotoTable.c" } static void value_backing_photo_row_free_value (GValue* value) { -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (value->data[0].v_pointer) { -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" backing_photo_row_unref (value->data[0].v_pointer); #line 8087 "PhotoTable.c" } @@ -8111,13 +8111,13 @@ static void value_backing_photo_row_free_value (GValue* value) { static void value_backing_photo_row_copy_value (const GValue* src_value, GValue* dest_value) { -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (src_value->data[0].v_pointer) { -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" dest_value->data[0].v_pointer = backing_photo_row_ref (src_value->data[0].v_pointer); #line 8097 "PhotoTable.c" } else { -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" dest_value->data[0].v_pointer = NULL; #line 8101 "PhotoTable.c" } @@ -8125,37 +8125,37 @@ static void value_backing_photo_row_copy_value (const GValue* src_value, GValue* static gpointer value_backing_photo_row_peek_pointer (const GValue* value) { -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return value->data[0].v_pointer; #line 8109 "PhotoTable.c" } static gchar* value_backing_photo_row_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) { -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (collect_values[0].v_pointer) { #line 8116 "PhotoTable.c" BackingPhotoRow* object; object = collect_values[0].v_pointer; -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (object->parent_instance.g_class == NULL) { -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); #line 8123 "PhotoTable.c" } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); #line 8127 "PhotoTable.c" } -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" value->data[0].v_pointer = backing_photo_row_ref (object); #line 8131 "PhotoTable.c" } else { -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" value->data[0].v_pointer = NULL; #line 8135 "PhotoTable.c" } -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return NULL; #line 8139 "PhotoTable.c" } @@ -8164,27 +8164,27 @@ static gchar* value_backing_photo_row_collect_value (GValue* value, guint n_coll static gchar* value_backing_photo_row_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) { BackingPhotoRow** object_p; object_p = collect_values[0].v_pointer; -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (!object_p) { -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); #line 8150 "PhotoTable.c" } -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (!value->data[0].v_pointer) { -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" *object_p = NULL; #line 8156 "PhotoTable.c" } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" *object_p = value->data[0].v_pointer; #line 8160 "PhotoTable.c" } else { -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" *object_p = backing_photo_row_ref (value->data[0].v_pointer); #line 8164 "PhotoTable.c" } -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return NULL; #line 8168 "PhotoTable.c" } @@ -8192,22 +8192,22 @@ static gchar* value_backing_photo_row_lcopy_value (const GValue* value, guint n_ GParamSpec* param_spec_backing_photo_row (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) { ParamSpecBackingPhotoRow* spec; -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_return_val_if_fail (g_type_is_a (object_type, TYPE_BACKING_PHOTO_ROW), NULL); -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" G_PARAM_SPEC (spec)->value_type = object_type; -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return G_PARAM_SPEC (spec); #line 8182 "PhotoTable.c" } gpointer value_get_backing_photo_row (const GValue* value) { -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BACKING_PHOTO_ROW), NULL); -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return value->data[0].v_pointer; #line 8191 "PhotoTable.c" } @@ -8215,29 +8215,29 @@ gpointer value_get_backing_photo_row (const GValue* value) { void value_set_backing_photo_row (GValue* value, gpointer v_object) { BackingPhotoRow* old; -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BACKING_PHOTO_ROW)); -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" old = value->data[0].v_pointer; -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (v_object) { -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_BACKING_PHOTO_ROW)); -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" value->data[0].v_pointer = v_object; -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" backing_photo_row_ref (value->data[0].v_pointer); #line 8211 "PhotoTable.c" } else { -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" value->data[0].v_pointer = NULL; #line 8215 "PhotoTable.c" } -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (old) { -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" backing_photo_row_unref (old); #line 8221 "PhotoTable.c" } @@ -8246,27 +8246,27 @@ void value_set_backing_photo_row (GValue* value, gpointer v_object) { void value_take_backing_photo_row (GValue* value, gpointer v_object) { BackingPhotoRow* old; -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BACKING_PHOTO_ROW)); -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" old = value->data[0].v_pointer; -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (v_object) { -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_BACKING_PHOTO_ROW)); -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" value->data[0].v_pointer = v_object; #line 8240 "PhotoTable.c" } else { -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" value->data[0].v_pointer = NULL; #line 8244 "PhotoTable.c" } -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (old) { -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" backing_photo_row_unref (old); #line 8250 "PhotoTable.c" } @@ -8274,18 +8274,18 @@ void value_take_backing_photo_row (GValue* value, gpointer v_object) { static void backing_photo_row_class_init (BackingPhotoRowClass * klass) { -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" backing_photo_row_parent_class = g_type_class_peek_parent (klass); -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" ((BackingPhotoRowClass *) klass)->finalize = backing_photo_row_finalize; #line 8260 "PhotoTable.c" } static void backing_photo_row_instance_init (BackingPhotoRow * self) { -#line 1087 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1088 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" self->filepath = NULL; -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" self->ref_count = 1; #line 8269 "PhotoTable.c" } @@ -8293,11 +8293,11 @@ static void backing_photo_row_instance_init (BackingPhotoRow * self) { static void backing_photo_row_finalize (BackingPhotoRow* obj) { BackingPhotoRow * self; -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_BACKING_PHOTO_ROW, BackingPhotoRow); -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_signal_handlers_destroy (self); -#line 1087 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1088 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _g_free0 (self->filepath); #line 8281 "PhotoTable.c" } @@ -8320,9 +8320,9 @@ GType backing_photo_row_get_type (void) { gpointer backing_photo_row_ref (gpointer instance) { BackingPhotoRow* self; self = instance; -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_atomic_int_inc (&self->ref_count); -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return instance; #line 8306 "PhotoTable.c" } @@ -8331,11 +8331,11 @@ gpointer backing_photo_row_ref (gpointer instance) { void backing_photo_row_unref (gpointer instance) { BackingPhotoRow* self; self = instance; -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" BACKING_PHOTO_ROW_GET_CLASS (self)->finalize (self); -#line 1084 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_type_free_instance ((GTypeInstance *) self); #line 8319 "PhotoTable.c" } @@ -8353,52 +8353,52 @@ static BackingPhotoTable* backing_photo_table_construct (GType object_type) { sqlite3_stmt* _tmp4_ = NULL; gint _tmp5_ = 0; gint _tmp6_ = 0; -#line 1124 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - self = (BackingPhotoTable*) database_table_construct (object_type); #line 1125 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + self = (BackingPhotoTable*) database_table_construct (object_type); +#line 1126 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" database_table_set_table_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), "BackingPhotoTable"); -#line 1128 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1129 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp0_ = database_table_db; -#line 1128 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1129 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "CREATE TABLE IF NOT EXISTS " "BackingPhotoTable " "(" "id INTEGER PRIMARY KEY, " "filepath TEXT UNIQUE NOT NULL, " "timestamp INTEGER, " "filesize INTEGER, " "width INTEGER, " "height INTEGER, " "original_orientation INTEGER, " "file_format INTEGER, " "time_created INTEGER " ")", -1, &_tmp1_, NULL); -#line 1128 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1129 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _sqlite3_finalize0 (stmt); -#line 1128 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1129 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" stmt = _tmp1_; -#line 1128 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1129 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" res = _tmp2_; -#line 1141 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1142 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp3_ = res; -#line 1141 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1142 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 1143 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1144 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp4_ = stmt; -#line 1143 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1144 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp5_ = sqlite3_step (_tmp4_); -#line 1143 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp5_; #line 1144 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + res = _tmp5_; +#line 1145 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp6_ = res; -#line 1144 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1145 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (_tmp6_ != SQLITE_DONE) { #line 8363 "PhotoTable.c" gint _tmp7_ = 0; -#line 1145 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1146 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp7_ = res; -#line 1145 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1146 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" database_table_fatal ("create PhotoBackingTable", _tmp7_); #line 8369 "PhotoTable.c" } -#line 1124 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1125 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _sqlite3_finalize0 (stmt); -#line 1124 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1125 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return self; #line 8375 "PhotoTable.c" } static BackingPhotoTable* backing_photo_table_new (void) { -#line 1124 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1125 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return backing_photo_table_construct (TYPE_BACKING_PHOTO_TABLE); #line 8382 "PhotoTable.c" } @@ -8409,27 +8409,27 @@ BackingPhotoTable* backing_photo_table_get_instance (void) { BackingPhotoTable* _tmp0_ = NULL; BackingPhotoTable* _tmp2_ = NULL; BackingPhotoTable* _tmp3_ = NULL; -#line 1149 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1150 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp0_ = backing_photo_table_instance; -#line 1149 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1150 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (_tmp0_ == NULL) { #line 8395 "PhotoTable.c" BackingPhotoTable* _tmp1_ = NULL; -#line 1150 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1151 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp1_ = backing_photo_table_new (); -#line 1150 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1151 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _database_table_unref0 (backing_photo_table_instance); -#line 1150 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1151 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" backing_photo_table_instance = _tmp1_; #line 8403 "PhotoTable.c" } -#line 1152 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1153 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp2_ = backing_photo_table_instance; -#line 1152 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1153 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp3_ = _database_table_ref0 (_tmp2_); -#line 1152 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1153 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" result = _tmp3_; -#line 1152 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1153 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return result; #line 8413 "PhotoTable.c" } @@ -8497,203 +8497,203 @@ void backing_photo_table_add (BackingPhotoTable* self, BackingPhotoRow* state, G BackingPhotoRow* _tmp56_ = NULL; time_t _tmp57_ = 0; GError * _inner_error_ = NULL; -#line 1155 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1156 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_return_if_fail (IS_BACKING_PHOTO_TABLE (self)); -#line 1155 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1156 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_return_if_fail (IS_BACKING_PHOTO_ROW (state)); -#line 1157 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1158 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp0_ = database_table_db; -#line 1157 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1158 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "INSERT INTO BackingPhotoTable " "(filepath, timestamp, filesize, width, height, original_orientation, " "file_format, time_created) " "VALUES (?, ?, ?, ?, ?, ?, ?, ?)", -1, &_tmp1_, NULL); -#line 1157 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1158 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _sqlite3_finalize0 (stmt); -#line 1157 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1158 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" stmt = _tmp1_; -#line 1157 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1158 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" res = _tmp2_; -#line 1162 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1163 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp3_ = res; -#line 1162 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1163 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 1164 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1165 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp4_ = now_sec (); -#line 1164 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1165 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" time_created = (time_t) _tmp4_; -#line 1166 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1167 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp5_ = stmt; -#line 1166 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1167 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp6_ = state; -#line 1166 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1167 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp7_ = _tmp6_->filepath; -#line 1166 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1167 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp8_ = g_strdup (_tmp7_); -#line 1166 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1167 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp9_ = g_free; -#line 1166 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1167 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp10_ = sqlite3_bind_text (_tmp5_, 1, _tmp8_, -1, _tmp9_); -#line 1166 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp10_; #line 1167 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + res = _tmp10_; +#line 1168 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp11_ = res; -#line 1167 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp11_ == SQLITE_OK, "res == Sqlite.OK"); #line 1168 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + _vala_assert (_tmp11_ == SQLITE_OK, "res == Sqlite.OK"); +#line 1169 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp12_ = stmt; -#line 1168 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1169 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp13_ = state; -#line 1168 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1169 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp14_ = _tmp13_->timestamp; -#line 1168 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1169 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp15_ = sqlite3_bind_int64 (_tmp12_, 2, (gint64) _tmp14_); -#line 1168 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp15_; #line 1169 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + res = _tmp15_; +#line 1170 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp16_ = res; -#line 1169 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp16_ == SQLITE_OK, "res == Sqlite.OK"); #line 1170 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + _vala_assert (_tmp16_ == SQLITE_OK, "res == Sqlite.OK"); +#line 1171 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp17_ = stmt; -#line 1170 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1171 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp18_ = state; -#line 1170 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1171 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp19_ = _tmp18_->filesize; -#line 1170 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1171 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp20_ = sqlite3_bind_int64 (_tmp17_, 3, _tmp19_); -#line 1170 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp20_; #line 1171 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + res = _tmp20_; +#line 1172 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp21_ = res; -#line 1171 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp21_ == SQLITE_OK, "res == Sqlite.OK"); #line 1172 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + _vala_assert (_tmp21_ == SQLITE_OK, "res == Sqlite.OK"); +#line 1173 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp22_ = stmt; -#line 1172 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1173 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp23_ = state; -#line 1172 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1173 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp24_ = _tmp23_->dim; -#line 1172 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1173 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp25_ = _tmp24_.width; -#line 1172 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1173 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp26_ = sqlite3_bind_int (_tmp22_, 4, _tmp25_); -#line 1172 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp26_; #line 1173 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + res = _tmp26_; +#line 1174 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp27_ = res; -#line 1173 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp27_ == SQLITE_OK, "res == Sqlite.OK"); #line 1174 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + _vala_assert (_tmp27_ == SQLITE_OK, "res == Sqlite.OK"); +#line 1175 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp28_ = stmt; -#line 1174 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1175 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp29_ = state; -#line 1174 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1175 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp30_ = _tmp29_->dim; -#line 1174 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1175 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp31_ = _tmp30_.height; -#line 1174 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1175 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp32_ = sqlite3_bind_int (_tmp28_, 5, _tmp31_); -#line 1174 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp32_; #line 1175 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + res = _tmp32_; +#line 1176 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp33_ = res; -#line 1175 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp33_ == SQLITE_OK, "res == Sqlite.OK"); #line 1176 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + _vala_assert (_tmp33_ == SQLITE_OK, "res == Sqlite.OK"); +#line 1177 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp34_ = stmt; -#line 1176 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1177 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp35_ = state; -#line 1176 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1177 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp36_ = _tmp35_->original_orientation; -#line 1176 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1177 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp37_ = sqlite3_bind_int (_tmp34_, 6, (gint) _tmp36_); -#line 1176 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp37_; #line 1177 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + res = _tmp37_; +#line 1178 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp38_ = res; -#line 1177 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp38_ == SQLITE_OK, "res == Sqlite.OK"); #line 1178 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + _vala_assert (_tmp38_ == SQLITE_OK, "res == Sqlite.OK"); +#line 1179 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp39_ = stmt; -#line 1178 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1179 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp40_ = state; -#line 1178 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1179 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp41_ = _tmp40_->file_format; -#line 1178 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1179 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp42_ = photo_file_format_serialize (_tmp41_); -#line 1178 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1179 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp43_ = sqlite3_bind_int (_tmp39_, 7, _tmp42_); -#line 1178 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp43_; #line 1179 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + res = _tmp43_; +#line 1180 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp44_ = res; -#line 1179 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp44_ == SQLITE_OK, "res == Sqlite.OK"); #line 1180 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + _vala_assert (_tmp44_ == SQLITE_OK, "res == Sqlite.OK"); +#line 1181 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp45_ = stmt; -#line 1180 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1181 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp46_ = time_created; -#line 1180 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1181 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp47_ = sqlite3_bind_int64 (_tmp45_, 8, (gint64) _tmp46_); -#line 1180 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp47_; #line 1181 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + res = _tmp47_; +#line 1182 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp48_ = res; -#line 1181 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1182 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _vala_assert (_tmp48_ == SQLITE_OK, "res == Sqlite.OK"); -#line 1183 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1184 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp49_ = stmt; -#line 1183 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1184 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp50_ = sqlite3_step (_tmp49_); -#line 1183 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp50_; #line 1184 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + res = _tmp50_; +#line 1185 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp51_ = res; -#line 1184 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1185 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (_tmp51_ != SQLITE_DONE) { #line 8631 "PhotoTable.c" gint _tmp52_ = 0; -#line 1185 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1186 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp52_ = res; -#line 1185 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1186 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" database_table_throw_error ("PhotoBackingTable.add", _tmp52_, &_inner_error_); -#line 1185 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1186 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1185 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1186 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (_inner_error_->domain == DATABASE_ERROR) { -#line 1185 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1186 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_propagate_error (error, _inner_error_); -#line 1185 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1186 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _sqlite3_finalize0 (stmt); -#line 1185 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1186 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return; #line 8647 "PhotoTable.c" } else { -#line 1185 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1186 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _sqlite3_finalize0 (stmt); -#line 1185 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1186 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1185 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1186 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_clear_error (&_inner_error_); -#line 1185 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1186 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return; #line 8657 "PhotoTable.c" } } } -#line 1187 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1188 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp53_ = state; -#line 1187 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1188 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp54_ = database_table_db; -#line 1187 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1188 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp55_ = sqlite3_last_insert_rowid (_tmp54_); -#line 1187 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - backing_photo_id_init (&_tmp53_->id, _tmp55_); #line 1188 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + backing_photo_id_init (&_tmp53_->id, _tmp55_); +#line 1189 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp56_ = state; -#line 1188 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1189 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp57_ = time_created; -#line 1188 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1189 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp56_->time_created = _tmp57_; -#line 1155 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1156 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _sqlite3_finalize0 (stmt); #line 8677 "PhotoTable.c" } @@ -8745,174 +8745,174 @@ BackingPhotoRow* backing_photo_table_fetch (BackingPhotoTable* self, BackingPhot sqlite3_stmt* _tmp40_ = NULL; gint64 _tmp41_ = 0LL; GError * _inner_error_ = NULL; -#line 1191 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1192 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_return_val_if_fail (IS_BACKING_PHOTO_TABLE (self), NULL); -#line 1191 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1192 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_return_val_if_fail (id != NULL, NULL); -#line 1193 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1194 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp0_ = database_table_db; -#line 1193 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1194 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "SELECT filepath, timestamp, filesize, width, height, " "original_orientation, file_format, time_created FROM BackingPhotoTable" \ " WHERE id=?", -1, &_tmp1_, NULL); -#line 1193 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1194 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _sqlite3_finalize0 (stmt); -#line 1193 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1194 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" stmt = _tmp1_; -#line 1193 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1194 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" res = _tmp2_; -#line 1196 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1197 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp3_ = res; -#line 1196 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1197 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 1198 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1199 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp4_ = stmt; -#line 1198 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1199 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp5_ = *id; -#line 1198 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1199 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp6_ = _tmp5_.id; -#line 1198 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1199 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp7_ = sqlite3_bind_int64 (_tmp4_, 1, _tmp6_); -#line 1198 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp7_; #line 1199 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + res = _tmp7_; +#line 1200 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp8_ = res; -#line 1199 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1200 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _vala_assert (_tmp8_ == SQLITE_OK, "res == Sqlite.OK"); -#line 1201 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1202 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp9_ = stmt; -#line 1201 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1202 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp10_ = sqlite3_step (_tmp9_); -#line 1201 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp10_; #line 1202 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + res = _tmp10_; +#line 1203 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp11_ = res; -#line 1202 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp11_ == SQLITE_DONE) { #line 1203 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + if (_tmp11_ == SQLITE_DONE) { +#line 1204 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" result = NULL; -#line 1203 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1204 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _sqlite3_finalize0 (stmt); -#line 1203 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1204 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return result; #line 8775 "PhotoTable.c" } else { gint _tmp12_ = 0; -#line 1204 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1205 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp12_ = res; -#line 1204 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1205 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (_tmp12_ != SQLITE_ROW) { #line 8782 "PhotoTable.c" gint _tmp13_ = 0; -#line 1205 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1206 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp13_ = res; -#line 1205 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1206 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" database_table_throw_error ("BackingPhotoTable.fetch_for_photo", _tmp13_, &_inner_error_); -#line 1205 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1206 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1205 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1206 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (_inner_error_->domain == DATABASE_ERROR) { -#line 1205 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1206 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_propagate_error (error, _inner_error_); -#line 1205 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1206 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _sqlite3_finalize0 (stmt); -#line 1205 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1206 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return NULL; #line 8798 "PhotoTable.c" } else { -#line 1205 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1206 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _sqlite3_finalize0 (stmt); -#line 1205 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1206 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1205 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1206 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_clear_error (&_inner_error_); -#line 1205 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1206 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return NULL; #line 8808 "PhotoTable.c" } } } } -#line 1207 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1208 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp14_ = backing_photo_row_new (); -#line 1207 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - row = _tmp14_; #line 1208 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + row = _tmp14_; +#line 1209 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp15_ = row; -#line 1208 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1209 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp16_ = *id; -#line 1208 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp15_->id = _tmp16_; #line 1209 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + _tmp15_->id = _tmp16_; +#line 1210 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp17_ = row; -#line 1209 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1210 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp18_ = stmt; -#line 1209 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1210 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp19_ = sqlite3_column_text (_tmp18_, 0); -#line 1209 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1210 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp20_ = g_strdup (_tmp19_); -#line 1209 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1210 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _g_free0 (_tmp17_->filepath); -#line 1209 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp17_->filepath = _tmp20_; #line 1210 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + _tmp17_->filepath = _tmp20_; +#line 1211 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp21_ = row; -#line 1210 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1211 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp22_ = stmt; -#line 1210 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1211 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp23_ = sqlite3_column_int64 (_tmp22_, 1); -#line 1210 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp21_->timestamp = (time_t) _tmp23_; #line 1211 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + _tmp21_->timestamp = (time_t) _tmp23_; +#line 1212 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp24_ = row; -#line 1211 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1212 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp25_ = stmt; -#line 1211 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1212 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp26_ = sqlite3_column_int64 (_tmp25_, 2); -#line 1211 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp24_->filesize = _tmp26_; #line 1212 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + _tmp24_->filesize = _tmp26_; +#line 1213 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp27_ = row; -#line 1212 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1213 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp28_ = stmt; -#line 1212 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1213 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp29_ = sqlite3_column_int (_tmp28_, 3); -#line 1212 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1213 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp30_ = stmt; -#line 1212 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1213 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp31_ = sqlite3_column_int (_tmp30_, 4); -#line 1212 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - dimensions_init (&_tmp27_->dim, _tmp29_, _tmp31_); #line 1213 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + dimensions_init (&_tmp27_->dim, _tmp29_, _tmp31_); +#line 1214 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp32_ = row; -#line 1213 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1214 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp33_ = stmt; -#line 1213 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1214 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp34_ = sqlite3_column_int (_tmp33_, 5); -#line 1213 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp32_->original_orientation = (Orientation) _tmp34_; #line 1214 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + _tmp32_->original_orientation = (Orientation) _tmp34_; +#line 1215 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp35_ = row; -#line 1214 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1215 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp36_ = stmt; -#line 1214 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1215 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp37_ = sqlite3_column_int (_tmp36_, 6); -#line 1214 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1215 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp38_ = photo_file_format_unserialize (_tmp37_); -#line 1214 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp35_->file_format = _tmp38_; #line 1215 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + _tmp35_->file_format = _tmp38_; +#line 1216 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp39_ = row; -#line 1215 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1216 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp40_ = stmt; -#line 1215 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1216 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp41_ = sqlite3_column_int64 (_tmp40_, 7); -#line 1215 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1216 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp39_->time_created = (time_t) _tmp41_; -#line 1217 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1218 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" result = row; -#line 1217 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1218 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _sqlite3_finalize0 (stmt); -#line 1217 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1218 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return result; #line 8895 "PhotoTable.c" } @@ -8968,171 +8968,171 @@ void backing_photo_table_update (BackingPhotoTable* self, BackingPhotoRow* row, gint _tmp44_ = 0; gint _tmp45_ = 0; GError * _inner_error_ = NULL; -#line 1221 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1222 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_return_if_fail (IS_BACKING_PHOTO_TABLE (self)); -#line 1221 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1222 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_return_if_fail (IS_BACKING_PHOTO_ROW (row)); -#line 1223 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1224 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp0_ = database_table_db; -#line 1223 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1224 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "UPDATE BackingPhotoTable SET timestamp=?, filesize=?, " "width=?, height=?, original_orientation=?, file_format=? " "WHERE id=?", -1, &_tmp1_, NULL); -#line 1223 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1224 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _sqlite3_finalize0 (stmt); -#line 1223 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1224 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" stmt = _tmp1_; -#line 1223 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1224 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" res = _tmp2_; -#line 1227 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1228 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp3_ = res; -#line 1227 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1228 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 1229 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1230 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp4_ = stmt; -#line 1229 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1230 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp5_ = row; -#line 1229 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1230 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp6_ = _tmp5_->timestamp; -#line 1229 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1230 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp7_ = sqlite3_bind_int64 (_tmp4_, 1, (gint64) _tmp6_); -#line 1229 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp7_; #line 1230 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + res = _tmp7_; +#line 1231 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp8_ = res; -#line 1230 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp8_ == SQLITE_OK, "res == Sqlite.OK"); #line 1231 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + _vala_assert (_tmp8_ == SQLITE_OK, "res == Sqlite.OK"); +#line 1232 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp9_ = stmt; -#line 1231 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1232 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp10_ = row; -#line 1231 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1232 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp11_ = _tmp10_->filesize; -#line 1231 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1232 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp12_ = sqlite3_bind_int64 (_tmp9_, 2, _tmp11_); -#line 1231 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp12_; #line 1232 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + res = _tmp12_; +#line 1233 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp13_ = res; -#line 1232 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp13_ == SQLITE_OK, "res == Sqlite.OK"); #line 1233 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + _vala_assert (_tmp13_ == SQLITE_OK, "res == Sqlite.OK"); +#line 1234 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp14_ = stmt; -#line 1233 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1234 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp15_ = row; -#line 1233 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1234 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp16_ = _tmp15_->dim; -#line 1233 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1234 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp17_ = _tmp16_.width; -#line 1233 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1234 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp18_ = sqlite3_bind_int (_tmp14_, 3, _tmp17_); -#line 1233 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp18_; #line 1234 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + res = _tmp18_; +#line 1235 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp19_ = res; -#line 1234 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp19_ == SQLITE_OK, "res == Sqlite.OK"); #line 1235 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + _vala_assert (_tmp19_ == SQLITE_OK, "res == Sqlite.OK"); +#line 1236 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp20_ = stmt; -#line 1235 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1236 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp21_ = row; -#line 1235 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1236 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp22_ = _tmp21_->dim; -#line 1235 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1236 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp23_ = _tmp22_.height; -#line 1235 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1236 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp24_ = sqlite3_bind_int (_tmp20_, 4, _tmp23_); -#line 1235 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp24_; #line 1236 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + res = _tmp24_; +#line 1237 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp25_ = res; -#line 1236 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp25_ == SQLITE_OK, "res == Sqlite.OK"); #line 1237 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + _vala_assert (_tmp25_ == SQLITE_OK, "res == Sqlite.OK"); +#line 1238 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp26_ = stmt; -#line 1237 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1238 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp27_ = row; -#line 1237 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1238 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp28_ = _tmp27_->original_orientation; -#line 1237 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1238 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp29_ = sqlite3_bind_int (_tmp26_, 5, (gint) _tmp28_); -#line 1237 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp29_; #line 1238 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + res = _tmp29_; +#line 1239 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp30_ = res; -#line 1238 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp30_ == SQLITE_OK, "res == Sqlite.OK"); #line 1239 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + _vala_assert (_tmp30_ == SQLITE_OK, "res == Sqlite.OK"); +#line 1240 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp31_ = stmt; -#line 1239 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1240 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp32_ = row; -#line 1239 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1240 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp33_ = _tmp32_->file_format; -#line 1239 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1240 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp34_ = photo_file_format_serialize (_tmp33_); -#line 1239 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1240 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp35_ = sqlite3_bind_int (_tmp31_, 6, _tmp34_); -#line 1239 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp35_; #line 1240 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + res = _tmp35_; +#line 1241 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp36_ = res; -#line 1240 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp36_ == SQLITE_OK, "res == Sqlite.OK"); #line 1241 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + _vala_assert (_tmp36_ == SQLITE_OK, "res == Sqlite.OK"); +#line 1242 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp37_ = stmt; -#line 1241 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1242 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp38_ = row; -#line 1241 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1242 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp39_ = _tmp38_->id; -#line 1241 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1242 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp40_ = _tmp39_.id; -#line 1241 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1242 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp41_ = sqlite3_bind_int64 (_tmp37_, 7, _tmp40_); -#line 1241 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp41_; #line 1242 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + res = _tmp41_; +#line 1243 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp42_ = res; -#line 1242 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1243 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _vala_assert (_tmp42_ == SQLITE_OK, "res == Sqlite.OK"); -#line 1244 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1245 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp43_ = stmt; -#line 1244 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1245 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp44_ = sqlite3_step (_tmp43_); -#line 1244 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp44_; #line 1245 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + res = _tmp44_; +#line 1246 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp45_ = res; -#line 1245 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1246 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (_tmp45_ != SQLITE_DONE) { #line 9083 "PhotoTable.c" gint _tmp46_ = 0; -#line 1246 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1247 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp46_ = res; -#line 1246 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1247 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" database_table_throw_error ("BackingPhotoTable.update", _tmp46_, &_inner_error_); -#line 1246 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1247 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1246 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1247 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (_inner_error_->domain == DATABASE_ERROR) { -#line 1246 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1247 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_propagate_error (error, _inner_error_); -#line 1246 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1247 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _sqlite3_finalize0 (stmt); -#line 1246 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1247 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return; #line 9099 "PhotoTable.c" } else { -#line 1246 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1247 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _sqlite3_finalize0 (stmt); -#line 1246 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1247 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1246 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1247 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_clear_error (&_inner_error_); -#line 1246 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1247 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return; #line 9109 "PhotoTable.c" } } } -#line 1221 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1222 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _sqlite3_finalize0 (stmt); #line 9115 "PhotoTable.c" } @@ -9162,103 +9162,103 @@ void backing_photo_table_update_attributes (BackingPhotoTable* self, BackingPhot gint _tmp18_ = 0; gint _tmp19_ = 0; GError * _inner_error_ = NULL; -#line 1249 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1250 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_return_if_fail (IS_BACKING_PHOTO_TABLE (self)); -#line 1249 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1250 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_return_if_fail (id != NULL); -#line 1251 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1252 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp0_ = database_table_db; -#line 1251 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1252 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "UPDATE BackingPhotoTable SET timestamp=?, filesize=? WHERE id=?", -1, &_tmp1_, NULL); -#line 1251 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1252 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _sqlite3_finalize0 (stmt); -#line 1251 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1252 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" stmt = _tmp1_; -#line 1251 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1252 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" res = _tmp2_; -#line 1253 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1254 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp3_ = res; -#line 1253 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1254 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 1255 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1256 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp4_ = stmt; -#line 1255 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1256 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp5_ = timestamp; -#line 1255 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1256 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp6_ = sqlite3_bind_int64 (_tmp4_, 1, (gint64) _tmp5_); -#line 1255 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp6_; #line 1256 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + res = _tmp6_; +#line 1257 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp7_ = res; -#line 1256 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK"); #line 1257 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK"); +#line 1258 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp8_ = stmt; -#line 1257 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1258 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp9_ = filesize; -#line 1257 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1258 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp10_ = sqlite3_bind_int64 (_tmp8_, 2, _tmp9_); -#line 1257 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp10_; #line 1258 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + res = _tmp10_; +#line 1259 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp11_ = res; -#line 1258 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp11_ == SQLITE_OK, "res == Sqlite.OK"); #line 1259 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + _vala_assert (_tmp11_ == SQLITE_OK, "res == Sqlite.OK"); +#line 1260 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp12_ = stmt; -#line 1259 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1260 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp13_ = *id; -#line 1259 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1260 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp14_ = _tmp13_.id; -#line 1259 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1260 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp15_ = sqlite3_bind_int64 (_tmp12_, 3, _tmp14_); -#line 1259 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp15_; #line 1260 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + res = _tmp15_; +#line 1261 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp16_ = res; -#line 1260 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1261 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _vala_assert (_tmp16_ == SQLITE_OK, "res == Sqlite.OK"); -#line 1262 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1263 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp17_ = stmt; -#line 1262 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1263 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp18_ = sqlite3_step (_tmp17_); -#line 1262 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp18_; #line 1263 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + res = _tmp18_; +#line 1264 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp19_ = res; -#line 1263 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1264 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (_tmp19_ != SQLITE_DONE) { #line 9209 "PhotoTable.c" gint _tmp20_ = 0; -#line 1264 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1265 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp20_ = res; -#line 1264 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1265 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" database_table_throw_error ("BackingPhotoTable.update_attributes", _tmp20_, &_inner_error_); -#line 1264 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1265 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1264 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1265 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (_inner_error_->domain == DATABASE_ERROR) { -#line 1264 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1265 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_propagate_error (error, _inner_error_); -#line 1264 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1265 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _sqlite3_finalize0 (stmt); -#line 1264 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1265 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return; #line 9225 "PhotoTable.c" } else { -#line 1264 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1265 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _sqlite3_finalize0 (stmt); -#line 1264 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1265 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1264 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1265 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_clear_error (&_inner_error_); -#line 1264 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1265 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return; #line 9235 "PhotoTable.c" } } } -#line 1249 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1250 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _sqlite3_finalize0 (stmt); #line 9241 "PhotoTable.c" } @@ -9268,31 +9268,31 @@ void backing_photo_table_remove (BackingPhotoTable* self, BackingPhotoID* backin BackingPhotoID _tmp0_ = {0}; gint64 _tmp1_ = 0LL; GError * _inner_error_ = NULL; -#line 1267 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1268 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_return_if_fail (IS_BACKING_PHOTO_TABLE (self)); -#line 1267 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (backing_id != NULL); #line 1268 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + g_return_if_fail (backing_id != NULL); +#line 1269 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp0_ = *backing_id; -#line 1268 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1269 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp1_ = _tmp0_.id; -#line 1268 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1269 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" database_table_delete_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, &_inner_error_); -#line 1268 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1269 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1268 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1269 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (_inner_error_->domain == DATABASE_ERROR) { -#line 1268 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1269 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_propagate_error (error, _inner_error_); -#line 1268 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1269 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return; #line 9267 "PhotoTable.c" } else { -#line 1268 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1269 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1268 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1269 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_clear_error (&_inner_error_); -#line 1268 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1269 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return; #line 9275 "PhotoTable.c" } @@ -9305,35 +9305,35 @@ void backing_photo_table_set_filepath (BackingPhotoTable* self, BackingPhotoID* gint64 _tmp1_ = 0LL; const gchar* _tmp2_ = NULL; GError * _inner_error_ = NULL; -#line 1271 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1272 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_return_if_fail (IS_BACKING_PHOTO_TABLE (self)); -#line 1271 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1272 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_return_if_fail (id != NULL); -#line 1271 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (filepath != NULL); #line 1272 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + g_return_if_fail (filepath != NULL); +#line 1273 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp0_ = *id; -#line 1272 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1273 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp1_ = _tmp0_.id; -#line 1272 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1273 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp2_ = filepath; -#line 1272 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1273 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" database_table_update_text_by_id_2 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "filepath", _tmp2_, &_inner_error_); -#line 1272 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1273 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1272 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1273 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (_inner_error_->domain == DATABASE_ERROR) { -#line 1272 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1273 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_propagate_error (error, _inner_error_); -#line 1272 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1273 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return; #line 9308 "PhotoTable.c" } else { -#line 1272 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1273 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1272 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1273 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_clear_error (&_inner_error_); -#line 1272 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1273 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return; #line 9316 "PhotoTable.c" } @@ -9346,33 +9346,33 @@ void backing_photo_table_update_timestamp (BackingPhotoTable* self, BackingPhoto gint64 _tmp1_ = 0LL; time_t _tmp2_ = 0; GError * _inner_error_ = NULL; -#line 1275 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1276 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_return_if_fail (IS_BACKING_PHOTO_TABLE (self)); -#line 1275 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (id != NULL); #line 1276 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" + g_return_if_fail (id != NULL); +#line 1277 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp0_ = *id; -#line 1276 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1277 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp1_ = _tmp0_.id; -#line 1276 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1277 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" _tmp2_ = timestamp; -#line 1276 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1277 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" database_table_update_int64_by_id_2 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "timestamp", (gint64) _tmp2_, &_inner_error_); -#line 1276 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1277 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1276 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1277 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" if (_inner_error_->domain == DATABASE_ERROR) { -#line 1276 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1277 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_propagate_error (error, _inner_error_); -#line 1276 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1277 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return; #line 9347 "PhotoTable.c" } else { -#line 1276 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1277 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1276 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1277 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" g_clear_error (&_inner_error_); -#line 1276 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1277 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" return; #line 9355 "PhotoTable.c" } @@ -9381,9 +9381,9 @@ void backing_photo_table_update_timestamp (BackingPhotoTable* self, BackingPhoto static void backing_photo_table_class_init (BackingPhotoTableClass * klass) { -#line 1121 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1122 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" backing_photo_table_parent_class = g_type_class_peek_parent (klass); -#line 1121 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1122 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" ((DatabaseTableClass *) klass)->finalize = backing_photo_table_finalize; #line 9366 "PhotoTable.c" } @@ -9395,9 +9395,9 @@ static void backing_photo_table_instance_init (BackingPhotoTable * self) { static void backing_photo_table_finalize (DatabaseTable* obj) { BackingPhotoTable * self; -#line 1121 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1122 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_BACKING_PHOTO_TABLE, BackingPhotoTable); -#line 1121 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" +#line 1122 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" DATABASE_TABLE_CLASS (backing_photo_table_parent_class)->finalize (obj); #line 9380 "PhotoTable.c" } diff --git a/src/db/PhotoTable.vala b/src/db/PhotoTable.vala index 4304da8..24cec86 100644 --- a/src/db/PhotoTable.vala +++ b/src/db/PhotoTable.vala @@ -920,14 +920,15 @@ public class PhotoTable : DatabaseTable { sql += " OR (("; first = false; - if (thumbnail_md5 != null) - sql += " thumbnail_md5=?"; - if (md5 != null) { - if (thumbnail_md5 == null) - sql += " md5=?"; + sql += " md5=?"; + + } + if (thumbnail_md5 != null) { + if (md5 == null) + sql += " thumbnail_md5=?"; else - sql += " OR md5=?"; + sql += " OR (md5 IS NULL AND thumbnail_md5=?)"; } sql += ")"; diff --git a/src/db/SavedSearchDBTable.c b/src/db/SavedSearchDBTable.c index 1747d47..f0c850f 100644 --- a/src/db/SavedSearchDBTable.c +++ b/src/db/SavedSearchDBTable.c @@ -1,4 +1,4 @@ -/* SavedSearchDBTable.c generated by valac 0.32.1, the Vala compiler +/* SavedSearchDBTable.c generated by valac 0.34.4, the Vala compiler * generated from SavedSearchDBTable.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/db/TagTable.c b/src/db/TagTable.c index 1c58788..1e38ccd 100644 --- a/src/db/TagTable.c +++ b/src/db/TagTable.c @@ -1,4 +1,4 @@ -/* TagTable.c generated by valac 0.32.1, the Vala compiler +/* TagTable.c generated by valac 0.34.4, the Vala compiler * generated from TagTable.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -645,11 +645,11 @@ static gpointer _g_object_ref0 (gpointer self) { static gchar* string_replace (const gchar* self, const gchar* old, const gchar* replacement) { gchar* result = NULL; GError * _inner_error_ = NULL; -#line 1380 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1380 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, NULL); -#line 1380 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1380 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (old != NULL, NULL); -#line 1380 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1380 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (replacement != NULL, NULL); #line 655 "TagTable.c" { @@ -664,98 +664,98 @@ static gchar* string_replace (const gchar* self, const gchar* old, const gchar* const gchar* _tmp7_ = NULL; gchar* _tmp8_ = NULL; gchar* _tmp9_ = NULL; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = old; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = g_regex_escape_string (_tmp0_, -1); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = _tmp1_; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = g_regex_new (_tmp2_, 0, 0, &_inner_error_); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = _tmp3_; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_free0 (_tmp2_); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" regex = _tmp4_; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_inner_error_->domain == G_REGEX_ERROR) { #line 686 "TagTable.c" - goto __catch19_g_regex_error; + goto __catch21_g_regex_error; } -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_clear_error (&_inner_error_); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return NULL; #line 695 "TagTable.c" } -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp6_ = regex; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp7_ = replacement; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp8_ = g_regex_replace_literal (_tmp6_, self, (gssize) -1, 0, _tmp7_, 0, &_inner_error_); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = _tmp8_; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_regex_unref0 (regex); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_inner_error_->domain == G_REGEX_ERROR) { #line 711 "TagTable.c" - goto __catch19_g_regex_error; + goto __catch21_g_regex_error; } -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_regex_unref0 (regex); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_clear_error (&_inner_error_); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return NULL; #line 722 "TagTable.c" } -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp9_ = _tmp5_; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = NULL; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp9_; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_free0 (_tmp5_); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_regex_unref0 (regex); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 736 "TagTable.c" } - goto __finally19; - __catch19_g_regex_error: + goto __finally21; + __catch21_g_regex_error: { GError* e = NULL; -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" e = _inner_error_; -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _inner_error_ = NULL; -#line 1385 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1385 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_assert_not_reached (); -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_error_free0 (e); #line 750 "TagTable.c" } - __finally19: -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" + __finally21: +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_clear_error (&_inner_error_); -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return NULL; #line 761 "TagTable.c" } @@ -786,7 +786,7 @@ void tag_table_upgrade_for_htags (void) { #line 65 "/home/jens/Source/shotwell/src/db/TagTable.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 789 "TagTable.c" - goto __catch18_database_error; + goto __catch20_database_error; } #line 65 "/home/jens/Source/shotwell/src/db/TagTable.vala" _database_table_unref0 (table); @@ -899,7 +899,7 @@ void tag_table_upgrade_for_htags (void) { #line 69 "/home/jens/Source/shotwell/src/db/TagTable.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 902 "TagTable.c" - goto __catch18_database_error; + goto __catch20_database_error; } #line 69 "/home/jens/Source/shotwell/src/db/TagTable.vala" _tag_row_unref0 (row); @@ -929,8 +929,8 @@ void tag_table_upgrade_for_htags (void) { _g_object_unref0 (rows); #line 931 "TagTable.c" } - goto __finally18; - __catch18_database_error: + goto __finally20; + __catch20_database_error: { GError* e = NULL; const gchar* _tmp23_ = NULL; @@ -947,7 +947,7 @@ void tag_table_upgrade_for_htags (void) { _g_error_free0 (e); #line 948 "TagTable.c" } - __finally18: + __finally20: #line 64 "/home/jens/Source/shotwell/src/db/TagTable.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 64 "/home/jens/Source/shotwell/src/db/TagTable.vala" @@ -2013,15 +2013,15 @@ static gchar string_get (const gchar* self, glong index) { gchar result = '\0'; glong _tmp0_ = 0L; gchar _tmp1_ = '\0'; -#line 1086 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1086 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, '\0'); -#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = index; -#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = ((gchar*) self)[_tmp0_]; -#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp1_; -#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 2025 "TagTable.c" } diff --git a/src/db/TombstoneTable.c b/src/db/TombstoneTable.c index 542e568..7829600 100644 --- a/src/db/TombstoneTable.c +++ b/src/db/TombstoneTable.c @@ -1,4 +1,4 @@ -/* TombstoneTable.c generated by valac 0.32.1, the Vala compiler +/* TombstoneTable.c generated by valac 0.34.4, the Vala compiler * generated from TombstoneTable.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/db/VersionTable.c b/src/db/VersionTable.c index fa79d52..895d2ad 100644 --- a/src/db/VersionTable.c +++ b/src/db/VersionTable.c @@ -1,4 +1,4 @@ -/* VersionTable.c generated by valac 0.32.1, the Vala compiler +/* VersionTable.c generated by valac 0.34.4, the Vala compiler * generated from VersionTable.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/db/VideoTable.c b/src/db/VideoTable.c index 8b8d78a..39adf72 100644 --- a/src/db/VideoTable.c +++ b/src/db/VideoTable.c @@ -1,4 +1,4 @@ -/* VideoTable.c generated by valac 0.32.1, the Vala compiler +/* VideoTable.c generated by valac 0.34.4, the Vala compiler * generated from VideoTable.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/direct/Direct.c b/src/direct/Direct.c index 2e1bfa4..3f0abf5 100644 --- a/src/direct/Direct.c +++ b/src/direct/Direct.c @@ -1,4 +1,4 @@ -/* Direct.c generated by valac 0.32.1, the Vala compiler +/* Direct.c generated by valac 0.34.4, the Vala compiler * generated from Direct.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/direct/DirectPhoto.c b/src/direct/DirectPhoto.c index 97ebcd5..6e17fe2 100644 --- a/src/direct/DirectPhoto.c +++ b/src/direct/DirectPhoto.c @@ -1,4 +1,4 @@ -/* DirectPhoto.c generated by valac 0.32.1, the Vala compiler +/* DirectPhoto.c generated by valac 0.34.4, the Vala compiler * generated from DirectPhoto.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -1258,7 +1258,7 @@ static void direct_photo_save_dims (DirectPhoto* self) { #line 59 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1261 "DirectPhoto.c" - goto __catch42_g_error; + goto __catch44_g_error; } #line 59 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo)->backing_photo_row; @@ -1270,8 +1270,8 @@ static void direct_photo_save_dims (DirectPhoto* self) { _g_object_unref0 (_tmp0_); #line 1272 "DirectPhoto.c" } - goto __finally42; - __catch42_g_error: + goto __finally44; + __catch44_g_error: { GError* e = NULL; gchar* _tmp5_ = NULL; @@ -1292,7 +1292,7 @@ static void direct_photo_save_dims (DirectPhoto* self) { _g_error_free0 (e); #line 1294 "DirectPhoto.c" } - __finally42: + __finally44: #line 58 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 58 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" @@ -1337,7 +1337,7 @@ ImportResult direct_photo_demand_load (DirectPhoto* self) { #line 75 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1340 "DirectPhoto.c" - goto __catch43_g_error; + goto __catch45_g_error; } #line 76 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" _tmp2_ = reimport_state; @@ -1346,11 +1346,11 @@ ImportResult direct_photo_demand_load (DirectPhoto* self) { #line 76 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1349 "DirectPhoto.c" - goto __catch43_g_error; + goto __catch45_g_error; } } - goto __finally43; - __catch43_g_error: + goto __finally45; + __catch45_g_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -1375,7 +1375,7 @@ ImportResult direct_photo_demand_load (DirectPhoto* self) { return result; #line 1377 "DirectPhoto.c" } - __finally43: + __finally45: #line 74 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 74 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" @@ -2563,7 +2563,7 @@ gchar* direct_photo_source_collection_fetch (DirectPhotoSourceCollection* self, #line 289 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" _photo_reimport_master_state_unref0 (reimport_state); #line 2566 "DirectPhoto.c" - goto __catch44_g_error; + goto __catch46_g_error; } #line 289 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" if (_tmp12_) { @@ -2582,7 +2582,7 @@ gchar* direct_photo_source_collection_fetch (DirectPhotoSourceCollection* self, #line 290 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" _photo_reimport_master_state_unref0 (reimport_state); #line 2585 "DirectPhoto.c" - goto __catch44_g_error; + goto __catch46_g_error; } #line 291 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" _tmp18_ = should_restore_ori; @@ -2613,8 +2613,8 @@ gchar* direct_photo_source_collection_fetch (DirectPhotoSourceCollection* self, _photo_reimport_master_state_unref0 (reimport_state); #line 2615 "DirectPhoto.c" } - goto __finally44; - __catch44_g_error: + goto __finally46; + __catch46_g_error: { GError* err = NULL; GError* _tmp22_ = NULL; @@ -2638,7 +2638,7 @@ gchar* direct_photo_source_collection_fetch (DirectPhotoSourceCollection* self, _g_error_free0 (err); #line 2640 "DirectPhoto.c" } - __finally44: + __finally46: #line 278 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 278 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" @@ -2791,7 +2791,7 @@ static void direct_photo_source_collection_instance_init (DirectPhotoSourceColle #line 177 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" self->priv->prepared_photos = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection); #line 178 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp1_ = gee_hash_map_new (G_TYPE_FILE, (GBoxedCopyFunc) g_object_ref, g_object_unref, TYPE_DIRECT_PHOTO, (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL); + _tmp1_ = gee_hash_map_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, TYPE_DIRECT_PHOTO, (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL); #line 178 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" self->priv->file_map = _tmp1_; #line 2798 "DirectPhoto.c" diff --git a/src/direct/DirectPhotoPage.c b/src/direct/DirectPhotoPage.c index 807c74b..aeefa98 100644 --- a/src/direct/DirectPhotoPage.c +++ b/src/direct/DirectPhotoPage.c @@ -1,4 +1,4 @@ -/* DirectPhotoPage.c generated by valac 0.32.1, the Vala compiler +/* DirectPhotoPage.c generated by valac 0.34.4, the Vala compiler * generated from DirectPhotoPage.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -12,11 +12,11 @@ #include <gtk/gtk.h> #include <stdlib.h> #include <string.h> +#include <gio/gio.h> #include <gee.h> #include <gdk/gdk.h> #include <cairo.h> #include <gdk-pixbuf/gdk-pixbuf.h> -#include <gio/gio.h> #include <glib/gi18n-lib.h> #include <glib/gstdio.h> #include <float.h> @@ -265,16 +265,6 @@ typedef struct _AlterationClass AlterationClass; typedef struct _Application Application; typedef struct _ApplicationClass ApplicationClass; #define _application_unref0(var) ((var == NULL) ? NULL : (var = (application_unref (var), NULL))) - -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; #define _injection_group_unref0(var) ((var == NULL) ? NULL : (var = (injection_group_unref (var), NULL))) #define TYPE_DIRECT_PHOTO (direct_photo_get_type ()) @@ -349,6 +339,16 @@ typedef struct _PhotoFileFormatProperties PhotoFileFormatProperties; typedef struct _PhotoFileFormatPropertiesClass PhotoFileFormatPropertiesClass; #define _photo_file_format_properties_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_format_properties_unref (var), NULL))) +#define TYPE_APP_WINDOW (app_window_get_type ()) +#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) +#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) +#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) +#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) +#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) + +typedef struct _AppWindow AppWindow; +typedef struct _AppWindowClass AppWindowClass; + #define TYPE_PRINT_MANAGER (print_manager_get_type ()) #define PRINT_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PRINT_MANAGER, PrintManager)) #define PRINT_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PRINT_MANAGER, PrintManagerClass)) @@ -392,7 +392,8 @@ struct _PageClass { void (*ready) (Page* self); void (*switching_to_fullscreen) (Page* self, FullscreenWindow* fsw); void (*returning_from_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*add_actions) (Page* self); + void (*add_actions) (Page* self, GActionMap* map); + void (*remove_actions) (Page* self, GActionMap* map); void (*init_collect_ui_filenames) (Page* self, GeeList* ui_filenames); InjectionGroup** (*init_collect_injection_groups) (Page* self, int* result_length1); void (*init_actions) (Page* self, gint selected_count, gint count); @@ -711,10 +712,10 @@ static void direct_photo_page_on_selection_group_altered (DirectPhotoPage* self) static void _direct_photo_page_on_selection_group_altered_view_collection_selection_group_altered (ViewCollection* _sender, gpointer self); static void direct_photo_page_real_init_collect_ui_filenames (Page* base, GeeList* ui_filenames); void page_init_collect_ui_filenames (Page* self, GeeList* ui_filenames); -static void direct_photo_page_real_add_actions (Page* base); -void page_add_actions (Page* self); -GType app_window_get_type (void) G_GNUC_CONST; -AppWindow* app_window_get_instance (void); +static void direct_photo_page_real_add_actions (Page* base, GActionMap* map); +void page_add_actions (Page* self, GActionMap* map); +static void direct_photo_page_real_remove_actions (Page* base, GActionMap* map); +void page_remove_actions (Page* self, GActionMap* map); static InjectionGroup** direct_photo_page_real_init_collect_injection_groups (Page* base, int* result_length1); InjectionGroup** page_init_collect_injection_groups (Page* self, int* result_length1); InjectionGroup* injection_group_new (const gchar* path); @@ -819,6 +820,8 @@ gpointer value_get_photo_file_format_properties (const GValue* value); GType photo_file_format_properties_get_type (void) G_GNUC_CONST; PhotoFileFormatProperties* photo_file_format_get_properties (PhotoFileFormat self); gchar** photo_file_format_properties_get_known_extensions (PhotoFileFormatProperties* self, int* result_length1); +GType app_window_get_type (void) G_GNUC_CONST; +AppWindow* app_window_get_instance (void); #define RESOURCES_CANCEL_LABEL _ ("_Cancel") #define RESOURCES_OK_LABEL _ ("_OK") void desktop_integration_send_to (GeeCollection* media); @@ -839,9 +842,9 @@ void print_manager_spool_photo (PrintManager* self, GeeCollection* to_print); GeeList* view_collection_get_selected_sources_of_type (ViewCollection* self, GType t); static Block6Data* block6_data_ref (Block6Data* _data6_); static void block6_data_unref (void * _userdata_); -static gboolean __lambda14_ (Block6Data* _data6_); +static gboolean __lambda15_ (Block6Data* _data6_); void editing_host_page_enable_rotate (EditingHostPage* self, gboolean should_enable); -static gboolean ___lambda14__gsource_func (gpointer self); +static gboolean ___lambda15__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); GType direct_fullscreen_photo_page_get_type (void) G_GNUC_CONST; @@ -859,182 +862,182 @@ static const GActionEntry DIRECT_PHOTO_PAGE_entries[23] = {{"Save", _direct_phot static void _direct_photo_page_on_photos_altered_data_collection_items_altered (DataCollection* _sender, GeeMap* items, gpointer self) { #line 32 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" direct_photo_page_on_photos_altered ((DirectPhotoPage*) self, items); -#line 863 "DirectPhotoPage.c" +#line 866 "DirectPhotoPage.c" } static void _direct_photo_page_on_save_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 42 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" direct_photo_page_on_save ((DirectPhotoPage*) self); -#line 870 "DirectPhotoPage.c" +#line 873 "DirectPhotoPage.c" } static void _direct_photo_page_on_save_as_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 42 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" direct_photo_page_on_save_as ((DirectPhotoPage*) self); -#line 877 "DirectPhotoPage.c" +#line 880 "DirectPhotoPage.c" } static void _direct_photo_page_on_send_to_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 42 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" direct_photo_page_on_send_to ((DirectPhotoPage*) self); -#line 884 "DirectPhotoPage.c" +#line 887 "DirectPhotoPage.c" } static void _direct_photo_page_on_print_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 42 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" direct_photo_page_on_print ((DirectPhotoPage*) self); -#line 891 "DirectPhotoPage.c" +#line 894 "DirectPhotoPage.c" } static void _single_photo_page_on_previous_photo_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 42 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" single_photo_page_on_previous_photo ((SinglePhotoPage*) self); -#line 898 "DirectPhotoPage.c" +#line 901 "DirectPhotoPage.c" } static void _single_photo_page_on_next_photo_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 42 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" single_photo_page_on_next_photo ((SinglePhotoPage*) self); -#line 905 "DirectPhotoPage.c" +#line 908 "DirectPhotoPage.c" } static void _editing_host_page_on_rotate_clockwise_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 42 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" editing_host_page_on_rotate_clockwise ((EditingHostPage*) self); -#line 912 "DirectPhotoPage.c" +#line 915 "DirectPhotoPage.c" } static void _editing_host_page_on_rotate_counterclockwise_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 42 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" editing_host_page_on_rotate_counterclockwise ((EditingHostPage*) self); -#line 919 "DirectPhotoPage.c" +#line 922 "DirectPhotoPage.c" } static void _editing_host_page_on_flip_horizontally_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 42 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" editing_host_page_on_flip_horizontally ((EditingHostPage*) self); -#line 926 "DirectPhotoPage.c" +#line 929 "DirectPhotoPage.c" } static void _editing_host_page_on_flip_vertically_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 42 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" editing_host_page_on_flip_vertically ((EditingHostPage*) self); -#line 933 "DirectPhotoPage.c" +#line 936 "DirectPhotoPage.c" } static void _editing_host_page_on_enhance_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 42 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" editing_host_page_on_enhance ((EditingHostPage*) self); -#line 940 "DirectPhotoPage.c" +#line 943 "DirectPhotoPage.c" } static void _editing_host_page_toggle_crop_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 42 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" editing_host_page_toggle_crop ((EditingHostPage*) self); -#line 947 "DirectPhotoPage.c" +#line 950 "DirectPhotoPage.c" } static void _editing_host_page_toggle_straighten_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 42 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" editing_host_page_toggle_straighten ((EditingHostPage*) self); -#line 954 "DirectPhotoPage.c" +#line 957 "DirectPhotoPage.c" } static void _editing_host_page_toggle_redeye_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 42 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" editing_host_page_toggle_redeye ((EditingHostPage*) self); -#line 961 "DirectPhotoPage.c" +#line 964 "DirectPhotoPage.c" } static void _editing_host_page_toggle_adjust_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 42 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" editing_host_page_toggle_adjust ((EditingHostPage*) self); -#line 968 "DirectPhotoPage.c" +#line 971 "DirectPhotoPage.c" } static void _editing_host_page_on_revert_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 42 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" editing_host_page_on_revert ((EditingHostPage*) self); -#line 975 "DirectPhotoPage.c" +#line 978 "DirectPhotoPage.c" } static void _editing_host_page_on_adjust_date_time_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 42 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" editing_host_page_on_adjust_date_time ((EditingHostPage*) self); -#line 982 "DirectPhotoPage.c" +#line 985 "DirectPhotoPage.c" } static void _editing_host_page_on_set_background_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 42 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" editing_host_page_on_set_background ((EditingHostPage*) self); -#line 989 "DirectPhotoPage.c" +#line 992 "DirectPhotoPage.c" } static void _editing_host_page_on_increase_size_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 42 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" editing_host_page_on_increase_size ((EditingHostPage*) self); -#line 996 "DirectPhotoPage.c" +#line 999 "DirectPhotoPage.c" } static void _editing_host_page_on_decrease_size_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 42 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" editing_host_page_on_decrease_size ((EditingHostPage*) self); -#line 1003 "DirectPhotoPage.c" +#line 1006 "DirectPhotoPage.c" } static void _editing_host_page_snap_zoom_to_min_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 42 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" editing_host_page_snap_zoom_to_min ((EditingHostPage*) self); -#line 1010 "DirectPhotoPage.c" +#line 1013 "DirectPhotoPage.c" } static void _editing_host_page_snap_zoom_to_isomorphic_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 42 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" editing_host_page_snap_zoom_to_isomorphic ((EditingHostPage*) self); -#line 1017 "DirectPhotoPage.c" +#line 1020 "DirectPhotoPage.c" } static void _editing_host_page_snap_zoom_to_max_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 42 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" editing_host_page_snap_zoom_to_max ((EditingHostPage*) self); -#line 1024 "DirectPhotoPage.c" +#line 1027 "DirectPhotoPage.c" } static gpointer _g_object_ref0 (gpointer self) { #line 22 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" return self ? g_object_ref (self) : NULL; -#line 1031 "DirectPhotoPage.c" +#line 1034 "DirectPhotoPage.c" } static void _direct_photo_page_on_selection_group_altered_view_collection_selection_group_altered (ViewCollection* _sender, gpointer self) { #line 28 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" direct_photo_page_on_selection_group_altered ((DirectPhotoPage*) self); -#line 1038 "DirectPhotoPage.c" +#line 1041 "DirectPhotoPage.c" } @@ -1074,7 +1077,7 @@ DirectPhotoPage* direct_photo_page_construct (GType object_type, GFile* file) { _tmp5_ = direct_photo_page_check_editable_file (_tmp4_); #line 16 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (!_tmp5_) { -#line 1078 "DirectPhotoPage.c" +#line 1081 "DirectPhotoPage.c" Application* _tmp6_ = NULL; Application* _tmp7_ = NULL; #line 17 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" @@ -1087,7 +1090,7 @@ DirectPhotoPage* direct_photo_page_construct (GType object_type, GFile* file) { _application_unref0 (_tmp7_); #line 19 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" return self; -#line 1091 "DirectPhotoPage.c" +#line 1094 "DirectPhotoPage.c" } #line 22 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp8_ = file; @@ -1125,14 +1128,14 @@ DirectPhotoPage* direct_photo_page_construct (GType object_type, GFile* file) { _data_collection_unref0 (_tmp15_); #line 13 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" return self; -#line 1129 "DirectPhotoPage.c" +#line 1132 "DirectPhotoPage.c" } DirectPhotoPage* direct_photo_page_new (GFile* file) { #line 13 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" return direct_photo_page_construct (TYPE_DIRECT_PHOTO_PAGE, file); -#line 1136 "DirectPhotoPage.c" +#line 1139 "DirectPhotoPage.c" } @@ -1157,68 +1160,115 @@ static void direct_photo_page_real_init_collect_ui_filenames (Page* base, GeeLis _tmp2_ = ui_filenames; #line 39 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection), "direct.ui"); -#line 1161 "DirectPhotoPage.c" +#line 1164 "DirectPhotoPage.c" } -static void direct_photo_page_real_add_actions (Page* base) { +static void direct_photo_page_real_add_actions (Page* base, GActionMap* map) { DirectPhotoPage * self; - AppWindow* _tmp0_ = NULL; - AppWindow* _tmp1_ = NULL; + GActionMap* _tmp0_ = NULL; + GActionMap* _tmp1_ = NULL; #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" + g_return_if_fail (G_IS_ACTION_MAP (map)); #line 69 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - PAGE_CLASS (direct_photo_page_parent_class)->add_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), TYPE_PAGE, Page)); -#line 71 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp0_ = app_window_get_instance (); -#line 71 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp1_ = _tmp0_; + _tmp0_ = map; +#line 69 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" + PAGE_CLASS (direct_photo_page_parent_class)->add_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), TYPE_PAGE, Page), _tmp0_); #line 71 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_action_map_add_action_entries (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, g_action_map_get_type (), GActionMap), DIRECT_PHOTO_PAGE_entries, G_N_ELEMENTS (DIRECT_PHOTO_PAGE_entries), self); + _tmp1_ = map; #line 71 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (_tmp1_); -#line 1181 "DirectPhotoPage.c" + g_action_map_add_action_entries (_tmp1_, DIRECT_PHOTO_PAGE_entries, G_N_ELEMENTS (DIRECT_PHOTO_PAGE_entries), self); +#line 1184 "DirectPhotoPage.c" +} + + +static void direct_photo_page_real_remove_actions (Page* base, GActionMap* map) { + DirectPhotoPage * self; + GActionMap* _tmp0_ = NULL; +#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" + g_return_if_fail (G_IS_ACTION_MAP (map)); +#line 75 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" + _tmp0_ = map; +#line 75 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" + PAGE_CLASS (direct_photo_page_parent_class)->remove_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), TYPE_PAGE, Page), _tmp0_); +#line 1199 "DirectPhotoPage.c" + { + GActionEntry* entry_collection = NULL; + gint entry_collection_length1 = 0; + gint _entry_collection_size_ = 0; + gint entry_it = 0; +#line 76 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" + entry_collection = DIRECT_PHOTO_PAGE_entries; +#line 76 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" + entry_collection_length1 = G_N_ELEMENTS (DIRECT_PHOTO_PAGE_entries); +#line 76 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" + for (entry_it = 0; entry_it < G_N_ELEMENTS (DIRECT_PHOTO_PAGE_entries); entry_it = entry_it + 1) { +#line 1211 "DirectPhotoPage.c" + GActionEntry entry = {0}; +#line 76 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" + entry = entry_collection[entry_it]; +#line 1215 "DirectPhotoPage.c" + { + GActionMap* _tmp1_ = NULL; + GActionEntry _tmp2_ = {0}; + const gchar* _tmp3_ = NULL; +#line 77 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" + _tmp1_ = map; +#line 77 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" + _tmp2_ = entry; +#line 77 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" + _tmp3_ = _tmp2_.name; +#line 77 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" + g_action_map_remove_action (_tmp1_, _tmp3_); +#line 1228 "DirectPhotoPage.c" + } + } + } } static gpointer _injection_group_ref0 (gpointer self) { -#line 80 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 87 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" return self ? injection_group_ref (self) : NULL; -#line 1188 "DirectPhotoPage.c" +#line 1238 "DirectPhotoPage.c" } static void _vala_array_add61 (InjectionGroup*** array, int* length, int* size, InjectionGroup* value) { -#line 80 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 87 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if ((*length) == (*size)) { -#line 80 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 87 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" *size = (*size) ? (2 * (*size)) : 4; -#line 80 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 87 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" *array = g_renew (InjectionGroup*, *array, (*size) + 1); -#line 1199 "DirectPhotoPage.c" +#line 1249 "DirectPhotoPage.c" } -#line 80 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 87 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" (*array)[(*length)++] = value; -#line 80 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 87 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" (*array)[*length] = NULL; -#line 1205 "DirectPhotoPage.c" +#line 1255 "DirectPhotoPage.c" } static void _vala_array_add62 (InjectionGroup*** array, int* length, int* size, InjectionGroup* value) { -#line 85 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if ((*length) == (*size)) { -#line 85 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" *size = (*size) ? (2 * (*size)) : 4; -#line 85 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" *array = g_renew (InjectionGroup*, *array, (*size) + 1); -#line 1216 "DirectPhotoPage.c" +#line 1266 "DirectPhotoPage.c" } -#line 85 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" (*array)[(*length)++] = value; -#line 85 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" (*array)[*length] = NULL; -#line 1222 "DirectPhotoPage.c" +#line 1272 "DirectPhotoPage.c" } @@ -1244,67 +1294,67 @@ static InjectionGroup** direct_photo_page_real_init_collect_injection_groups (Pa InjectionGroup* _tmp9_ = NULL; InjectionGroup** _tmp10_ = NULL; gint _tmp10__length1 = 0; -#line 74 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 81 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage); -#line 75 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 82 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp1_ = PAGE_CLASS (direct_photo_page_parent_class)->init_collect_injection_groups (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), TYPE_PAGE, Page), &_tmp0_); -#line 75 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 82 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" groups = _tmp1_; -#line 75 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 82 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" groups_length1 = _tmp0_; -#line 75 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 82 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _groups_size_ = groups_length1; -#line 77 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 84 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp2_ = injection_group_new ("PrintPlaceholder"); -#line 77 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 84 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" print_group = _tmp2_; -#line 78 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 85 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp3_ = _ ("_Print"); -#line 78 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 85 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" injection_group_add_menu_item (print_group, _tmp3_, "Print", "<Primary>p"); -#line 80 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 87 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp4_ = groups; -#line 80 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 87 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp4__length1 = groups_length1; -#line 80 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 87 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp5_ = _injection_group_ref0 (print_group); -#line 80 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 87 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _vala_array_add61 (&groups, &groups_length1, &_groups_size_, _tmp5_); -#line 82 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 89 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp6_ = injection_group_new ("SetBackgroundPlaceholder"); -#line 82 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 89 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" bg_group = _tmp6_; -#line 83 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 90 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp7_ = _ ("Set as _Desktop Background"); -#line 83 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 90 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" injection_group_add_menu_item (bg_group, _tmp7_, "SetBackground", "<Primary>b"); -#line 85 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp8_ = groups; -#line 85 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp8__length1 = groups_length1; -#line 85 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp9_ = _injection_group_ref0 (bg_group); -#line 85 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _vala_array_add62 (&groups, &groups_length1, &_groups_size_, _tmp9_); -#line 87 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp10_ = groups; -#line 87 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp10__length1 = groups_length1; -#line 87 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (result_length1) { -#line 87 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" *result_length1 = _tmp10__length1; -#line 1298 "DirectPhotoPage.c" +#line 1348 "DirectPhotoPage.c" } -#line 87 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" result = _tmp10_; -#line 87 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _injection_group_unref0 (bg_group); -#line 87 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _injection_group_unref0 (print_group); -#line 87 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" return result; -#line 1308 "DirectPhotoPage.c" +#line 1358 "DirectPhotoPage.c" } @@ -1315,143 +1365,143 @@ static gboolean direct_photo_page_check_editable_file (GFile* file) { gchar* _tmp2_ = NULL; gboolean _tmp3_ = FALSE; gboolean _tmp4_ = FALSE; -#line 90 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 97 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 91 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 98 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp0_ = file; -#line 91 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 98 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp1_ = g_file_get_path (_tmp0_); -#line 91 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 98 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp2_ = _tmp1_; -#line 91 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 98 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp3_ = g_file_test (_tmp2_, G_FILE_TEST_EXISTS); -#line 91 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 98 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp4_ = !_tmp3_; -#line 91 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 98 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_free0 (_tmp2_); -#line 91 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 98 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (_tmp4_) { -#line 1335 "DirectPhotoPage.c" +#line 1385 "DirectPhotoPage.c" const gchar* _tmp5_ = NULL; GFile* _tmp6_ = NULL; gchar* _tmp7_ = NULL; gchar* _tmp8_ = NULL; gchar* _tmp9_ = NULL; gchar* _tmp10_ = NULL; -#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 99 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp5_ = _ ("%s does not exist."); -#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 99 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp6_ = file; -#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 99 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp7_ = g_file_get_path (_tmp6_); -#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 99 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp8_ = _tmp7_; -#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 99 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp9_ = g_strdup_printf (_tmp5_, _tmp8_); -#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 99 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp10_ = _tmp9_; -#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 99 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" app_window_error_message (_tmp10_, NULL); -#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 99 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_free0 (_tmp10_); -#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 99 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_free0 (_tmp8_); -#line 1360 "DirectPhotoPage.c" +#line 1410 "DirectPhotoPage.c" } else { GFile* _tmp11_ = NULL; gchar* _tmp12_ = NULL; gchar* _tmp13_ = NULL; gboolean _tmp14_ = FALSE; gboolean _tmp15_ = FALSE; -#line 93 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 100 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp11_ = file; -#line 93 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 100 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp12_ = g_file_get_path (_tmp11_); -#line 93 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 100 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp13_ = _tmp12_; -#line 93 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 100 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp14_ = g_file_test (_tmp13_, G_FILE_TEST_IS_REGULAR); -#line 93 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 100 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp15_ = !_tmp14_; -#line 93 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 100 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_free0 (_tmp13_); -#line 93 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 100 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (_tmp15_) { -#line 1381 "DirectPhotoPage.c" +#line 1431 "DirectPhotoPage.c" const gchar* _tmp16_ = NULL; GFile* _tmp17_ = NULL; gchar* _tmp18_ = NULL; gchar* _tmp19_ = NULL; gchar* _tmp20_ = NULL; gchar* _tmp21_ = NULL; -#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp16_ = _ ("%s is not a file."); -#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp17_ = file; -#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp18_ = g_file_get_path (_tmp17_); -#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp19_ = _tmp18_; -#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp20_ = g_strdup_printf (_tmp16_, _tmp19_); -#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp21_ = _tmp20_; -#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" app_window_error_message (_tmp21_, NULL); -#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_free0 (_tmp21_); -#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_free0 (_tmp19_); -#line 1406 "DirectPhotoPage.c" +#line 1456 "DirectPhotoPage.c" } else { GFile* _tmp22_ = NULL; gboolean _tmp23_ = FALSE; -#line 95 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 102 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp22_ = file; -#line 95 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 102 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp23_ = photo_file_format_is_file_supported (_tmp22_); -#line 95 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 102 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (!_tmp23_) { -#line 1416 "DirectPhotoPage.c" +#line 1466 "DirectPhotoPage.c" const gchar* _tmp24_ = NULL; GFile* _tmp25_ = NULL; gchar* _tmp26_ = NULL; gchar* _tmp27_ = NULL; gchar* _tmp28_ = NULL; gchar* _tmp29_ = NULL; -#line 96 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 103 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp24_ = _ ("%s does not support the file format of\n%s."); -#line 96 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 103 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp25_ = file; -#line 96 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 103 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp26_ = g_file_get_path (_tmp25_); -#line 96 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 103 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp27_ = _tmp26_; -#line 96 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 103 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp28_ = g_strdup_printf (_tmp24_, RESOURCES_APP_TITLE, _tmp27_); -#line 96 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 103 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp29_ = _tmp28_; -#line 96 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 103 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" app_window_error_message (_tmp29_, NULL); -#line 96 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 103 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_free0 (_tmp29_); -#line 96 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 103 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_free0 (_tmp27_); -#line 1441 "DirectPhotoPage.c" +#line 1491 "DirectPhotoPage.c" } else { -#line 99 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 106 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" result = TRUE; -#line 99 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 106 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" return result; -#line 1447 "DirectPhotoPage.c" +#line 1497 "DirectPhotoPage.c" } } } -#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 108 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" result = FALSE; -#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 108 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" return result; -#line 1455 "DirectPhotoPage.c" +#line 1505 "DirectPhotoPage.c" } @@ -1462,36 +1512,36 @@ static void direct_photo_page_real_realize (GtkWidget* base) { GFile* _tmp1_ = NULL; DirectPhoto* _tmp2_ = NULL; DirectPhoto* _tmp3_ = NULL; -#line 104 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 111 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage); -#line 105 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 112 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (GTK_WIDGET_CLASS (direct_photo_page_parent_class)->realize != NULL) { -#line 106 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#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 1472 "DirectPhotoPage.c" +#line 1522 "DirectPhotoPage.c" } -#line 108 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 115 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp0_ = direct_photo_global; -#line 108 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 115 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp1_ = self->priv->initial_file; -#line 108 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 115 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp2_ = direct_photo_source_collection_get_file_source (_tmp0_, _tmp1_); -#line 108 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 115 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" photo = _tmp2_; -#line 110 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 117 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp3_ = photo; -#line 110 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 117 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (_tmp3_ != NULL) { -#line 1486 "DirectPhotoPage.c" +#line 1536 "DirectPhotoPage.c" DirectViewCollection* _tmp4_ = NULL; DirectPhoto* _tmp5_ = NULL; -#line 111 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 118 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp4_ = self->priv->view_controller; -#line 111 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 118 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp5_ = photo; -#line 111 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#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 1495 "DirectPhotoPage.c" +#line 1545 "DirectPhotoPage.c" } else { const gchar* _tmp6_ = NULL; GFile* _tmp7_ = NULL; @@ -1499,40 +1549,40 @@ static void direct_photo_page_real_realize (GtkWidget* base) { gchar* _tmp9_ = NULL; gchar* _tmp10_ = NULL; gchar* _tmp11_ = NULL; -#line 113 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 120 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp6_ = _ ("Unable open photo %s. Sorry."); -#line 113 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 120 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp7_ = self->priv->initial_file; -#line 113 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 120 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp8_ = g_file_get_path (_tmp7_); -#line 113 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 120 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp9_ = _tmp8_; -#line 113 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 120 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp10_ = g_strdup_printf (_tmp6_, _tmp9_); -#line 113 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 120 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp11_ = _tmp10_; -#line 113 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 120 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" app_window_panic (_tmp11_); -#line 113 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 120 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_free0 (_tmp11_); -#line 113 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 120 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_free0 (_tmp9_); -#line 1521 "DirectPhotoPage.c" +#line 1571 "DirectPhotoPage.c" } -#line 116 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 123 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (self->priv->initial_file); -#line 116 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 123 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" self->priv->initial_file = NULL; -#line 104 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 111 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (photo); -#line 1529 "DirectPhotoPage.c" +#line 1579 "DirectPhotoPage.c" } static void _direct_photo_page_on_dphoto_can_rotate_changed_direct_photo_can_rotate_changed (DirectPhoto* _sender, gboolean b, gpointer self) { -#line 124 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 131 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" direct_photo_page_on_dphoto_can_rotate_changed ((DirectPhotoPage*) self, b); -#line 1536 "DirectPhotoPage.c" +#line 1586 "DirectPhotoPage.c" } @@ -1546,81 +1596,81 @@ static void direct_photo_page_real_photo_changing (EditingHostPage* base, Photo* Photo* _tmp9_ = NULL; DirectPhoto* _tmp10_ = NULL; DirectPhoto* _tmp11_ = NULL; -#line 119 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 126 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage); -#line 119 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 126 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" g_return_if_fail (IS_PHOTO (new_photo)); -#line 120 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp0_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 120 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp1_ = _tmp0_; -#line 120 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp2_ = _tmp1_ != NULL; -#line 120 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (_tmp1_); -#line 120 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (_tmp2_) { -#line 1564 "DirectPhotoPage.c" +#line 1614 "DirectPhotoPage.c" DirectPhoto* tmp = NULL; Photo* _tmp3_ = NULL; DirectPhoto* _tmp4_ = NULL; DirectPhoto* _tmp5_ = NULL; -#line 121 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#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 121 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 128 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp4_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, TYPE_DIRECT_PHOTO) ? ((DirectPhoto*) _tmp3_) : NULL; -#line 121 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 128 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (_tmp4_ == NULL) { -#line 121 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 128 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (_tmp3_); -#line 1577 "DirectPhotoPage.c" +#line 1627 "DirectPhotoPage.c" } -#line 121 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 128 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" tmp = _tmp4_; -#line 123 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 130 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp5_ = tmp; -#line 123 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 130 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (_tmp5_ != NULL) { -#line 1585 "DirectPhotoPage.c" +#line 1635 "DirectPhotoPage.c" DirectPhoto* _tmp6_ = NULL; guint _tmp7_ = 0U; -#line 124 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 131 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp6_ = tmp; -#line 124 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 131 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" g_signal_parse_name ("can-rotate-changed", TYPE_DIRECT_PHOTO, &_tmp7_, NULL, FALSE); -#line 124 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#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 1594 "DirectPhotoPage.c" +#line 1644 "DirectPhotoPage.c" } -#line 120 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (tmp); -#line 1598 "DirectPhotoPage.c" +#line 1648 "DirectPhotoPage.c" } -#line 128 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 135 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp8_ = new_photo; -#line 128 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 135 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" direct_photo_demand_load (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DIRECT_PHOTO, DirectPhoto)); -#line 130 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 137 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp9_ = new_photo; -#line 130 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 137 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp10_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, TYPE_DIRECT_PHOTO) ? ((DirectPhoto*) _tmp9_) : NULL); -#line 130 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 137 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" tmp = _tmp10_; -#line 132 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 139 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp11_ = tmp; -#line 132 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 139 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (_tmp11_ != NULL) { -#line 1614 "DirectPhotoPage.c" +#line 1664 "DirectPhotoPage.c" DirectPhoto* _tmp12_ = NULL; -#line 133 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 140 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp12_ = tmp; -#line 133 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#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 1620 "DirectPhotoPage.c" +#line 1670 "DirectPhotoPage.c" } -#line 119 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 126 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (tmp); -#line 1624 "DirectPhotoPage.c" +#line 1674 "DirectPhotoPage.c" } @@ -1630,38 +1680,38 @@ GFile* direct_photo_page_get_current_file (DirectPhotoPage* self) { Photo* _tmp1_ = NULL; GFile* _tmp2_ = NULL; GFile* _tmp3_ = NULL; -#line 137 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 144 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" g_return_val_if_fail (IS_DIRECT_PHOTO_PAGE (self), NULL); -#line 138 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 145 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp0_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 138 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 145 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp1_ = _tmp0_; -#line 138 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 145 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp2_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 138 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 145 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp3_ = _tmp2_; -#line 138 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 145 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (_tmp1_); -#line 138 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 145 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" result = _tmp3_; -#line 138 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 145 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" return result; -#line 1650 "DirectPhotoPage.c" +#line 1700 "DirectPhotoPage.c" } static gboolean direct_photo_page_real_on_context_buttonpress (Page* base, GdkEventButton* event) { DirectPhotoPage * self; gboolean result = FALSE; -#line 141 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 148 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage); -#line 141 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 148 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 145 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 152 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" result = TRUE; -#line 145 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 152 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" return result; -#line 1665 "DirectPhotoPage.c" +#line 1715 "DirectPhotoPage.c" } @@ -1672,73 +1722,73 @@ static void direct_photo_page_update_zoom_menu_item_sensitivity (DirectPhotoPage gboolean _tmp4_ = FALSE; ZoomState _tmp5_ = {0}; gboolean _tmp6_ = FALSE; -#line 148 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 155 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" g_return_if_fail (IS_DIRECT_PHOTO_PAGE (self)); -#line 149 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 156 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" single_photo_page_get_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp1_); -#line 149 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 156 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp2_ = zoom_state_is_max (&_tmp1_); -#line 149 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 156 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (!_tmp2_) { -#line 1684 "DirectPhotoPage.c" +#line 1734 "DirectPhotoPage.c" gboolean _tmp3_ = FALSE; -#line 149 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 156 "/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 149 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 156 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp0_ = !_tmp3_; -#line 1690 "DirectPhotoPage.c" +#line 1740 "DirectPhotoPage.c" } else { -#line 149 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 156 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp0_ = FALSE; -#line 1694 "DirectPhotoPage.c" +#line 1744 "DirectPhotoPage.c" } -#line 149 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 156 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "IncreaseSize", _tmp0_); -#line 150 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 157 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" single_photo_page_get_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp5_); -#line 150 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 157 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp6_ = zoom_state_is_default (&_tmp5_); -#line 150 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 157 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (!_tmp6_) { -#line 1704 "DirectPhotoPage.c" +#line 1754 "DirectPhotoPage.c" gboolean _tmp7_ = FALSE; -#line 150 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 157 "/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 150 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 157 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp4_ = !_tmp7_; -#line 1710 "DirectPhotoPage.c" +#line 1760 "DirectPhotoPage.c" } else { -#line 150 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 157 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp4_ = FALSE; -#line 1714 "DirectPhotoPage.c" +#line 1764 "DirectPhotoPage.c" } -#line 150 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 157 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DecreaseSize", _tmp4_); -#line 1718 "DirectPhotoPage.c" +#line 1768 "DirectPhotoPage.c" } static void direct_photo_page_real_on_increase_size (EditingHostPage* base) { DirectPhotoPage * self; -#line 153 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 160 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage); -#line 154 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 161 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" EDITING_HOST_PAGE_CLASS (direct_photo_page_parent_class)->on_increase_size (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 156 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 163 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" direct_photo_page_update_zoom_menu_item_sensitivity (self); -#line 1730 "DirectPhotoPage.c" +#line 1780 "DirectPhotoPage.c" } static void direct_photo_page_real_on_decrease_size (EditingHostPage* base) { DirectPhotoPage * self; -#line 159 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 166 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage); -#line 160 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 167 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" EDITING_HOST_PAGE_CLASS (direct_photo_page_parent_class)->on_decrease_size (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 162 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 169 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" direct_photo_page_update_zoom_menu_item_sensitivity (self); -#line 1742 "DirectPhotoPage.c" +#line 1792 "DirectPhotoPage.c" } @@ -1752,24 +1802,24 @@ static void direct_photo_page_on_photos_altered (DirectPhotoPage* self, GeeMap* gboolean _tmp19_ = FALSE; gboolean _tmp20_ = FALSE; gboolean _tmp25_ = FALSE; -#line 165 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 172 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" g_return_if_fail (IS_DIRECT_PHOTO_PAGE (self)); -#line 165 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 172 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" g_return_if_fail (GEE_IS_MAP (map)); -#line 166 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 173 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" contains = FALSE; -#line 167 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 174 "/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 167 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 174 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (_tmp0_) { -#line 1766 "DirectPhotoPage.c" +#line 1816 "DirectPhotoPage.c" Photo* photo = NULL; Photo* _tmp1_ = NULL; -#line 168 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 175 "/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 168 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 175 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" photo = _tmp1_; -#line 1773 "DirectPhotoPage.c" +#line 1823 "DirectPhotoPage.c" { GeeIterator* _object_it = NULL; GeeMap* _tmp2_ = NULL; @@ -1778,25 +1828,25 @@ static void direct_photo_page_on_photos_altered (DirectPhotoPage* self, GeeMap* GeeSet* _tmp5_ = NULL; GeeIterator* _tmp6_ = NULL; GeeIterator* _tmp7_ = NULL; -#line 169 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 176 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp2_ = map; -#line 169 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 176 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp3_ = gee_map_get_keys (_tmp2_); -#line 169 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 176 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp4_ = _tmp3_; -#line 169 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 176 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp5_ = _tmp4_; -#line 169 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 176 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp6_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 169 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 176 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp7_ = _tmp6_; -#line 169 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 176 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (_tmp5_); -#line 169 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 176 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _object_it = _tmp7_; -#line 169 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 176 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" while (TRUE) { -#line 1800 "DirectPhotoPage.c" +#line 1850 "DirectPhotoPage.c" GeeIterator* _tmp8_ = NULL; gboolean _tmp9_ = FALSE; DataObject* object = NULL; @@ -1804,129 +1854,129 @@ static void direct_photo_page_on_photos_altered (DirectPhotoPage* self, GeeMap* gpointer _tmp11_ = NULL; DataObject* _tmp12_ = NULL; Photo* _tmp13_ = NULL; -#line 169 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 176 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp8_ = _object_it; -#line 169 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 176 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp9_ = gee_iterator_next (_tmp8_); -#line 169 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 176 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (!_tmp9_) { -#line 169 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 176 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" break; -#line 1816 "DirectPhotoPage.c" +#line 1866 "DirectPhotoPage.c" } -#line 169 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 176 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp10_ = _object_it; -#line 169 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 176 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp11_ = gee_iterator_get (_tmp10_); -#line 169 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 176 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" object = (DataObject*) _tmp11_; -#line 170 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 177 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp12_ = object; -#line 170 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 177 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp13_ = photo; -#line 170 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 177 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_PHOTO, Photo) == _tmp13_) { -#line 171 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 178 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" contains = TRUE; -#line 173 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 180 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (object); -#line 173 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 180 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" break; -#line 1836 "DirectPhotoPage.c" +#line 1886 "DirectPhotoPage.c" } -#line 169 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 176 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (object); -#line 1840 "DirectPhotoPage.c" +#line 1890 "DirectPhotoPage.c" } -#line 169 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 176 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (_object_it); -#line 1844 "DirectPhotoPage.c" +#line 1894 "DirectPhotoPage.c" } -#line 167 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 174 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (photo); -#line 1848 "DirectPhotoPage.c" +#line 1898 "DirectPhotoPage.c" } -#line 178 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 185 "/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 178 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 185 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (_tmp15_) { -#line 1854 "DirectPhotoPage.c" +#line 1904 "DirectPhotoPage.c" gboolean _tmp16_ = FALSE; -#line 178 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 185 "/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 178 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 185 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp14_ = !_tmp16_; -#line 1860 "DirectPhotoPage.c" +#line 1910 "DirectPhotoPage.c" } else { -#line 178 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 185 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp14_ = FALSE; -#line 1864 "DirectPhotoPage.c" +#line 1914 "DirectPhotoPage.c" } -#line 178 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 185 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" sensitive = _tmp14_; -#line 179 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 186 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp17_ = sensitive; -#line 179 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 186 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (_tmp17_) { -#line 1872 "DirectPhotoPage.c" +#line 1922 "DirectPhotoPage.c" gboolean _tmp18_ = FALSE; -#line 180 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 187 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp18_ = contains; -#line 180 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 187 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" sensitive = _tmp18_; -#line 1878 "DirectPhotoPage.c" +#line 1928 "DirectPhotoPage.c" } -#line 182 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 189 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp20_ = sensitive; -#line 182 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 189 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (_tmp20_) { -#line 1884 "DirectPhotoPage.c" +#line 1934 "DirectPhotoPage.c" Photo* _tmp21_ = NULL; Photo* _tmp22_ = NULL; PhotoFileFormat _tmp23_ = 0; gboolean _tmp24_ = FALSE; -#line 182 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 189 "/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 182 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 189 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp22_ = _tmp21_; -#line 182 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 189 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp23_ = photo_get_file_format (_tmp22_); -#line 182 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 189 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp24_ = photo_file_format_can_write (_tmp23_); -#line 182 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 189 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp19_ = _tmp24_; -#line 182 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 189 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (_tmp22_); -#line 1901 "DirectPhotoPage.c" +#line 1951 "DirectPhotoPage.c" } else { -#line 182 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 189 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp19_ = FALSE; -#line 1905 "DirectPhotoPage.c" +#line 1955 "DirectPhotoPage.c" } -#line 182 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 189 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Save", _tmp19_); -#line 183 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 190 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp25_ = sensitive; -#line 183 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 190 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Revert", _tmp25_); -#line 1913 "DirectPhotoPage.c" +#line 1963 "DirectPhotoPage.c" } static void direct_photo_page_on_selection_group_altered (DirectPhotoPage* self) { CommandManager* _tmp0_ = NULL; CommandManager* _tmp1_ = NULL; -#line 186 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_return_if_fail (IS_DIRECT_PHOTO_PAGE (self)); #line 193 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" + g_return_if_fail (IS_DIRECT_PHOTO_PAGE (self)); +#line 200 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp0_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 193 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 200 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp1_ = _tmp0_; -#line 193 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 200 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" command_manager_reset (_tmp1_); -#line 193 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 200 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _command_manager_unref0 (_tmp1_); -#line 1930 "DirectPhotoPage.c" +#line 1980 "DirectPhotoPage.c" } @@ -1939,51 +1989,51 @@ static gboolean direct_photo_page_real_on_double_click (EditingHostPage* base, G FullscreenWindow* _tmp2_ = NULL; GdkEventButton* _tmp4_ = NULL; gboolean _tmp5_ = FALSE; -#line 196 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 203 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage); -#line 196 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 203 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 197 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 204 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp0_ = page_get_container (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 197 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 204 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_FULLSCREEN_WINDOW) ? ((FullscreenWindow*) _tmp0_) : NULL; -#line 197 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 204 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (_tmp1_ == NULL) { -#line 197 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 204 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (_tmp0_); -#line 1955 "DirectPhotoPage.c" +#line 2005 "DirectPhotoPage.c" } -#line 197 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 204 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" fs = _tmp1_; -#line 198 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 205 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp2_ = fs; -#line 198 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 205 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (_tmp2_ != NULL) { -#line 1963 "DirectPhotoPage.c" +#line 2013 "DirectPhotoPage.c" FullscreenWindow* _tmp3_ = NULL; -#line 199 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 206 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp3_ = fs; -#line 199 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 206 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" fullscreen_window_close (_tmp3_); -#line 201 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 208 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" result = TRUE; -#line 201 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 208 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (fs); -#line 201 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 208 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" return result; -#line 1975 "DirectPhotoPage.c" +#line 2025 "DirectPhotoPage.c" } -#line 204 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 211 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp4_ = event; -#line 204 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 211 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp5_ = EDITING_HOST_PAGE_CLASS (direct_photo_page_parent_class)->on_double_click (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), _tmp4_); -#line 204 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 211 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" result = _tmp5_; -#line 204 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 211 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (fs); -#line 204 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 211 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" return result; -#line 1987 "DirectPhotoPage.c" +#line 2037 "DirectPhotoPage.c" } @@ -2019,135 +2069,135 @@ static void direct_photo_page_real_update_ui (EditingHostPage* base, gboolean mi gboolean _tmp26_ = FALSE; gboolean _tmp27_ = FALSE; gboolean _tmp29_ = FALSE; -#line 207 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 214 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage); -#line 208 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 215 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp0_ = missing; -#line 208 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 215 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" sensitivity = !_tmp0_; -#line 210 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 217 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp1_ = sensitivity; -#line 210 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 217 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Save", _tmp1_); -#line 211 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 218 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp2_ = sensitivity; -#line 211 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 218 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SaveAs", _tmp2_); -#line 212 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 219 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp3_ = sensitivity; -#line 212 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 219 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SendTo", _tmp3_); -#line 213 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 220 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp4_ = sensitivity; -#line 213 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 220 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Publish", _tmp4_); -#line 214 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 221 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp5_ = sensitivity; -#line 214 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 221 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Print", _tmp5_); -#line 215 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 222 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp6_ = sensitivity; -#line 215 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 222 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CommonJumpToFile", _tmp6_); -#line 217 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 224 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp7_ = sensitivity; -#line 217 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 224 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CommonUndo", _tmp7_); -#line 218 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 225 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp8_ = sensitivity; -#line 218 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 225 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CommonRedo", _tmp8_); -#line 220 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 227 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp9_ = sensitivity; -#line 220 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 227 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "IncreaseSize", _tmp9_); -#line 221 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 228 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp10_ = sensitivity; -#line 221 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 228 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DecreaseSize", _tmp10_); -#line 222 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 229 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp11_ = sensitivity; -#line 222 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 229 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ZoomFit", _tmp11_); -#line 223 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 230 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp12_ = sensitivity; -#line 223 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 230 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Zoom100", _tmp12_); -#line 224 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 231 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp13_ = sensitivity; -#line 224 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 231 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Zoom200", _tmp13_); -#line 226 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 233 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp14_ = sensitivity; -#line 226 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 233 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateClockwise", _tmp14_); -#line 227 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 234 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp15_ = sensitivity; -#line 227 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 234 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateCounterclockwise", _tmp15_); -#line 228 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 235 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp16_ = sensitivity; -#line 228 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 235 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "FlipHorizontally", _tmp16_); -#line 229 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 236 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp17_ = sensitivity; -#line 229 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 236 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "FlipVertically", _tmp17_); -#line 230 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 237 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp18_ = sensitivity; -#line 230 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 237 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Enhance", _tmp18_); -#line 231 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 238 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp19_ = sensitivity; -#line 231 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 238 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Crop", _tmp19_); -#line 232 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 239 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp20_ = sensitivity; -#line 232 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 239 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Straighten", _tmp20_); -#line 233 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 240 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp21_ = sensitivity; -#line 233 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 240 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RedEye", _tmp21_); -#line 234 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 241 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp22_ = sensitivity; -#line 234 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 241 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Adjust", _tmp22_); -#line 235 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 242 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp23_ = sensitivity; -#line 235 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 242 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Revert", _tmp23_); -#line 236 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 243 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp24_ = sensitivity; -#line 236 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 243 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "AdjustDateTime", _tmp24_); -#line 237 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 244 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp25_ = sensitivity; -#line 237 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 244 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Fullscreen", _tmp25_); -#line 239 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 246 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp27_ = editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 239 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 246 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (_tmp27_) { -#line 2133 "DirectPhotoPage.c" +#line 2183 "DirectPhotoPage.c" gboolean _tmp28_ = FALSE; -#line 239 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 246 "/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 239 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 246 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp26_ = !_tmp28_; -#line 2139 "DirectPhotoPage.c" +#line 2189 "DirectPhotoPage.c" } else { -#line 239 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 246 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp26_ = FALSE; -#line 2143 "DirectPhotoPage.c" +#line 2193 "DirectPhotoPage.c" } -#line 239 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 246 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SetBackground", _tmp26_); -#line 241 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 248 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp29_ = missing; -#line 241 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 248 "/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 2151 "DirectPhotoPage.c" +#line 2201 "DirectPhotoPage.c" } @@ -2182,157 +2232,157 @@ static void direct_photo_page_real_update_actions (Page* base, gint selected_cou gboolean _tmp42_ = FALSE; gint _tmp46_ = 0; gint _tmp47_ = 0; -#line 244 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 251 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage); -#line 245 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 252 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 245 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 252 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp1_ = _tmp0_; -#line 245 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 252 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp2_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection)); -#line 245 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 252 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp3_ = _tmp2_ > 1; -#line 245 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 252 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _data_collection_unref0 (_tmp1_); -#line 245 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 252 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" multiple = _tmp3_; -#line 246 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 253 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp5_ = editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 246 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 253 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (_tmp5_) { -#line 2204 "DirectPhotoPage.c" +#line 2254 "DirectPhotoPage.c" gboolean _tmp6_ = FALSE; Photo* _tmp7_ = NULL; Photo* _tmp8_ = NULL; gboolean _tmp9_ = FALSE; gboolean _tmp10_ = FALSE; -#line 246 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 253 "/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 246 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 253 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp8_ = _tmp7_; -#line 246 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 253 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp9_ = photo_has_transformations (_tmp8_); -#line 246 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 253 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp10_ = _tmp9_; -#line 246 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 253 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (_tmp8_); -#line 246 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 253 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (_tmp10_) { -#line 2222 "DirectPhotoPage.c" +#line 2272 "DirectPhotoPage.c" gboolean _tmp11_ = FALSE; -#line 247 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 254 "/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 247 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 254 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp6_ = !_tmp11_; -#line 2228 "DirectPhotoPage.c" +#line 2278 "DirectPhotoPage.c" } else { -#line 246 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 253 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp6_ = FALSE; -#line 2232 "DirectPhotoPage.c" +#line 2282 "DirectPhotoPage.c" } -#line 246 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 253 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp4_ = _tmp6_; -#line 2236 "DirectPhotoPage.c" +#line 2286 "DirectPhotoPage.c" } else { -#line 247 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 254 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp4_ = FALSE; -#line 2240 "DirectPhotoPage.c" +#line 2290 "DirectPhotoPage.c" } -#line 246 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 253 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" revert_possible = _tmp4_; -#line 248 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 255 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp13_ = editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 248 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 255 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (_tmp13_) { -#line 2248 "DirectPhotoPage.c" +#line 2298 "DirectPhotoPage.c" Photo* _tmp14_ = NULL; Photo* _tmp15_ = NULL; gboolean _tmp16_ = FALSE; -#line 248 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 255 "/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 248 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 255 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp15_ = _tmp14_; -#line 248 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 255 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp16_ = editing_host_page_is_rotate_available (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), _tmp15_); -#line 248 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 255 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp12_ = _tmp16_; -#line 248 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 255 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (_tmp15_); -#line 2262 "DirectPhotoPage.c" +#line 2312 "DirectPhotoPage.c" } else { -#line 248 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 255 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp12_ = FALSE; -#line 2266 "DirectPhotoPage.c" +#line 2316 "DirectPhotoPage.c" } -#line 248 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 255 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" rotate_possible = _tmp12_; -#line 249 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 256 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp18_ = editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 249 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 256 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (_tmp18_) { -#line 2274 "DirectPhotoPage.c" +#line 2324 "DirectPhotoPage.c" Photo* _tmp19_ = NULL; Photo* _tmp20_ = NULL; gboolean _tmp21_ = FALSE; -#line 249 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 256 "/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 249 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 256 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp20_ = _tmp19_; -#line 249 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 256 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp21_ = editing_host_page_is_enhance_available (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), _tmp20_); -#line 249 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 256 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp17_ = _tmp21_; -#line 249 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 256 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (_tmp20_); -#line 2288 "DirectPhotoPage.c" +#line 2338 "DirectPhotoPage.c" } else { -#line 249 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 256 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp17_ = FALSE; -#line 2292 "DirectPhotoPage.c" +#line 2342 "DirectPhotoPage.c" } -#line 249 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 256 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" enhance_possible = _tmp17_; -#line 251 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 258 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp22_ = multiple; -#line 251 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 258 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "PrevPhoto", _tmp22_); -#line 252 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 259 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp23_ = multiple; -#line 252 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 259 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "NextPhoto", _tmp23_); -#line 253 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 260 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp24_ = rotate_possible; -#line 253 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 260 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateClockwise", _tmp24_); -#line 254 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 261 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp25_ = rotate_possible; -#line 254 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 261 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateCounterclockwise", _tmp25_); -#line 255 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 262 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp26_ = rotate_possible; -#line 255 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 262 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "FlipHorizontally", _tmp26_); -#line 256 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 263 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp27_ = rotate_possible; -#line 256 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 263 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "FlipVertically", _tmp27_); -#line 257 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 264 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp28_ = revert_possible; -#line 257 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 264 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Revert", _tmp28_); -#line 258 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 265 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp29_ = enhance_possible; -#line 258 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 265 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Enhance", _tmp29_); -#line 260 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 267 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp30_ = editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 260 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 267 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SetBackground", _tmp30_); -#line 262 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 269 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp31_ = editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 262 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 269 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (_tmp31_) { -#line 2336 "DirectPhotoPage.c" +#line 2386 "DirectPhotoPage.c" Photo* _tmp32_ = NULL; Photo* _tmp33_ = NULL; Scaling _tmp34_ = {0}; @@ -2341,69 +2391,69 @@ static void direct_photo_page_real_update_actions (Page* base, gint selected_cou Photo* _tmp37_ = NULL; Scaling _tmp38_ = {0}; gboolean _tmp39_ = FALSE; -#line 263 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 270 "/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 263 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 270 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp33_ = _tmp32_; -#line 263 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 270 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" scaling_for_original (&_tmp34_); -#line 263 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 270 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp35_ = editing_tools_crop_tool_is_available (_tmp33_, &_tmp34_); -#line 263 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 270 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Crop", _tmp35_); -#line 263 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 270 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (_tmp33_); -#line 264 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 271 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp36_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 264 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 271 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp37_ = _tmp36_; -#line 264 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 271 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" scaling_for_original (&_tmp38_); -#line 264 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 271 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp39_ = editing_tools_redeye_tool_is_available (_tmp37_, &_tmp38_); -#line 264 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 271 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RedEye", _tmp39_); -#line 264 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 271 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (_tmp37_); -#line 2369 "DirectPhotoPage.c" +#line 2419 "DirectPhotoPage.c" } -#line 270 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 277 "/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)); -#line 270 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 277 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp41_ = _tmp40_; -#line 270 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 277 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp42_ = _tmp41_ != NULL; -#line 270 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 277 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (_tmp41_); -#line 270 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 277 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (_tmp42_) { -#line 2381 "DirectPhotoPage.c" +#line 2431 "DirectPhotoPage.c" Photo* _tmp43_ = NULL; Photo* _tmp44_ = NULL; PhotoFileFormat _tmp45_ = 0; -#line 271 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 278 "/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 271 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 278 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp44_ = _tmp43_; -#line 271 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 278 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp45_ = photo_get_file_format (_tmp44_); -#line 271 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 278 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "AdjustDateTime", _tmp45_ != PHOTO_FILE_FORMAT_RAW); -#line 271 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 278 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (_tmp44_); -#line 2395 "DirectPhotoPage.c" +#line 2445 "DirectPhotoPage.c" } else { -#line 273 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 280 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "AdjustDateTime", FALSE); -#line 2399 "DirectPhotoPage.c" +#line 2449 "DirectPhotoPage.c" } -#line 276 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 283 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp46_ = selected_count; -#line 276 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 283 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp47_ = count; -#line 276 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 283 "/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 2407 "DirectPhotoPage.c" +#line 2457 "DirectPhotoPage.c" } @@ -2435,216 +2485,216 @@ static gboolean direct_photo_page_check_ok_to_close_photo (DirectPhotoPage* self GtkResponseType _tmp23_ = 0; GtkResponseType _tmp24_ = 0; GtkResponseType _tmp25_ = 0; -#line 279 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 286 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" g_return_val_if_fail (IS_DIRECT_PHOTO_PAGE (self), FALSE); -#line 279 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 286 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" g_return_val_if_fail ((photo == NULL) || IS_PHOTO (photo), FALSE); -#line 282 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 289 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp0_ = photo; -#line 282 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 289 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (_tmp0_ == NULL) { -#line 283 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 290 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" result = TRUE; -#line 283 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 290 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" return result; -#line 2451 "DirectPhotoPage.c" +#line 2501 "DirectPhotoPage.c" } -#line 285 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 292 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp1_ = photo; -#line 285 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 292 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp2_ = photo_has_alterations (_tmp1_); -#line 285 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 292 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (!_tmp2_) { -#line 286 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 293 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" result = TRUE; -#line 286 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 293 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" return result; -#line 2463 "DirectPhotoPage.c" +#line 2513 "DirectPhotoPage.c" } -#line 288 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 295 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp3_ = self->priv->drop_if_dirty; -#line 288 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 295 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (_tmp3_) { -#line 2469 "DirectPhotoPage.c" +#line 2519 "DirectPhotoPage.c" Photo* _tmp4_ = NULL; -#line 291 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 298 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp4_ = photo; -#line 291 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 298 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" photo_remove_all_transformations (_tmp4_); -#line 293 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 300 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" result = TRUE; -#line 293 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 300 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" return result; -#line 2479 "DirectPhotoPage.c" +#line 2529 "DirectPhotoPage.c" } -#line 296 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 303 "/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)); -#line 296 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 303 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp6_ = _tmp5_; -#line 296 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 303 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp7_ = photo_get_file_format (_tmp6_); -#line 296 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 303 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp8_ = photo_file_format_can_write (_tmp7_); -#line 296 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 303 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp9_ = _tmp8_; -#line 296 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 303 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (_tmp6_); -#line 296 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 303 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" is_writeable = _tmp9_; -#line 297 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 304 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp11_ = is_writeable; -#line 297 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 304 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (_tmp11_) { -#line 2499 "DirectPhotoPage.c" +#line 2549 "DirectPhotoPage.c" const gchar* _tmp12_ = NULL; -#line 297 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 304 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp12_ = _ ("_Save"); -#line 297 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 304 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp10_ = _tmp12_; -#line 2505 "DirectPhotoPage.c" +#line 2555 "DirectPhotoPage.c" } else { const gchar* _tmp13_ = NULL; -#line 297 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 304 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp13_ = _ ("_Save a Copy"); -#line 297 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 304 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp10_ = _tmp13_; -#line 2512 "DirectPhotoPage.c" +#line 2562 "DirectPhotoPage.c" } -#line 297 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 304 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp14_ = g_strdup (_tmp10_); -#line 297 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 304 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" save_option = _tmp14_; -#line 299 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 306 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp15_ = _ ("Lose changes to %s?"); -#line 299 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 306 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp16_ = photo; -#line 299 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 306 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp17_ = media_source_get_basename (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 299 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 306 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp18_ = _tmp17_; -#line 299 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 306 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp19_ = g_strdup_printf (_tmp15_, _tmp18_); -#line 299 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 306 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp20_ = _tmp19_; -#line 299 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 306 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp21_ = save_option; -#line 299 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 306 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp22_ = _ ("Close _without Saving"); -#line 299 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 306 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp23_ = app_window_negate_affirm_cancel_question (_tmp20_, _tmp21_, _tmp22_, NULL, NULL); -#line 299 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 306 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp24_ = _tmp23_; -#line 299 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 306 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_free0 (_tmp20_); -#line 299 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 306 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_free0 (_tmp18_); -#line 299 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 306 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" response = _tmp24_; -#line 303 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 310 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp25_ = response; -#line 303 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 310 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (_tmp25_ == GTK_RESPONSE_YES) { -#line 2548 "DirectPhotoPage.c" +#line 2598 "DirectPhotoPage.c" Photo* _tmp26_ = NULL; -#line 304 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 311 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp26_ = photo; -#line 304 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 311 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" photo_remove_all_transformations (_tmp26_); -#line 2554 "DirectPhotoPage.c" +#line 2604 "DirectPhotoPage.c" } else { GtkResponseType _tmp27_ = 0; -#line 305 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 312 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp27_ = response; -#line 305 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 312 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (_tmp27_ == GTK_RESPONSE_NO) { -#line 2561 "DirectPhotoPage.c" +#line 2611 "DirectPhotoPage.c" gboolean _tmp28_ = FALSE; -#line 306 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 313 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp28_ = is_writeable; -#line 306 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 313 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (_tmp28_) { -#line 2567 "DirectPhotoPage.c" +#line 2617 "DirectPhotoPage.c" Photo* _tmp29_ = NULL; GFile* _tmp30_ = NULL; GFile* _tmp31_ = NULL; Photo* _tmp32_ = NULL; Photo* _tmp33_ = NULL; PhotoFileFormat _tmp34_ = 0; -#line 307 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 314 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp29_ = photo; -#line 307 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 314 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp30_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 307 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 314 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp31_ = _tmp30_; -#line 307 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 314 "/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 307 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 314 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp33_ = _tmp32_; -#line 307 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 314 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp34_ = photo_get_file_format (_tmp33_); -#line 307 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 314 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" direct_photo_page_save (self, _tmp31_, 0, SCALE_CONSTRAINT_ORIGINAL, JPEG_QUALITY_HIGH, _tmp34_, FALSE, TRUE); -#line 307 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 314 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (_tmp33_); -#line 307 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 314 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (_tmp31_); -#line 2592 "DirectPhotoPage.c" +#line 2642 "DirectPhotoPage.c" } else { -#line 310 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 317 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" direct_photo_page_on_save_as (self); -#line 2596 "DirectPhotoPage.c" +#line 2646 "DirectPhotoPage.c" } } else { gboolean _tmp35_ = FALSE; gboolean _tmp36_ = FALSE; GtkResponseType _tmp37_ = 0; -#line 311 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp37_ = response; -#line 311 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (_tmp37_ == GTK_RESPONSE_CANCEL) { -#line 311 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp36_ = TRUE; -#line 2608 "DirectPhotoPage.c" +#line 2658 "DirectPhotoPage.c" } else { GtkResponseType _tmp38_ = 0; -#line 311 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp38_ = response; -#line 311 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp36_ = _tmp38_ == GTK_RESPONSE_DELETE_EVENT; -#line 2615 "DirectPhotoPage.c" +#line 2665 "DirectPhotoPage.c" } -#line 311 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (_tmp36_) { -#line 311 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp35_ = TRUE; -#line 2621 "DirectPhotoPage.c" +#line 2671 "DirectPhotoPage.c" } else { GtkResponseType _tmp39_ = 0; -#line 312 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 319 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp39_ = response; -#line 312 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 319 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp35_ = _tmp39_ == GTK_RESPONSE_CLOSE; -#line 2628 "DirectPhotoPage.c" +#line 2678 "DirectPhotoPage.c" } -#line 311 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (_tmp35_) { -#line 313 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 320 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" result = FALSE; -#line 313 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 320 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_free0 (save_option); -#line 313 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 320 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" return result; -#line 2638 "DirectPhotoPage.c" +#line 2688 "DirectPhotoPage.c" } } } -#line 316 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 323 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" result = TRUE; -#line 316 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 323 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_free0 (save_option); -#line 316 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 323 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" return result; -#line 2648 "DirectPhotoPage.c" +#line 2698 "DirectPhotoPage.c" } @@ -2654,23 +2704,23 @@ gboolean direct_photo_page_check_quit (DirectPhotoPage* self) { Photo* _tmp1_ = NULL; gboolean _tmp2_ = FALSE; gboolean _tmp3_ = FALSE; -#line 319 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 326 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" g_return_val_if_fail (IS_DIRECT_PHOTO_PAGE (self), FALSE); -#line 320 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 327 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp0_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 320 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 327 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp1_ = _tmp0_; -#line 320 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 327 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp2_ = direct_photo_page_check_ok_to_close_photo (self, _tmp1_); -#line 320 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 327 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp3_ = _tmp2_; -#line 320 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 327 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (_tmp1_); -#line 320 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 327 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" result = _tmp3_; -#line 320 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 327 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" return result; -#line 2674 "DirectPhotoPage.c" +#line 2724 "DirectPhotoPage.c" } @@ -2679,36 +2729,36 @@ static gboolean direct_photo_page_real_confirm_replace_photo (EditingHostPage* b gboolean result = FALSE; gboolean _tmp0_ = FALSE; Photo* _tmp1_ = NULL; -#line 323 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 330 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage); -#line 323 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 330 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" g_return_val_if_fail ((old_photo == NULL) || IS_PHOTO (old_photo), FALSE); -#line 323 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 330 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" g_return_val_if_fail (IS_PHOTO (new_photo), FALSE); -#line 324 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 331 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp1_ = old_photo; -#line 324 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 331 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (_tmp1_ != NULL) { -#line 2693 "DirectPhotoPage.c" +#line 2743 "DirectPhotoPage.c" Photo* _tmp2_ = NULL; gboolean _tmp3_ = FALSE; -#line 324 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 331 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp2_ = old_photo; -#line 324 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 331 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp3_ = direct_photo_page_check_ok_to_close_photo (self, _tmp2_); -#line 324 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 331 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp0_ = _tmp3_; -#line 2702 "DirectPhotoPage.c" +#line 2752 "DirectPhotoPage.c" } else { -#line 324 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 331 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp0_ = TRUE; -#line 2706 "DirectPhotoPage.c" +#line 2756 "DirectPhotoPage.c" } -#line 324 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 331 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" result = _tmp0_; -#line 324 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 331 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" return result; -#line 2712 "DirectPhotoPage.c" +#line 2762 "DirectPhotoPage.c" } @@ -2733,19 +2783,19 @@ static void direct_photo_page_save (DirectPhotoPage* self, GFile* dest, gint sca DirectViewCollection* _tmp30_ = NULL; DirectPhoto* _tmp31_ = NULL; GError * _inner_error_ = NULL; -#line 327 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 334 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" g_return_if_fail (IS_DIRECT_PHOTO_PAGE (self)); -#line 327 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 334 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" g_return_if_fail (G_IS_FILE (dest)); -#line 329 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 336 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp0_ = constraint; -#line 329 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 336 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp1_ = scale; -#line 329 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 336 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" scaling_for_constraint (_tmp0_, _tmp1_, FALSE, &_tmp2_); -#line 329 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 336 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" scaling = _tmp2_; -#line 2749 "DirectPhotoPage.c" +#line 2799 "DirectPhotoPage.c" { Photo* _tmp3_ = NULL; Photo* _tmp4_ = NULL; @@ -2755,34 +2805,34 @@ static void direct_photo_page_save (DirectPhotoPage* self, GFile* dest, gint sca PhotoFileFormat _tmp8_ = 0; gboolean _tmp9_ = FALSE; gboolean _tmp10_ = FALSE; -#line 332 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 339 "/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 332 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 339 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp4_ = _tmp3_; -#line 332 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 339 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp5_ = dest; -#line 332 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 339 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp6_ = scaling; -#line 332 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 339 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp7_ = quality; -#line 332 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 339 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp8_ = format; -#line 332 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 339 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp9_ = copy_unmodified; -#line 332 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 339 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp10_ = save_metadata; -#line 332 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 339 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" photo_export (_tmp4_, _tmp5_, &_tmp6_, _tmp7_, _tmp8_, _tmp9_, _tmp10_, &_inner_error_); -#line 332 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 339 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (_tmp4_); -#line 332 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 339 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2781 "DirectPhotoPage.c" - goto __catch45_g_error; +#line 2831 "DirectPhotoPage.c" + goto __catch47_g_error; } } - goto __finally45; - __catch45_g_error: + goto __finally47; + __catch47_g_error: { GError* err = NULL; const gchar* _tmp11_ = NULL; @@ -2793,92 +2843,92 @@ static void direct_photo_page_save (DirectPhotoPage* self, GFile* dest, gint sca const gchar* _tmp16_ = NULL; gchar* _tmp17_ = NULL; gchar* _tmp18_ = NULL; -#line 331 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 338 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" err = _inner_error_; -#line 331 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 338 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _inner_error_ = NULL; -#line 334 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 341 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp11_ = _ ("Error while saving to %s: %s"); -#line 334 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 341 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp12_ = dest; -#line 334 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 341 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp13_ = g_file_get_path (_tmp12_); -#line 334 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 341 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp14_ = _tmp13_; -#line 334 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 341 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp15_ = err; -#line 334 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 341 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp16_ = _tmp15_->message; -#line 334 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 341 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp17_ = g_strdup_printf (_tmp11_, _tmp14_, _tmp16_); -#line 334 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 341 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp18_ = _tmp17_; -#line 334 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 341 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" app_window_error_message (_tmp18_, NULL); -#line 334 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 341 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_free0 (_tmp18_); -#line 334 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 341 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_free0 (_tmp14_); -#line 337 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 344 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_error_free0 (err); -#line 337 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 344 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" return; -#line 2827 "DirectPhotoPage.c" +#line 2877 "DirectPhotoPage.c" } - __finally45: -#line 331 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" + __finally47: +#line 338 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 331 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 338 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 331 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 338 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" g_clear_error (&_inner_error_); -#line 331 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 338 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" return; -#line 2838 "DirectPhotoPage.c" +#line 2888 "DirectPhotoPage.c" } -#line 342 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 349 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp19_ = direct_photo_global; -#line 342 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 349 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp20_ = dest; -#line 342 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 349 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp22_ = direct_photo_source_collection_fetch (_tmp19_, _tmp20_, &_tmp21_, TRUE); -#line 342 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 349 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (photo); -#line 342 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 349 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" photo = _tmp21_; -#line 342 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 349 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp23_ = _tmp22_; -#line 342 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 349 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_free0 (_tmp23_); -#line 344 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 351 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp24_ = photo; -#line 344 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 351 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp25_ = direct_view_new (_tmp24_); -#line 344 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 351 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" tmp_view = _tmp25_; -#line 345 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 352 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp26_ = self->priv->view_controller; -#line 345 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 352 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp27_ = tmp_view; -#line 345 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 352 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, TYPE_DATA_OBJECT, DataObject)); -#line 347 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 354 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp28_ = direct_photo_global; -#line 347 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 354 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp29_ = photo; -#line 347 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 354 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" direct_photo_source_collection_reimport_photo (_tmp28_, _tmp29_); -#line 348 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 355 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp30_ = self->priv->view_controller; -#line 348 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 355 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp31_ = photo; -#line 348 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 355 "/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 (_tmp30_, TYPE_VIEW_COLLECTION, ViewCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, TYPE_PHOTO, Photo)); -#line 327 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 334 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (tmp_view); -#line 327 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 334 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (photo); -#line 2882 "DirectPhotoPage.c" +#line 2932 "DirectPhotoPage.c" } @@ -2896,84 +2946,84 @@ static void direct_photo_page_on_save (DirectPhotoPage* self) { Photo* _tmp15_ = NULL; Photo* _tmp16_ = NULL; PhotoFileFormat _tmp17_ = 0; -#line 351 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 358 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" g_return_if_fail (IS_DIRECT_PHOTO_PAGE (self)); -#line 352 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 359 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp2_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 352 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 359 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp3_ = _tmp2_; -#line 352 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 359 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp4_ = photo_has_alterations (_tmp3_); -#line 352 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 359 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp5_ = !_tmp4_; -#line 352 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 359 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (_tmp3_); -#line 352 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 359 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (_tmp5_) { -#line 352 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 359 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp1_ = TRUE; -#line 2916 "DirectPhotoPage.c" +#line 2966 "DirectPhotoPage.c" } else { Photo* _tmp6_ = NULL; Photo* _tmp7_ = NULL; PhotoFileFormat _tmp8_ = 0; gboolean _tmp9_ = FALSE; -#line 352 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 359 "/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 352 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 359 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp7_ = _tmp6_; -#line 352 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 359 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp8_ = photo_get_file_format (_tmp7_); -#line 352 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 359 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp9_ = photo_file_format_can_write (_tmp8_); -#line 352 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 359 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp1_ = !_tmp9_; -#line 352 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 359 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (_tmp7_); -#line 2934 "DirectPhotoPage.c" +#line 2984 "DirectPhotoPage.c" } -#line 352 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 359 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (_tmp1_) { -#line 352 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 359 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp0_ = TRUE; -#line 2940 "DirectPhotoPage.c" +#line 2990 "DirectPhotoPage.c" } else { gboolean _tmp10_ = FALSE; -#line 353 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 360 "/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 353 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 360 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp0_ = _tmp10_; -#line 2947 "DirectPhotoPage.c" +#line 2997 "DirectPhotoPage.c" } -#line 352 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 359 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (_tmp0_) { -#line 354 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 361 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" return; -#line 2953 "DirectPhotoPage.c" +#line 3003 "DirectPhotoPage.c" } -#line 357 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 364 "/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)); -#line 357 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 364 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp12_ = _tmp11_; -#line 357 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 364 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp13_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 357 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 364 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp14_ = _tmp13_; -#line 357 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 364 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp15_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 357 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 364 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp16_ = _tmp15_; -#line 357 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 364 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp17_ = photo_get_file_format (_tmp16_); -#line 357 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 364 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" direct_photo_page_save (self, _tmp14_, 0, SCALE_CONSTRAINT_ORIGINAL, JPEG_QUALITY_HIGH, _tmp17_, FALSE, TRUE); -#line 357 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 364 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (_tmp16_); -#line 357 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 364 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (_tmp14_); -#line 357 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 364 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (_tmp12_); -#line 2977 "DirectPhotoPage.c" +#line 3027 "DirectPhotoPage.c" } @@ -3038,114 +3088,114 @@ static void direct_photo_page_on_save_as (DirectPhotoPage* self) { gint _tmp54_ = 0; gint _tmp55_ = 0; GtkFileChooserDialog* _tmp74_ = NULL; -#line 361 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 368 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" g_return_if_fail (IS_DIRECT_PHOTO_PAGE (self)); -#line 362 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 369 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp0_ = _ ("Save As"); -#line 362 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 369 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp1_ = export_dialog_new (_tmp0_); -#line 362 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 369 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" g_object_ref_sink (_tmp1_); -#line 362 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 369 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" export_dialog = _tmp1_; -#line 366 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 373 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" export_format_parameters_last (&_tmp2_); -#line 366 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 373 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" export_params = _tmp2_; -#line 367 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 374 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp3_ = export_dialog; -#line 367 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 374 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp6_ = export_dialog_execute (_tmp3_, &_tmp4_, &_tmp5_, &export_params); -#line 367 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 374 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" scale = _tmp4_; -#line 367 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 374 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" constraint = _tmp5_; -#line 367 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 374 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (!_tmp6_) { -#line 368 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 375 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (export_dialog); -#line 368 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 375 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" return; -#line 3070 "DirectPhotoPage.c" +#line 3120 "DirectPhotoPage.c" } -#line 370 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 377 "/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 370 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 377 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp8_ = _tmp7_; -#line 370 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 377 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp9_ = export_params; -#line 370 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 377 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp10_ = photo_get_export_basename_for_parameters (_tmp8_, &_tmp9_); -#line 370 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 377 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp11_ = _tmp10_; -#line 370 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 377 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (_tmp8_); -#line 370 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 377 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" filename = _tmp11_; -#line 371 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 378 "/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)); -#line 371 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 378 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp13_ = _tmp12_; -#line 371 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 378 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp14_ = export_params; -#line 371 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 378 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp15_ = photo_get_export_format_for_parameters (_tmp13_, &_tmp14_); -#line 371 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 378 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp16_ = _tmp15_; -#line 371 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 378 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (_tmp13_); -#line 371 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 378 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" effective_export_format = _tmp16_; -#line 374 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 381 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp17_ = effective_export_format; -#line 374 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 381 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp18_ = photo_file_format_get_properties (_tmp17_); -#line 374 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 381 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp19_ = _tmp18_; -#line 374 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 381 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp21_ = photo_file_format_properties_get_known_extensions (_tmp19_, &_tmp20_); -#line 374 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 381 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp22_ = _tmp21_; -#line 374 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 381 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp22__length1 = _tmp20_; -#line 374 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 381 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _photo_file_format_properties_unref0 (_tmp19_); -#line 374 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 381 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" output_format_extensions = _tmp22_; -#line 374 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 381 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" output_format_extensions_length1 = _tmp22__length1; -#line 374 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 381 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _output_format_extensions_size_ = output_format_extensions_length1; -#line 376 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 383 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp23_ = gtk_file_filter_new (); -#line 376 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 383 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" g_object_ref_sink (_tmp23_); -#line 376 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 383 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" output_format_filter = _tmp23_; -#line 377 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 384 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp24_ = output_format_extensions; -#line 377 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 384 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp24__length1 = output_format_extensions_length1; -#line 3130 "DirectPhotoPage.c" +#line 3180 "DirectPhotoPage.c" { gchar** extension_collection = NULL; gint extension_collection_length1 = 0; gint _extension_collection_size_ = 0; gint extension_it = 0; -#line 377 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 384 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" extension_collection = _tmp24_; -#line 377 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 384 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" extension_collection_length1 = _tmp24__length1; -#line 377 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 384 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" for (extension_it = 0; extension_it < _tmp24__length1; extension_it = extension_it + 1) { -#line 3142 "DirectPhotoPage.c" +#line 3192 "DirectPhotoPage.c" gchar* _tmp25_ = NULL; gchar* extension = NULL; -#line 377 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 384 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp25_ = g_strdup (extension_collection[extension_it]); -#line 377 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 384 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" extension = _tmp25_; -#line 3149 "DirectPhotoPage.c" +#line 3199 "DirectPhotoPage.c" { gchar* uppercase_extension = NULL; const gchar* _tmp26_ = NULL; @@ -3158,109 +3208,109 @@ static void direct_photo_page_on_save_as (DirectPhotoPage* self) { const gchar* _tmp33_ = NULL; gchar* _tmp34_ = NULL; gchar* _tmp35_ = NULL; -#line 378 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 385 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp26_ = extension; -#line 378 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 385 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp27_ = g_utf8_strup (_tmp26_, (gssize) -1); -#line 378 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 385 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" uppercase_extension = _tmp27_; -#line 379 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 386 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp28_ = output_format_filter; -#line 379 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 386 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp29_ = extension; -#line 379 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 386 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp30_ = g_strconcat ("*.", _tmp29_, NULL); -#line 379 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 386 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp31_ = _tmp30_; -#line 379 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 386 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" gtk_file_filter_add_pattern (_tmp28_, _tmp31_); -#line 379 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 386 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_free0 (_tmp31_); -#line 380 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 387 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp32_ = output_format_filter; -#line 380 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 387 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp33_ = uppercase_extension; -#line 380 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 387 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp34_ = g_strconcat ("*.", _tmp33_, NULL); -#line 380 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 387 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp35_ = _tmp34_; -#line 380 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 387 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" gtk_file_filter_add_pattern (_tmp32_, _tmp35_); -#line 380 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 387 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_free0 (_tmp35_); -#line 377 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 384 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_free0 (uppercase_extension); -#line 377 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 384 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_free0 (extension); -#line 3196 "DirectPhotoPage.c" +#line 3246 "DirectPhotoPage.c" } } } -#line 383 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 390 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp36_ = _ ("Save As"); -#line 383 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 390 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp37_ = app_window_get_instance (); -#line 383 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 390 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp38_ = _tmp37_; -#line 383 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 390 "/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); -#line 383 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 390 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" g_object_ref_sink (_tmp39_); -#line 383 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 390 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp40_ = _tmp39_; -#line 383 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 390 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (_tmp38_); -#line 383 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 390 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" save_as_dialog = _tmp40_; -#line 386 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 393 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp41_ = save_as_dialog; -#line 386 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 393 "/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); -#line 387 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 394 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp42_ = save_as_dialog; -#line 387 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 394 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp43_ = filename; -#line 387 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 394 "/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_); -#line 388 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 395 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp44_ = save_as_dialog; -#line 388 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 395 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp45_ = self->priv->current_save_dir; -#line 388 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 395 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp46_ = g_file_get_path (_tmp45_); -#line 388 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 395 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp47_ = _tmp46_; -#line 388 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 395 "/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_); -#line 388 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 395 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_free0 (_tmp47_); -#line 389 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 396 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp48_ = save_as_dialog; -#line 389 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 396 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp49_ = output_format_filter; -#line 389 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 396 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp50_ = _g_object_ref0 (_tmp49_); -#line 389 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 396 "/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_); -#line 390 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 397 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp51_ = save_as_dialog; -#line 390 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 397 "/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); -#line 391 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 398 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp52_ = save_as_dialog; -#line 391 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 398 "/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); -#line 393 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 400 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp53_ = save_as_dialog; -#line 393 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 400 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp54_ = gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, gtk_dialog_get_type (), GtkDialog)); -#line 393 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 400 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" response = _tmp54_; -#line 394 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 401 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp55_ = response; -#line 394 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 401 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (_tmp55_ == ((gint) GTK_RESPONSE_OK)) { -#line 3264 "DirectPhotoPage.c" +#line 3314 "DirectPhotoPage.c" GtkFileChooserDialog* _tmp56_ = NULL; gchar* _tmp57_ = NULL; gchar* _tmp58_ = NULL; @@ -3279,106 +3329,106 @@ static void direct_photo_page_on_save_as (DirectPhotoPage* self) { gchar* _tmp71_ = NULL; gchar* _tmp72_ = NULL; GFile* _tmp73_ = NULL; -#line 397 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 404 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" self->priv->drop_if_dirty = TRUE; -#line 398 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 405 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp56_ = save_as_dialog; -#line 398 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 405 "/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)); -#line 398 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 405 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp58_ = _tmp57_; -#line 398 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 405 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp59_ = g_file_new_for_uri (_tmp58_); -#line 398 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 405 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp60_ = _tmp59_; -#line 398 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 405 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp61_ = scale; -#line 398 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 405 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp62_ = constraint; -#line 398 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 405 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp63_ = export_params; -#line 398 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 405 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp64_ = _tmp63_.quality; -#line 398 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 405 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp65_ = effective_export_format; -#line 398 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 405 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp66_ = export_params; -#line 398 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 405 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp67_ = _tmp66_.mode; -#line 398 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 405 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp68_ = export_params; -#line 398 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 405 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp69_ = _tmp68_.export_metadata; -#line 398 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 405 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" direct_photo_page_save (self, _tmp60_, _tmp61_, _tmp62_, _tmp64_, _tmp65_, _tmp67_ == EXPORT_FORMAT_MODE_UNMODIFIED, _tmp69_); -#line 398 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 405 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (_tmp60_); -#line 398 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 405 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_free0 (_tmp58_); -#line 401 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 408 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" self->priv->drop_if_dirty = FALSE; -#line 403 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 410 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp70_ = save_as_dialog; -#line 403 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 410 "/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)); -#line 403 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 410 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp72_ = _tmp71_; -#line 403 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 410 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp73_ = g_file_new_for_path (_tmp72_); -#line 403 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 410 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (self->priv->current_save_dir); -#line 403 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 410 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" self->priv->current_save_dir = _tmp73_; -#line 403 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 410 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_free0 (_tmp72_); -#line 3335 "DirectPhotoPage.c" +#line 3385 "DirectPhotoPage.c" } -#line 406 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 413 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp74_ = save_as_dialog; -#line 406 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 413 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp74_, gtk_widget_get_type (), GtkWidget)); -#line 361 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 368 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (save_as_dialog); -#line 361 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 368 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (output_format_filter); -#line 361 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 368 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" output_format_extensions = (_vala_array_free (output_format_extensions, output_format_extensions_length1, (GDestroyNotify) g_free), NULL); -#line 361 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 368 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_free0 (filename); -#line 361 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 368 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (export_dialog); -#line 3351 "DirectPhotoPage.c" +#line 3401 "DirectPhotoPage.c" } static void direct_photo_page_on_send_to (DirectPhotoPage* self) { gboolean _tmp0_ = FALSE; -#line 409 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 416 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" g_return_if_fail (IS_DIRECT_PHOTO_PAGE (self)); -#line 410 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 417 "/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 410 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 417 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (_tmp0_) { -#line 3363 "DirectPhotoPage.c" +#line 3413 "DirectPhotoPage.c" ViewCollection* _tmp1_ = NULL; ViewCollection* _tmp2_ = NULL; GeeList* _tmp3_ = NULL; GeeCollection* _tmp4_ = NULL; -#line 411 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 418 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp1_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 411 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 418 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp2_ = _tmp1_; -#line 411 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 418 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp3_ = view_collection_get_selected_sources (_tmp2_); -#line 411 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 418 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection); -#line 411 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 418 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" desktop_integration_send_to (_tmp4_); -#line 411 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 418 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (_tmp4_); -#line 411 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 418 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _data_collection_unref0 (_tmp2_); -#line 3382 "DirectPhotoPage.c" +#line 3432 "DirectPhotoPage.c" } } @@ -3392,93 +3442,93 @@ static gboolean direct_photo_page_real_on_app_key_pressed (Page* base, GdkEventK const gchar* _tmp2_ = NULL; const gchar* _tmp3_ = NULL; GQuark _tmp5_ = 0U; -#line 417 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 424 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" static GQuark _tmp4_label0 = 0; -#line 417 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 424 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" static GQuark _tmp4_label1 = 0; -#line 3400 "DirectPhotoPage.c" +#line 3450 "DirectPhotoPage.c" gboolean _tmp6_ = FALSE; gboolean _tmp7_ = FALSE; -#line 414 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 421 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage); -#line 414 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 421 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 415 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 422 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" handled = TRUE; -#line 417 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 424 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp0_ = event; -#line 417 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 424 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp1_ = _tmp0_->keyval; -#line 417 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 424 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp2_ = gdk_keyval_name (_tmp1_); -#line 417 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 424 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp3_ = _tmp2_; -#line 417 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 424 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp5_ = (NULL == _tmp3_) ? 0 : g_quark_from_string (_tmp3_); -#line 417 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 424 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (_tmp5_ == ((0 != _tmp4_label0) ? _tmp4_label0 : (_tmp4_label0 = g_quark_from_static_string ("bracketright")))) { -#line 417 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 424 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" switch (0) { -#line 3423 "DirectPhotoPage.c" +#line 3473 "DirectPhotoPage.c" default: { -#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 426 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateClockwise"); -#line 420 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 427 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" break; -#line 3430 "DirectPhotoPage.c" +#line 3480 "DirectPhotoPage.c" } } } else if (_tmp5_ == ((0 != _tmp4_label1) ? _tmp4_label1 : (_tmp4_label1 = g_quark_from_static_string ("bracketleft")))) { -#line 417 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 424 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" switch (0) { -#line 3436 "DirectPhotoPage.c" +#line 3486 "DirectPhotoPage.c" default: { -#line 423 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 430 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateClockwise"); -#line 424 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 431 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" break; -#line 3443 "DirectPhotoPage.c" +#line 3493 "DirectPhotoPage.c" } } } else { -#line 417 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 424 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" switch (0) { -#line 3449 "DirectPhotoPage.c" +#line 3499 "DirectPhotoPage.c" default: { -#line 427 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 434 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" handled = FALSE; -#line 428 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 435 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" break; -#line 3456 "DirectPhotoPage.c" +#line 3506 "DirectPhotoPage.c" } } } -#line 431 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 438 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp7_ = handled; -#line 431 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 438 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (_tmp7_) { -#line 431 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 438 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp6_ = TRUE; -#line 3466 "DirectPhotoPage.c" +#line 3516 "DirectPhotoPage.c" } else { GdkEventKey* _tmp8_ = NULL; gboolean _tmp9_ = FALSE; -#line 431 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 438 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp8_ = event; -#line 431 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 438 "/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 431 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 438 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp6_ = _tmp9_; -#line 3476 "DirectPhotoPage.c" +#line 3526 "DirectPhotoPage.c" } -#line 431 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 438 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" result = _tmp6_; -#line 431 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 438 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" return result; -#line 3482 "DirectPhotoPage.c" +#line 3532 "DirectPhotoPage.c" } @@ -3487,128 +3537,128 @@ static void direct_photo_page_on_print (DirectPhotoPage* self) { ViewCollection* _tmp1_ = NULL; gint _tmp2_ = 0; gboolean _tmp3_ = FALSE; -#line 434 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 441 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" g_return_if_fail (IS_DIRECT_PHOTO_PAGE (self)); -#line 435 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 442 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 435 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 442 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp1_ = _tmp0_; -#line 435 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 442 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp2_ = view_collection_get_selected_count (_tmp1_); -#line 435 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 442 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp3_ = _tmp2_ > 0; -#line 435 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 442 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _data_collection_unref0 (_tmp1_); -#line 435 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 442 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (_tmp3_) { -#line 3505 "DirectPhotoPage.c" +#line 3555 "DirectPhotoPage.c" PrintManager* _tmp4_ = NULL; PrintManager* _tmp5_ = NULL; ViewCollection* _tmp6_ = NULL; ViewCollection* _tmp7_ = NULL; GeeList* _tmp8_ = NULL; GeeCollection* _tmp9_ = NULL; -#line 436 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 443 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp4_ = print_manager_get_instance (); -#line 436 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 443 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp5_ = _tmp4_; -#line 436 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 443 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp6_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 436 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 443 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp7_ = _tmp6_; -#line 436 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 443 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp8_ = view_collection_get_selected_sources_of_type (_tmp7_, TYPE_PHOTO); -#line 436 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 443 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection); -#line 436 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 443 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" print_manager_spool_photo (_tmp5_, _tmp9_); -#line 436 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 443 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (_tmp9_); -#line 436 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 443 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _data_collection_unref0 (_tmp7_); -#line 436 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 443 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _print_manager_unref0 (_tmp5_); -#line 3532 "DirectPhotoPage.c" +#line 3582 "DirectPhotoPage.c" } } static Block6Data* block6_data_ref (Block6Data* _data6_) { -#line 441 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 448 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" g_atomic_int_inc (&_data6_->_ref_count_); -#line 441 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 448 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" return _data6_; -#line 3542 "DirectPhotoPage.c" +#line 3592 "DirectPhotoPage.c" } static void block6_data_unref (void * _userdata_) { Block6Data* _data6_; _data6_ = (Block6Data*) _userdata_; -#line 441 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 448 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" if (g_atomic_int_dec_and_test (&_data6_->_ref_count_)) { -#line 3551 "DirectPhotoPage.c" +#line 3601 "DirectPhotoPage.c" DirectPhotoPage* self; -#line 441 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 448 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" self = _data6_->self; -#line 441 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 448 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _g_object_unref0 (self); -#line 441 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 448 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" g_slice_free (Block6Data, _data6_); -#line 3559 "DirectPhotoPage.c" +#line 3609 "DirectPhotoPage.c" } } -static gboolean __lambda14_ (Block6Data* _data6_) { +static gboolean __lambda15_ (Block6Data* _data6_) { DirectPhotoPage* self; gboolean result = FALSE; gboolean _tmp0_ = FALSE; -#line 445 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 452 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" self = _data6_->self; -#line 446 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 453 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp0_ = _data6_->should_allow_rotation; -#line 446 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 453 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" editing_host_page_enable_rotate (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), _tmp0_); -#line 448 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 455 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" result = FALSE; -#line 448 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 455 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" return result; -#line 3578 "DirectPhotoPage.c" +#line 3628 "DirectPhotoPage.c" } -static gboolean ___lambda14__gsource_func (gpointer self) { +static gboolean ___lambda15__gsource_func (gpointer self) { gboolean result; - result = __lambda14_ (self); -#line 445 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" + result = __lambda15_ (self); +#line 452 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" return result; -#line 3587 "DirectPhotoPage.c" +#line 3637 "DirectPhotoPage.c" } static void direct_photo_page_on_dphoto_can_rotate_changed (DirectPhotoPage* self, gboolean should_allow_rotation) { Block6Data* _data6_; gboolean _tmp0_ = FALSE; -#line 441 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 448 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" g_return_if_fail (IS_DIRECT_PHOTO_PAGE (self)); -#line 441 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 448 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _data6_ = g_slice_new0 (Block6Data); -#line 441 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 448 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _data6_->_ref_count_ = 1; -#line 441 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 448 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _data6_->self = g_object_ref (self); -#line 441 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 448 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp0_ = should_allow_rotation; -#line 441 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 448 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _data6_->should_allow_rotation = _tmp0_; -#line 445 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, ___lambda14__gsource_func, block6_data_ref (_data6_), block6_data_unref); -#line 441 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 452 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" + g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, ___lambda15__gsource_func, block6_data_ref (_data6_), block6_data_unref); +#line 448 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" block6_data_unref (_data6_); -#line 441 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 448 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _data6_ = NULL; -#line 3612 "DirectPhotoPage.c" +#line 3662 "DirectPhotoPage.c" } @@ -3617,19 +3667,19 @@ static DataView* direct_photo_page_real_create_photo_view (EditingHostPage* base DataView* result = NULL; DataSource* _tmp0_ = NULL; DirectView* _tmp1_ = NULL; -#line 452 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 459 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage); -#line 452 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 459 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" g_return_val_if_fail (IS_DATA_SOURCE (source), NULL); -#line 453 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 460 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp0_ = source; -#line 453 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 460 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp1_ = direct_view_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DIRECT_PHOTO, DirectPhoto)); -#line 453 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 460 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_VIEW, DataView); -#line 453 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 460 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" return result; -#line 3633 "DirectPhotoPage.c" +#line 3683 "DirectPhotoPage.c" } @@ -3643,6 +3693,8 @@ static void direct_photo_page_class_init (DirectPhotoPageClass * klass) { #line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" ((PageClass *) klass)->add_actions = direct_photo_page_real_add_actions; #line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" + ((PageClass *) klass)->remove_actions = direct_photo_page_real_remove_actions; +#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" ((PageClass *) klass)->init_collect_injection_groups = direct_photo_page_real_init_collect_injection_groups; #line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" ((GtkWidgetClass *) klass)->realize = direct_photo_page_real_realize; @@ -3668,7 +3720,7 @@ static void direct_photo_page_class_init (DirectPhotoPageClass * klass) { ((EditingHostPageClass *) klass)->create_photo_view = 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 3672 "DirectPhotoPage.c" +#line 3724 "DirectPhotoPage.c" } @@ -3679,7 +3731,7 @@ 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 3683 "DirectPhotoPage.c" +#line 3735 "DirectPhotoPage.c" } @@ -3703,7 +3755,7 @@ static void direct_photo_page_finalize (GObject* obj) { _g_object_unref0 (self->priv->current_save_dir); #line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" G_OBJECT_CLASS (direct_photo_page_parent_class)->finalize (obj); -#line 3707 "DirectPhotoPage.c" +#line 3759 "DirectPhotoPage.c" } @@ -3722,46 +3774,46 @@ GType direct_photo_page_get_type (void) { DirectFullscreenPhotoPage* direct_fullscreen_photo_page_construct (GType object_type, GFile* file) { DirectFullscreenPhotoPage * self = NULL; GFile* _tmp0_ = NULL; -#line 458 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 465 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 459 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 466 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp0_ = file; -#line 459 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 466 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" self = (DirectFullscreenPhotoPage*) direct_photo_page_construct (object_type, _tmp0_); -#line 458 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 465 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" return self; -#line 3734 "DirectPhotoPage.c" +#line 3786 "DirectPhotoPage.c" } DirectFullscreenPhotoPage* direct_fullscreen_photo_page_new (GFile* file) { -#line 458 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 465 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" return direct_fullscreen_photo_page_construct (TYPE_DIRECT_FULLSCREEN_PHOTO_PAGE, file); -#line 3741 "DirectPhotoPage.c" +#line 3793 "DirectPhotoPage.c" } static void direct_fullscreen_photo_page_real_init_collect_ui_filenames (Page* base, GeeList* ui_filenames) { DirectFullscreenPhotoPage * self; GeeList* _tmp0_ = NULL; -#line 462 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 469 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_FULLSCREEN_PHOTO_PAGE, DirectFullscreenPhotoPage); -#line 462 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 469 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" g_return_if_fail (GEE_IS_LIST (ui_filenames)); -#line 465 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 472 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" _tmp0_ = ui_filenames; -#line 465 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 472 "/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 3756 "DirectPhotoPage.c" +#line 3808 "DirectPhotoPage.c" } static void direct_fullscreen_photo_page_class_init (DirectFullscreenPhotoPageClass * klass) { -#line 457 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 464 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" direct_fullscreen_photo_page_parent_class = g_type_class_peek_parent (klass); -#line 457 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" +#line 464 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" ((PageClass *) klass)->init_collect_ui_filenames = direct_fullscreen_photo_page_real_init_collect_ui_filenames; -#line 3765 "DirectPhotoPage.c" +#line 3817 "DirectPhotoPage.c" } diff --git a/src/direct/DirectPhotoPage.vala b/src/direct/DirectPhotoPage.vala index 9688aa5..a48f9e0 100644 --- a/src/direct/DirectPhotoPage.vala +++ b/src/direct/DirectPhotoPage.vala @@ -65,12 +65,19 @@ public class DirectPhotoPage : EditingHostPage { { "Zoom200", snap_zoom_to_max } }; - protected override void add_actions () { - base.add_actions (); + protected override void add_actions (GLib.ActionMap map) { + base.add_actions (map); - AppWindow.get_instance ().add_action_entries (entries, this); + map.add_action_entries (entries, this); } - + + protected override void remove_actions(GLib.ActionMap map) { + base.remove_actions(map); + foreach (var entry in entries) { + map.remove_action(entry.name); + } + } + protected override InjectionGroup[] init_collect_injection_groups() { InjectionGroup[] groups = base.init_collect_injection_groups(); diff --git a/src/direct/DirectView.c b/src/direct/DirectView.c index e3cebb7..f2ef1b1 100644 --- a/src/direct/DirectView.c +++ b/src/direct/DirectView.c @@ -1,4 +1,4 @@ -/* DirectView.c generated by valac 0.32.1, the Vala compiler +/* DirectView.c generated by valac 0.34.4, the Vala compiler * generated from DirectView.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/direct/DirectWindow.c b/src/direct/DirectWindow.c index dc9432e..06465a8 100644 --- a/src/direct/DirectWindow.c +++ b/src/direct/DirectWindow.c @@ -1,4 +1,4 @@ -/* DirectWindow.c generated by valac 0.32.1, the Vala compiler +/* DirectWindow.c generated by valac 0.34.4, the Vala compiler * generated from DirectWindow.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -326,7 +326,6 @@ void page_switched_to (Page* self); GtkToolbar* page_get_toolbar (Page* self); void application_set_menubar (GMenuModel* model); GMenuModel* page_get_menubar (Page* self); -void application_set_appmenu (GMenuModel* model); DirectWindow* direct_window_get_app (void); DirectPhotoPage* direct_window_get_direct_page (DirectWindow* self); Page* page_window_get_current_page (PageWindow* self); @@ -365,14 +364,14 @@ static void direct_window_finalize (GObject* obj); static void _direct_window_on_photo_changed_data_collection_items_altered (DataCollection* _sender, GeeMap* items, gpointer self) { #line 12 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" direct_window_on_photo_changed ((DirectWindow*) self); -#line 369 "DirectWindow.c" +#line 368 "DirectWindow.c" } static void _direct_window_on_photo_changed_view_collection_items_state_changed (ViewCollection* _sender, GeeIterable* changed, gpointer self) { #line 13 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" direct_window_on_photo_changed ((DirectWindow*) self); -#line 376 "DirectWindow.c" +#line 375 "DirectWindow.c" } @@ -395,12 +394,9 @@ DirectWindow* direct_window_construct (GType object_type, GFile* file) { DirectPhotoPage* _tmp13_ = NULL; GtkToolbar* _tmp14_ = NULL; GtkToolbar* _tmp15_ = NULL; - GtkBuilder* builder = NULL; - GtkBuilder* _tmp16_ = NULL; - DirectPhotoPage* _tmp17_ = NULL; + DirectPhotoPage* _tmp16_ = NULL; + GMenuModel* _tmp17_ = NULL; GMenuModel* _tmp18_ = NULL; - GMenuModel* _tmp19_ = NULL; - GObject* _tmp20_ = NULL; #line 10 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" g_return_val_if_fail (G_IS_FILE (file), NULL); #line 10 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" @@ -468,46 +464,36 @@ DirectWindow* direct_window_construct (GType object_type, GFile* file) { #line 25 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _g_object_unref0 (_tmp15_); #line 27 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp16_ = gtk_builder_new_from_resource ("/org/gnome/Shotwell/appmenu.ui"); + _tmp16_ = self->priv->direct_photo_page; #line 27 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - builder = _tmp16_; -#line 28 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp17_ = self->priv->direct_photo_page; -#line 28 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp18_ = page_get_menubar (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_PAGE, Page)); -#line 28 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp19_ = _tmp18_; -#line 28 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - application_set_menubar (_tmp19_); -#line 28 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _g_object_unref0 (_tmp19_); -#line 29 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp20_ = gtk_builder_get_object (builder, "direct-appmenu"); + _tmp17_ = page_get_menubar (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_PAGE, Page)); +#line 27 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" + _tmp18_ = _tmp17_; +#line 27 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" + application_set_menubar (_tmp18_); +#line 27 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" + _g_object_unref0 (_tmp18_); #line 29 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - application_set_appmenu (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_TYPE (_tmp20_, g_menu_get_type ()) ? ((GMenu*) _tmp20_) : NULL, g_menu_model_get_type (), GMenuModel)); -#line 31 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (layout, gtk_widget_get_type (), GtkWidget)); #line 10 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _g_object_unref0 (builder); -#line 10 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _g_object_unref0 (layout); #line 10 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" return self; -#line 497 "DirectWindow.c" +#line 483 "DirectWindow.c" } DirectWindow* direct_window_new (GFile* file) { #line 10 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" return direct_window_construct (TYPE_DIRECT_WINDOW, file); -#line 504 "DirectWindow.c" +#line 490 "DirectWindow.c" } static gpointer _g_object_ref0 (gpointer self) { -#line 35 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 33 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" return self ? g_object_ref (self) : NULL; -#line 511 "DirectWindow.c" +#line 497 "DirectWindow.c" } @@ -515,30 +501,30 @@ DirectWindow* direct_window_get_app (void) { DirectWindow* result = NULL; AppWindow* _tmp0_ = NULL; DirectWindow* _tmp1_ = NULL; -#line 35 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 33 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp0_ = app_window_instance; -#line 35 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 33 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DIRECT_WINDOW, DirectWindow)); -#line 35 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 33 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" result = _tmp1_; -#line 35 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 33 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" return result; -#line 527 "DirectWindow.c" +#line 513 "DirectWindow.c" } DirectPhotoPage* direct_window_get_direct_page (DirectWindow* self) { DirectPhotoPage* result = NULL; Page* _tmp0_ = NULL; -#line 38 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 36 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" g_return_val_if_fail (IS_DIRECT_WINDOW (self), NULL); -#line 39 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 37 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp0_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 39 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 37 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage); -#line 39 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 37 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" return result; -#line 542 "DirectWindow.c" +#line 528 "DirectWindow.c" } @@ -555,53 +541,53 @@ void direct_window_update_title (DirectWindow* self, GFile* file, gboolean modif gchar* _tmp9_ = NULL; gchar* _tmp10_ = NULL; gchar* _tmp11_ = NULL; -#line 42 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 40 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" g_return_if_fail (IS_DIRECT_WINDOW (self)); -#line 42 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 40 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" g_return_if_fail (G_IS_FILE (file)); -#line 43 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp1_ = modified; -#line 43 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" if (_tmp1_) { -#line 43 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp0_ = "*"; -#line 569 "DirectWindow.c" +#line 555 "DirectWindow.c" } else { -#line 43 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp0_ = ""; -#line 573 "DirectWindow.c" +#line 559 "DirectWindow.c" } -#line 43 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp2_ = file; -#line 43 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp3_ = g_file_get_basename (_tmp2_); -#line 43 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp4_ = _tmp3_; -#line 43 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp5_ = file; -#line 43 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp6_ = g_file_get_parent (_tmp5_); -#line 43 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp7_ = _tmp6_; -#line 43 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp8_ = get_display_pathname (_tmp7_); -#line 43 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp9_ = _tmp8_; -#line 43 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp10_ = g_strdup_printf ("%s%s (%s) - %s", _tmp0_, _tmp4_, _tmp9_, RESOURCES_APP_TITLE); -#line 43 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp11_ = _tmp10_; -#line 43 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), _tmp11_); -#line 43 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _g_free0 (_tmp11_); -#line 43 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _g_free0 (_tmp9_); -#line 43 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _g_object_unref0 (_tmp7_); -#line 43 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _g_free0 (_tmp4_); -#line 605 "DirectWindow.c" +#line 591 "DirectWindow.c" } @@ -614,33 +600,33 @@ static void direct_window_real_on_fullscreen (AppWindow* base) { GFile* _tmp3_ = NULL; DirectFullscreenPhotoPage* _tmp4_ = NULL; DirectFullscreenPhotoPage* _tmp5_ = NULL; -#line 47 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 45 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_WINDOW, DirectWindow); -#line 48 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 46 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp0_ = direct_window_get_direct_page (self); -#line 48 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 46 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp1_ = _tmp0_; -#line 48 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 46 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp2_ = direct_photo_page_get_current_file (_tmp1_); -#line 48 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 46 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp3_ = _tmp2_; -#line 48 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 46 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _g_object_unref0 (_tmp1_); -#line 48 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 46 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" file = _tmp3_; -#line 50 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 48 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp4_ = direct_fullscreen_photo_page_new (file); -#line 50 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 48 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" g_object_ref_sink (_tmp4_); -#line 50 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 48 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp5_ = _tmp4_; -#line 50 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 48 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" app_window_go_fullscreen (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow), G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_PAGE, Page)); -#line 50 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 48 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _g_object_unref0 (_tmp5_); -#line 47 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 45 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _g_object_unref0 (file); -#line 644 "DirectWindow.c" +#line 630 "DirectWindow.c" } @@ -648,15 +634,15 @@ static gchar* direct_window_real_get_app_role (AppWindow* base) { DirectWindow * self; gchar* result = NULL; gchar* _tmp0_ = NULL; -#line 53 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 51 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_WINDOW, DirectWindow); -#line 54 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 52 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp0_ = g_strdup (RESOURCES_APP_DIRECT_ROLE); -#line 54 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 52 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" result = _tmp0_; -#line 54 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 52 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" return result; -#line 660 "DirectWindow.c" +#line 646 "DirectWindow.c" } @@ -665,43 +651,43 @@ static void direct_window_on_photo_changed (DirectWindow* self) { DirectPhotoPage* _tmp0_ = NULL; Photo* _tmp1_ = NULL; Photo* _tmp2_ = NULL; -#line 57 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 55 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" g_return_if_fail (IS_DIRECT_WINDOW (self)); -#line 58 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 56 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp0_ = self->priv->direct_photo_page; -#line 58 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 56 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp1_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 58 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 56 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" photo = _tmp1_; -#line 59 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 57 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp2_ = photo; -#line 59 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 57 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" if (_tmp2_ != NULL) { -#line 681 "DirectWindow.c" +#line 667 "DirectWindow.c" Photo* _tmp3_ = NULL; GFile* _tmp4_ = NULL; GFile* _tmp5_ = NULL; Photo* _tmp6_ = NULL; gboolean _tmp7_ = FALSE; -#line 60 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 58 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp3_ = photo; -#line 60 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 58 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp4_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 60 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 58 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp5_ = _tmp4_; -#line 60 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 58 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp6_ = photo; -#line 60 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 58 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp7_ = photo_has_alterations (_tmp6_); -#line 60 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 58 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" direct_window_update_title (self, _tmp5_, _tmp7_); -#line 60 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 58 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _g_object_unref0 (_tmp5_); -#line 701 "DirectWindow.c" +#line 687 "DirectWindow.c" } -#line 57 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 55 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _g_object_unref0 (photo); -#line 705 "DirectWindow.c" +#line 691 "DirectWindow.c" } @@ -715,39 +701,39 @@ static void direct_window_real_on_quit (AppWindow* base) { ConfigFacade* _tmp5_ = NULL; gboolean _tmp6_ = FALSE; Dimensions _tmp7_ = {0}; -#line 63 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 61 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_WINDOW, DirectWindow); -#line 64 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 62 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp0_ = direct_window_get_direct_page (self); -#line 64 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 62 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp1_ = _tmp0_; -#line 64 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 62 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp2_ = direct_photo_page_check_quit (_tmp1_); -#line 64 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 62 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp3_ = !_tmp2_; -#line 64 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 62 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _g_object_unref0 (_tmp1_); -#line 64 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 62 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" if (_tmp3_) { -#line 65 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 63 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" return; -#line 735 "DirectWindow.c" +#line 721 "DirectWindow.c" } -#line 67 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 65 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp4_ = config_facade_get_instance (); -#line 67 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 65 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp5_ = _tmp4_; -#line 67 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 65 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow)->maximized; -#line 67 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 65 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp7_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow)->dimensions; -#line 67 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 65 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" configuration_facade_set_direct_window_state (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp6_, &_tmp7_); -#line 67 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 65 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _g_object_unref0 (_tmp5_); -#line 69 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 67 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" APP_WINDOW_CLASS (direct_window_parent_class)->on_quit (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow)); -#line 751 "DirectWindow.c" +#line 737 "DirectWindow.c" } @@ -759,50 +745,50 @@ static gboolean direct_window_real_delete_event (GtkWidget* base, GdkEventAny* e gboolean _tmp2_ = FALSE; gboolean _tmp3_ = FALSE; gboolean _tmp4_ = FALSE; -#line 72 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 70 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_WINDOW, DirectWindow); -#line 72 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 70 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 73 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 71 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp0_ = direct_window_get_direct_page (self); -#line 73 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 71 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp1_ = _tmp0_; -#line 73 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 71 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp2_ = direct_photo_page_check_quit (_tmp1_); -#line 73 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 71 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp3_ = !_tmp2_; -#line 73 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 71 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _g_object_unref0 (_tmp1_); -#line 73 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 71 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" if (_tmp3_) { -#line 74 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 72 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" result = TRUE; -#line 74 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 72 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" return result; -#line 783 "DirectWindow.c" +#line 769 "DirectWindow.c" } -#line 76 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 74 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" if (GTK_WIDGET_CLASS (direct_window_parent_class)->delete_event != NULL) { -#line 787 "DirectWindow.c" +#line 773 "DirectWindow.c" GdkEventAny* _tmp5_ = NULL; gboolean _tmp6_ = FALSE; -#line 76 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 74 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp5_ = event; -#line 76 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 74 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp6_ = GTK_WIDGET_CLASS (direct_window_parent_class)->delete_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow), gtk_widget_get_type (), GtkWidget), _tmp5_); -#line 76 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 74 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp4_ = _tmp6_; -#line 796 "DirectWindow.c" +#line 782 "DirectWindow.c" } else { -#line 76 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 74 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp4_ = FALSE; -#line 800 "DirectWindow.c" +#line 786 "DirectWindow.c" } -#line 76 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 74 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" result = _tmp4_; -#line 76 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 74 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" return result; -#line 806 "DirectWindow.c" +#line 792 "DirectWindow.c" } @@ -811,29 +797,29 @@ static gboolean direct_window_real_button_press_event (GtkWidget* base, GdkEvent gboolean result = FALSE; GdkEventButton* _tmp0_ = NULL; GdkEventType _tmp1_ = 0; -#line 79 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 77 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_WINDOW, DirectWindow); -#line 79 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 77 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 80 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 78 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp0_ = event; -#line 80 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 78 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp1_ = _tmp0_->type; -#line 80 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 78 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" if (_tmp1_ == GDK_2BUTTON_PRESS) { -#line 81 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 79 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" app_window_on_fullscreen (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow)); -#line 83 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 81 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" result = TRUE; -#line 83 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 81 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" return result; -#line 831 "DirectWindow.c" +#line 817 "DirectWindow.c" } -#line 86 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 84 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" result = FALSE; -#line 86 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 84 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" return result; -#line 837 "DirectWindow.c" +#line 823 "DirectWindow.c" } @@ -844,48 +830,48 @@ static gboolean direct_window_real_key_press_event (GtkWidget* base, GdkEventKey guint _tmp1_ = 0U; const gchar* _tmp2_ = NULL; gboolean _tmp3_ = FALSE; -#line 89 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 87 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_WINDOW, DirectWindow); -#line 89 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 87 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 91 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 89 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp0_ = event; -#line 91 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 89 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp1_ = _tmp0_->keyval; -#line 91 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 89 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp2_ = gdk_keyval_name (_tmp1_); -#line 91 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 89 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" if (g_strcmp0 (_tmp2_, "Escape") == 0) { -#line 92 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 90 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" app_window_on_quit (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow)); -#line 94 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 92 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" result = TRUE; -#line 94 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 92 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" return result; -#line 866 "DirectWindow.c" +#line 852 "DirectWindow.c" } -#line 98 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 96 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" if (GTK_WIDGET_CLASS (direct_window_parent_class)->key_press_event != NULL) { -#line 870 "DirectWindow.c" +#line 856 "DirectWindow.c" GdkEventKey* _tmp4_ = NULL; gboolean _tmp5_ = FALSE; -#line 98 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 96 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp4_ = event; -#line 98 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 96 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp5_ = GTK_WIDGET_CLASS (direct_window_parent_class)->key_press_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow), gtk_widget_get_type (), GtkWidget), _tmp4_); -#line 98 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 96 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp3_ = _tmp5_; -#line 879 "DirectWindow.c" +#line 865 "DirectWindow.c" } else { -#line 98 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 96 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" _tmp3_ = FALSE; -#line 883 "DirectWindow.c" +#line 869 "DirectWindow.c" } -#line 98 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 96 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" result = _tmp3_; -#line 98 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" +#line 96 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" return result; -#line 889 "DirectWindow.c" +#line 875 "DirectWindow.c" } @@ -908,14 +894,14 @@ static void direct_window_class_init (DirectWindowClass * klass) { ((GtkWidgetClass *) klass)->key_press_event = direct_window_real_key_press_event; #line 7 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" G_OBJECT_CLASS (klass)->finalize = direct_window_finalize; -#line 912 "DirectWindow.c" +#line 898 "DirectWindow.c" } static void direct_window_instance_init (DirectWindow * self) { #line 7 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" self->priv = DIRECT_WINDOW_GET_PRIVATE (self); -#line 919 "DirectWindow.c" +#line 905 "DirectWindow.c" } @@ -927,7 +913,7 @@ static void direct_window_finalize (GObject* obj) { _g_object_unref0 (self->priv->direct_photo_page); #line 7 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" G_OBJECT_CLASS (direct_window_parent_class)->finalize (obj); -#line 931 "DirectWindow.c" +#line 917 "DirectWindow.c" } diff --git a/src/direct/DirectWindow.vala b/src/direct/DirectWindow.vala index ee1995a..e1cbf75 100644 --- a/src/direct/DirectWindow.vala +++ b/src/direct/DirectWindow.vala @@ -24,9 +24,7 @@ public class DirectWindow : AppWindow { layout.pack_start(direct_photo_page, true, true, 0); layout.pack_end(direct_photo_page.get_toolbar(), false, false, 0); - var builder = new Gtk.Builder.from_resource ("/org/gnome/Shotwell/appmenu.ui"); Application.set_menubar (direct_photo_page.get_menubar ()); - Application.set_appmenu (builder.get_object ("direct-appmenu") as GLib.Menu); add(layout); } diff --git a/src/editing_tools/EditingTools.c b/src/editing_tools/EditingTools.c index 05012c9..d1fe68f 100644 --- a/src/editing_tools/EditingTools.c +++ b/src/editing_tools/EditingTools.c @@ -1,4 +1,4 @@ -/* EditingTools.c generated by valac 0.32.1, the Vala compiler +/* EditingTools.c generated by valac 0.34.4, the Vala compiler * generated from EditingTools.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -4264,7 +4264,7 @@ static void editing_tools_photo_canvas_class_init (EditingToolsPhotoCanvasClass #line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" g_signal_new ("new_surface", EDITING_TOOLS_TYPE_PHOTO_CANVAS, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__POINTER_BOXED, G_TYPE_NONE, 2, G_TYPE_POINTER, TYPE_DIMENSIONS); #line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_new ("resized_scaled_pixbuf", EDITING_TOOLS_TYPE_PHOTO_CANVAS, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__BOXED_OBJECT_BOXED, G_TYPE_NONE, 3, TYPE_DIMENSIONS, GDK_TYPE_PIXBUF, GDK_TYPE_RECTANGLE); + g_signal_new ("resized_scaled_pixbuf", EDITING_TOOLS_TYPE_PHOTO_CANVAS, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__BOXED_OBJECT_BOXED, G_TYPE_NONE, 3, TYPE_DIMENSIONS, gdk_pixbuf_get_type (), gdk_rectangle_get_type ()); #line 4269 "EditingTools.c" } @@ -4931,7 +4931,7 @@ static void editing_tools_editing_tool_class_init (EditingToolsEditingToolClass #line 469 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" g_signal_new ("deactivated", EDITING_TOOLS_TYPE_EDITING_TOOL, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); #line 469 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_new ("applied", EDITING_TOOLS_TYPE_EDITING_TOOL, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT_BOXED_BOOLEAN, G_TYPE_NONE, 4, TYPE_COMMAND, GDK_TYPE_PIXBUF, TYPE_DIMENSIONS, G_TYPE_BOOLEAN); + g_signal_new ("applied", EDITING_TOOLS_TYPE_EDITING_TOOL, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT_BOXED_BOOLEAN, G_TYPE_NONE, 4, TYPE_COMMAND, gdk_pixbuf_get_type (), TYPE_DIMENSIONS, G_TYPE_BOOLEAN); #line 469 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" g_signal_new ("cancelled", EDITING_TOOLS_TYPE_EDITING_TOOL, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); #line 469 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" @@ -6769,15 +6769,15 @@ static gchar string_get (const gchar* self, glong index) { gchar result = '\0'; glong _tmp0_ = 0L; gchar _tmp1_ = '\0'; -#line 1086 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1086 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, '\0'); -#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = index; -#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = ((gchar*) self)[_tmp0_]; -#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp1_; -#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 6783 "EditingTools.c" } @@ -13779,7 +13779,7 @@ static void editing_tools_redeye_tool_on_photos_altered (EditingToolsRedeyeTool* #line 2014 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 13782 "EditingTools.c" - goto __catch20_g_error; + goto __catch22_g_error; } #line 2014 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" _tmp14_ = _tmp6_; @@ -13793,8 +13793,8 @@ static void editing_tools_redeye_tool_on_photos_altered (EditingToolsRedeyeTool* _g_object_unref0 (_tmp6_); #line 13795 "EditingTools.c" } - goto __finally20; - __catch20_g_error: + goto __finally22; + __catch22_g_error: { GError* err = NULL; GError* _tmp15_ = NULL; @@ -13817,7 +13817,7 @@ static void editing_tools_redeye_tool_on_photos_altered (EditingToolsRedeyeTool* return; #line 13819 "EditingTools.c" } - __finally20: + __finally22: #line 2013 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 2013 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" diff --git a/src/editing_tools/StraightenTool.c b/src/editing_tools/StraightenTool.c index cd0a017..9ef9fef 100644 --- a/src/editing_tools/StraightenTool.c +++ b/src/editing_tools/StraightenTool.c @@ -1,4 +1,4 @@ -/* StraightenTool.c generated by valac 0.32.1, the Vala compiler +/* StraightenTool.c generated by valac 0.34.4, the Vala compiler * generated from StraightenTool.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -1070,7 +1070,7 @@ static void editing_tools_straighten_tool_prepare_image (EditingToolsStraightenT #line 283 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1073 "StraightenTool.c" - goto __catch21_g_error; + goto __catch23_g_error; } #line 282 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" _tmp14_ = _tmp6_; @@ -1084,8 +1084,8 @@ static void editing_tools_straighten_tool_prepare_image (EditingToolsStraightenT _g_object_unref0 (_tmp6_); #line 1086 "StraightenTool.c" } - goto __finally21; - __catch21_g_error: + goto __finally23; + __catch23_g_error: { GError* e = NULL; EditingToolsPhotoCanvas* _tmp15_ = NULL; @@ -1124,7 +1124,7 @@ static void editing_tools_straighten_tool_prepare_image (EditingToolsStraightenT _g_error_free0 (e); #line 1126 "StraightenTool.c" } - __finally21: + __finally23: #line 281 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 281 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" diff --git a/src/events/Branch.c b/src/events/Branch.c index 193a8ee..ac8b255 100644 --- a/src/events/Branch.c +++ b/src/events/Branch.c @@ -1,4 +1,4 @@ -/* Branch.c generated by valac 0.32.1, the Vala compiler +/* Branch.c generated by valac 0.34.4, the Vala compiler * generated from Branch.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -2140,13 +2140,13 @@ static void events_branch_on_no_event_collection_altered (EventsBranch* self) { static void g_time_local (time_t time, struct tm* result) { struct tm _result_ = {0}; struct tm _tmp0_ = {0}; -#line 2701 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2750 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" localtime_r (&time, &_tmp0_); -#line 2701 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2750 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _result_ = _tmp0_; -#line 2702 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2751 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" *result = _result_; -#line 2702 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2751 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return; #line 2152 "Branch.c" } @@ -2173,35 +2173,35 @@ static gchar* g_time_format (struct tm *self, const gchar* format) { gchar* _tmp3_ = NULL; gint _tmp3__length1 = 0; gchar* _tmp4_ = NULL; -#line 2709 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2758 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (format != NULL, NULL); -#line 2710 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2759 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = g_new0 (gchar, 64); -#line 2710 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2759 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" buffer = _tmp0_; -#line 2710 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2759 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" buffer_length1 = 64; -#line 2710 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2759 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _buffer_size_ = buffer_length1; -#line 2711 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2760 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = buffer; -#line 2711 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2760 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1__length1 = buffer_length1; -#line 2711 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2760 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = format; -#line 2711 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2760 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" strftime (_tmp1_, _tmp1__length1, _tmp2_, &(*self)); -#line 2712 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2761 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = buffer; -#line 2712 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2761 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3__length1 = buffer_length1; -#line 2712 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2761 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = g_strdup ((const gchar*) _tmp3_); -#line 2712 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2761 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp4_; -#line 2712 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2761 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" buffer = (g_free (buffer), NULL); -#line 2712 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2761 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 2207 "Branch.c" } diff --git a/src/events/EventDirectoryItem.c b/src/events/EventDirectoryItem.c index f63d633..b50047a 100644 --- a/src/events/EventDirectoryItem.c +++ b/src/events/EventDirectoryItem.c @@ -1,4 +1,4 @@ -/* EventDirectoryItem.c generated by valac 0.32.1, the Vala compiler +/* EventDirectoryItem.c generated by valac 0.34.4, the Vala compiler * generated from EventDirectoryItem.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -1155,7 +1155,7 @@ static void event_directory_item_real_exposed (CheckerboardItem* base) { #line 107 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1158 "EventDirectoryItem.c" - goto __catch49_g_error; + goto __catch51_g_error; } #line 107 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" checkerboard_item_set_image (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), _tmp1_); @@ -1163,8 +1163,8 @@ static void event_directory_item_real_exposed (CheckerboardItem* base) { _g_object_unref0 (_tmp1_); #line 1165 "EventDirectoryItem.c" } - goto __finally49; - __catch49_g_error: + goto __finally51; + __catch51_g_error: { GError* err = NULL; Event* _tmp8_ = NULL; @@ -1194,7 +1194,7 @@ static void event_directory_item_real_exposed (CheckerboardItem* base) { _g_error_free0 (err); #line 1196 "EventDirectoryItem.c" } - __finally49: + __finally51: #line 106 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 106 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" @@ -1321,7 +1321,7 @@ static void event_directory_item_real_thumbnail_altered (ThumbnailView* base) { #line 140 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1324 "EventDirectoryItem.c" - goto __catch50_g_error; + goto __catch52_g_error; } #line 140 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" checkerboard_item_set_image (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), _tmp5_); @@ -1329,8 +1329,8 @@ static void event_directory_item_real_thumbnail_altered (ThumbnailView* base) { _g_object_unref0 (_tmp5_); #line 1331 "EventDirectoryItem.c" } - goto __finally50; - __catch50_g_error: + goto __finally52; + __catch52_g_error: { GError* err = NULL; Event* _tmp9_ = NULL; @@ -1360,7 +1360,7 @@ static void event_directory_item_real_thumbnail_altered (ThumbnailView* base) { _g_error_free0 (err); #line 1362 "EventDirectoryItem.c" } - __finally50: + __finally52: #line 139 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 139 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" diff --git a/src/events/EventPage.c b/src/events/EventPage.c index 04ee3ff..7d16d2a 100644 --- a/src/events/EventPage.c +++ b/src/events/EventPage.c @@ -1,4 +1,4 @@ -/* EventPage.c generated by valac 0.32.1, the Vala compiler +/* EventPage.c generated by valac 0.34.4, the Vala compiler * generated from EventPage.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -12,9 +12,9 @@ #include <gtk/gtk.h> #include <stdlib.h> #include <string.h> +#include <gio/gio.h> #include <gee.h> #include <gdk/gdk.h> -#include <gio/gio.h> #include <glib/gi18n-lib.h> @@ -305,16 +305,6 @@ typedef struct _ViewCollectionClass ViewCollectionClass; #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) #define _g_free0(var) (var = (g_free (var), NULL)) -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; - #define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ()) #define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade)) #define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) @@ -417,6 +407,16 @@ typedef struct _CommandManagerClass CommandManagerClass; typedef struct _MediaSource MediaSource; typedef struct _MediaSourceClass MediaSourceClass; +#define TYPE_APP_WINDOW (app_window_get_type ()) +#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) +#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) +#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) +#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) +#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) + +typedef struct _AppWindow AppWindow; +typedef struct _AppWindowClass AppWindowClass; + #define TYPE_LIBRARY_WINDOW (library_window_get_type ()) #define LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_WINDOW, LibraryWindow)) #define LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_WINDOW, LibraryWindowClass)) @@ -536,7 +536,8 @@ struct _PageClass { void (*ready) (Page* self); void (*switching_to_fullscreen) (Page* self, FullscreenWindow* fsw); void (*returning_from_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*add_actions) (Page* self); + void (*add_actions) (Page* self, GActionMap* map); + void (*remove_actions) (Page* self, GActionMap* map); void (*init_collect_ui_filenames) (Page* self, GeeList* ui_filenames); InjectionGroup** (*init_collect_injection_groups) (Page* self, int* result_length1); void (*init_actions) (Page* self, gint selected_count, gint count); @@ -829,10 +830,10 @@ gint view_collection_get_selected_count (ViewCollection* self); gboolean page_on_app_key_pressed (Page* self, GdkEventKey* event); static void event_page_real_init_collect_ui_filenames (Page* base, GeeList* ui_filenames); void page_init_collect_ui_filenames (Page* self, GeeList* ui_filenames); -static void event_page_real_add_actions (Page* base); -void page_add_actions (Page* self); -GType app_window_get_type (void) G_GNUC_CONST; -AppWindow* app_window_get_instance (void); +static void event_page_real_add_actions (Page* base, GActionMap* map); +void page_add_actions (Page* self, GActionMap* map); +static void event_page_real_remove_actions (Page* base, GActionMap* map); +void page_remove_actions (Page* self, GActionMap* map); static void event_page_real_init_actions (Page* base, gint selected_count, gint count); void page_init_actions (Page* self, gint selected_count, gint count); static void event_page_real_update_actions (Page* base, gint selected_count, gint count); @@ -879,6 +880,7 @@ GType media_source_get_type (void) G_GNUC_CONST; gboolean event_set_primary_source (Event* self, MediaSource* source); DataView* view_collection_get_selected_at (ViewCollection* self, gint index); DataSource* data_view_get_source (DataView* self); +GType app_window_get_type (void) G_GNUC_CONST; GType library_window_get_type (void) G_GNUC_CONST; LibraryWindow* library_window_get_app (void); void library_window_rename_event_in_sidebar (LibraryWindow* self, Event* event); @@ -935,35 +937,35 @@ static const GActionEntry EVENT_PAGE_entries[3] = {{"MakePrimary", _event_page_o static void _event_page_on_events_altered_data_collection_items_altered (DataCollection* _sender, GeeMap* items, gpointer self) { #line 40 "/home/jens/Source/shotwell/src/events/EventPage.vala" event_page_on_events_altered ((EventPage*) self, items); -#line 939 "EventPage.c" +#line 941 "EventPage.c" } static void _event_page_on_make_primary_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 50 "/home/jens/Source/shotwell/src/events/EventPage.vala" event_page_on_make_primary ((EventPage*) self); -#line 946 "EventPage.c" +#line 948 "EventPage.c" } static void _event_page_on_rename_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 50 "/home/jens/Source/shotwell/src/events/EventPage.vala" event_page_on_rename ((EventPage*) self); -#line 953 "EventPage.c" +#line 955 "EventPage.c" } static void _media_page_on_edit_comment_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 50 "/home/jens/Source/shotwell/src/events/EventPage.vala" media_page_on_edit_comment ((MediaPage*) self); -#line 960 "EventPage.c" +#line 962 "EventPage.c" } static gpointer _g_object_ref0 (gpointer self) { #line 13 "/home/jens/Source/shotwell/src/events/EventPage.vala" return self ? g_object_ref (self) : NULL; -#line 967 "EventPage.c" +#line 969 "EventPage.c" } @@ -972,7 +974,7 @@ static DataView* _media_page_create_thumbnail_create_view (DataSource* source, g result = media_page_create_thumbnail ((MediaPage*) self, source); #line 14 "/home/jens/Source/shotwell/src/events/EventPage.vala" return result; -#line 976 "EventPage.c" +#line 978 "EventPage.c" } @@ -1018,21 +1020,21 @@ EventPage* event_page_construct (GType object_type, Event* page_event) { #line 14 "/home/jens/Source/shotwell/src/events/EventPage.vala" _data_collection_unref0 (_tmp7_); #line 16 "/home/jens/Source/shotwell/src/events/EventPage.vala" - checkerboard_page_init_page_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), "/EventContextMenu"); + checkerboard_page_init_page_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), "EventContextMenu"); #line 18 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp8_ = event_global; #line 18 "/home/jens/Source/shotwell/src/events/EventPage.vala" g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _event_page_on_events_altered_data_collection_items_altered, self, 0); #line 10 "/home/jens/Source/shotwell/src/events/EventPage.vala" return self; -#line 1029 "EventPage.c" +#line 1031 "EventPage.c" } EventPage* event_page_new (Event* page_event) { #line 10 "/home/jens/Source/shotwell/src/events/EventPage.vala" return event_page_construct (TYPE_EVENT_PAGE, page_event); -#line 1036 "EventPage.c" +#line 1038 "EventPage.c" } @@ -1050,7 +1052,7 @@ Event* event_page_get_event (EventPage* self) { result = _tmp1_; #line 22 "/home/jens/Source/shotwell/src/events/EventPage.vala" return result; -#line 1054 "EventPage.c" +#line 1056 "EventPage.c" } @@ -1074,7 +1076,7 @@ static gboolean event_page_real_on_app_key_pressed (Page* base, GdkEventKey* eve _tmp2_ = gdk_keyval_name (_tmp1_); #line 30 "/home/jens/Source/shotwell/src/events/EventPage.vala" if (g_strcmp0 (_tmp2_, "F2") == 0) { -#line 1078 "EventPage.c" +#line 1080 "EventPage.c" ViewCollection* _tmp3_ = NULL; ViewCollection* _tmp4_ = NULL; gint _tmp5_ = 0; @@ -1095,7 +1097,7 @@ static gboolean event_page_real_on_app_key_pressed (Page* base, GdkEventKey* eve result = TRUE; #line 32 "/home/jens/Source/shotwell/src/events/EventPage.vala" return result; -#line 1099 "EventPage.c" +#line 1101 "EventPage.c" } } #line 36 "/home/jens/Source/shotwell/src/events/EventPage.vala" @@ -1106,7 +1108,7 @@ static gboolean event_page_real_on_app_key_pressed (Page* base, GdkEventKey* eve result = _tmp8_; #line 36 "/home/jens/Source/shotwell/src/events/EventPage.vala" return result; -#line 1110 "EventPage.c" +#line 1112 "EventPage.c" } @@ -1126,27 +1128,74 @@ static void event_page_real_init_collect_ui_filenames (Page* base, GeeList* ui_f _tmp1_ = ui_filenames; #line 47 "/home/jens/Source/shotwell/src/events/EventPage.vala" gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection), "event.ui"); -#line 1130 "EventPage.c" +#line 1132 "EventPage.c" } -static void event_page_real_add_actions (Page* base) { +static void event_page_real_add_actions (Page* base, GActionMap* map) { EventPage * self; - AppWindow* _tmp0_ = NULL; - AppWindow* _tmp1_ = NULL; + GActionMap* _tmp0_ = NULL; + GActionMap* _tmp1_ = NULL; #line 56 "/home/jens/Source/shotwell/src/events/EventPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_PAGE, EventPage); +#line 56 "/home/jens/Source/shotwell/src/events/EventPage.vala" + g_return_if_fail (G_IS_ACTION_MAP (map)); #line 57 "/home/jens/Source/shotwell/src/events/EventPage.vala" - PAGE_CLASS (event_page_parent_class)->add_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page)); -#line 59 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp0_ = app_window_get_instance (); -#line 59 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp1_ = _tmp0_; + _tmp0_ = map; +#line 57 "/home/jens/Source/shotwell/src/events/EventPage.vala" + PAGE_CLASS (event_page_parent_class)->add_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page), _tmp0_); #line 59 "/home/jens/Source/shotwell/src/events/EventPage.vala" - g_action_map_add_action_entries (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, g_action_map_get_type (), GActionMap), EVENT_PAGE_entries, G_N_ELEMENTS (EVENT_PAGE_entries), self); + _tmp1_ = map; #line 59 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _g_object_unref0 (_tmp1_); -#line 1150 "EventPage.c" + g_action_map_add_action_entries (_tmp1_, EVENT_PAGE_entries, G_N_ELEMENTS (EVENT_PAGE_entries), self); +#line 1152 "EventPage.c" +} + + +static void event_page_real_remove_actions (Page* base, GActionMap* map) { + EventPage * self; + GActionMap* _tmp0_ = NULL; +#line 62 "/home/jens/Source/shotwell/src/events/EventPage.vala" + self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_PAGE, EventPage); +#line 62 "/home/jens/Source/shotwell/src/events/EventPage.vala" + g_return_if_fail (G_IS_ACTION_MAP (map)); +#line 63 "/home/jens/Source/shotwell/src/events/EventPage.vala" + _tmp0_ = map; +#line 63 "/home/jens/Source/shotwell/src/events/EventPage.vala" + PAGE_CLASS (event_page_parent_class)->remove_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page), _tmp0_); +#line 1167 "EventPage.c" + { + GActionEntry* entry_collection = NULL; + gint entry_collection_length1 = 0; + gint _entry_collection_size_ = 0; + gint entry_it = 0; +#line 64 "/home/jens/Source/shotwell/src/events/EventPage.vala" + entry_collection = EVENT_PAGE_entries; +#line 64 "/home/jens/Source/shotwell/src/events/EventPage.vala" + entry_collection_length1 = G_N_ELEMENTS (EVENT_PAGE_entries); +#line 64 "/home/jens/Source/shotwell/src/events/EventPage.vala" + for (entry_it = 0; entry_it < G_N_ELEMENTS (EVENT_PAGE_entries); entry_it = entry_it + 1) { +#line 1179 "EventPage.c" + GActionEntry entry = {0}; +#line 64 "/home/jens/Source/shotwell/src/events/EventPage.vala" + entry = entry_collection[entry_it]; +#line 1183 "EventPage.c" + { + GActionMap* _tmp1_ = NULL; + GActionEntry _tmp2_ = {0}; + const gchar* _tmp3_ = NULL; +#line 65 "/home/jens/Source/shotwell/src/events/EventPage.vala" + _tmp1_ = map; +#line 65 "/home/jens/Source/shotwell/src/events/EventPage.vala" + _tmp2_ = entry; +#line 65 "/home/jens/Source/shotwell/src/events/EventPage.vala" + _tmp3_ = _tmp2_.name; +#line 65 "/home/jens/Source/shotwell/src/events/EventPage.vala" + g_action_map_remove_action (_tmp1_, _tmp3_); +#line 1196 "EventPage.c" + } + } + } } @@ -1154,15 +1203,15 @@ static void event_page_real_init_actions (Page* base, gint selected_count, gint EventPage * self; gint _tmp0_ = 0; gint _tmp1_ = 0; -#line 62 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 69 "/home/jens/Source/shotwell/src/events/EventPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_PAGE, EventPage); -#line 63 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 70 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp0_ = selected_count; -#line 63 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 70 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp1_ = count; -#line 63 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 70 "/home/jens/Source/shotwell/src/events/EventPage.vala" PAGE_CLASS (event_page_parent_class)->init_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page), _tmp0_, _tmp1_); -#line 1166 "EventPage.c" +#line 1215 "EventPage.c" } @@ -1171,23 +1220,23 @@ static void event_page_real_update_actions (Page* base, gint selected_count, gin gint _tmp0_ = 0; gint _tmp1_ = 0; gint _tmp2_ = 0; -#line 66 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 73 "/home/jens/Source/shotwell/src/events/EventPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_PAGE, EventPage); -#line 67 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 74 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp0_ = selected_count; -#line 67 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 74 "/home/jens/Source/shotwell/src/events/EventPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "MakePrimary", _tmp0_ == 1); -#line 70 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 77 "/home/jens/Source/shotwell/src/events/EventPage.vala" page_set_action_visible (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CommonJumpToEvent", FALSE); -#line 72 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 79 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp1_ = selected_count; -#line 72 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 79 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp2_ = count; -#line 72 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 79 "/home/jens/Source/shotwell/src/events/EventPage.vala" PAGE_CLASS (event_page_parent_class)->update_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page), _tmp1_, _tmp2_); -#line 76 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 83 "/home/jens/Source/shotwell/src/events/EventPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "EditEventComment", TRUE); -#line 1191 "EventPage.c" +#line 1240 "EventPage.c" } @@ -1199,31 +1248,31 @@ static void event_page_real_get_config_photos_sort (MediaPage* base, gboolean* s ConfigFacade* _tmp1_ = NULL; gboolean _tmp2_ = FALSE; gint _tmp3_ = 0; -#line 79 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 86 "/home/jens/Source/shotwell/src/events/EventPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_PAGE, EventPage); -#line 80 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 87 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp0_ = config_facade_get_instance (); -#line 80 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 87 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp1_ = _tmp0_; -#line 80 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 87 "/home/jens/Source/shotwell/src/events/EventPage.vala" configuration_facade_get_event_photos_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), &_tmp2_, &_tmp3_); -#line 80 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 87 "/home/jens/Source/shotwell/src/events/EventPage.vala" _vala_sort_order = _tmp2_; -#line 80 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 87 "/home/jens/Source/shotwell/src/events/EventPage.vala" _vala_sort_by = _tmp3_; -#line 80 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 87 "/home/jens/Source/shotwell/src/events/EventPage.vala" _g_object_unref0 (_tmp1_); -#line 79 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 86 "/home/jens/Source/shotwell/src/events/EventPage.vala" if (sort_order) { -#line 79 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 86 "/home/jens/Source/shotwell/src/events/EventPage.vala" *sort_order = _vala_sort_order; -#line 1221 "EventPage.c" +#line 1270 "EventPage.c" } -#line 79 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 86 "/home/jens/Source/shotwell/src/events/EventPage.vala" if (sort_by) { -#line 79 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 86 "/home/jens/Source/shotwell/src/events/EventPage.vala" *sort_by = _vala_sort_by; -#line 1227 "EventPage.c" +#line 1276 "EventPage.c" } } @@ -1234,21 +1283,21 @@ static void event_page_real_set_config_photos_sort (MediaPage* base, gboolean so ConfigFacade* _tmp1_ = NULL; gboolean _tmp2_ = FALSE; gint _tmp3_ = 0; -#line 83 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 90 "/home/jens/Source/shotwell/src/events/EventPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_PAGE, EventPage); -#line 84 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 91 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp0_ = config_facade_get_instance (); -#line 84 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 91 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp1_ = _tmp0_; -#line 84 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 91 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp2_ = sort_order; -#line 84 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 91 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp3_ = sort_by; -#line 84 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 91 "/home/jens/Source/shotwell/src/events/EventPage.vala" configuration_facade_set_event_photos_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_); -#line 84 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 91 "/home/jens/Source/shotwell/src/events/EventPage.vala" _g_object_unref0 (_tmp1_); -#line 1252 "EventPage.c" +#line 1301 "EventPage.c" } @@ -1256,33 +1305,33 @@ static void event_page_on_events_altered (EventPage* self, GeeMap* map) { GeeMap* _tmp0_ = NULL; Event* _tmp1_ = NULL; gboolean _tmp2_ = FALSE; -#line 87 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 94 "/home/jens/Source/shotwell/src/events/EventPage.vala" g_return_if_fail (IS_EVENT_PAGE (self)); -#line 87 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 94 "/home/jens/Source/shotwell/src/events/EventPage.vala" g_return_if_fail (GEE_IS_MAP (map)); -#line 88 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 95 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp0_ = map; -#line 88 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 95 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp1_ = self->priv->page_event; -#line 88 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 95 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp2_ = gee_map_has_key (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_OBJECT, DataObject)); -#line 88 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 95 "/home/jens/Source/shotwell/src/events/EventPage.vala" if (_tmp2_) { -#line 1272 "EventPage.c" +#line 1321 "EventPage.c" Event* _tmp3_ = NULL; gchar* _tmp4_ = NULL; gchar* _tmp5_ = NULL; -#line 89 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 96 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp3_ = self->priv->page_event; -#line 89 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 96 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp4_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_OBJECT, DataObject)); -#line 89 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 96 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp5_ = _tmp4_; -#line 89 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 96 "/home/jens/Source/shotwell/src/events/EventPage.vala" page_set_page_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), _tmp5_); -#line 89 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 96 "/home/jens/Source/shotwell/src/events/EventPage.vala" _g_free0 (_tmp5_); -#line 1286 "EventPage.c" +#line 1335 "EventPage.c" } } @@ -1293,21 +1342,21 @@ static void event_page_real_on_edit_comment (MediaPage* base) { ViewCollection* _tmp1_ = NULL; gint _tmp2_ = 0; gboolean _tmp3_ = FALSE; -#line 92 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 99 "/home/jens/Source/shotwell/src/events/EventPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_PAGE, EventPage); -#line 93 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 100 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 93 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 100 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp1_ = _tmp0_; -#line 93 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 100 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp2_ = view_collection_get_selected_count (_tmp1_); -#line 93 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 100 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp3_ = _tmp2_ == 0; -#line 93 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 100 "/home/jens/Source/shotwell/src/events/EventPage.vala" _data_collection_unref0 (_tmp1_); -#line 93 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 100 "/home/jens/Source/shotwell/src/events/EventPage.vala" if (_tmp3_) { -#line 1311 "EventPage.c" +#line 1360 "EventPage.c" EditCommentDialog* edit_comment_dialog = NULL; Event* _tmp4_ = NULL; gchar* _tmp5_ = NULL; @@ -1325,69 +1374,69 @@ static void event_page_real_on_edit_comment (MediaPage* base) { CommandManager* _tmp15_ = NULL; CommandManager* _tmp16_ = NULL; EditEventCommentCommand* _tmp17_ = NULL; -#line 94 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 101 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp4_ = self->priv->page_event; -#line 94 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 101 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp5_ = event_source_get_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_EVENT_SOURCE, EventSource)); -#line 94 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 101 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp6_ = _tmp5_; -#line 94 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 101 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp7_ = edit_comment_dialog_new (_tmp6_, TRUE); -#line 94 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 101 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp8_ = _tmp7_; -#line 94 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 101 "/home/jens/Source/shotwell/src/events/EventPage.vala" _g_free0 (_tmp6_); -#line 94 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 101 "/home/jens/Source/shotwell/src/events/EventPage.vala" edit_comment_dialog = _tmp8_; -#line 96 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 103 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp9_ = edit_comment_dialog; -#line 96 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 103 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp10_ = edit_comment_dialog_execute (_tmp9_); -#line 96 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 103 "/home/jens/Source/shotwell/src/events/EventPage.vala" new_comment = _tmp10_; -#line 97 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 104 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp11_ = new_comment; -#line 97 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 104 "/home/jens/Source/shotwell/src/events/EventPage.vala" if (_tmp11_ == NULL) { -#line 98 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 105 "/home/jens/Source/shotwell/src/events/EventPage.vala" _g_free0 (new_comment); -#line 98 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 105 "/home/jens/Source/shotwell/src/events/EventPage.vala" _multi_text_entry_dialog_mediator_unref0 (edit_comment_dialog); -#line 98 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 105 "/home/jens/Source/shotwell/src/events/EventPage.vala" return; -#line 1359 "EventPage.c" +#line 1408 "EventPage.c" } -#line 100 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 107 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp12_ = self->priv->page_event; -#line 100 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 107 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp13_ = new_comment; -#line 100 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 107 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp14_ = edit_event_comment_command_new (_tmp12_, _tmp13_); -#line 100 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 107 "/home/jens/Source/shotwell/src/events/EventPage.vala" command = _tmp14_; -#line 101 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 108 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp15_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 101 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 108 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp16_ = _tmp15_; -#line 101 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 108 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp17_ = command; -#line 101 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 108 "/home/jens/Source/shotwell/src/events/EventPage.vala" command_manager_execute (_tmp16_, G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_COMMAND, Command)); -#line 101 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 108 "/home/jens/Source/shotwell/src/events/EventPage.vala" _command_manager_unref0 (_tmp16_); -#line 102 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 109 "/home/jens/Source/shotwell/src/events/EventPage.vala" _g_object_unref0 (command); -#line 102 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 109 "/home/jens/Source/shotwell/src/events/EventPage.vala" _g_free0 (new_comment); -#line 102 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 109 "/home/jens/Source/shotwell/src/events/EventPage.vala" _multi_text_entry_dialog_mediator_unref0 (edit_comment_dialog); -#line 102 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 109 "/home/jens/Source/shotwell/src/events/EventPage.vala" return; -#line 1387 "EventPage.c" +#line 1436 "EventPage.c" } -#line 105 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 112 "/home/jens/Source/shotwell/src/events/EventPage.vala" MEDIA_PAGE_CLASS (event_page_parent_class)->on_edit_comment (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_MEDIA_PAGE, MediaPage)); -#line 1391 "EventPage.c" +#line 1440 "EventPage.c" } @@ -1403,47 +1452,47 @@ static void event_page_on_make_primary (EventPage* self) { DataView* _tmp8_ = NULL; DataSource* _tmp9_ = NULL; MediaSource* _tmp10_ = NULL; -#line 108 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 115 "/home/jens/Source/shotwell/src/events/EventPage.vala" g_return_if_fail (IS_EVENT_PAGE (self)); -#line 109 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 116 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 109 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 116 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp1_ = _tmp0_; -#line 109 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 116 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp2_ = view_collection_get_selected_count (_tmp1_); -#line 109 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 116 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp3_ = _tmp2_ != 1; -#line 109 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 116 "/home/jens/Source/shotwell/src/events/EventPage.vala" _data_collection_unref0 (_tmp1_); -#line 109 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 116 "/home/jens/Source/shotwell/src/events/EventPage.vala" if (_tmp3_) { -#line 110 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 117 "/home/jens/Source/shotwell/src/events/EventPage.vala" return; -#line 1423 "EventPage.c" +#line 1472 "EventPage.c" } -#line 112 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 119 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp4_ = self->priv->page_event; -#line 112 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 119 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 112 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 119 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp6_ = _tmp5_; -#line 112 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 119 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp7_ = view_collection_get_selected_at (_tmp6_, 0); -#line 112 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 119 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp8_ = _tmp7_; -#line 112 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 119 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp9_ = data_view_get_source (_tmp8_); -#line 112 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 119 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp10_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_MEDIA_SOURCE, MediaSource); -#line 112 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 119 "/home/jens/Source/shotwell/src/events/EventPage.vala" event_set_primary_source (_tmp4_, _tmp10_); -#line 112 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 119 "/home/jens/Source/shotwell/src/events/EventPage.vala" _g_object_unref0 (_tmp10_); -#line 112 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 119 "/home/jens/Source/shotwell/src/events/EventPage.vala" _g_object_unref0 (_tmp8_); -#line 112 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 119 "/home/jens/Source/shotwell/src/events/EventPage.vala" _data_collection_unref0 (_tmp6_); -#line 1447 "EventPage.c" +#line 1496 "EventPage.c" } @@ -1451,19 +1500,19 @@ static void event_page_on_rename (EventPage* self) { LibraryWindow* _tmp0_ = NULL; LibraryWindow* _tmp1_ = NULL; Event* _tmp2_ = NULL; -#line 115 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 122 "/home/jens/Source/shotwell/src/events/EventPage.vala" g_return_if_fail (IS_EVENT_PAGE (self)); -#line 116 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 123 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp0_ = library_window_get_app (); -#line 116 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 123 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp1_ = _tmp0_; -#line 116 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 123 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp2_ = self->priv->page_event; -#line 116 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 123 "/home/jens/Source/shotwell/src/events/EventPage.vala" library_window_rename_event_in_sidebar (_tmp1_, _tmp2_); -#line 116 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 123 "/home/jens/Source/shotwell/src/events/EventPage.vala" _g_object_unref0 (_tmp1_); -#line 1467 "EventPage.c" +#line 1516 "EventPage.c" } @@ -1479,6 +1528,8 @@ static void event_page_class_init (EventPageClass * klass) { #line 7 "/home/jens/Source/shotwell/src/events/EventPage.vala" ((PageClass *) klass)->add_actions = event_page_real_add_actions; #line 7 "/home/jens/Source/shotwell/src/events/EventPage.vala" + ((PageClass *) klass)->remove_actions = event_page_real_remove_actions; +#line 7 "/home/jens/Source/shotwell/src/events/EventPage.vala" ((PageClass *) klass)->init_actions = event_page_real_init_actions; #line 7 "/home/jens/Source/shotwell/src/events/EventPage.vala" ((PageClass *) klass)->update_actions = event_page_real_update_actions; @@ -1490,14 +1541,14 @@ static void event_page_class_init (EventPageClass * klass) { ((MediaPageClass *) klass)->on_edit_comment = event_page_real_on_edit_comment; #line 7 "/home/jens/Source/shotwell/src/events/EventPage.vala" G_OBJECT_CLASS (klass)->finalize = event_page_finalize; -#line 1494 "EventPage.c" +#line 1545 "EventPage.c" } static void event_page_instance_init (EventPage * self) { #line 7 "/home/jens/Source/shotwell/src/events/EventPage.vala" self->priv = EVENT_PAGE_GET_PRIVATE (self); -#line 1501 "EventPage.c" +#line 1552 "EventPage.c" } @@ -1527,7 +1578,7 @@ static void event_page_finalize (GObject* obj) { _g_object_unref0 (self->priv->page_event); #line 7 "/home/jens/Source/shotwell/src/events/EventPage.vala" G_OBJECT_CLASS (event_page_parent_class)->finalize (obj); -#line 1531 "EventPage.c" +#line 1582 "EventPage.c" } @@ -1559,56 +1610,56 @@ NoEventPage* no_event_page_construct (GType object_type) { Alteration* _tmp10_ = NULL; ViewCollectionMonitor* _tmp11_ = NULL; ViewCollectionMonitor* _tmp12_ = NULL; -#line 139 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 146 "/home/jens/Source/shotwell/src/events/EventPage.vala" self = (NoEventPage*) collection_page_construct (object_type, NO_EVENT_PAGE_NAME); -#line 141 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 148 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp0_ = no_event_page_no_event_view_manager_new (self); -#line 141 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 148 "/home/jens/Source/shotwell/src/events/EventPage.vala" filter = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_VIEW_MANAGER, ViewManager); -#line 142 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 149 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp1_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 142 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 149 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp2_ = _tmp1_; -#line 142 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 149 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp3_ = library_photo_global; -#line 142 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 149 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp4_ = no_event_page_no_event_page_alteration; -#line 142 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 149 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp5_ = view_collection_monitor_source_collection (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_SOURCE_COLLECTION, SourceCollection), filter, _tmp4_, NULL, NULL, NULL); -#line 142 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 149 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp6_ = _tmp5_; -#line 142 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 149 "/home/jens/Source/shotwell/src/events/EventPage.vala" _view_collection_monitor_unref0 (_tmp6_); -#line 142 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 149 "/home/jens/Source/shotwell/src/events/EventPage.vala" _data_collection_unref0 (_tmp2_); -#line 143 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 150 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp7_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 143 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 150 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp8_ = _tmp7_; -#line 143 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 150 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp9_ = video_global; -#line 143 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 150 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp10_ = no_event_page_no_event_page_alteration; -#line 143 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 150 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp11_ = view_collection_monitor_source_collection (_tmp8_, G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_SOURCE_COLLECTION, SourceCollection), filter, _tmp10_, NULL, NULL, NULL); -#line 143 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 150 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp12_ = _tmp11_; -#line 143 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 150 "/home/jens/Source/shotwell/src/events/EventPage.vala" _view_collection_monitor_unref0 (_tmp12_); -#line 143 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 150 "/home/jens/Source/shotwell/src/events/EventPage.vala" _data_collection_unref0 (_tmp8_); -#line 138 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 145 "/home/jens/Source/shotwell/src/events/EventPage.vala" _view_manager_unref0 (filter); -#line 138 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 145 "/home/jens/Source/shotwell/src/events/EventPage.vala" return self; -#line 1605 "EventPage.c" +#line 1656 "EventPage.c" } NoEventPage* no_event_page_new (void) { -#line 138 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 145 "/home/jens/Source/shotwell/src/events/EventPage.vala" return no_event_page_construct (TYPE_NO_EVENT_PAGE); -#line 1612 "EventPage.c" +#line 1663 "EventPage.c" } @@ -1620,31 +1671,31 @@ static void no_event_page_real_get_config_photos_sort (MediaPage* base, gboolean ConfigFacade* _tmp1_ = NULL; gboolean _tmp2_ = FALSE; gint _tmp3_ = 0; -#line 146 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 153 "/home/jens/Source/shotwell/src/events/EventPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NO_EVENT_PAGE, NoEventPage); -#line 147 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 154 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp0_ = config_facade_get_instance (); -#line 147 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 154 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp1_ = _tmp0_; -#line 147 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 154 "/home/jens/Source/shotwell/src/events/EventPage.vala" configuration_facade_get_event_photos_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), &_tmp2_, &_tmp3_); -#line 147 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 154 "/home/jens/Source/shotwell/src/events/EventPage.vala" _vala_sort_order = _tmp2_; -#line 147 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 154 "/home/jens/Source/shotwell/src/events/EventPage.vala" _vala_sort_by = _tmp3_; -#line 147 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 154 "/home/jens/Source/shotwell/src/events/EventPage.vala" _g_object_unref0 (_tmp1_); -#line 146 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 153 "/home/jens/Source/shotwell/src/events/EventPage.vala" if (sort_order) { -#line 146 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 153 "/home/jens/Source/shotwell/src/events/EventPage.vala" *sort_order = _vala_sort_order; -#line 1642 "EventPage.c" +#line 1693 "EventPage.c" } -#line 146 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 153 "/home/jens/Source/shotwell/src/events/EventPage.vala" if (sort_by) { -#line 146 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 153 "/home/jens/Source/shotwell/src/events/EventPage.vala" *sort_by = _vala_sort_by; -#line 1648 "EventPage.c" +#line 1699 "EventPage.c" } } @@ -1655,43 +1706,43 @@ static void no_event_page_real_set_config_photos_sort (MediaPage* base, gboolean ConfigFacade* _tmp1_ = NULL; gboolean _tmp2_ = FALSE; gint _tmp3_ = 0; -#line 150 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 157 "/home/jens/Source/shotwell/src/events/EventPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NO_EVENT_PAGE, NoEventPage); -#line 151 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 158 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp0_ = config_facade_get_instance (); -#line 151 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 158 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp1_ = _tmp0_; -#line 151 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 158 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp2_ = sort_order; -#line 151 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 158 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp3_ = sort_by; -#line 151 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 158 "/home/jens/Source/shotwell/src/events/EventPage.vala" configuration_facade_set_event_photos_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_); -#line 151 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 158 "/home/jens/Source/shotwell/src/events/EventPage.vala" _g_object_unref0 (_tmp1_); -#line 1673 "EventPage.c" +#line 1724 "EventPage.c" } static NoEventPageNoEventViewManager* no_event_page_no_event_view_manager_construct (GType object_type, NoEventPage* page) { NoEventPageNoEventViewManager* self = NULL; NoEventPage* _tmp0_ = NULL; -#line 125 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 132 "/home/jens/Source/shotwell/src/events/EventPage.vala" g_return_val_if_fail (IS_NO_EVENT_PAGE (page), NULL); -#line 126 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 133 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp0_ = page; -#line 126 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 133 "/home/jens/Source/shotwell/src/events/EventPage.vala" self = (NoEventPageNoEventViewManager*) collection_view_manager_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_COLLECTION_PAGE, CollectionPage)); -#line 125 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 132 "/home/jens/Source/shotwell/src/events/EventPage.vala" return self; -#line 1688 "EventPage.c" +#line 1739 "EventPage.c" } static NoEventPageNoEventViewManager* no_event_page_no_event_view_manager_new (NoEventPage* page) { -#line 125 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 132 "/home/jens/Source/shotwell/src/events/EventPage.vala" return no_event_page_no_event_view_manager_construct (NO_EVENT_PAGE_TYPE_NO_EVENT_VIEW_MANAGER, page); -#line 1695 "EventPage.c" +#line 1746 "EventPage.c" } @@ -1702,46 +1753,46 @@ static gboolean no_event_page_no_event_view_manager_real_include_in_view (ViewMa DataSource* _tmp1_ = NULL; EventID _tmp2_ = {0}; gint64 _tmp3_ = 0LL; -#line 130 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 137 "/home/jens/Source/shotwell/src/events/EventPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, NO_EVENT_PAGE_TYPE_NO_EVENT_VIEW_MANAGER, NoEventPageNoEventViewManager); -#line 130 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 137 "/home/jens/Source/shotwell/src/events/EventPage.vala" g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE); -#line 131 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 138 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp1_ = source; -#line 131 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 138 "/home/jens/Source/shotwell/src/events/EventPage.vala" media_source_get_event_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_MEDIA_SOURCE, MediaSource), &_tmp2_); -#line 131 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 138 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp3_ = _tmp2_.id; -#line 131 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 138 "/home/jens/Source/shotwell/src/events/EventPage.vala" if (_tmp3_ != EVENT_ID_INVALID) { -#line 131 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 138 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp0_ = FALSE; -#line 1720 "EventPage.c" +#line 1771 "EventPage.c" } else { DataSource* _tmp4_ = NULL; gboolean _tmp5_ = FALSE; -#line 132 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 139 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp4_ = source; -#line 132 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 139 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp5_ = VIEW_MANAGER_CLASS (no_event_page_no_event_view_manager_parent_class)->include_in_view (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManager), TYPE_VIEW_MANAGER, ViewManager), _tmp4_); -#line 132 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 139 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp0_ = _tmp5_; -#line 1730 "EventPage.c" +#line 1781 "EventPage.c" } -#line 131 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 138 "/home/jens/Source/shotwell/src/events/EventPage.vala" result = _tmp0_; -#line 131 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 138 "/home/jens/Source/shotwell/src/events/EventPage.vala" return result; -#line 1736 "EventPage.c" +#line 1787 "EventPage.c" } static void no_event_page_no_event_view_manager_class_init (NoEventPageNoEventViewManagerClass * klass) { -#line 124 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 131 "/home/jens/Source/shotwell/src/events/EventPage.vala" no_event_page_no_event_view_manager_parent_class = g_type_class_peek_parent (klass); -#line 124 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 131 "/home/jens/Source/shotwell/src/events/EventPage.vala" ((ViewManagerClass *) klass)->include_in_view = no_event_page_no_event_view_manager_real_include_in_view; -#line 1745 "EventPage.c" +#line 1796 "EventPage.c" } @@ -1763,19 +1814,19 @@ static GType no_event_page_no_event_view_manager_get_type (void) { static void no_event_page_class_init (NoEventPageClass * klass) { Alteration* _tmp0_ = NULL; -#line 120 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 127 "/home/jens/Source/shotwell/src/events/EventPage.vala" no_event_page_parent_class = g_type_class_peek_parent (klass); -#line 120 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 127 "/home/jens/Source/shotwell/src/events/EventPage.vala" ((MediaPageClass *) klass)->get_config_photos_sort = no_event_page_real_get_config_photos_sort; -#line 120 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 127 "/home/jens/Source/shotwell/src/events/EventPage.vala" ((MediaPageClass *) klass)->set_config_photos_sort = no_event_page_real_set_config_photos_sort; -#line 120 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 127 "/home/jens/Source/shotwell/src/events/EventPage.vala" G_OBJECT_CLASS (klass)->finalize = no_event_page_finalize; -#line 136 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 143 "/home/jens/Source/shotwell/src/events/EventPage.vala" _tmp0_ = alteration_new ("metadata", "event"); -#line 136 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 143 "/home/jens/Source/shotwell/src/events/EventPage.vala" no_event_page_no_event_page_alteration = _tmp0_; -#line 1779 "EventPage.c" +#line 1830 "EventPage.c" } @@ -1785,11 +1836,11 @@ static void no_event_page_instance_init (NoEventPage * self) { static void no_event_page_finalize (GObject* obj) { NoEventPage * self; -#line 120 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 127 "/home/jens/Source/shotwell/src/events/EventPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_NO_EVENT_PAGE, NoEventPage); -#line 120 "/home/jens/Source/shotwell/src/events/EventPage.vala" +#line 127 "/home/jens/Source/shotwell/src/events/EventPage.vala" G_OBJECT_CLASS (no_event_page_parent_class)->finalize (obj); -#line 1793 "EventPage.c" +#line 1844 "EventPage.c" } diff --git a/src/events/EventPage.vala b/src/events/EventPage.vala index 8b271d1..960eee8 100644 --- a/src/events/EventPage.vala +++ b/src/events/EventPage.vala @@ -13,7 +13,7 @@ public class EventPage : CollectionPage { this.page_event = page_event; page_event.mirror_photos(get_view(), create_thumbnail); - init_page_context_menu("/EventContextMenu"); + init_page_context_menu("EventContextMenu"); Event.global.items_altered.connect(on_events_altered); } @@ -53,10 +53,17 @@ public class EventPage : CollectionPage { { "EditEventComment", on_edit_comment } }; - protected override void add_actions () { - base.add_actions (); + protected override void add_actions(GLib.ActionMap map) { + base.add_actions(map); - AppWindow.get_instance ().add_action_entries (entries, this); + map.add_action_entries(entries, this); + } + + protected override void remove_actions(GLib.ActionMap map) { + base.remove_actions(map); + foreach (var entry in entries) { + map.remove_action(entry.name); + } } protected override void init_actions(int selected_count, int count) { diff --git a/src/events/Events.c b/src/events/Events.c index d99ab32..6c6dc44 100644 --- a/src/events/Events.c +++ b/src/events/Events.c @@ -1,4 +1,4 @@ -/* Events.c generated by valac 0.32.1, the Vala compiler +/* Events.c generated by valac 0.34.4, the Vala compiler * generated from Events.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/events/EventsDirectoryPage.c b/src/events/EventsDirectoryPage.c index bf6b264..c31c92e 100644 --- a/src/events/EventsDirectoryPage.c +++ b/src/events/EventsDirectoryPage.c @@ -1,4 +1,4 @@ -/* EventsDirectoryPage.c generated by valac 0.32.1, the Vala compiler +/* EventsDirectoryPage.c generated by valac 0.34.4, the Vala compiler * generated from EventsDirectoryPage.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -12,9 +12,9 @@ #include <gtk/gtk.h> #include <stdlib.h> #include <string.h> +#include <gio/gio.h> #include <gee.h> #include <gdk/gdk.h> -#include <gio/gio.h> #include <glib/gi18n-lib.h> #include <time.h> #include <cairo.h> @@ -353,6 +353,7 @@ typedef struct _CheckerboardItemPrivate CheckerboardItemPrivate; #define TYPE_DIMENSIONS (dimensions_get_type ()) typedef struct _Dimensions Dimensions; typedef struct _EventDirectoryItemPrivate EventDirectoryItemPrivate; +#define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL))) #define TYPE_APP_WINDOW (app_window_get_type ()) #define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) @@ -363,7 +364,6 @@ typedef struct _EventDirectoryItemPrivate EventDirectoryItemPrivate; typedef struct _AppWindow AppWindow; typedef struct _AppWindowClass AppWindowClass; -#define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL))) #define TYPE_LIBRARY_WINDOW (library_window_get_type ()) #define LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_WINDOW, LibraryWindow)) @@ -583,7 +583,8 @@ struct _PageClass { void (*ready) (Page* self); void (*switching_to_fullscreen) (Page* self, FullscreenWindow* fsw); void (*returning_from_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*add_actions) (Page* self); + void (*add_actions) (Page* self, GActionMap* map); + void (*remove_actions) (Page* self, GActionMap* map); void (*init_collect_ui_filenames) (Page* self, GeeList* ui_filenames); InjectionGroup** (*init_collect_injection_groups) (Page* self, int* result_length1); void (*init_actions) (Page* self, gint selected_count, gint count); @@ -996,11 +997,11 @@ time_t event_source_get_start_time (EventSource* self); static gint64 events_directory_page_event_descending_comparator (void* a, void* b); static gint64 _events_directory_page_event_ascending_comparator_comparator (void* a, void* b, gpointer self); static gint64 _events_directory_page_event_descending_comparator_comparator (void* a, void* b, gpointer self); -static void events_directory_page_real_add_actions (Page* base); -void page_add_actions (Page* self); -GType app_window_get_type (void) G_GNUC_CONST; -AppWindow* app_window_get_instance (void); +static void events_directory_page_real_add_actions (Page* base, GActionMap* map); +void page_add_actions (Page* self, GActionMap* map); static GVariant* _variant_new14 (gboolean value); +static void events_directory_page_real_remove_actions (Page* base, GActionMap* map); +void page_remove_actions (Page* self, GActionMap* map); static void events_directory_page_real_init_actions (Page* base, gint selected_count, gint count); void page_init_actions (Page* self, gint selected_count, gint count); static void events_directory_page_real_update_actions (Page* base, gint selected_count, gint count); @@ -1010,6 +1011,7 @@ void page_update_actions (Page* self, gint selected_count, gint count); static gchar* events_directory_page_real_get_view_empty_message (CheckerboardPage* base); static gchar* events_directory_page_real_get_filter_no_match_message (CheckerboardPage* base); static void events_directory_page_real_on_item_activated (CheckerboardPage* base, CheckerboardItem* item, CheckerboardPageActivator activator, CheckerboardPageKeyboardModifiers* modifiers); +GType app_window_get_type (void) G_GNUC_CONST; GType library_window_get_type (void) G_GNUC_CONST; LibraryWindow* library_window_get_app (void); void library_window_switch_to_event (LibraryWindow* self, Event* event); @@ -1130,42 +1132,42 @@ static const GActionEntry EVENTS_DIRECTORY_PAGE_entries[4] = {{"Rename", _events static void _events_directory_page_on_sort_changed_g_simple_action_change_state (GSimpleAction* _sender, GVariant* value, gpointer self) { #line 77 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" events_directory_page_on_sort_changed ((EventsDirectoryPage*) self, _sender, value); -#line 1134 "EventsDirectoryPage.c" +#line 1136 "EventsDirectoryPage.c" } static void _events_directory_page_on_rename_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 108 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" events_directory_page_on_rename ((EventsDirectoryPage*) self); -#line 1141 "EventsDirectoryPage.c" +#line 1143 "EventsDirectoryPage.c" } static void _events_directory_page_on_merge_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 108 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" events_directory_page_on_merge ((EventsDirectoryPage*) self); -#line 1148 "EventsDirectoryPage.c" +#line 1150 "EventsDirectoryPage.c" } static void _events_directory_page_on_edit_comment_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 108 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" events_directory_page_on_edit_comment ((EventsDirectoryPage*) self); -#line 1155 "EventsDirectoryPage.c" +#line 1157 "EventsDirectoryPage.c" } static void _page_on_action_toggle_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 108 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" page_on_action_toggle ((Page*) self, action, parameter); -#line 1162 "EventsDirectoryPage.c" +#line 1164 "EventsDirectoryPage.c" } static void _events_directory_page_on_display_comments_gsimple_action_change_state_callback (GSimpleAction* action, GVariant* value, gpointer self) { #line 108 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" events_directory_page_on_display_comments ((EventsDirectoryPage*) self, action, value); -#line 1169 "EventsDirectoryPage.c" +#line 1171 "EventsDirectoryPage.c" } @@ -1174,14 +1176,14 @@ static gboolean _events_directory_page_event_comparator_predicate_comparator_pre result = events_directory_page_event_comparator_predicate (object, alteration); #line 50 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return result; -#line 1178 "EventsDirectoryPage.c" +#line 1180 "EventsDirectoryPage.c" } static gpointer _view_manager_ref0 (gpointer self) { #line 59 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return self ? view_manager_ref (self) : NULL; -#line 1185 "EventsDirectoryPage.c" +#line 1187 "EventsDirectoryPage.c" } @@ -1336,7 +1338,7 @@ EventsDirectoryPage* events_directory_page_construct (GType object_type, const g _g_object_unref0 (toolbar); #line 45 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return self; -#line 1340 "EventsDirectoryPage.c" +#line 1342 "EventsDirectoryPage.c" } @@ -1356,7 +1358,7 @@ static void events_directory_page_real_init_collect_ui_filenames (Page* base, Ge _tmp1_ = ui_filenames; #line 83 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" PAGE_CLASS (events_directory_page_parent_class)->init_collect_ui_filenames (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), _tmp1_); -#line 1360 "EventsDirectoryPage.c" +#line 1362 "EventsDirectoryPage.c" } @@ -1376,7 +1378,7 @@ gboolean events_directory_page_event_comparator_predicate (DataObject* object, A result = _tmp1_; #line 87 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return result; -#line 1380 "EventsDirectoryPage.c" +#line 1382 "EventsDirectoryPage.c" } @@ -1410,7 +1412,7 @@ static gint64 events_directory_page_event_ascending_comparator (void* a, void* b result = (gint64) (start_a - start_b); #line 94 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return result; -#line 1414 "EventsDirectoryPage.c" +#line 1416 "EventsDirectoryPage.c" } @@ -1429,7 +1431,7 @@ static gint64 events_directory_page_event_descending_comparator (void* a, void* result = _tmp2_; #line 98 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return result; -#line 1433 "EventsDirectoryPage.c" +#line 1435 "EventsDirectoryPage.c" } @@ -1438,7 +1440,7 @@ static gint64 _events_directory_page_event_ascending_comparator_comparator (void result = events_directory_page_event_ascending_comparator (a, b); #line 103 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return result; -#line 1442 "EventsDirectoryPage.c" +#line 1444 "EventsDirectoryPage.c" } @@ -1447,7 +1449,7 @@ static gint64 _events_directory_page_event_descending_comparator_comparator (voi result = events_directory_page_event_descending_comparator (a, b); #line 105 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return result; -#line 1451 "EventsDirectoryPage.c" +#line 1453 "EventsDirectoryPage.c" } @@ -1458,7 +1460,7 @@ static Comparator events_directory_page_get_event_comparator (gboolean ascending _tmp0_ = ascending; #line 102 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" if (_tmp0_) { -#line 1462 "EventsDirectoryPage.c" +#line 1464 "EventsDirectoryPage.c" Comparator _tmp1_ = NULL; void* _tmp1__target = NULL; GDestroyNotify _tmp1__target_destroy_notify = NULL; @@ -1476,7 +1478,7 @@ static Comparator events_directory_page_get_event_comparator (gboolean ascending result = _tmp1_; #line 103 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return result; -#line 1480 "EventsDirectoryPage.c" +#line 1482 "EventsDirectoryPage.c" } else { Comparator _tmp2_ = NULL; void* _tmp2__target = NULL; @@ -1495,7 +1497,7 @@ static Comparator events_directory_page_get_event_comparator (gboolean ascending result = _tmp2_; #line 105 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return result; -#line 1499 "EventsDirectoryPage.c" +#line 1501 "EventsDirectoryPage.c" } } @@ -1503,14 +1505,14 @@ static Comparator events_directory_page_get_event_comparator (gboolean ascending static GVariant* _variant_new14 (gboolean value) { #line 122 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 1507 "EventsDirectoryPage.c" +#line 1509 "EventsDirectoryPage.c" } -static void events_directory_page_real_add_actions (Page* base) { +static void events_directory_page_real_add_actions (Page* base, GActionMap* map) { EventsDirectoryPage * self; - AppWindow* _tmp0_ = NULL; - AppWindow* _tmp1_ = NULL; + GActionMap* _tmp0_ = NULL; + GActionMap* _tmp1_ = NULL; gboolean display_comments = FALSE; ConfigFacade* _tmp2_ = NULL; ConfigFacade* _tmp3_ = NULL; @@ -1521,16 +1523,16 @@ static void events_directory_page_real_add_actions (Page* base) { GVariant* _tmp8_ = NULL; #line 117 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPage); +#line 117 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" + g_return_if_fail (G_IS_ACTION_MAP (map)); #line 118 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - PAGE_CLASS (events_directory_page_parent_class)->add_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page)); -#line 119 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp0_ = app_window_get_instance (); -#line 119 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp1_ = _tmp0_; + _tmp0_ = map; +#line 118 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" + PAGE_CLASS (events_directory_page_parent_class)->add_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), _tmp0_); #line 119 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - g_action_map_add_action_entries (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, g_action_map_get_type (), GActionMap), EVENTS_DIRECTORY_PAGE_entries, G_N_ELEMENTS (EVENTS_DIRECTORY_PAGE_entries), self); + _tmp1_ = map; #line 119 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _g_object_unref0 (_tmp1_); + g_action_map_add_action_entries (_tmp1_, EVENTS_DIRECTORY_PAGE_entries, G_N_ELEMENTS (EVENTS_DIRECTORY_PAGE_entries), self); #line 121 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp2_ = config_facade_get_instance (); #line 121 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" @@ -1555,7 +1557,54 @@ static void events_directory_page_real_add_actions (Page* base) { _g_variant_unref0 (_tmp8_); #line 122 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _g_object_unref0 (_tmp7_); -#line 1559 "EventsDirectoryPage.c" +#line 1561 "EventsDirectoryPage.c" +} + + +static void events_directory_page_real_remove_actions (Page* base, GActionMap* map) { + EventsDirectoryPage * self; + GActionMap* _tmp0_ = NULL; +#line 125 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" + self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPage); +#line 125 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" + g_return_if_fail (G_IS_ACTION_MAP (map)); +#line 126 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" + _tmp0_ = map; +#line 126 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" + PAGE_CLASS (events_directory_page_parent_class)->remove_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), _tmp0_); +#line 1576 "EventsDirectoryPage.c" + { + GActionEntry* entry_collection = NULL; + gint entry_collection_length1 = 0; + gint _entry_collection_size_ = 0; + gint entry_it = 0; +#line 127 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" + entry_collection = EVENTS_DIRECTORY_PAGE_entries; +#line 127 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" + entry_collection_length1 = G_N_ELEMENTS (EVENTS_DIRECTORY_PAGE_entries); +#line 127 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" + for (entry_it = 0; entry_it < G_N_ELEMENTS (EVENTS_DIRECTORY_PAGE_entries); entry_it = entry_it + 1) { +#line 1588 "EventsDirectoryPage.c" + GActionEntry entry = {0}; +#line 127 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" + entry = entry_collection[entry_it]; +#line 1592 "EventsDirectoryPage.c" + { + GActionMap* _tmp1_ = NULL; + GActionEntry _tmp2_ = {0}; + const gchar* _tmp3_ = NULL; +#line 128 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" + _tmp1_ = map; +#line 128 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" + _tmp2_ = entry; +#line 128 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" + _tmp3_ = _tmp2_.name; +#line 128 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" + g_action_map_remove_action (_tmp1_, _tmp3_); +#line 1605 "EventsDirectoryPage.c" + } + } + } } @@ -1566,33 +1615,33 @@ static void events_directory_page_real_init_actions (Page* base, gint selected_c GSimpleAction* action = NULL; GAction* _tmp2_ = NULL; GSimpleAction* _tmp3_ = NULL; -#line 125 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 132 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPage); -#line 126 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 133 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp0_ = selected_count; -#line 126 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 133 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp1_ = count; -#line 126 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 133 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" PAGE_CLASS (events_directory_page_parent_class)->init_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), _tmp0_, _tmp1_); -#line 128 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 135 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp2_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CommonSortEvents"); -#line 128 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 135 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp3_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp2_) : NULL; -#line 128 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 135 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" if (_tmp3_ == NULL) { -#line 128 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 135 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _g_object_unref0 (_tmp2_); -#line 1586 "EventsDirectoryPage.c" +#line 1635 "EventsDirectoryPage.c" } -#line 128 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 135 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" action = _tmp3_; -#line 129 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 136 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _vala_assert (action != NULL, "action != null"); -#line 130 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 137 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" g_signal_connect_object (action, "change-state", (GCallback) _events_directory_page_on_sort_changed_g_simple_action_change_state, self, 0); -#line 125 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 132 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _g_object_unref0 (action); -#line 1596 "EventsDirectoryPage.c" +#line 1645 "EventsDirectoryPage.c" } @@ -1603,29 +1652,29 @@ static void events_directory_page_real_update_actions (Page* base, gint selected gint _tmp2_ = 0; gint _tmp3_ = 0; gint _tmp4_ = 0; -#line 133 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 140 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPage); -#line 134 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 141 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp0_ = selected_count; -#line 134 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 141 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Merge", _tmp0_ > 1); -#line 135 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 142 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" page_set_action_important (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Merge", TRUE); -#line 136 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 143 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp1_ = selected_count; -#line 136 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 143 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Rename", _tmp1_ == 1); -#line 137 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 144 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp2_ = selected_count; -#line 137 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 144 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "EditComment", _tmp2_ == 1); -#line 139 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 146 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp3_ = selected_count; -#line 139 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 146 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp4_ = count; -#line 139 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 146 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" PAGE_CLASS (events_directory_page_parent_class)->update_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), _tmp3_, _tmp4_); -#line 1629 "EventsDirectoryPage.c" +#line 1678 "EventsDirectoryPage.c" } @@ -1634,17 +1683,17 @@ static gchar* events_directory_page_real_get_view_empty_message (CheckerboardPag gchar* result = NULL; const gchar* _tmp0_ = NULL; gchar* _tmp1_ = NULL; -#line 142 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 149 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPage); -#line 143 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 150 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp0_ = _ ("No events"); -#line 143 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 150 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp1_ = g_strdup (_tmp0_); -#line 143 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 150 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" result = _tmp1_; -#line 143 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 150 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return result; -#line 1648 "EventsDirectoryPage.c" +#line 1697 "EventsDirectoryPage.c" } @@ -1653,24 +1702,24 @@ static gchar* events_directory_page_real_get_filter_no_match_message (Checkerboa gchar* result = NULL; const gchar* _tmp0_ = NULL; gchar* _tmp1_ = NULL; -#line 146 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 153 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPage); -#line 147 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 154 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp0_ = _ ("No events found"); -#line 147 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 154 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp1_ = g_strdup (_tmp0_); -#line 147 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 154 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" result = _tmp1_; -#line 147 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 154 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return result; -#line 1667 "EventsDirectoryPage.c" +#line 1716 "EventsDirectoryPage.c" } static gpointer _g_object_ref0 (gpointer self) { -#line 152 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 159 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return self ? g_object_ref (self) : NULL; -#line 1674 "EventsDirectoryPage.c" +#line 1723 "EventsDirectoryPage.c" } @@ -1682,31 +1731,31 @@ static void events_directory_page_real_on_item_activated (CheckerboardPage* base LibraryWindow* _tmp2_ = NULL; LibraryWindow* _tmp3_ = NULL; Event* _tmp4_ = NULL; -#line 150 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 157 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPage); -#line 150 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 157 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" g_return_if_fail (IS_CHECKERBOARD_ITEM (item)); -#line 150 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 157 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" g_return_if_fail (modifiers != NULL); -#line 152 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 159 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp0_ = item; -#line 152 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 159 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_EVENT_DIRECTORY_ITEM, EventDirectoryItem)); -#line 152 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 159 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" event = _tmp1_; -#line 153 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 160 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp2_ = library_window_get_app (); -#line 153 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 160 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp3_ = _tmp2_; -#line 153 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 160 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp4_ = event->event; -#line 153 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 160 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" library_window_switch_to_event (_tmp3_, _tmp4_); -#line 153 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 160 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _g_object_unref0 (_tmp3_); -#line 150 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 157 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _g_object_unref0 (event); -#line 1710 "EventsDirectoryPage.c" +#line 1759 "EventsDirectoryPage.c" } @@ -1723,45 +1772,45 @@ static void events_directory_page_on_sort_changed (EventsDirectoryPage* self, GS GDestroyNotify _tmp7__target_destroy_notify = NULL; GSimpleAction* _tmp8_ = NULL; GVariant* _tmp9_ = NULL; -#line 156 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 163 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" g_return_if_fail (IS_EVENTS_DIRECTORY_PAGE (self)); -#line 156 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 163 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" g_return_if_fail (G_IS_SIMPLE_ACTION (action)); -#line 157 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 164 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 157 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 164 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp1_ = _tmp0_; -#line 157 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 164 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp2_ = value; -#line 157 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 164 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp3_ = g_variant_get_string (_tmp2_, NULL); -#line 157 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 164 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp6_ = events_directory_page_get_event_comparator (g_strcmp0 (_tmp3_, LIBRARY_WINDOW_SORT_EVENTS_ORDER_ASCENDING) == 0, &_tmp4_, &_tmp5_); -#line 157 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 164 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp7_ = _tmp6_; -#line 157 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 164 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp7__target = _tmp4_; -#line 157 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 164 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp7__target_destroy_notify = _tmp5_; -#line 157 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 164 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" data_collection_set_comparator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection), _tmp7_, _tmp4_, _events_directory_page_event_comparator_predicate_comparator_predicate, NULL); -#line 157 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 164 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" (_tmp7__target_destroy_notify == NULL) ? NULL : (_tmp7__target_destroy_notify (_tmp7__target), NULL); -#line 157 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 164 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp7_ = NULL; -#line 157 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 164 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp7__target = NULL; -#line 157 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 164 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp7__target_destroy_notify = NULL; -#line 157 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 164 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _data_collection_unref0 (_tmp1_); -#line 161 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 168 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp8_ = action; -#line 161 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 168 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp9_ = value; -#line 161 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 168 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" g_simple_action_set_state (_tmp8_, _tmp9_); -#line 1765 "EventsDirectoryPage.c" +#line 1814 "EventsDirectoryPage.c" } @@ -1794,101 +1843,101 @@ static void events_directory_page_on_rename (EventsDirectoryPage* self) { CommandManager* _tmp21_ = NULL; CommandManager* _tmp22_ = NULL; RenameEventCommand* _tmp23_ = NULL; -#line 164 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 171 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" g_return_if_fail (IS_EVENTS_DIRECTORY_PAGE (self)); -#line 166 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 173 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 166 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 173 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp1_ = _tmp0_; -#line 166 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 173 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp2_ = view_collection_get_selected_count (_tmp1_); -#line 166 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 173 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp3_ = _tmp2_ != 1; -#line 166 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 173 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _data_collection_unref0 (_tmp1_); -#line 166 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 173 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" if (_tmp3_) { -#line 167 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 174 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return; -#line 1814 "EventsDirectoryPage.c" +#line 1863 "EventsDirectoryPage.c" } -#line 169 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 176 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 169 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 176 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp5_ = _tmp4_; -#line 169 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 176 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp6_ = view_collection_get_selected_at (_tmp5_, 0); -#line 169 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 176 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp7_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_EVENT_DIRECTORY_ITEM, EventDirectoryItem); -#line 169 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 176 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _data_collection_unref0 (_tmp5_); -#line 169 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 176 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" item = _tmp7_; -#line 171 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 178 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp8_ = item; -#line 171 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 178 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp9_ = _tmp8_->event; -#line 171 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 178 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp10_ = event_get_raw_name (_tmp9_); -#line 171 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 178 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp11_ = _tmp10_; -#line 171 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 178 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp12_ = event_rename_dialog_new (_tmp11_); -#line 171 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 178 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp13_ = _tmp12_; -#line 171 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 178 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _g_free0 (_tmp11_); -#line 171 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 178 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" rename_dialog = _tmp13_; -#line 172 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 179 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp14_ = rename_dialog; -#line 172 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 179 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp15_ = event_rename_dialog_execute (_tmp14_); -#line 172 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 179 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" new_name = _tmp15_; -#line 173 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 180 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp16_ = new_name; -#line 173 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 180 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" if (_tmp16_ == NULL) { -#line 174 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 181 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _g_free0 (new_name); -#line 174 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 181 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _text_entry_dialog_mediator_unref0 (rename_dialog); -#line 174 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 181 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _g_object_unref0 (item); -#line 174 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 181 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return; -#line 1862 "EventsDirectoryPage.c" +#line 1911 "EventsDirectoryPage.c" } -#line 176 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 183 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp17_ = item; -#line 176 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 183 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp18_ = _tmp17_->event; -#line 176 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 183 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp19_ = new_name; -#line 176 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 183 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp20_ = rename_event_command_new (_tmp18_, _tmp19_); -#line 176 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 183 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" command = _tmp20_; -#line 177 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 184 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp21_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 177 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 184 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp22_ = _tmp21_; -#line 177 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 184 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp23_ = command; -#line 177 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 184 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" command_manager_execute (_tmp22_, G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_COMMAND, Command)); -#line 177 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 184 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _command_manager_unref0 (_tmp22_); -#line 164 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 171 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _g_object_unref0 (command); -#line 164 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 171 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _g_free0 (new_name); -#line 164 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 171 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _text_entry_dialog_mediator_unref0 (rename_dialog); -#line 164 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 171 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _g_object_unref0 (item); -#line 1892 "EventsDirectoryPage.c" +#line 1941 "EventsDirectoryPage.c" } @@ -1921,101 +1970,101 @@ void events_directory_page_on_edit_comment (EventsDirectoryPage* self) { CommandManager* _tmp21_ = NULL; CommandManager* _tmp22_ = NULL; EditEventCommentCommand* _tmp23_ = NULL; -#line 180 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 187 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" g_return_if_fail (IS_EVENTS_DIRECTORY_PAGE (self)); -#line 182 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 189 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 182 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 189 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp1_ = _tmp0_; -#line 182 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 189 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp2_ = view_collection_get_selected_count (_tmp1_); -#line 182 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 189 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp3_ = _tmp2_ != 1; -#line 182 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 189 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _data_collection_unref0 (_tmp1_); -#line 182 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 189 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" if (_tmp3_) { -#line 183 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 190 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return; -#line 1941 "EventsDirectoryPage.c" +#line 1990 "EventsDirectoryPage.c" } -#line 185 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 192 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 185 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 192 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp5_ = _tmp4_; -#line 185 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 192 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp6_ = view_collection_get_selected_at (_tmp5_, 0); -#line 185 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 192 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp7_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_EVENT_DIRECTORY_ITEM, EventDirectoryItem); -#line 185 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 192 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _data_collection_unref0 (_tmp5_); -#line 185 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 192 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" item = _tmp7_; -#line 187 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 194 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp8_ = item; -#line 187 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 194 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp9_ = _tmp8_->event; -#line 187 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 194 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp10_ = event_source_get_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_EVENT_SOURCE, EventSource)); -#line 187 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 194 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp11_ = _tmp10_; -#line 187 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 194 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp12_ = edit_comment_dialog_new (_tmp11_, FALSE); -#line 187 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 194 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp13_ = _tmp12_; -#line 187 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 194 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _g_free0 (_tmp11_); -#line 187 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 194 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" edit_comment_dialog = _tmp13_; -#line 188 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 195 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp14_ = edit_comment_dialog; -#line 188 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 195 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp15_ = edit_comment_dialog_execute (_tmp14_); -#line 188 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 195 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" new_comment = _tmp15_; -#line 189 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 196 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp16_ = new_comment; -#line 189 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 196 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" if (_tmp16_ == NULL) { -#line 190 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 197 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _g_free0 (new_comment); -#line 190 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 197 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _multi_text_entry_dialog_mediator_unref0 (edit_comment_dialog); -#line 190 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 197 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _g_object_unref0 (item); -#line 190 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 197 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return; -#line 1989 "EventsDirectoryPage.c" +#line 2038 "EventsDirectoryPage.c" } -#line 192 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 199 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp17_ = item; -#line 192 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 199 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp18_ = _tmp17_->event; -#line 192 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 199 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp19_ = new_comment; -#line 192 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 199 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp20_ = edit_event_comment_command_new (_tmp18_, _tmp19_); -#line 192 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 199 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" command = _tmp20_; -#line 193 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 200 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp21_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 193 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 200 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp22_ = _tmp21_; -#line 193 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 200 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp23_ = command; -#line 193 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 200 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" command_manager_execute (_tmp22_, G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_COMMAND, Command)); -#line 193 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 200 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _command_manager_unref0 (_tmp22_); -#line 180 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 187 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _g_object_unref0 (command); -#line 180 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 187 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _g_free0 (new_comment); -#line 180 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 187 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _multi_text_entry_dialog_mediator_unref0 (edit_comment_dialog); -#line 180 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 187 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _g_object_unref0 (item); -#line 2019 "EventsDirectoryPage.c" +#line 2068 "EventsDirectoryPage.c" } @@ -2034,55 +2083,55 @@ static void events_directory_page_on_merge (EventsDirectoryPage* self) { CommandManager* _tmp10_ = NULL; CommandManager* _tmp11_ = NULL; MergeEventsCommand* _tmp12_ = NULL; -#line 196 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 203 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" g_return_if_fail (IS_EVENTS_DIRECTORY_PAGE (self)); -#line 197 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 204 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 197 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 204 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp1_ = _tmp0_; -#line 197 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 204 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp2_ = view_collection_get_selected_count (_tmp1_); -#line 197 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 204 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp3_ = _tmp2_ <= 1; -#line 197 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 204 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _data_collection_unref0 (_tmp1_); -#line 197 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 204 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" if (_tmp3_) { -#line 198 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 205 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return; -#line 2054 "EventsDirectoryPage.c" +#line 2103 "EventsDirectoryPage.c" } -#line 200 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 207 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 200 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 207 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp5_ = _tmp4_; -#line 200 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 207 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp6_ = view_collection_get_selected (_tmp5_); -#line 200 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 207 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp7_ = _tmp6_; -#line 200 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 207 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp8_ = merge_events_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 200 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 207 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp9_ = _tmp8_; -#line 200 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 207 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _g_object_unref0 (_tmp7_); -#line 200 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 207 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _data_collection_unref0 (_tmp5_); -#line 200 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 207 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" command = _tmp9_; -#line 201 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 208 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp10_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 201 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 208 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp11_ = _tmp10_; -#line 201 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 208 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp12_ = command; -#line 201 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 208 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" command_manager_execute (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_COMMAND, Command)); -#line 201 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 208 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _command_manager_unref0 (_tmp11_); -#line 196 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 203 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _g_object_unref0 (command); -#line 2086 "EventsDirectoryPage.c" +#line 2135 "EventsDirectoryPage.c" } @@ -2094,40 +2143,40 @@ static void events_directory_page_on_display_comments (EventsDirectoryPage* self ConfigFacade* _tmp3_ = NULL; GSimpleAction* _tmp4_ = NULL; GVariant* _tmp5_ = NULL; -#line 204 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 211 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" g_return_if_fail (IS_EVENTS_DIRECTORY_PAGE (self)); -#line 204 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 211 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" g_return_if_fail (G_IS_SIMPLE_ACTION (action)); -#line 205 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 212 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp0_ = value; -#line 205 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 212 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp1_ = g_variant_get_boolean (_tmp0_); -#line 205 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 212 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" display = _tmp1_; -#line 207 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 214 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" checkerboard_page_set_display_comments (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), display); -#line 209 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 216 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp2_ = config_facade_get_instance (); -#line 209 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 216 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp3_ = _tmp2_; -#line 209 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 216 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" configuration_facade_set_display_event_comments (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), display); -#line 209 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 216 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _g_object_unref0 (_tmp3_); -#line 211 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 218 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp4_ = action; -#line 211 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 218 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp5_ = value; -#line 211 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 218 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" g_simple_action_set_state (_tmp4_, _tmp5_); -#line 2124 "EventsDirectoryPage.c" +#line 2173 "EventsDirectoryPage.c" } static gpointer _view_filter_ref0 (gpointer self) { -#line 215 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 222 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return self ? view_filter_ref (self) : NULL; -#line 2131 "EventsDirectoryPage.c" +#line 2180 "EventsDirectoryPage.c" } @@ -2136,17 +2185,17 @@ static SearchViewFilter* events_directory_page_real_get_search_view_filter (Chec SearchViewFilter* result = NULL; EventsDirectoryPageEventsDirectorySearchViewFilter* _tmp0_ = NULL; SearchViewFilter* _tmp1_ = NULL; -#line 214 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 221 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPage); -#line 215 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 222 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp0_ = self->priv->search_filter; -#line 215 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 222 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp1_ = _view_filter_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)); -#line 215 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 222 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" result = _tmp1_; -#line 215 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 222 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return result; -#line 2150 "EventsDirectoryPage.c" +#line 2199 "EventsDirectoryPage.c" } @@ -2167,7 +2216,7 @@ static DataView* events_directory_page_event_directory_manager_real_create_view result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_VIEW, DataView); #line 10 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return result; -#line 2171 "EventsDirectoryPage.c" +#line 2220 "EventsDirectoryPage.c" } @@ -2177,14 +2226,14 @@ EventsDirectoryPageEventDirectoryManager* events_directory_page_event_directory_ self = (EventsDirectoryPageEventDirectoryManager*) view_manager_construct (object_type); #line 8 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return self; -#line 2181 "EventsDirectoryPage.c" +#line 2230 "EventsDirectoryPage.c" } EventsDirectoryPageEventDirectoryManager* events_directory_page_event_directory_manager_new (void) { #line 8 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return events_directory_page_event_directory_manager_construct (EVENTS_DIRECTORY_PAGE_TYPE_EVENT_DIRECTORY_MANAGER); -#line 2188 "EventsDirectoryPage.c" +#line 2237 "EventsDirectoryPage.c" } @@ -2193,7 +2242,7 @@ static void events_directory_page_event_directory_manager_class_init (EventsDire events_directory_page_event_directory_manager_parent_class = g_type_class_peek_parent (klass); #line 8 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" ((ViewManagerClass *) klass)->create_view = events_directory_page_event_directory_manager_real_create_view; -#line 2197 "EventsDirectoryPage.c" +#line 2246 "EventsDirectoryPage.c" } @@ -2222,7 +2271,7 @@ static guint events_directory_page_events_directory_search_view_filter_real_get_ result = (guint) SEARCH_FILTER_CRITERIA_TEXT; #line 16 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return result; -#line 2226 "EventsDirectoryPage.c" +#line 2275 "EventsDirectoryPage.c" } @@ -2230,19 +2279,19 @@ static gboolean string_contains (const gchar* self, const gchar* needle) { gboolean result = FALSE; const gchar* _tmp0_ = NULL; gchar* _tmp1_ = NULL; -#line 1376 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1376 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, FALSE); -#line 1376 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1376 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (needle != NULL, FALSE); -#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = needle; -#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = strstr ((gchar*) self, (gchar*) _tmp0_); -#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp1_ != NULL; -#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; -#line 2246 "EventsDirectoryPage.c" +#line 2295 "EventsDirectoryPage.c" } @@ -2288,7 +2337,7 @@ static gboolean events_directory_page_events_directory_search_view_filter_real_p result = TRUE; #line 22 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return result; -#line 2292 "EventsDirectoryPage.c" +#line 2341 "EventsDirectoryPage.c" } #line 24 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp5_ = view; @@ -2314,11 +2363,11 @@ static gboolean events_directory_page_events_directory_search_view_filter_real_p _g_object_unref0 (source); #line 27 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return result; -#line 2318 "EventsDirectoryPage.c" +#line 2367 "EventsDirectoryPage.c" } #line 30 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp12_ = search_view_filter_get_search_filter_words (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter), &_tmp11_); -#line 2322 "EventsDirectoryPage.c" +#line 2371 "EventsDirectoryPage.c" { gchar** word_collection = NULL; gint word_collection_length1 = 0; @@ -2330,11 +2379,11 @@ static gboolean events_directory_page_events_directory_search_view_filter_real_p word_collection_length1 = _tmp11_; #line 30 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" for (word_it = 0; word_it < _tmp11_; word_it = word_it + 1) { -#line 2334 "EventsDirectoryPage.c" +#line 2383 "EventsDirectoryPage.c" const gchar* word = NULL; #line 30 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" word = word_collection[word_it]; -#line 2338 "EventsDirectoryPage.c" +#line 2387 "EventsDirectoryPage.c" { const gchar* _tmp13_ = NULL; const gchar* _tmp14_ = NULL; @@ -2353,7 +2402,7 @@ static gboolean events_directory_page_events_directory_search_view_filter_real_p _g_object_unref0 (source); #line 32 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return result; -#line 2357 "EventsDirectoryPage.c" +#line 2406 "EventsDirectoryPage.c" } } } @@ -2364,7 +2413,7 @@ static gboolean events_directory_page_events_directory_search_view_filter_real_p _g_object_unref0 (source); #line 35 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return result; -#line 2368 "EventsDirectoryPage.c" +#line 2417 "EventsDirectoryPage.c" } @@ -2374,14 +2423,14 @@ static EventsDirectoryPageEventsDirectorySearchViewFilter* events_directory_page self = (EventsDirectoryPageEventsDirectorySearchViewFilter*) search_view_filter_construct (object_type); #line 14 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return self; -#line 2378 "EventsDirectoryPage.c" +#line 2427 "EventsDirectoryPage.c" } static EventsDirectoryPageEventsDirectorySearchViewFilter* events_directory_page_events_directory_search_view_filter_new (void) { #line 14 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return events_directory_page_events_directory_search_view_filter_construct (EVENTS_DIRECTORY_PAGE_TYPE_EVENTS_DIRECTORY_SEARCH_VIEW_FILTER); -#line 2385 "EventsDirectoryPage.c" +#line 2434 "EventsDirectoryPage.c" } @@ -2392,7 +2441,7 @@ static void events_directory_page_events_directory_search_view_filter_class_init ((SearchViewFilterClass *) klass)->get_criteria = events_directory_page_events_directory_search_view_filter_real_get_criteria; #line 14 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" ((ViewFilterClass *) klass)->predicate = events_directory_page_events_directory_search_view_filter_real_predicate; -#line 2396 "EventsDirectoryPage.c" +#line 2445 "EventsDirectoryPage.c" } @@ -2422,6 +2471,8 @@ static void events_directory_page_class_init (EventsDirectoryPageClass * klass) #line 7 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" ((PageClass *) klass)->add_actions = events_directory_page_real_add_actions; #line 7 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" + ((PageClass *) klass)->remove_actions = events_directory_page_real_remove_actions; +#line 7 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" ((PageClass *) klass)->init_actions = events_directory_page_real_init_actions; #line 7 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" ((PageClass *) klass)->update_actions = events_directory_page_real_update_actions; @@ -2435,7 +2486,7 @@ static void events_directory_page_class_init (EventsDirectoryPageClass * klass) ((CheckerboardPageClass *) klass)->get_search_view_filter = events_directory_page_real_get_search_view_filter; #line 7 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" G_OBJECT_CLASS (klass)->finalize = events_directory_page_finalize; -#line 2439 "EventsDirectoryPage.c" +#line 2490 "EventsDirectoryPage.c" } @@ -2447,7 +2498,7 @@ static void events_directory_page_instance_init (EventsDirectoryPage * self) { _tmp0_ = events_directory_page_events_directory_search_view_filter_new (); #line 43 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" self->priv->search_filter = _tmp0_; -#line 2451 "EventsDirectoryPage.c" +#line 2502 "EventsDirectoryPage.c" } @@ -2469,7 +2520,7 @@ static void events_directory_page_finalize (GObject* obj) { if (_tmp1_ == NULL) { #line 75 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _g_object_unref0 (_tmp0_); -#line 2473 "EventsDirectoryPage.c" +#line 2524 "EventsDirectoryPage.c" } #line 75 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" action = _tmp1_; @@ -2491,7 +2542,7 @@ static void events_directory_page_finalize (GObject* obj) { _view_filter_unref0 (self->priv->search_filter); #line 7 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" G_OBJECT_CLASS (events_directory_page_parent_class)->finalize (obj); -#line 2495 "EventsDirectoryPage.c" +#line 2546 "EventsDirectoryPage.c" } @@ -2514,39 +2565,39 @@ MasterEventsDirectoryPage* master_events_directory_page_construct (GType object_ EventSourceCollection* _tmp2_ = NULL; GeeCollection* _tmp3_ = NULL; GeeCollection* _tmp4_ = NULL; -#line 223 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 230 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp0_ = events_directory_page_event_directory_manager_new (); -#line 223 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 230 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp1_ = _tmp0_; -#line 223 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 230 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp2_ = event_global; -#line 223 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 230 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp3_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_COLLECTION, DataCollection)); -#line 223 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 230 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection); -#line 223 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 230 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" self = (MasterEventsDirectoryPage*) events_directory_page_construct (object_type, MASTER_EVENTS_DIRECTORY_PAGE_NAME, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_VIEW_MANAGER, ViewManager), _tmp4_); -#line 223 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 230 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _g_object_unref0 (_tmp4_); -#line 223 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 230 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _view_manager_unref0 (_tmp1_); -#line 222 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 229 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return self; -#line 2536 "EventsDirectoryPage.c" +#line 2587 "EventsDirectoryPage.c" } MasterEventsDirectoryPage* master_events_directory_page_new (void) { -#line 222 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 229 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return master_events_directory_page_construct (TYPE_MASTER_EVENTS_DIRECTORY_PAGE); -#line 2543 "EventsDirectoryPage.c" +#line 2594 "EventsDirectoryPage.c" } static void master_events_directory_page_class_init (MasterEventsDirectoryPageClass * klass) { -#line 219 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 226 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" master_events_directory_page_parent_class = g_type_class_peek_parent (klass); -#line 2550 "EventsDirectoryPage.c" +#line 2601 "EventsDirectoryPage.c" } @@ -2590,37 +2641,37 @@ static gchar* g_time_format (struct tm *self, const gchar* format) { gchar* _tmp3_ = NULL; gint _tmp3__length1 = 0; gchar* _tmp4_ = NULL; -#line 2709 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2758 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (format != NULL, NULL); -#line 2710 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2759 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = g_new0 (gchar, 64); -#line 2710 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2759 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" buffer = _tmp0_; -#line 2710 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2759 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" buffer_length1 = 64; -#line 2710 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2759 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _buffer_size_ = buffer_length1; -#line 2711 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2760 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = buffer; -#line 2711 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2760 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1__length1 = buffer_length1; -#line 2711 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2760 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = format; -#line 2711 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2760 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" strftime (_tmp1_, _tmp1__length1, _tmp2_, &(*self)); -#line 2712 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2761 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = buffer; -#line 2712 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2761 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3__length1 = buffer_length1; -#line 2712 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2761 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = g_strdup ((const gchar*) _tmp3_); -#line 2712 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2761 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp4_; -#line 2712 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2761 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" buffer = (g_free (buffer), NULL); -#line 2712 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2761 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; -#line 2624 "EventsDirectoryPage.c" +#line 2675 "EventsDirectoryPage.c" } @@ -2633,71 +2684,71 @@ SubEventsDirectoryPage* sub_events_directory_page_construct (GType object_type, struct tm _tmp7_ = {0}; SubEventsDirectoryPageSubEventDirectoryManager* _tmp8_ = NULL; SubEventsDirectoryPageSubEventDirectoryManager* _tmp9_ = NULL; -#line 280 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 287 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" g_return_val_if_fail (time != NULL, NULL); -#line 282 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 289 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp0_ = type; -#line 282 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 289 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" if (_tmp0_ == SUB_EVENTS_DIRECTORY_PAGE_DIRECTORY_TYPE_UNDATED) { -#line 2643 "EventsDirectoryPage.c" +#line 2694 "EventsDirectoryPage.c" gchar* _tmp1_ = NULL; -#line 283 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 290 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp1_ = g_strdup (SUB_EVENTS_DIRECTORY_PAGE_UNDATED_PAGE_NAME); -#line 283 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 290 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _g_free0 (page_name); -#line 283 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 290 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" page_name = _tmp1_; -#line 2651 "EventsDirectoryPage.c" +#line 2702 "EventsDirectoryPage.c" } else { const gchar* _tmp2_ = NULL; SubEventsDirectoryPageDirectoryType _tmp3_ = 0; gchar* _tmp4_ = NULL; -#line 285 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 292 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp3_ = type; -#line 285 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 292 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" if (_tmp3_ == SUB_EVENTS_DIRECTORY_PAGE_DIRECTORY_TYPE_YEAR) { -#line 285 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 292 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp2_ = SUB_EVENTS_DIRECTORY_PAGE_YEAR_FORMAT; -#line 2662 "EventsDirectoryPage.c" +#line 2713 "EventsDirectoryPage.c" } else { -#line 285 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 292 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp2_ = SUB_EVENTS_DIRECTORY_PAGE_MONTH_FORMAT; -#line 2666 "EventsDirectoryPage.c" +#line 2717 "EventsDirectoryPage.c" } -#line 285 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 292 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp4_ = g_time_format (time, _tmp2_); -#line 285 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 292 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _g_free0 (page_name); -#line 285 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 292 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" page_name = _tmp4_; -#line 2674 "EventsDirectoryPage.c" +#line 2725 "EventsDirectoryPage.c" } -#line 288 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 295 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp5_ = page_name; -#line 288 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 295 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp6_ = type; -#line 288 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 295 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp7_ = *time; -#line 288 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 295 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp8_ = sub_events_directory_page_sub_event_directory_manager_new (_tmp6_, &_tmp7_); -#line 288 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 295 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp9_ = _tmp8_; -#line 288 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 295 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" self = (SubEventsDirectoryPage*) events_directory_page_construct (object_type, _tmp5_, G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_VIEW_MANAGER, ViewManager), NULL); -#line 288 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 295 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _view_manager_unref0 (_tmp9_); -#line 280 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 287 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _g_free0 (page_name); -#line 280 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 287 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return self; -#line 2694 "EventsDirectoryPage.c" +#line 2745 "EventsDirectoryPage.c" } SubEventsDirectoryPage* sub_events_directory_page_new (SubEventsDirectoryPageDirectoryType type, struct tm* time) { -#line 280 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 287 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return sub_events_directory_page_construct (TYPE_SUB_EVENTS_DIRECTORY_PAGE, type, time); -#line 2701 "EventsDirectoryPage.c" +#line 2752 "EventsDirectoryPage.c" } @@ -2705,17 +2756,17 @@ gint sub_events_directory_page_get_month (SubEventsDirectoryPage* self) { gint result = 0; ViewManager* _tmp0_ = NULL; gint _tmp1_ = 0; -#line 291 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 298 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" g_return_val_if_fail (IS_SUB_EVENTS_DIRECTORY_PAGE (self), 0); -#line 292 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 299 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPage)->view_manager; -#line 292 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 299 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp1_ = sub_events_directory_page_sub_event_directory_manager_get_month (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SUB_EVENTS_DIRECTORY_PAGE_TYPE_SUB_EVENT_DIRECTORY_MANAGER, SubEventsDirectoryPageSubEventDirectoryManager)); -#line 292 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 299 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" result = _tmp1_; -#line 292 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 299 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return result; -#line 2719 "EventsDirectoryPage.c" +#line 2770 "EventsDirectoryPage.c" } @@ -2723,17 +2774,17 @@ gint sub_events_directory_page_get_year (SubEventsDirectoryPage* self) { gint result = 0; ViewManager* _tmp0_ = NULL; gint _tmp1_ = 0; -#line 295 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 302 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" g_return_val_if_fail (IS_SUB_EVENTS_DIRECTORY_PAGE (self), 0); -#line 296 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 303 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPage)->view_manager; -#line 296 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 303 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp1_ = sub_events_directory_page_sub_event_directory_manager_get_year (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SUB_EVENTS_DIRECTORY_PAGE_TYPE_SUB_EVENT_DIRECTORY_MANAGER, SubEventsDirectoryPageSubEventDirectoryManager)); -#line 296 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 303 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" result = _tmp1_; -#line 296 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 303 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return result; -#line 2737 "EventsDirectoryPage.c" +#line 2788 "EventsDirectoryPage.c" } @@ -2741,17 +2792,17 @@ SubEventsDirectoryPageDirectoryType sub_events_directory_page_get_event_director SubEventsDirectoryPageDirectoryType result = 0; ViewManager* _tmp0_ = NULL; SubEventsDirectoryPageDirectoryType _tmp1_ = 0; -#line 299 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 306 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" g_return_val_if_fail (IS_SUB_EVENTS_DIRECTORY_PAGE (self), 0); -#line 300 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 307 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPage)->view_manager; -#line 300 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 307 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp1_ = sub_events_directory_page_sub_event_directory_manager_get_event_directory_type (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SUB_EVENTS_DIRECTORY_PAGE_TYPE_SUB_EVENT_DIRECTORY_MANAGER, SubEventsDirectoryPageSubEventDirectoryManager)); -#line 300 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 307 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" result = _tmp1_; -#line 300 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 307 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return result; -#line 2755 "EventsDirectoryPage.c" +#line 2806 "EventsDirectoryPage.c" } @@ -2761,60 +2812,60 @@ static SubEventsDirectoryPageSubEventDirectoryManager* sub_events_directory_page SubEventsDirectoryPageDirectoryType _tmp3_ = 0; struct tm _tmp4_ = {0}; gint _tmp5_ = 0; -#line 243 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 250 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" g_return_val_if_fail (time != NULL, NULL); -#line 244 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 251 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" self = (SubEventsDirectoryPageSubEventDirectoryManager*) events_directory_page_event_directory_manager_construct (object_type); -#line 246 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 253 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp0_ = type; -#line 246 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 253 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" if (_tmp0_ == SUB_EVENTS_DIRECTORY_PAGE_DIRECTORY_TYPE_MONTH) { -#line 2773 "EventsDirectoryPage.c" +#line 2824 "EventsDirectoryPage.c" struct tm _tmp1_ = {0}; gint _tmp2_ = 0; -#line 247 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 254 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp1_ = *time; -#line 247 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 254 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp2_ = _tmp1_.tm_mon; -#line 247 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 254 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" self->priv->month = _tmp2_; -#line 2782 "EventsDirectoryPage.c" +#line 2833 "EventsDirectoryPage.c" } -#line 248 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 255 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp3_ = type; -#line 248 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 255 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" self->priv->type = _tmp3_; -#line 249 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 256 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp4_ = *time; -#line 249 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 256 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp5_ = _tmp4_.tm_year; -#line 249 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 256 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" self->priv->year = _tmp5_; -#line 243 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 250 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return self; -#line 2796 "EventsDirectoryPage.c" +#line 2847 "EventsDirectoryPage.c" } static SubEventsDirectoryPageSubEventDirectoryManager* sub_events_directory_page_sub_event_directory_manager_new (SubEventsDirectoryPageDirectoryType type, struct tm* time) { -#line 243 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 250 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return sub_events_directory_page_sub_event_directory_manager_construct (SUB_EVENTS_DIRECTORY_PAGE_TYPE_SUB_EVENT_DIRECTORY_MANAGER, type, time); -#line 2803 "EventsDirectoryPage.c" +#line 2854 "EventsDirectoryPage.c" } static void g_time_local (time_t time, struct tm* result) { struct tm _result_ = {0}; struct tm _tmp0_ = {0}; -#line 2701 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2750 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" localtime_r (&time, &_tmp0_); -#line 2701 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2750 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _result_ = _tmp0_; -#line 2702 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2751 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" *result = _result_; -#line 2702 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2751 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return; -#line 2818 "EventsDirectoryPage.c" +#line 2869 "EventsDirectoryPage.c" } @@ -2833,162 +2884,162 @@ static gboolean sub_events_directory_page_sub_event_directory_manager_real_inclu struct tm _tmp7_ = {0}; gint _tmp8_ = 0; gint _tmp9_ = 0; -#line 252 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 259 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, SUB_EVENTS_DIRECTORY_PAGE_TYPE_SUB_EVENT_DIRECTORY_MANAGER, SubEventsDirectoryPageSubEventDirectoryManager); -#line 252 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 259 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE); -#line 253 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 260 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp0_ = source; -#line 253 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 260 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp1_ = VIEW_MANAGER_CLASS (sub_events_directory_page_sub_event_directory_manager_parent_class)->include_in_view (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, EVENTS_DIRECTORY_PAGE_TYPE_EVENT_DIRECTORY_MANAGER, EventsDirectoryPageEventDirectoryManager), TYPE_VIEW_MANAGER, ViewManager), _tmp0_); -#line 253 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 260 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" if (!_tmp1_) { -#line 254 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 261 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" result = FALSE; -#line 254 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 261 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return result; -#line 2851 "EventsDirectoryPage.c" +#line 2902 "EventsDirectoryPage.c" } -#line 256 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 263 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp2_ = source; -#line 256 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 263 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp3_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_EVENT_SOURCE, EventSource)); -#line 256 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 263 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" event = _tmp3_; -#line 257 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 264 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp4_ = event; -#line 257 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 264 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp5_ = event_source_get_start_time (_tmp4_); -#line 257 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 264 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" g_time_local (_tmp5_, &_tmp6_); -#line 257 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 264 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" event_time = _tmp6_; -#line 258 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 265 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp7_ = event_time; -#line 258 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 265 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp8_ = _tmp7_.tm_year; -#line 258 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 265 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp9_ = self->priv->year; -#line 258 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 265 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" if (_tmp8_ == _tmp9_) { -#line 2875 "EventsDirectoryPage.c" +#line 2926 "EventsDirectoryPage.c" SubEventsDirectoryPageDirectoryType _tmp10_ = 0; -#line 259 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 266 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp10_ = self->priv->type; -#line 259 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 266 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" if (_tmp10_ == SUB_EVENTS_DIRECTORY_PAGE_DIRECTORY_TYPE_MONTH) { -#line 2881 "EventsDirectoryPage.c" +#line 2932 "EventsDirectoryPage.c" struct tm _tmp11_ = {0}; gint _tmp12_ = 0; gint _tmp13_ = 0; -#line 260 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 267 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp11_ = event_time; -#line 260 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 267 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp12_ = _tmp11_.tm_mon; -#line 260 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 267 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp13_ = self->priv->month; -#line 260 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 267 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" result = _tmp12_ == _tmp13_; -#line 260 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 267 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _g_object_unref0 (event); -#line 260 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 267 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return result; -#line 2897 "EventsDirectoryPage.c" +#line 2948 "EventsDirectoryPage.c" } -#line 262 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 269 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" result = TRUE; -#line 262 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 269 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _g_object_unref0 (event); -#line 262 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 269 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return result; -#line 2905 "EventsDirectoryPage.c" +#line 2956 "EventsDirectoryPage.c" } -#line 264 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 271 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" result = FALSE; -#line 264 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 271 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _g_object_unref0 (event); -#line 264 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 271 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return result; -#line 2913 "EventsDirectoryPage.c" +#line 2964 "EventsDirectoryPage.c" } static gint sub_events_directory_page_sub_event_directory_manager_get_month (SubEventsDirectoryPageSubEventDirectoryManager* self) { gint result = 0; gint _tmp0_ = 0; -#line 267 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 274 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" g_return_val_if_fail (SUB_EVENTS_DIRECTORY_PAGE_IS_SUB_EVENT_DIRECTORY_MANAGER (self), 0); -#line 268 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 275 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp0_ = self->priv->month; -#line 268 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 275 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" result = _tmp0_; -#line 268 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 275 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return result; -#line 2928 "EventsDirectoryPage.c" +#line 2979 "EventsDirectoryPage.c" } static gint sub_events_directory_page_sub_event_directory_manager_get_year (SubEventsDirectoryPageSubEventDirectoryManager* self) { gint result = 0; gint _tmp0_ = 0; -#line 271 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 278 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" g_return_val_if_fail (SUB_EVENTS_DIRECTORY_PAGE_IS_SUB_EVENT_DIRECTORY_MANAGER (self), 0); -#line 272 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 279 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp0_ = self->priv->year; -#line 272 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 279 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" result = _tmp0_; -#line 272 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 279 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return result; -#line 2943 "EventsDirectoryPage.c" +#line 2994 "EventsDirectoryPage.c" } static SubEventsDirectoryPageDirectoryType sub_events_directory_page_sub_event_directory_manager_get_event_directory_type (SubEventsDirectoryPageSubEventDirectoryManager* self) { SubEventsDirectoryPageDirectoryType result = 0; SubEventsDirectoryPageDirectoryType _tmp0_ = 0; -#line 275 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 282 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" g_return_val_if_fail (SUB_EVENTS_DIRECTORY_PAGE_IS_SUB_EVENT_DIRECTORY_MANAGER (self), 0); -#line 276 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 283 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" _tmp0_ = self->priv->type; -#line 276 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 283 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" result = _tmp0_; -#line 276 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 283 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" return result; -#line 2958 "EventsDirectoryPage.c" +#line 3009 "EventsDirectoryPage.c" } static void sub_events_directory_page_sub_event_directory_manager_class_init (SubEventsDirectoryPageSubEventDirectoryManagerClass * klass) { -#line 238 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 245 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" sub_events_directory_page_sub_event_directory_manager_parent_class = g_type_class_peek_parent (klass); -#line 238 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 245 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" ((ViewManagerClass *) klass)->finalize = sub_events_directory_page_sub_event_directory_manager_finalize; -#line 238 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 245 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" g_type_class_add_private (klass, sizeof (SubEventsDirectoryPageSubEventDirectoryManagerPrivate)); -#line 238 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 245 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" ((ViewManagerClass *) klass)->include_in_view = sub_events_directory_page_sub_event_directory_manager_real_include_in_view; -#line 2971 "EventsDirectoryPage.c" +#line 3022 "EventsDirectoryPage.c" } static void sub_events_directory_page_sub_event_directory_manager_instance_init (SubEventsDirectoryPageSubEventDirectoryManager * self) { -#line 238 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 245 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" self->priv = SUB_EVENTS_DIRECTORY_PAGE_SUB_EVENT_DIRECTORY_MANAGER_GET_PRIVATE (self); -#line 239 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 246 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" self->priv->month = 0; -#line 240 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 247 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" self->priv->year = 0; -#line 2982 "EventsDirectoryPage.c" +#line 3033 "EventsDirectoryPage.c" } static void sub_events_directory_page_sub_event_directory_manager_finalize (ViewManager* obj) { SubEventsDirectoryPageSubEventDirectoryManager * self; -#line 238 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 245 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (obj, SUB_EVENTS_DIRECTORY_PAGE_TYPE_SUB_EVENT_DIRECTORY_MANAGER, SubEventsDirectoryPageSubEventDirectoryManager); -#line 238 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 245 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" VIEW_MANAGER_CLASS (sub_events_directory_page_sub_event_directory_manager_parent_class)->finalize (obj); -#line 2992 "EventsDirectoryPage.c" +#line 3043 "EventsDirectoryPage.c" } @@ -3005,9 +3056,9 @@ static GType sub_events_directory_page_sub_event_directory_manager_get_type (voi static void sub_events_directory_page_class_init (SubEventsDirectoryPageClass * klass) { -#line 227 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" +#line 234 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" sub_events_directory_page_parent_class = g_type_class_peek_parent (klass); -#line 3011 "EventsDirectoryPage.c" +#line 3062 "EventsDirectoryPage.c" } diff --git a/src/events/EventsDirectoryPage.vala b/src/events/EventsDirectoryPage.vala index af20d99..4650fd2 100644 --- a/src/events/EventsDirectoryPage.vala +++ b/src/events/EventsDirectoryPage.vala @@ -114,14 +114,21 @@ public abstract class EventsDirectoryPage : CheckerboardPage { { "ViewComment", on_action_toggle, null, "false", on_display_comments } }; - protected override void add_actions () { - base.add_actions (); - AppWindow.get_instance ().add_action_entries (entries, this); + protected override void add_actions (GLib.ActionMap map) { + base.add_actions (map); + map.add_action_entries (entries, this); var display_comments = Config.Facade.get_instance().get_display_event_comments(); get_action ("ViewComment").change_state (display_comments); } + protected override void remove_actions(GLib.ActionMap map) { + base.remove_actions(map); + foreach (var entry in entries) { + map.remove_action(entry.name); + } + } + protected override void init_actions(int selected_count, int count) { base.init_actions(selected_count, count); diff --git a/src/folders/Branch.c b/src/folders/Branch.c index d44aff9..f5962f6 100644 --- a/src/folders/Branch.c +++ b/src/folders/Branch.c @@ -1,4 +1,4 @@ -/* Branch.c generated by valac 0.32.1, the Vala compiler +/* Branch.c generated by valac 0.34.4, the Vala compiler * generated from Branch.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -998,7 +998,7 @@ static void folders_branch_add_entry (FoldersBranch* self, MediaSource* media) { #line 73 "/home/jens/Source/shotwell/src/folders/Branch.vala" file = _tmp1_; #line 75 "/home/jens/Source/shotwell/src/folders/Branch.vala" - _tmp2_ = gee_array_list_new (G_TYPE_FILE, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL); + _tmp2_ = gee_array_list_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL); #line 75 "/home/jens/Source/shotwell/src/folders/Branch.vala" elements = _tmp2_; #line 78 "/home/jens/Source/shotwell/src/folders/Branch.vala" @@ -1497,7 +1497,7 @@ static void folders_branch_instance_init (FoldersBranch * self) { #line 7 "/home/jens/Source/shotwell/src/folders/Branch.vala" self->priv = FOLDERS_BRANCH_GET_PRIVATE (self); #line 8 "/home/jens/Source/shotwell/src/folders/Branch.vala" - _tmp0_ = gee_hash_map_new (G_TYPE_FILE, (GBoxedCopyFunc) g_object_ref, g_object_unref, FOLDERS_TYPE_SIDEBAR_ENTRY, (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL); + _tmp0_ = gee_hash_map_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, FOLDERS_TYPE_SIDEBAR_ENTRY, (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL); #line 8 "/home/jens/Source/shotwell/src/folders/Branch.vala" self->priv->entries = _tmp0_; #line 1504 "Branch.c" @@ -1982,7 +1982,7 @@ static void folders_sidebar_entry_class_init (FoldersSidebarEntryClass * klass) #line 148 "/home/jens/Source/shotwell/src/folders/Branch.vala" G_OBJECT_CLASS (klass)->finalize = folders_sidebar_entry_finalize; #line 148 "/home/jens/Source/shotwell/src/folders/Branch.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), FOLDERS_SIDEBAR_ENTRY_DIR, g_param_spec_object ("dir", "dir", "dir", G_TYPE_FILE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE)); + g_object_class_install_property (G_OBJECT_CLASS (klass), FOLDERS_SIDEBAR_ENTRY_DIR, g_param_spec_object ("dir", "dir", "dir", g_file_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE)); #line 148 "/home/jens/Source/shotwell/src/folders/Branch.vala" g_object_class_install_property (G_OBJECT_CLASS (klass), FOLDERS_SIDEBAR_ENTRY_COLLATION, g_param_spec_string ("collation", "collation", "collation", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE)); #line 148 "/home/jens/Source/shotwell/src/folders/Branch.vala" diff --git a/src/folders/Folders.c b/src/folders/Folders.c index d9af95a..ab4c085 100644 --- a/src/folders/Folders.c +++ b/src/folders/Folders.c @@ -1,4 +1,4 @@ -/* Folders.c generated by valac 0.32.1, the Vala compiler +/* Folders.c generated by valac 0.34.4, the Vala compiler * generated from Folders.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/folders/Page.c b/src/folders/Page.c index 03bbd48..c451234 100644 --- a/src/folders/Page.c +++ b/src/folders/Page.c @@ -1,4 +1,4 @@ -/* Page.c generated by valac 0.32.1, the Vala compiler +/* Page.c generated by valac 0.34.4, the Vala compiler * generated from Page.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -12,9 +12,9 @@ #include <gtk/gtk.h> #include <stdlib.h> #include <string.h> +#include <gio/gio.h> #include <gee.h> #include <gdk/gdk.h> -#include <gio/gio.h> #define TYPE_PAGE (page_get_type ()) @@ -380,7 +380,8 @@ struct _PageClass { void (*ready) (Page* self); void (*switching_to_fullscreen) (Page* self, FullscreenWindow* fsw); void (*returning_from_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*add_actions) (Page* self); + void (*add_actions) (Page* self, GActionMap* map); + void (*remove_actions) (Page* self, GActionMap* map); void (*init_collect_ui_filenames) (Page* self, GeeList* ui_filenames); InjectionGroup** (*init_collect_injection_groups) (Page* self, int* result_length1); void (*init_actions) (Page* self, gint selected_count, gint count); @@ -705,7 +706,7 @@ FoldersPage* folders_page_construct (GType object_type, GFile* dir) { _view_manager_unref0 (self->priv->view_manager); #line 27 "/home/jens/Source/shotwell/src/folders/Page.vala" self->priv->view_manager = _tmp4_; -#line 709 "Page.c" +#line 710 "Page.c" { GeeIterator* _sources_it = NULL; MediaCollectionRegistry* _tmp5_ = NULL; @@ -734,7 +735,7 @@ FoldersPage* folders_page_construct (GType object_type, GFile* dir) { _sources_it = _tmp10_; #line 29 "/home/jens/Source/shotwell/src/folders/Page.vala" while (TRUE) { -#line 738 "Page.c" +#line 739 "Page.c" GeeIterator* _tmp11_ = NULL; gboolean _tmp12_ = FALSE; MediaSourceCollection* sources = NULL; @@ -754,7 +755,7 @@ FoldersPage* folders_page_construct (GType object_type, GFile* dir) { if (!_tmp12_) { #line 29 "/home/jens/Source/shotwell/src/folders/Page.vala" break; -#line 758 "Page.c" +#line 759 "Page.c" } #line 29 "/home/jens/Source/shotwell/src/folders/Page.vala" _tmp13_ = _sources_it; @@ -780,22 +781,22 @@ FoldersPage* folders_page_construct (GType object_type, GFile* dir) { _data_collection_unref0 (_tmp16_); #line 29 "/home/jens/Source/shotwell/src/folders/Page.vala" _data_collection_unref0 (sources); -#line 784 "Page.c" +#line 785 "Page.c" } #line 29 "/home/jens/Source/shotwell/src/folders/Page.vala" _g_object_unref0 (_sources_it); -#line 788 "Page.c" +#line 789 "Page.c" } #line 24 "/home/jens/Source/shotwell/src/folders/Page.vala" return self; -#line 792 "Page.c" +#line 793 "Page.c" } FoldersPage* folders_page_new (GFile* dir) { #line 24 "/home/jens/Source/shotwell/src/folders/Page.vala" return folders_page_construct (FOLDERS_TYPE_PAGE, dir); -#line 799 "Page.c" +#line 800 "Page.c" } @@ -825,13 +826,13 @@ static void folders_page_real_get_config_photos_sort (MediaPage* base, gboolean* if (sort_order) { #line 33 "/home/jens/Source/shotwell/src/folders/Page.vala" *sort_order = _vala_sort_order; -#line 829 "Page.c" +#line 830 "Page.c" } #line 33 "/home/jens/Source/shotwell/src/folders/Page.vala" if (sort_by) { #line 33 "/home/jens/Source/shotwell/src/folders/Page.vala" *sort_by = _vala_sort_by; -#line 835 "Page.c" +#line 836 "Page.c" } } @@ -856,14 +857,14 @@ static void folders_page_real_set_config_photos_sort (MediaPage* base, gboolean configuration_facade_set_library_photos_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_); #line 38 "/home/jens/Source/shotwell/src/folders/Page.vala" _g_object_unref0 (_tmp1_); -#line 860 "Page.c" +#line 861 "Page.c" } static gpointer _g_object_ref0 (gpointer self) { #line 14 "/home/jens/Source/shotwell/src/folders/Page.vala" return self ? g_object_ref (self) : NULL; -#line 867 "Page.c" +#line 868 "Page.c" } @@ -890,14 +891,14 @@ static FoldersPageFolderViewManager* folders_page_folder_view_manager_construct self->dir = _tmp2_; #line 11 "/home/jens/Source/shotwell/src/folders/Page.vala" return self; -#line 894 "Page.c" +#line 895 "Page.c" } static FoldersPageFolderViewManager* folders_page_folder_view_manager_new (FoldersPage* owner, GFile* dir) { #line 11 "/home/jens/Source/shotwell/src/folders/Page.vala" return folders_page_folder_view_manager_construct (FOLDERS_PAGE_TYPE_FOLDER_VIEW_MANAGER, owner, dir); -#line 901 "Page.c" +#line 902 "Page.c" } @@ -932,7 +933,7 @@ static gboolean folders_page_folder_view_manager_real_include_in_view (ViewManag result = _tmp5_; #line 18 "/home/jens/Source/shotwell/src/folders/Page.vala" return result; -#line 936 "Page.c" +#line 937 "Page.c" } @@ -943,7 +944,7 @@ static void folders_page_folder_view_manager_class_init (FoldersPageFolderViewMa ((ViewManagerClass *) klass)->finalize = folders_page_folder_view_manager_finalize; #line 8 "/home/jens/Source/shotwell/src/folders/Page.vala" ((ViewManagerClass *) klass)->include_in_view = folders_page_folder_view_manager_real_include_in_view; -#line 947 "Page.c" +#line 948 "Page.c" } @@ -959,7 +960,7 @@ static void folders_page_folder_view_manager_finalize (ViewManager* obj) { _g_object_unref0 (self->dir); #line 8 "/home/jens/Source/shotwell/src/folders/Page.vala" VIEW_MANAGER_CLASS (folders_page_folder_view_manager_parent_class)->finalize (obj); -#line 963 "Page.c" +#line 964 "Page.c" } @@ -986,14 +987,14 @@ static void folders_page_class_init (FoldersPageClass * klass) { ((MediaPageClass *) klass)->set_config_photos_sort = folders_page_real_set_config_photos_sort; #line 7 "/home/jens/Source/shotwell/src/folders/Page.vala" G_OBJECT_CLASS (klass)->finalize = folders_page_finalize; -#line 990 "Page.c" +#line 991 "Page.c" } static void folders_page_instance_init (FoldersPage * self) { #line 7 "/home/jens/Source/shotwell/src/folders/Page.vala" self->priv = FOLDERS_PAGE_GET_PRIVATE (self); -#line 997 "Page.c" +#line 998 "Page.c" } @@ -1005,7 +1006,7 @@ static void folders_page_finalize (GObject* obj) { _view_manager_unref0 (self->priv->view_manager); #line 7 "/home/jens/Source/shotwell/src/folders/Page.vala" G_OBJECT_CLASS (folders_page_parent_class)->finalize (obj); -#line 1009 "Page.c" +#line 1010 "Page.c" } diff --git a/src/library/Branch.c b/src/library/Branch.c index e7131b0..be0fedc 100644 --- a/src/library/Branch.c +++ b/src/library/Branch.c @@ -1,4 +1,4 @@ -/* Branch.c generated by valac 0.32.1, the Vala compiler +/* Branch.c generated by valac 0.34.4, the Vala compiler * generated from Branch.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -14,8 +14,8 @@ #include <glib/gi18n-lib.h> #include <gtk/gtk.h> #include <gdk/gdk.h> -#include <gee.h> #include <gio/gio.h> +#include <gee.h> #define SIDEBAR_TYPE_BRANCH (sidebar_branch_get_type ()) @@ -624,7 +624,8 @@ struct _PageClass { void (*ready) (Page* self); void (*switching_to_fullscreen) (Page* self, FullscreenWindow* fsw); void (*returning_from_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*add_actions) (Page* self); + void (*add_actions) (Page* self, GActionMap* map); + void (*remove_actions) (Page* self, GActionMap* map); void (*init_collect_ui_filenames) (Page* self, GeeList* ui_filenames); InjectionGroup** (*init_collect_injection_groups) (Page* self, int* result_length1); void (*init_actions) (Page* self, gint selected_count, gint count); @@ -990,35 +991,35 @@ static gint _library_branch_comparator_gcompare_func (gconstpointer a, gconstpoi result = library_branch_comparator ((SidebarEntry*) a, (SidebarEntry*) b); #line 30 "/home/jens/Source/shotwell/src/library/Branch.vala" return result; -#line 994 "Branch.c" +#line 995 "Branch.c" } static void _library_branch_on_flagged_visibility_changed_library_hideable_page_entry_visibility_changed (LibraryHideablePageEntry* _sender, gboolean visible, gpointer self) { #line 43 "/home/jens/Source/shotwell/src/library/Branch.vala" library_branch_on_flagged_visibility_changed ((LibraryBranch*) self); -#line 1001 "Branch.c" +#line 1002 "Branch.c" } static void _library_branch_on_last_imported_visibility_changed_library_hideable_page_entry_visibility_changed (LibraryHideablePageEntry* _sender, gboolean visible, gpointer self) { #line 46 "/home/jens/Source/shotwell/src/library/Branch.vala" library_branch_on_last_imported_visibility_changed ((LibraryBranch*) self); -#line 1008 "Branch.c" +#line 1009 "Branch.c" } static void _library_branch_on_import_queue_visibility_changed_library_hideable_page_entry_visibility_changed (LibraryHideablePageEntry* _sender, gboolean visible, gpointer self) { #line 49 "/home/jens/Source/shotwell/src/library/Branch.vala" library_branch_on_import_queue_visibility_changed ((LibraryBranch*) self); -#line 1015 "Branch.c" +#line 1016 "Branch.c" } static void _library_branch_on_offline_visibility_changed_library_hideable_page_entry_visibility_changed (LibraryHideablePageEntry* _sender, gboolean visible, gpointer self) { #line 52 "/home/jens/Source/shotwell/src/library/Branch.vala" library_branch_on_offline_visibility_changed ((LibraryBranch*) self); -#line 1022 "Branch.c" +#line 1023 "Branch.c" } @@ -1137,14 +1138,14 @@ LibraryBranch* library_branch_construct (GType object_type) { library_branch_on_offline_visibility_changed (self); #line 29 "/home/jens/Source/shotwell/src/library/Branch.vala" return self; -#line 1141 "Branch.c" +#line 1142 "Branch.c" } LibraryBranch* library_branch_new (void) { #line 29 "/home/jens/Source/shotwell/src/library/Branch.vala" return library_branch_construct (LIBRARY_TYPE_BRANCH); -#line 1148 "Branch.c" +#line 1149 "Branch.c" } @@ -1174,7 +1175,7 @@ static void library_branch_insert (LibraryBranch* self, SidebarEntry* entry, gin sidebar_branch_graft (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp3_, _tmp4_, NULL); #line 58 "/home/jens/Source/shotwell/src/library/Branch.vala" _g_object_unref0 (_tmp3_); -#line 1178 "Branch.c" +#line 1179 "Branch.c" } @@ -1186,7 +1187,7 @@ static void library_branch_on_flagged_visibility_changed (LibraryBranch* self) { _tmp0_ = self->priv->_flagged_entry; #line 62 "/home/jens/Source/shotwell/src/library/Branch.vala" library_branch_update_entry_visibility (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry), (gint) LIBRARY_BRANCH_ENTRY_POSITION_FLAGGED); -#line 1190 "Branch.c" +#line 1191 "Branch.c" } @@ -1198,7 +1199,7 @@ static void library_branch_on_last_imported_visibility_changed (LibraryBranch* s _tmp0_ = self->priv->_last_imported_entry; #line 66 "/home/jens/Source/shotwell/src/library/Branch.vala" library_branch_update_entry_visibility (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry), (gint) LIBRARY_BRANCH_ENTRY_POSITION_LAST_IMPORTED); -#line 1202 "Branch.c" +#line 1203 "Branch.c" } @@ -1210,7 +1211,7 @@ static void library_branch_on_import_queue_visibility_changed (LibraryBranch* se _tmp0_ = self->priv->_import_queue_entry; #line 70 "/home/jens/Source/shotwell/src/library/Branch.vala" library_branch_update_entry_visibility (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry), (gint) LIBRARY_BRANCH_ENTRY_POSITION_IMPORT_QUEUE); -#line 1214 "Branch.c" +#line 1215 "Branch.c" } @@ -1222,7 +1223,7 @@ static void library_branch_on_offline_visibility_changed (LibraryBranch* self) { _tmp0_ = self->priv->_offline_entry; #line 74 "/home/jens/Source/shotwell/src/library/Branch.vala" library_branch_update_entry_visibility (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry), (gint) LIBRARY_BRANCH_ENTRY_POSITION_OFFLINE); -#line 1226 "Branch.c" +#line 1227 "Branch.c" } @@ -1242,7 +1243,7 @@ static void library_branch_update_entry_visibility (LibraryBranch* self, Library _tmp2_ = _tmp1_; #line 78 "/home/jens/Source/shotwell/src/library/Branch.vala" if (_tmp2_) { -#line 1246 "Branch.c" +#line 1247 "Branch.c" LibraryHideablePageEntry* _tmp3_ = NULL; gboolean _tmp4_ = FALSE; #line 79 "/home/jens/Source/shotwell/src/library/Branch.vala" @@ -1251,7 +1252,7 @@ static void library_branch_update_entry_visibility (LibraryBranch* self, Library _tmp4_ = sidebar_branch_has_entry (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, SIDEBAR_TYPE_ENTRY, SidebarEntry)); #line 79 "/home/jens/Source/shotwell/src/library/Branch.vala" if (!_tmp4_) { -#line 1255 "Branch.c" +#line 1256 "Branch.c" LibraryHideablePageEntry* _tmp5_ = NULL; gint _tmp6_ = 0; #line 80 "/home/jens/Source/shotwell/src/library/Branch.vala" @@ -1260,7 +1261,7 @@ static void library_branch_update_entry_visibility (LibraryBranch* self, Library _tmp6_ = position; #line 80 "/home/jens/Source/shotwell/src/library/Branch.vala" library_branch_insert (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, SIDEBAR_TYPE_ENTRY, SidebarEntry), _tmp6_); -#line 1264 "Branch.c" +#line 1265 "Branch.c" } } else { LibraryHideablePageEntry* _tmp7_ = NULL; @@ -1271,13 +1272,13 @@ static void library_branch_update_entry_visibility (LibraryBranch* self, Library _tmp8_ = sidebar_branch_has_entry (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, SIDEBAR_TYPE_ENTRY, SidebarEntry)); #line 81 "/home/jens/Source/shotwell/src/library/Branch.vala" if (_tmp8_) { -#line 1275 "Branch.c" +#line 1276 "Branch.c" LibraryHideablePageEntry* _tmp9_ = NULL; #line 82 "/home/jens/Source/shotwell/src/library/Branch.vala" _tmp9_ = entry; #line 82 "/home/jens/Source/shotwell/src/library/Branch.vala" sidebar_branch_prune (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, SIDEBAR_TYPE_ENTRY, SidebarEntry)); -#line 1281 "Branch.c" +#line 1282 "Branch.c" } } } @@ -1305,7 +1306,7 @@ static gint library_branch_comparator (SidebarEntry* a, SidebarEntry* b) { result = ((gint) ((gintptr) _tmp1_)) - ((gint) ((gintptr) _tmp3_)); #line 87 "/home/jens/Source/shotwell/src/library/Branch.vala" return result; -#line 1309 "Branch.c" +#line 1310 "Branch.c" } @@ -1320,14 +1321,14 @@ LibraryPhotosEntry* library_branch_get_photos_entry (LibraryBranch* self) { result = _tmp0_; #line 10 "/home/jens/Source/shotwell/src/library/Branch.vala" return result; -#line 1324 "Branch.c" +#line 1325 "Branch.c" } static gpointer _g_object_ref0 (gpointer self) { #line 10 "/home/jens/Source/shotwell/src/library/Branch.vala" return self ? g_object_ref (self) : NULL; -#line 1331 "Branch.c" +#line 1332 "Branch.c" } @@ -1346,7 +1347,7 @@ static void library_branch_set_photos_entry (LibraryBranch* self, LibraryPhotosE self->priv->_photos_entry = _tmp1_; #line 10 "/home/jens/Source/shotwell/src/library/Branch.vala" g_object_notify ((GObject *) self, "photos-entry"); -#line 1350 "Branch.c" +#line 1351 "Branch.c" } @@ -1361,7 +1362,7 @@ LibraryFlaggedSidebarEntry* library_branch_get_flagged_entry (LibraryBranch* sel result = _tmp0_; #line 11 "/home/jens/Source/shotwell/src/library/Branch.vala" return result; -#line 1365 "Branch.c" +#line 1366 "Branch.c" } @@ -1380,7 +1381,7 @@ static void library_branch_set_flagged_entry (LibraryBranch* self, LibraryFlagge self->priv->_flagged_entry = _tmp1_; #line 11 "/home/jens/Source/shotwell/src/library/Branch.vala" g_object_notify ((GObject *) self, "flagged-entry"); -#line 1384 "Branch.c" +#line 1385 "Branch.c" } @@ -1395,7 +1396,7 @@ LibraryLastImportSidebarEntry* library_branch_get_last_imported_entry (LibraryBr result = _tmp0_; #line 12 "/home/jens/Source/shotwell/src/library/Branch.vala" return result; -#line 1399 "Branch.c" +#line 1400 "Branch.c" } @@ -1414,7 +1415,7 @@ static void library_branch_set_last_imported_entry (LibraryBranch* self, Library self->priv->_last_imported_entry = _tmp1_; #line 12 "/home/jens/Source/shotwell/src/library/Branch.vala" g_object_notify ((GObject *) self, "last-imported-entry"); -#line 1418 "Branch.c" +#line 1419 "Branch.c" } @@ -1429,7 +1430,7 @@ LibraryImportQueueSidebarEntry* library_branch_get_import_queue_entry (LibraryBr result = _tmp0_; #line 13 "/home/jens/Source/shotwell/src/library/Branch.vala" return result; -#line 1433 "Branch.c" +#line 1434 "Branch.c" } @@ -1448,7 +1449,7 @@ static void library_branch_set_import_queue_entry (LibraryBranch* self, LibraryI self->priv->_import_queue_entry = _tmp1_; #line 13 "/home/jens/Source/shotwell/src/library/Branch.vala" g_object_notify ((GObject *) self, "import-queue-entry"); -#line 1452 "Branch.c" +#line 1453 "Branch.c" } @@ -1463,7 +1464,7 @@ LibraryOfflineSidebarEntry* library_branch_get_offline_entry (LibraryBranch* sel result = _tmp0_; #line 14 "/home/jens/Source/shotwell/src/library/Branch.vala" return result; -#line 1467 "Branch.c" +#line 1468 "Branch.c" } @@ -1482,7 +1483,7 @@ static void library_branch_set_offline_entry (LibraryBranch* self, LibraryOfflin self->priv->_offline_entry = _tmp1_; #line 14 "/home/jens/Source/shotwell/src/library/Branch.vala" g_object_notify ((GObject *) self, "offline-entry"); -#line 1486 "Branch.c" +#line 1487 "Branch.c" } @@ -1497,7 +1498,7 @@ LibraryTrashSidebarEntry* library_branch_get_trash_entry (LibraryBranch* self) { result = _tmp0_; #line 15 "/home/jens/Source/shotwell/src/library/Branch.vala" return result; -#line 1501 "Branch.c" +#line 1502 "Branch.c" } @@ -1516,7 +1517,7 @@ static void library_branch_set_trash_entry (LibraryBranch* self, LibraryTrashSid self->priv->_trash_entry = _tmp1_; #line 15 "/home/jens/Source/shotwell/src/library/Branch.vala" g_object_notify ((GObject *) self, "trash-entry"); -#line 1520 "Branch.c" +#line 1521 "Branch.c" } @@ -1543,14 +1544,14 @@ static void library_branch_class_init (LibraryBranchClass * klass) { g_object_class_install_property (G_OBJECT_CLASS (klass), LIBRARY_BRANCH_OFFLINE_ENTRY, g_param_spec_object ("offline-entry", "offline-entry", "offline-entry", LIBRARY_TYPE_OFFLINE_SIDEBAR_ENTRY, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE)); #line 7 "/home/jens/Source/shotwell/src/library/Branch.vala" g_object_class_install_property (G_OBJECT_CLASS (klass), LIBRARY_BRANCH_TRASH_ENTRY, g_param_spec_object ("trash-entry", "trash-entry", "trash-entry", LIBRARY_TYPE_TRASH_SIDEBAR_ENTRY, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE)); -#line 1547 "Branch.c" +#line 1548 "Branch.c" } static void library_branch_instance_init (LibraryBranch * self) { #line 7 "/home/jens/Source/shotwell/src/library/Branch.vala" self->priv = LIBRARY_BRANCH_GET_PRIVATE (self); -#line 1554 "Branch.c" +#line 1555 "Branch.c" } @@ -1572,7 +1573,7 @@ static void library_branch_finalize (GObject* obj) { _g_object_unref0 (self->priv->_trash_entry); #line 7 "/home/jens/Source/shotwell/src/library/Branch.vala" G_OBJECT_CLASS (library_branch_parent_class)->finalize (obj); -#line 1576 "Branch.c" +#line 1577 "Branch.c" } @@ -1629,13 +1630,13 @@ static void _vala_library_branch_get_property (GObject * object, guint property_ g_value_set_object (value, library_branch_get_trash_entry (self)); #line 7 "/home/jens/Source/shotwell/src/library/Branch.vala" break; -#line 1633 "Branch.c" +#line 1634 "Branch.c" default: #line 7 "/home/jens/Source/shotwell/src/library/Branch.vala" G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); #line 7 "/home/jens/Source/shotwell/src/library/Branch.vala" break; -#line 1639 "Branch.c" +#line 1640 "Branch.c" } } @@ -1681,13 +1682,13 @@ static void _vala_library_branch_set_property (GObject * object, guint property_ library_branch_set_trash_entry (self, g_value_get_object (value)); #line 7 "/home/jens/Source/shotwell/src/library/Branch.vala" break; -#line 1685 "Branch.c" +#line 1686 "Branch.c" default: #line 7 "/home/jens/Source/shotwell/src/library/Branch.vala" G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); #line 7 "/home/jens/Source/shotwell/src/library/Branch.vala" break; -#line 1691 "Branch.c" +#line 1692 "Branch.c" } } @@ -1698,14 +1699,14 @@ LibraryPhotosEntry* library_photos_entry_construct (GType object_type) { self = (LibraryPhotosEntry*) sidebar_simple_page_entry_construct (object_type); #line 93 "/home/jens/Source/shotwell/src/library/Branch.vala" return self; -#line 1702 "Branch.c" +#line 1703 "Branch.c" } LibraryPhotosEntry* library_photos_entry_new (void) { #line 93 "/home/jens/Source/shotwell/src/library/Branch.vala" return library_photos_entry_construct (LIBRARY_TYPE_PHOTOS_ENTRY); -#line 1709 "Branch.c" +#line 1710 "Branch.c" } @@ -1724,7 +1725,7 @@ static gchar* library_photos_entry_real_get_sidebar_name (SidebarSimplePageEntry result = _tmp1_; #line 97 "/home/jens/Source/shotwell/src/library/Branch.vala" return result; -#line 1728 "Branch.c" +#line 1729 "Branch.c" } @@ -1740,7 +1741,7 @@ static gchar* library_photos_entry_real_get_sidebar_icon (SidebarSimplePageEntry result = _tmp0_; #line 101 "/home/jens/Source/shotwell/src/library/Branch.vala" return result; -#line 1744 "Branch.c" +#line 1745 "Branch.c" } @@ -1758,7 +1759,7 @@ static Page* library_photos_entry_real_create_page (SidebarSimplePageEntry* base result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PAGE, Page); #line 105 "/home/jens/Source/shotwell/src/library/Branch.vala" return result; -#line 1762 "Branch.c" +#line 1763 "Branch.c" } @@ -1771,7 +1772,7 @@ static void library_photos_entry_class_init (LibraryPhotosEntryClass * klass) { ((SidebarSimplePageEntryClass *) klass)->get_sidebar_icon = library_photos_entry_real_get_sidebar_icon; #line 91 "/home/jens/Source/shotwell/src/library/Branch.vala" ((SidebarSimplePageEntryClass *) klass)->create_page = library_photos_entry_real_create_page; -#line 1775 "Branch.c" +#line 1776 "Branch.c" } @@ -1797,7 +1798,7 @@ LibraryHideablePageEntry* library_hideable_page_entry_construct (GType object_ty self = (LibraryHideablePageEntry*) sidebar_simple_page_entry_construct (object_type); #line 125 "/home/jens/Source/shotwell/src/library/Branch.vala" return self; -#line 1801 "Branch.c" +#line 1802 "Branch.c" } @@ -1812,7 +1813,7 @@ gboolean library_hideable_page_entry_get_visible (LibraryHideablePageEntry* self result = _tmp0_; #line 115 "/home/jens/Source/shotwell/src/library/Branch.vala" return result; -#line 1816 "Branch.c" +#line 1817 "Branch.c" } @@ -1831,7 +1832,7 @@ void library_hideable_page_entry_set_visible (LibraryHideablePageEntry* self, gb if (_tmp0_ == _tmp1_) { #line 118 "/home/jens/Source/shotwell/src/library/Branch.vala" return; -#line 1835 "Branch.c" +#line 1836 "Branch.c" } #line 120 "/home/jens/Source/shotwell/src/library/Branch.vala" _tmp2_ = value; @@ -1843,7 +1844,7 @@ void library_hideable_page_entry_set_visible (LibraryHideablePageEntry* self, gb g_signal_emit_by_name (self, "visibility-changed", _tmp3_); #line 116 "/home/jens/Source/shotwell/src/library/Branch.vala" g_object_notify ((GObject *) self, "visible"); -#line 1847 "Branch.c" +#line 1848 "Branch.c" } @@ -1862,7 +1863,7 @@ static void library_hideable_page_entry_class_init (LibraryHideablePageEntryClas g_object_class_install_property (G_OBJECT_CLASS (klass), LIBRARY_HIDEABLE_PAGE_ENTRY_VISIBLE, g_param_spec_boolean ("visible", "visible", "visible", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE)); #line 109 "/home/jens/Source/shotwell/src/library/Branch.vala" g_signal_new ("visibility_changed", LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__BOOLEAN, G_TYPE_NONE, 1, G_TYPE_BOOLEAN); -#line 1866 "Branch.c" +#line 1867 "Branch.c" } @@ -1871,7 +1872,7 @@ static void library_hideable_page_entry_instance_init (LibraryHideablePageEntry self->priv = LIBRARY_HIDEABLE_PAGE_ENTRY_GET_PRIVATE (self); #line 113 "/home/jens/Source/shotwell/src/library/Branch.vala" self->priv->show_entry = FALSE; -#line 1875 "Branch.c" +#line 1876 "Branch.c" } @@ -1881,7 +1882,7 @@ static void library_hideable_page_entry_finalize (GObject* obj) { self = G_TYPE_CHECK_INSTANCE_CAST (obj, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry); #line 109 "/home/jens/Source/shotwell/src/library/Branch.vala" G_OBJECT_CLASS (library_hideable_page_entry_parent_class)->finalize (obj); -#line 1885 "Branch.c" +#line 1886 "Branch.c" } @@ -1908,13 +1909,13 @@ static void _vala_library_hideable_page_entry_get_property (GObject * object, gu g_value_set_boolean (value, library_hideable_page_entry_get_visible (self)); #line 109 "/home/jens/Source/shotwell/src/library/Branch.vala" break; -#line 1912 "Branch.c" +#line 1913 "Branch.c" default: #line 109 "/home/jens/Source/shotwell/src/library/Branch.vala" G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); #line 109 "/home/jens/Source/shotwell/src/library/Branch.vala" break; -#line 1918 "Branch.c" +#line 1919 "Branch.c" } } @@ -1930,13 +1931,13 @@ static void _vala_library_hideable_page_entry_set_property (GObject * object, gu library_hideable_page_entry_set_visible (self, g_value_get_boolean (value)); #line 109 "/home/jens/Source/shotwell/src/library/Branch.vala" break; -#line 1934 "Branch.c" +#line 1935 "Branch.c" default: #line 109 "/home/jens/Source/shotwell/src/library/Branch.vala" G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); #line 109 "/home/jens/Source/shotwell/src/library/Branch.vala" break; -#line 1940 "Branch.c" +#line 1941 "Branch.c" } } @@ -1945,7 +1946,7 @@ LibraryMainPage* library_main_page_construct (GType object_type, ProgressMonitor LibraryMainPage * self = NULL; #line 133 "/home/jens/Source/shotwell/src/library/Branch.vala" self = (LibraryMainPage*) collection_page_construct (object_type, LIBRARY_MAIN_PAGE_NAME); -#line 1949 "Branch.c" +#line 1950 "Branch.c" { GeeIterator* _sources_it = NULL; MediaCollectionRegistry* _tmp0_ = NULL; @@ -1974,7 +1975,7 @@ LibraryMainPage* library_main_page_construct (GType object_type, ProgressMonitor _sources_it = _tmp5_; #line 135 "/home/jens/Source/shotwell/src/library/Branch.vala" while (TRUE) { -#line 1978 "Branch.c" +#line 1979 "Branch.c" GeeIterator* _tmp6_ = NULL; gboolean _tmp7_ = FALSE; MediaSourceCollection* sources = NULL; @@ -1997,7 +1998,7 @@ LibraryMainPage* library_main_page_construct (GType object_type, ProgressMonitor if (!_tmp7_) { #line 135 "/home/jens/Source/shotwell/src/library/Branch.vala" break; -#line 2001 "Branch.c" +#line 2002 "Branch.c" } #line 135 "/home/jens/Source/shotwell/src/library/Branch.vala" _tmp8_ = _sources_it; @@ -2031,22 +2032,22 @@ LibraryMainPage* library_main_page_construct (GType object_type, ProgressMonitor _data_collection_unref0 (_tmp11_); #line 135 "/home/jens/Source/shotwell/src/library/Branch.vala" _data_collection_unref0 (sources); -#line 2035 "Branch.c" +#line 2036 "Branch.c" } #line 135 "/home/jens/Source/shotwell/src/library/Branch.vala" _g_object_unref0 (_sources_it); -#line 2039 "Branch.c" +#line 2040 "Branch.c" } #line 132 "/home/jens/Source/shotwell/src/library/Branch.vala" return self; -#line 2043 "Branch.c" +#line 2044 "Branch.c" } LibraryMainPage* library_main_page_new (ProgressMonitor monitor, void* monitor_target) { #line 132 "/home/jens/Source/shotwell/src/library/Branch.vala" return library_main_page_construct (LIBRARY_TYPE_MAIN_PAGE, monitor, monitor_target); -#line 2050 "Branch.c" +#line 2051 "Branch.c" } @@ -2076,13 +2077,13 @@ static void library_main_page_real_get_config_photos_sort (MediaPage* base, gboo if (sort_order) { #line 139 "/home/jens/Source/shotwell/src/library/Branch.vala" *sort_order = _vala_sort_order; -#line 2080 "Branch.c" +#line 2081 "Branch.c" } #line 139 "/home/jens/Source/shotwell/src/library/Branch.vala" if (sort_by) { #line 139 "/home/jens/Source/shotwell/src/library/Branch.vala" *sort_by = _vala_sort_by; -#line 2086 "Branch.c" +#line 2087 "Branch.c" } } @@ -2107,7 +2108,7 @@ static void library_main_page_real_set_config_photos_sort (MediaPage* base, gboo configuration_facade_set_library_photos_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_); #line 144 "/home/jens/Source/shotwell/src/library/Branch.vala" _g_object_unref0 (_tmp1_); -#line 2111 "Branch.c" +#line 2112 "Branch.c" } @@ -2118,7 +2119,7 @@ static void library_main_page_class_init (LibraryMainPageClass * klass) { ((MediaPageClass *) klass)->get_config_photos_sort = library_main_page_real_get_config_photos_sort; #line 129 "/home/jens/Source/shotwell/src/library/Branch.vala" ((MediaPageClass *) klass)->set_config_photos_sort = library_main_page_real_set_config_photos_sort; -#line 2122 "Branch.c" +#line 2123 "Branch.c" } diff --git a/src/library/FlaggedPage.c b/src/library/FlaggedPage.c index 16cef0f..09dafd0 100644 --- a/src/library/FlaggedPage.c +++ b/src/library/FlaggedPage.c @@ -1,4 +1,4 @@ -/* FlaggedPage.c generated by valac 0.32.1, the Vala compiler +/* FlaggedPage.c generated by valac 0.34.4, the Vala compiler * generated from FlaggedPage.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -12,9 +12,9 @@ #include <gtk/gtk.h> #include <stdlib.h> #include <string.h> +#include <gio/gio.h> #include <gee.h> #include <gdk/gdk.h> -#include <gio/gio.h> #include <glib/gi18n-lib.h> @@ -427,7 +427,8 @@ struct _PageClass { void (*ready) (Page* self); void (*switching_to_fullscreen) (Page* self, FullscreenWindow* fsw); void (*returning_from_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*add_actions) (Page* self); + void (*add_actions) (Page* self, GActionMap* map); + void (*remove_actions) (Page* self, GActionMap* map); void (*init_collect_ui_filenames) (Page* self, GeeList* ui_filenames); InjectionGroup** (*init_collect_injection_groups) (Page* self, int* result_length1); void (*init_actions) (Page* self, gint selected_count, gint count); @@ -822,7 +823,7 @@ FlaggedPage* flagged_page_construct (GType object_type) { _view_manager_unref0 (self->priv->view_manager); #line 36 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" self->priv->view_manager = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_VIEW_MANAGER, ViewManager); -#line 826 "FlaggedPage.c" +#line 827 "FlaggedPage.c" { GeeIterator* _sources_it = NULL; MediaCollectionRegistry* _tmp1_ = NULL; @@ -851,7 +852,7 @@ FlaggedPage* flagged_page_construct (GType object_type) { _sources_it = _tmp6_; #line 38 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" while (TRUE) { -#line 855 "FlaggedPage.c" +#line 856 "FlaggedPage.c" GeeIterator* _tmp7_ = NULL; gboolean _tmp8_ = FALSE; MediaSourceCollection* sources = NULL; @@ -872,7 +873,7 @@ FlaggedPage* flagged_page_construct (GType object_type) { if (!_tmp8_) { #line 38 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" break; -#line 876 "FlaggedPage.c" +#line 877 "FlaggedPage.c" } #line 38 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" _tmp9_ = _sources_it; @@ -900,22 +901,22 @@ FlaggedPage* flagged_page_construct (GType object_type) { _data_collection_unref0 (_tmp12_); #line 38 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" _data_collection_unref0 (sources); -#line 904 "FlaggedPage.c" +#line 905 "FlaggedPage.c" } #line 38 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" _g_object_unref0 (_sources_it); -#line 908 "FlaggedPage.c" +#line 909 "FlaggedPage.c" } #line 33 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" return self; -#line 912 "FlaggedPage.c" +#line 913 "FlaggedPage.c" } FlaggedPage* flagged_page_new (void) { #line 33 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" return flagged_page_construct (TYPE_FLAGGED_PAGE); -#line 919 "FlaggedPage.c" +#line 920 "FlaggedPage.c" } @@ -945,13 +946,13 @@ static void flagged_page_real_get_config_photos_sort (MediaPage* base, gboolean* if (sort_order) { #line 42 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" *sort_order = _vala_sort_order; -#line 949 "FlaggedPage.c" +#line 950 "FlaggedPage.c" } #line 42 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" if (sort_by) { #line 42 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" *sort_by = _vala_sort_by; -#line 955 "FlaggedPage.c" +#line 956 "FlaggedPage.c" } } @@ -976,14 +977,14 @@ static void flagged_page_real_set_config_photos_sort (MediaPage* base, gboolean configuration_facade_set_library_photos_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_); #line 47 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" _g_object_unref0 (_tmp1_); -#line 980 "FlaggedPage.c" +#line 981 "FlaggedPage.c" } static gpointer _view_filter_ref0 (gpointer self) { #line 51 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" return self ? view_filter_ref (self) : NULL; -#line 987 "FlaggedPage.c" +#line 988 "FlaggedPage.c" } @@ -1002,7 +1003,7 @@ static SearchViewFilter* flagged_page_real_get_search_view_filter (CheckerboardP result = _tmp1_; #line 51 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" return result; -#line 1006 "FlaggedPage.c" +#line 1007 "FlaggedPage.c" } @@ -1017,21 +1018,21 @@ static FlaggedPageFlaggedViewManager* flagged_page_flagged_view_manager_construc self = (FlaggedPageFlaggedViewManager*) collection_view_manager_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_COLLECTION_PAGE, CollectionPage)); #line 11 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" return self; -#line 1021 "FlaggedPage.c" +#line 1022 "FlaggedPage.c" } static FlaggedPageFlaggedViewManager* flagged_page_flagged_view_manager_new (FlaggedPage* owner) { #line 11 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" return flagged_page_flagged_view_manager_construct (FLAGGED_PAGE_TYPE_FLAGGED_VIEW_MANAGER, owner); -#line 1028 "FlaggedPage.c" +#line 1029 "FlaggedPage.c" } static gpointer _g_object_ref0 (gpointer self) { #line 16 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" return self ? g_object_ref (self) : NULL; -#line 1035 "FlaggedPage.c" +#line 1036 "FlaggedPage.c" } @@ -1057,7 +1058,7 @@ static gboolean flagged_page_flagged_view_manager_real_include_in_view (ViewMana _tmp3_ = flaggable; #line 18 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" if (_tmp3_ != NULL) { -#line 1061 "FlaggedPage.c" +#line 1062 "FlaggedPage.c" Flaggable* _tmp4_ = NULL; gboolean _tmp5_ = FALSE; #line 18 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" @@ -1066,11 +1067,11 @@ static gboolean flagged_page_flagged_view_manager_real_include_in_view (ViewMana _tmp5_ = flaggable_is_flagged (_tmp4_); #line 18 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" _tmp2_ = _tmp5_; -#line 1070 "FlaggedPage.c" +#line 1071 "FlaggedPage.c" } else { #line 18 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" _tmp2_ = FALSE; -#line 1074 "FlaggedPage.c" +#line 1075 "FlaggedPage.c" } #line 18 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" result = _tmp2_; @@ -1078,7 +1079,7 @@ static gboolean flagged_page_flagged_view_manager_real_include_in_view (ViewMana _g_object_unref0 (flaggable); #line 18 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" return result; -#line 1082 "FlaggedPage.c" +#line 1083 "FlaggedPage.c" } @@ -1087,7 +1088,7 @@ static void flagged_page_flagged_view_manager_class_init (FlaggedPageFlaggedView flagged_page_flagged_view_manager_parent_class = g_type_class_peek_parent (klass); #line 10 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" ((ViewManagerClass *) klass)->include_in_view = flagged_page_flagged_view_manager_real_include_in_view; -#line 1091 "FlaggedPage.c" +#line 1092 "FlaggedPage.c" } @@ -1116,7 +1117,7 @@ static guint flagged_page_flagged_search_view_filter_real_get_criteria (SearchVi result = (guint) (((SEARCH_FILTER_CRITERIA_TEXT | SEARCH_FILTER_CRITERIA_MEDIA) | SEARCH_FILTER_CRITERIA_RATING) | SEARCH_FILTER_CRITERIA_SAVEDSEARCH); #line 24 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" return result; -#line 1120 "FlaggedPage.c" +#line 1121 "FlaggedPage.c" } @@ -1126,14 +1127,14 @@ static FlaggedPageFlaggedSearchViewFilter* flagged_page_flagged_search_view_filt self = (FlaggedPageFlaggedSearchViewFilter*) collection_page_collection_search_view_filter_construct (object_type); #line 22 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" return self; -#line 1130 "FlaggedPage.c" +#line 1131 "FlaggedPage.c" } static FlaggedPageFlaggedSearchViewFilter* flagged_page_flagged_search_view_filter_new (void) { #line 22 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" return flagged_page_flagged_search_view_filter_construct (FLAGGED_PAGE_TYPE_FLAGGED_SEARCH_VIEW_FILTER); -#line 1137 "FlaggedPage.c" +#line 1138 "FlaggedPage.c" } @@ -1142,7 +1143,7 @@ static void flagged_page_flagged_search_view_filter_class_init (FlaggedPageFlagg flagged_page_flagged_search_view_filter_parent_class = g_type_class_peek_parent (klass); #line 22 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" ((SearchViewFilterClass *) klass)->get_criteria = flagged_page_flagged_search_view_filter_real_get_criteria; -#line 1146 "FlaggedPage.c" +#line 1147 "FlaggedPage.c" } @@ -1175,7 +1176,7 @@ static void flagged_page_class_init (FlaggedPageClass * klass) { ((CheckerboardPageClass *) klass)->get_search_view_filter = flagged_page_real_get_search_view_filter; #line 7 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" G_OBJECT_CLASS (klass)->finalize = flagged_page_finalize; -#line 1179 "FlaggedPage.c" +#line 1180 "FlaggedPage.c" } @@ -1192,7 +1193,7 @@ static void flagged_page_instance_init (FlaggedPage * self) { _tmp1_ = flagged_page_flagged_search_view_filter_new (); #line 31 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" self->priv->search_filter = _tmp1_; -#line 1196 "FlaggedPage.c" +#line 1197 "FlaggedPage.c" } @@ -1208,7 +1209,7 @@ static void flagged_page_finalize (GObject* obj) { _view_filter_unref0 (self->priv->search_filter); #line 7 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" G_OBJECT_CLASS (flagged_page_parent_class)->finalize (obj); -#line 1212 "FlaggedPage.c" +#line 1213 "FlaggedPage.c" } diff --git a/src/library/FlaggedSidebarEntry.c b/src/library/FlaggedSidebarEntry.c index 7eb90aa..5ed7427 100644 --- a/src/library/FlaggedSidebarEntry.c +++ b/src/library/FlaggedSidebarEntry.c @@ -1,4 +1,4 @@ -/* FlaggedSidebarEntry.c generated by valac 0.32.1, the Vala compiler +/* FlaggedSidebarEntry.c generated by valac 0.34.4, the Vala compiler * generated from FlaggedSidebarEntry.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/library/ImportQueuePage.c b/src/library/ImportQueuePage.c index b46e179..b64083a 100644 --- a/src/library/ImportQueuePage.c +++ b/src/library/ImportQueuePage.c @@ -1,4 +1,4 @@ -/* ImportQueuePage.c generated by valac 0.32.1, the Vala compiler +/* ImportQueuePage.c generated by valac 0.34.4, the Vala compiler * generated from ImportQueuePage.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -12,12 +12,12 @@ #include <gtk/gtk.h> #include <stdlib.h> #include <string.h> +#include <gio/gio.h> #include <gee.h> #include <gdk/gdk.h> #include <cairo.h> #include <gdk-pixbuf/gdk-pixbuf.h> #include <glib/gi18n-lib.h> -#include <gio/gio.h> #include <float.h> #include <math.h> #include <pango/pango.h> @@ -112,16 +112,6 @@ typedef struct _BatchImport BatchImport; typedef struct _BatchImportClass BatchImportClass; #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; - #define TYPE_DATA_OBJECT (data_object_get_type ()) #define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) #define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) @@ -184,6 +174,16 @@ typedef struct _BatchImportRollClass BatchImportRollClass; #define TYPE_IMPORT_RESULT (import_result_get_type ()) +#define TYPE_APP_WINDOW (app_window_get_type ()) +#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) +#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) +#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) +#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) +#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) + +typedef struct _AppWindow AppWindow; +typedef struct _AppWindowClass AppWindowClass; + #define TYPE_DIRECTION (direction_get_type ()) #define TYPE_DATA_COLLECTION (data_collection_get_type ()) @@ -322,7 +322,8 @@ struct _PageClass { void (*ready) (Page* self); void (*switching_to_fullscreen) (Page* self, FullscreenWindow* fsw); void (*returning_from_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*add_actions) (Page* self); + void (*add_actions) (Page* self, GActionMap* map); + void (*remove_actions) (Page* self, GActionMap* map); void (*init_collect_ui_filenames) (Page* self, GeeList* ui_filenames); InjectionGroup** (*init_collect_injection_groups) (Page* self, int* result_length1); void (*init_actions) (Page* self, gint selected_count, gint count); @@ -468,10 +469,10 @@ SinglePhotoPage* single_photo_page_construct (GType object_type, const gchar* pa GtkToolbar* page_get_toolbar (Page* self); static void import_queue_page_real_init_collect_ui_filenames (Page* base, GeeList* ui_filenames); void page_init_collect_ui_filenames (Page* self, GeeList* ui_filenames); -static void import_queue_page_real_add_actions (Page* base); -void page_add_actions (Page* self); -GType app_window_get_type (void) G_GNUC_CONST; -AppWindow* app_window_get_instance (void); +static void import_queue_page_real_add_actions (Page* base, GActionMap* map); +void page_add_actions (Page* self, GActionMap* map); +static void import_queue_page_real_remove_actions (Page* base, GActionMap* map); +void page_remove_actions (Page* self, GActionMap* map); void import_queue_page_enqueue_and_schedule (ImportQueuePage* self, BatchImport* batch_import, gboolean allow_user_cancel); static void import_queue_page_on_starting (ImportQueuePage* self, BatchImport* batch_import); static void _import_queue_page_on_starting_batch_import_starting (BatchImport* _sender, gpointer self); @@ -508,6 +509,8 @@ void batch_import_schedule (BatchImport* self); static void import_queue_page_update_stop_action (ImportQueuePage* self); gint import_queue_page_get_batch_count (ImportQueuePage* self); void page_set_action_sensitive (Page* self, const gchar* name, gboolean sensitive); +GType app_window_get_type (void) G_GNUC_CONST; +AppWindow* app_window_get_instance (void); void page_window_set_busy_cursor (PageWindow* self); void batch_import_user_halt (BatchImport* self); gboolean page_is_in_view (Page* self); @@ -549,7 +552,7 @@ static const GActionEntry IMPORT_QUEUE_PAGE_entries[1] = {{"Stop", _import_queue static void _import_queue_page_on_stop_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 62 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" import_queue_page_on_stop ((ImportQueuePage*) self); -#line 553 "ImportQueuePage.c" +#line 556 "ImportQueuePage.c" } @@ -621,14 +624,14 @@ ImportQueuePage* import_queue_page_construct (GType object_type) { _g_object_unref0 (toolbar); #line 24 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" return self; -#line 625 "ImportQueuePage.c" +#line 628 "ImportQueuePage.c" } ImportQueuePage* import_queue_page_new (void) { #line 24 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" return import_queue_page_construct (TYPE_IMPORT_QUEUE_PAGE); -#line 632 "ImportQueuePage.c" +#line 635 "ImportQueuePage.c" } @@ -648,69 +651,116 @@ static void import_queue_page_real_init_collect_ui_filenames (Page* base, GeeLis _tmp1_ = ui_filenames; #line 59 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" PAGE_CLASS (import_queue_page_parent_class)->init_collect_ui_filenames (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page), _tmp1_); -#line 652 "ImportQueuePage.c" +#line 655 "ImportQueuePage.c" } -static void import_queue_page_real_add_actions (Page* base) { +static void import_queue_page_real_add_actions (Page* base, GActionMap* map) { ImportQueuePage * self; - AppWindow* _tmp0_ = NULL; - AppWindow* _tmp1_ = NULL; + GActionMap* _tmp0_ = NULL; + GActionMap* _tmp1_ = NULL; #line 66 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_QUEUE_PAGE, ImportQueuePage); +#line 66 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" + g_return_if_fail (G_IS_ACTION_MAP (map)); #line 67 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - PAGE_CLASS (import_queue_page_parent_class)->add_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page)); -#line 69 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp0_ = app_window_get_instance (); -#line 69 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp1_ = _tmp0_; + _tmp0_ = map; +#line 67 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" + PAGE_CLASS (import_queue_page_parent_class)->add_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page), _tmp0_); #line 69 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_action_map_add_action_entries (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, g_action_map_get_type (), GActionMap), IMPORT_QUEUE_PAGE_entries, G_N_ELEMENTS (IMPORT_QUEUE_PAGE_entries), self); + _tmp1_ = map; #line 69 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _g_object_unref0 (_tmp1_); -#line 672 "ImportQueuePage.c" + g_action_map_add_action_entries (_tmp1_, IMPORT_QUEUE_PAGE_entries, G_N_ELEMENTS (IMPORT_QUEUE_PAGE_entries), self); +#line 675 "ImportQueuePage.c" } -static void _import_queue_page_on_starting_batch_import_starting (BatchImport* _sender, gpointer self) { +static void import_queue_page_real_remove_actions (Page* base, GActionMap* map) { + ImportQueuePage * self; + GActionMap* _tmp0_ = NULL; +#line 72 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" + self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_QUEUE_PAGE, ImportQueuePage); +#line 72 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" + g_return_if_fail (G_IS_ACTION_MAP (map)); +#line 73 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" + _tmp0_ = map; +#line 73 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" + PAGE_CLASS (import_queue_page_parent_class)->remove_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page), _tmp0_); +#line 690 "ImportQueuePage.c" + { + GActionEntry* entry_collection = NULL; + gint entry_collection_length1 = 0; + gint _entry_collection_size_ = 0; + gint entry_it = 0; +#line 74 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" + entry_collection = IMPORT_QUEUE_PAGE_entries; +#line 74 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" + entry_collection_length1 = G_N_ELEMENTS (IMPORT_QUEUE_PAGE_entries); +#line 74 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" + for (entry_it = 0; entry_it < G_N_ELEMENTS (IMPORT_QUEUE_PAGE_entries); entry_it = entry_it + 1) { +#line 702 "ImportQueuePage.c" + GActionEntry entry = {0}; +#line 74 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" + entry = entry_collection[entry_it]; +#line 706 "ImportQueuePage.c" + { + GActionMap* _tmp1_ = NULL; + GActionEntry _tmp2_ = {0}; + const gchar* _tmp3_ = NULL; +#line 75 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" + _tmp1_ = map; +#line 75 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" + _tmp2_ = entry; +#line 75 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" + _tmp3_ = _tmp2_.name; #line 75 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" + g_action_map_remove_action (_tmp1_, _tmp3_); +#line 719 "ImportQueuePage.c" + } + } + } +} + + +static void _import_queue_page_on_starting_batch_import_starting (BatchImport* _sender, gpointer self) { +#line 82 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" import_queue_page_on_starting ((ImportQueuePage*) self, _sender); -#line 679 "ImportQueuePage.c" +#line 729 "ImportQueuePage.c" } static void _import_queue_page_on_preparing_batch_import_preparing (BatchImport* _sender, gpointer self) { -#line 76 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 83 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" import_queue_page_on_preparing ((ImportQueuePage*) self); -#line 686 "ImportQueuePage.c" +#line 736 "ImportQueuePage.c" } static void _import_queue_page_on_progress_batch_import_progress (BatchImport* _sender, guint64 completed_bytes, guint64 total_bytes, gpointer self) { -#line 77 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 84 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" import_queue_page_on_progress ((ImportQueuePage*) self, completed_bytes, total_bytes); -#line 693 "ImportQueuePage.c" +#line 743 "ImportQueuePage.c" } static void _import_queue_page_on_imported_batch_import_imported (BatchImport* _sender, MediaSource* source, GdkPixbuf* pixbuf, gint to_follow, gpointer self) { -#line 78 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 85 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" import_queue_page_on_imported ((ImportQueuePage*) self, source, pixbuf, to_follow); -#line 700 "ImportQueuePage.c" +#line 750 "ImportQueuePage.c" } static void _import_queue_page_on_import_complete_batch_import_import_complete (BatchImport* _sender, ImportManifest* manifest, BatchImportRoll* import_roll, gpointer self) { -#line 79 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 86 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" import_queue_page_on_import_complete ((ImportQueuePage*) self, _sender, manifest, import_roll); -#line 707 "ImportQueuePage.c" +#line 757 "ImportQueuePage.c" } static void _import_queue_page_on_fatal_error_batch_import_fatal_error (BatchImport* _sender, ImportResult _result_, const gchar* message, gpointer self) { -#line 80 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 87 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" import_queue_page_on_fatal_error ((ImportQueuePage*) self, _result_, message); -#line 714 "ImportQueuePage.c" +#line 764 "ImportQueuePage.c" } @@ -731,86 +781,86 @@ void import_queue_page_enqueue_and_schedule (ImportQueuePage* self, BatchImport* GeeArrayList* _tmp15_ = NULL; gint _tmp16_ = 0; gint _tmp17_ = 0; -#line 72 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 79 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" g_return_if_fail (IS_IMPORT_QUEUE_PAGE (self)); -#line 72 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 79 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" g_return_if_fail (IS_BATCH_IMPORT (batch_import)); -#line 73 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 80 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp0_ = self->priv->queue; -#line 73 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 80 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp1_ = batch_import; -#line 73 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 80 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp2_ = gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp1_); -#line 73 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 80 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _vala_assert (!_tmp2_, "!queue.contains(batch_import)"); -#line 75 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 82 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp3_ = batch_import; -#line 75 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 82 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" g_signal_connect_object (_tmp3_, "starting", (GCallback) _import_queue_page_on_starting_batch_import_starting, self, 0); -#line 76 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 83 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp4_ = batch_import; -#line 76 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 83 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" g_signal_connect_object (_tmp4_, "preparing", (GCallback) _import_queue_page_on_preparing_batch_import_preparing, self, 0); -#line 77 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 84 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp5_ = batch_import; -#line 77 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 84 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" g_signal_connect_object (_tmp5_, "progress", (GCallback) _import_queue_page_on_progress_batch_import_progress, self, 0); -#line 78 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 85 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp6_ = batch_import; -#line 78 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 85 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" g_signal_connect_object (_tmp6_, "imported", (GCallback) _import_queue_page_on_imported_batch_import_imported, self, 0); -#line 79 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 86 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp7_ = batch_import; -#line 79 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 86 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" g_signal_connect_object (_tmp7_, "import-complete", (GCallback) _import_queue_page_on_import_complete_batch_import_import_complete, self, 0); -#line 80 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 87 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp8_ = batch_import; -#line 80 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 87 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" g_signal_connect_object (_tmp8_, "fatal-error", (GCallback) _import_queue_page_on_fatal_error_batch_import_fatal_error, self, 0); -#line 82 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 89 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp9_ = allow_user_cancel; -#line 82 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 89 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" if (!_tmp9_) { -#line 775 "ImportQueuePage.c" +#line 825 "ImportQueuePage.c" GeeHashSet* _tmp10_ = NULL; BatchImport* _tmp11_ = NULL; -#line 83 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 90 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp10_ = self->priv->cancel_unallowed; -#line 83 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 90 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp11_ = batch_import; -#line 83 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 90 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp11_); -#line 784 "ImportQueuePage.c" +#line 834 "ImportQueuePage.c" } -#line 85 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 92 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp12_ = self->priv->queue; -#line 85 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 92 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp13_ = batch_import; -#line 85 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 92 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp13_); -#line 86 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 93 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp14_ = batch_import; -#line 86 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 93 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" g_signal_emit_by_name (self, "batch-added", _tmp14_); -#line 88 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 95 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp15_ = self->priv->queue; -#line 88 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 95 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp16_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 88 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 95 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp17_ = _tmp16_; -#line 88 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 95 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" if (_tmp17_ == 1) { -#line 804 "ImportQueuePage.c" +#line 854 "ImportQueuePage.c" BatchImport* _tmp18_ = NULL; -#line 89 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 96 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp18_ = batch_import; -#line 89 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 96 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" batch_import_schedule (_tmp18_); -#line 810 "ImportQueuePage.c" +#line 860 "ImportQueuePage.c" } -#line 91 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 98 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" import_queue_page_update_stop_action (self); -#line 814 "ImportQueuePage.c" +#line 864 "ImportQueuePage.c" } @@ -819,19 +869,19 @@ gint import_queue_page_get_batch_count (ImportQueuePage* self) { GeeArrayList* _tmp0_ = NULL; gint _tmp1_ = 0; gint _tmp2_ = 0; -#line 94 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 101 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" g_return_val_if_fail (IS_IMPORT_QUEUE_PAGE (self), 0); -#line 95 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 102 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp0_ = self->priv->queue; -#line 95 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 102 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp1_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 95 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 102 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp2_ = _tmp1_; -#line 95 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 102 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" result = _tmp2_; -#line 95 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 102 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" return result; -#line 835 "ImportQueuePage.c" +#line 885 "ImportQueuePage.c" } @@ -840,44 +890,44 @@ static void import_queue_page_update_stop_action (ImportQueuePage* self) { GeeHashSet* _tmp1_ = NULL; BatchImport* _tmp2_ = NULL; gboolean _tmp3_ = FALSE; -#line 98 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 105 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" g_return_if_fail (IS_IMPORT_QUEUE_PAGE (self)); -#line 99 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 106 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp1_ = self->priv->cancel_unallowed; -#line 99 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 106 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp2_ = self->priv->current_batch; -#line 99 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 106 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp3_ = gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp2_); -#line 99 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 106 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" if (!_tmp3_) { -#line 854 "ImportQueuePage.c" +#line 904 "ImportQueuePage.c" GeeArrayList* _tmp4_ = NULL; gint _tmp5_ = 0; gint _tmp6_ = 0; -#line 99 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 106 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp4_ = self->priv->queue; -#line 99 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 106 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp5_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 99 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 106 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp6_ = _tmp5_; -#line 99 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 106 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp0_ = _tmp6_ > 0; -#line 866 "ImportQueuePage.c" +#line 916 "ImportQueuePage.c" } else { -#line 99 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 106 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp0_ = FALSE; -#line 870 "ImportQueuePage.c" +#line 920 "ImportQueuePage.c" } -#line 99 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 106 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Stop", _tmp0_); -#line 874 "ImportQueuePage.c" +#line 924 "ImportQueuePage.c" } static gpointer _g_object_ref0 (gpointer self) { -#line 112 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" return self ? g_object_ref (self) : NULL; -#line 881 "ImportQueuePage.c" +#line 931 "ImportQueuePage.c" } @@ -887,33 +937,33 @@ static void import_queue_page_on_stop (ImportQueuePage* self) { gint _tmp2_ = 0; AppWindow* _tmp3_ = NULL; AppWindow* _tmp4_ = NULL; -#line 102 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 109 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" g_return_if_fail (IS_IMPORT_QUEUE_PAGE (self)); -#line 103 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 110 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" import_queue_page_update_stop_action (self); -#line 105 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 112 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp0_ = self->priv->queue; -#line 105 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 112 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp1_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 105 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 112 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp2_ = _tmp1_; -#line 105 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 112 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" if (_tmp2_ == 0) { -#line 106 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 113 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" return; -#line 905 "ImportQueuePage.c" +#line 955 "ImportQueuePage.c" } -#line 108 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 115 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp3_ = app_window_get_instance (); -#line 108 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 115 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp4_ = _tmp3_; -#line 108 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 115 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_PAGE_WINDOW, PageWindow)); -#line 108 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 115 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _g_object_unref0 (_tmp4_); -#line 109 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 116 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" self->priv->stopped = TRUE; -#line 917 "ImportQueuePage.c" +#line 967 "ImportQueuePage.c" { GeeArrayList* _batch_import_list = NULL; GeeArrayList* _tmp5_ = NULL; @@ -923,25 +973,25 @@ static void import_queue_page_on_stop (ImportQueuePage* self) { gint _tmp8_ = 0; gint _tmp9_ = 0; gint _batch_import_index = 0; -#line 112 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp5_ = self->priv->queue; -#line 112 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp6_ = _g_object_ref0 (_tmp5_); -#line 112 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _batch_import_list = _tmp6_; -#line 112 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp7_ = _batch_import_list; -#line 112 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp8_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 112 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp9_ = _tmp8_; -#line 112 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _batch_import_size = _tmp9_; -#line 112 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _batch_import_index = -1; -#line 112 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" while (TRUE) { -#line 945 "ImportQueuePage.c" +#line 995 "ImportQueuePage.c" gint _tmp10_ = 0; gint _tmp11_ = 0; gint _tmp12_ = 0; @@ -950,39 +1000,39 @@ static void import_queue_page_on_stop (ImportQueuePage* self) { gint _tmp14_ = 0; gpointer _tmp15_ = NULL; BatchImport* _tmp16_ = NULL; -#line 112 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp10_ = _batch_import_index; -#line 112 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _batch_import_index = _tmp10_ + 1; -#line 112 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp11_ = _batch_import_index; -#line 112 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp12_ = _batch_import_size; -#line 112 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" if (!(_tmp11_ < _tmp12_)) { -#line 112 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" break; -#line 966 "ImportQueuePage.c" +#line 1016 "ImportQueuePage.c" } -#line 112 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp13_ = _batch_import_list; -#line 112 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp14_ = _batch_import_index; -#line 112 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp15_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp14_); -#line 112 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" batch_import = (BatchImport*) _tmp15_; -#line 113 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 120 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp16_ = batch_import; -#line 113 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 120 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" batch_import_user_halt (_tmp16_); -#line 112 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _g_object_unref0 (batch_import); -#line 982 "ImportQueuePage.c" +#line 1032 "ImportQueuePage.c" } -#line 112 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _g_object_unref0 (_batch_import_list); -#line 986 "ImportQueuePage.c" +#line 1036 "ImportQueuePage.c" } } @@ -990,21 +1040,21 @@ static void import_queue_page_on_stop (ImportQueuePage* self) { static void import_queue_page_on_starting (ImportQueuePage* self, BatchImport* batch_import) { BatchImport* _tmp0_ = NULL; BatchImport* _tmp1_ = NULL; -#line 116 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 123 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" g_return_if_fail (IS_IMPORT_QUEUE_PAGE (self)); -#line 116 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 123 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" g_return_if_fail (IS_BATCH_IMPORT (batch_import)); -#line 117 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 124 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" import_queue_page_update_stop_action (self); -#line 118 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 125 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp0_ = batch_import; -#line 118 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 125 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp1_ = _g_object_ref0 (_tmp0_); -#line 118 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 125 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _g_object_unref0 (self->priv->current_batch); -#line 118 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 125 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" self->priv->current_batch = _tmp1_; -#line 1008 "ImportQueuePage.c" +#line 1058 "ImportQueuePage.c" } @@ -1012,19 +1062,19 @@ static void import_queue_page_on_preparing (ImportQueuePage* self) { GtkProgressBar* _tmp0_ = NULL; const gchar* _tmp1_ = NULL; GtkProgressBar* _tmp2_ = NULL; -#line 121 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 128 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" g_return_if_fail (IS_IMPORT_QUEUE_PAGE (self)); -#line 122 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 129 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp0_ = self->priv->progress_bar; -#line 122 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 129 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp1_ = _ ("Preparing to import…"); -#line 122 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 129 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" gtk_progress_bar_set_text (_tmp0_, _tmp1_); -#line 123 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 130 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp2_ = self->priv->progress_bar; -#line 123 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 130 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" gtk_progress_bar_pulse (_tmp2_); -#line 1028 "ImportQueuePage.c" +#line 1078 "ImportQueuePage.c" } @@ -1034,36 +1084,36 @@ static void import_queue_page_on_progress (ImportQueuePage* self, guint64 comple guint64 _tmp2_ = 0ULL; gdouble pct = 0.0; GtkProgressBar* _tmp5_ = NULL; -#line 126 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 133 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" g_return_if_fail (IS_IMPORT_QUEUE_PAGE (self)); -#line 127 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 134 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp1_ = completed_bytes; -#line 127 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 134 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp2_ = total_bytes; -#line 127 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 134 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" if (_tmp1_ <= _tmp2_) { -#line 1046 "ImportQueuePage.c" +#line 1096 "ImportQueuePage.c" guint64 _tmp3_ = 0ULL; guint64 _tmp4_ = 0ULL; -#line 127 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 134 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp3_ = completed_bytes; -#line 127 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 134 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp4_ = total_bytes; -#line 127 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 134 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp0_ = ((gdouble) _tmp3_) / ((gdouble) _tmp4_); -#line 1055 "ImportQueuePage.c" +#line 1105 "ImportQueuePage.c" } else { -#line 128 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 135 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp0_ = 0.0; -#line 1059 "ImportQueuePage.c" +#line 1109 "ImportQueuePage.c" } -#line 127 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 134 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" pct = _tmp0_; -#line 129 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 136 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp5_ = self->priv->progress_bar; -#line 129 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 136 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" gtk_progress_bar_set_fraction (_tmp5_, pct); -#line 1067 "ImportQueuePage.c" +#line 1117 "ImportQueuePage.c" } @@ -1085,79 +1135,79 @@ static void import_queue_page_on_imported (ImportQueuePage* self, ThumbnailSourc gchar* _tmp27_ = NULL; gchar* _tmp28_ = NULL; gchar* _tmp29_ = NULL; -#line 136 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 143 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" g_return_if_fail (IS_IMPORT_QUEUE_PAGE (self)); -#line 136 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 143 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" g_return_if_fail (IS_THUMBNAIL_SOURCE (source)); -#line 136 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 143 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" g_return_if_fail (GDK_IS_PIXBUF (pixbuf)); -#line 138 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 145 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp1_ = to_follow; -#line 138 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 145 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" if (_tmp1_ > 0) { -#line 138 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 145 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp0_ = TRUE; -#line 1101 "ImportQueuePage.c" +#line 1151 "ImportQueuePage.c" } else { gboolean _tmp2_ = FALSE; -#line 138 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 145 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp2_ = page_is_in_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 138 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 145 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp0_ = !_tmp2_; -#line 1108 "ImportQueuePage.c" +#line 1158 "ImportQueuePage.c" } -#line 138 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 145 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" if (_tmp0_) { -#line 139 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 146 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" return; -#line 1114 "ImportQueuePage.c" +#line 1164 "ImportQueuePage.c" } -#line 141 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 148 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp3_ = pixbuf; -#line 141 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 148 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp4_ = pixbuf; -#line 141 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 148 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" dimensions_for_pixbuf (_tmp4_, &_tmp5_); -#line 141 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 148 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" single_photo_page_set_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), _tmp3_, &_tmp5_, NULL); -#line 144 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 151 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp6_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 144 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 151 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp7_ = _tmp6_; -#line 144 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 151 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" data_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_COLLECTION, DataCollection)); -#line 144 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 151 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _data_collection_unref0 (_tmp7_); -#line 145 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 152 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp9_ = source; -#line 145 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 152 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, TYPE_LIBRARY_PHOTO)) { -#line 1136 "ImportQueuePage.c" +#line 1186 "ImportQueuePage.c" ViewCollection* _tmp10_ = NULL; ViewCollection* _tmp11_ = NULL; ThumbnailSource* _tmp12_ = NULL; PhotoView* _tmp13_ = NULL; PhotoView* _tmp14_ = NULL; gboolean _tmp15_ = FALSE; -#line 145 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 152 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp10_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 145 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 152 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp11_ = _tmp10_; -#line 145 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 152 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp12_ = source; -#line 145 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 152 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp13_ = photo_view_new (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_TYPE (_tmp12_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp12_) : NULL, TYPE_PHOTO_SOURCE, PhotoSource)); -#line 145 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 152 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp14_ = _tmp13_; -#line 145 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 152 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp15_ = data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_DATA_OBJECT, DataObject)); -#line 145 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 152 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp8_ = _tmp15_; -#line 145 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 152 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _g_object_unref0 (_tmp14_); -#line 145 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 152 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _data_collection_unref0 (_tmp11_); -#line 1161 "ImportQueuePage.c" +#line 1211 "ImportQueuePage.c" } else { ViewCollection* _tmp16_ = NULL; ViewCollection* _tmp17_ = NULL; @@ -1165,51 +1215,51 @@ static void import_queue_page_on_imported (ImportQueuePage* self, ThumbnailSourc VideoView* _tmp19_ = NULL; VideoView* _tmp20_ = NULL; gboolean _tmp21_ = FALSE; -#line 146 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 153 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp16_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 146 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 153 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp17_ = _tmp16_; -#line 146 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 153 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp18_ = source; -#line 146 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 153 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp19_ = video_view_new (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_TYPE (_tmp18_, TYPE_VIDEO) ? ((Video*) _tmp18_) : NULL, TYPE_VIDEO_SOURCE, VideoSource)); -#line 146 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 153 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp20_ = _tmp19_; -#line 146 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 153 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp21_ = data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_DATA_OBJECT, DataObject)); -#line 146 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 153 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp8_ = _tmp21_; -#line 146 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 153 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _g_object_unref0 (_tmp20_); -#line 146 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 153 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _data_collection_unref0 (_tmp17_); -#line 1187 "ImportQueuePage.c" +#line 1237 "ImportQueuePage.c" } -#line 148 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 155 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp22_ = self->priv->progress_bar; -#line 148 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 155 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" gtk_progress_bar_set_ellipsize (_tmp22_, PANGO_ELLIPSIZE_MIDDLE); -#line 149 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 156 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp23_ = self->priv->progress_bar; -#line 149 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 156 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp24_ = _ ("Imported %s"); -#line 149 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 156 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp25_ = source; -#line 149 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 156 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp26_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_DATA_OBJECT, DataObject)); -#line 149 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 156 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp27_ = _tmp26_; -#line 149 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 156 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp28_ = g_strdup_printf (_tmp24_, _tmp27_); -#line 149 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 156 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp29_ = _tmp28_; -#line 149 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 156 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" gtk_progress_bar_set_text (_tmp23_, _tmp29_); -#line 149 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 156 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _g_free0 (_tmp29_); -#line 149 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 156 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _g_free0 (_tmp27_); -#line 1213 "ImportQueuePage.c" +#line 1263 "ImportQueuePage.c" } @@ -1246,182 +1296,182 @@ static void import_queue_page_on_import_complete (ImportQueuePage* self, BatchIm gint _tmp28_ = 0; gint _tmp29_ = 0; BatchImport* _tmp39_ = NULL; -#line 152 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 159 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" g_return_if_fail (IS_IMPORT_QUEUE_PAGE (self)); -#line 152 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 159 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" g_return_if_fail (IS_BATCH_IMPORT (batch_import)); -#line 152 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 159 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" g_return_if_fail (IS_IMPORT_MANIFEST (manifest)); -#line 152 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 159 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" g_return_if_fail (IS_BATCH_IMPORT_ROLL (import_roll)); -#line 154 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 161 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp0_ = batch_import; -#line 154 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 161 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp1_ = self->priv->current_batch; -#line 154 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 161 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _vala_assert (_tmp0_ == _tmp1_, "batch_import == current_batch"); -#line 155 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 162 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _g_object_unref0 (self->priv->current_batch); -#line 155 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 162 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" self->priv->current_batch = NULL; -#line 157 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 164 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp2_ = self->priv->queue; -#line 157 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 164 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp3_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 157 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 164 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp4_ = _tmp3_; -#line 157 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 164 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _vala_assert (_tmp4_ > 0, "queue.size > 0"); -#line 158 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 165 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp5_ = self->priv->queue; -#line 158 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 165 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp6_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0); -#line 158 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 165 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp7_ = (BatchImport*) _tmp6_; -#line 158 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 165 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp8_ = batch_import; -#line 158 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 165 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _vala_assert (_tmp7_ == _tmp8_, "queue.get(0) == batch_import"); -#line 158 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 165 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _g_object_unref0 (_tmp7_); -#line 160 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 167 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp9_ = self->priv->queue; -#line 160 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 167 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp10_ = batch_import; -#line 160 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 167 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp11_ = gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp10_); -#line 160 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 167 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" removed = _tmp11_; -#line 161 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 168 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp12_ = removed; -#line 161 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 168 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _vala_assert (_tmp12_, "removed"); -#line 164 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 171 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp13_ = self->priv->cancel_unallowed; -#line 164 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 171 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp14_ = batch_import; -#line 164 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 171 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp14_); -#line 167 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 174 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp15_ = batch_import; -#line 167 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 174 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" g_signal_parse_name ("starting", TYPE_BATCH_IMPORT, &_tmp16_, NULL, FALSE); -#line 167 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 174 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" g_signal_handlers_disconnect_matched (_tmp15_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp16_, 0, NULL, (GCallback) _import_queue_page_on_starting_batch_import_starting, self); -#line 168 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 175 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp17_ = batch_import; -#line 168 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 175 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" g_signal_parse_name ("preparing", TYPE_BATCH_IMPORT, &_tmp18_, NULL, FALSE); -#line 168 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 175 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" g_signal_handlers_disconnect_matched (_tmp17_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp18_, 0, NULL, (GCallback) _import_queue_page_on_preparing_batch_import_preparing, self); -#line 169 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 176 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp19_ = batch_import; -#line 169 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 176 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" g_signal_parse_name ("progress", TYPE_BATCH_IMPORT, &_tmp20_, NULL, FALSE); -#line 169 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 176 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" g_signal_handlers_disconnect_matched (_tmp19_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp20_, 0, NULL, (GCallback) _import_queue_page_on_progress_batch_import_progress, self); -#line 170 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 177 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp21_ = batch_import; -#line 170 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 177 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" g_signal_parse_name ("imported", TYPE_BATCH_IMPORT, &_tmp22_, NULL, FALSE); -#line 170 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 177 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" g_signal_handlers_disconnect_matched (_tmp21_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp22_, 0, NULL, (GCallback) _import_queue_page_on_imported_batch_import_imported, self); -#line 171 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 178 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp23_ = batch_import; -#line 171 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 178 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" g_signal_parse_name ("import-complete", TYPE_BATCH_IMPORT, &_tmp24_, NULL, FALSE); -#line 171 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 178 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" g_signal_handlers_disconnect_matched (_tmp23_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp24_, 0, NULL, (GCallback) _import_queue_page_on_import_complete_batch_import_import_complete, self); -#line 172 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 179 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp25_ = batch_import; -#line 172 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 179 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" g_signal_parse_name ("fatal-error", TYPE_BATCH_IMPORT, &_tmp26_, NULL, FALSE); -#line 172 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 179 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" g_signal_handlers_disconnect_matched (_tmp25_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp26_, 0, NULL, (GCallback) _import_queue_page_on_fatal_error_batch_import_fatal_error, self); -#line 175 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 182 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp27_ = self->priv->queue; -#line 175 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 182 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp28_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 175 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 182 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp29_ = _tmp28_; -#line 175 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 182 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" if (_tmp29_ > 0) { -#line 1350 "ImportQueuePage.c" +#line 1400 "ImportQueuePage.c" GeeArrayList* _tmp30_ = NULL; gpointer _tmp31_ = NULL; BatchImport* _tmp32_ = NULL; -#line 176 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 183 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp30_ = self->priv->queue; -#line 176 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 183 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp31_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0); -#line 176 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 183 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp32_ = (BatchImport*) _tmp31_; -#line 176 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 183 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" batch_import_schedule (_tmp32_); -#line 176 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 183 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _g_object_unref0 (_tmp32_); -#line 1364 "ImportQueuePage.c" +#line 1414 "ImportQueuePage.c" } else { GtkProgressBar* _tmp33_ = NULL; GtkProgressBar* _tmp34_ = NULL; GtkProgressBar* _tmp35_ = NULL; gboolean _tmp36_ = FALSE; -#line 179 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 186 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp33_ = self->priv->progress_bar; -#line 179 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 186 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" gtk_progress_bar_set_ellipsize (_tmp33_, PANGO_ELLIPSIZE_NONE); -#line 180 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 187 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp34_ = self->priv->progress_bar; -#line 180 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 187 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" gtk_progress_bar_set_text (_tmp34_, ""); -#line 181 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 188 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp35_ = self->priv->progress_bar; -#line 181 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - gtk_progress_bar_set_fraction (_tmp35_, 0.0); #line 188 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" + gtk_progress_bar_set_fraction (_tmp35_, 0.0); +#line 195 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" single_photo_page_blank_display (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)); -#line 191 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 198 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp36_ = self->priv->stopped; -#line 191 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 198 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" if (_tmp36_) { -#line 1388 "ImportQueuePage.c" +#line 1438 "ImportQueuePage.c" AppWindow* _tmp37_ = NULL; AppWindow* _tmp38_ = NULL; -#line 192 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 199 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp37_ = app_window_get_instance (); -#line 192 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 199 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp38_ = _tmp37_; -#line 192 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 199 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, TYPE_PAGE_WINDOW, PageWindow)); -#line 192 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 199 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _g_object_unref0 (_tmp38_); -#line 1399 "ImportQueuePage.c" +#line 1449 "ImportQueuePage.c" } -#line 194 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 201 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" self->priv->stopped = FALSE; -#line 1403 "ImportQueuePage.c" +#line 1453 "ImportQueuePage.c" } -#line 197 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 204 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" import_queue_page_update_stop_action (self); -#line 200 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 207 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp39_ = batch_import; -#line 200 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 207 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" g_signal_emit_by_name (self, "batch-removed", _tmp39_); -#line 1411 "ImportQueuePage.c" +#line 1461 "ImportQueuePage.c" } static void import_queue_page_on_fatal_error (ImportQueuePage* self, ImportResult _result_, const gchar* message) { const gchar* _tmp0_ = NULL; -#line 203 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 210 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" g_return_if_fail (IS_IMPORT_QUEUE_PAGE (self)); -#line 203 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 210 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" g_return_if_fail (message != NULL); -#line 204 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 211 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" _tmp0_ = message; -#line 204 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" +#line 211 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" app_window_error_message (_tmp0_, NULL); -#line 1425 "ImportQueuePage.c" +#line 1475 "ImportQueuePage.c" } @@ -1435,12 +1485,14 @@ static void import_queue_page_class_init (ImportQueuePageClass * klass) { #line 7 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" ((PageClass *) klass)->add_actions = import_queue_page_real_add_actions; #line 7 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" + ((PageClass *) klass)->remove_actions = import_queue_page_real_remove_actions; +#line 7 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" G_OBJECT_CLASS (klass)->finalize = import_queue_page_finalize; #line 7 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" g_signal_new ("batch_added", TYPE_IMPORT_QUEUE_PAGE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, TYPE_BATCH_IMPORT); #line 7 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" g_signal_new ("batch_removed", TYPE_IMPORT_QUEUE_PAGE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, TYPE_BATCH_IMPORT); -#line 1444 "ImportQueuePage.c" +#line 1496 "ImportQueuePage.c" } @@ -1468,7 +1520,7 @@ static void import_queue_page_instance_init (ImportQueuePage * self) { self->priv->progress_bar = _tmp2_; #line 14 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" self->priv->stopped = FALSE; -#line 1472 "ImportQueuePage.c" +#line 1524 "ImportQueuePage.c" } @@ -1486,7 +1538,7 @@ static void import_queue_page_finalize (GObject* obj) { _g_object_unref0 (self->priv->progress_bar); #line 7 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" G_OBJECT_CLASS (import_queue_page_parent_class)->finalize (obj); -#line 1490 "ImportQueuePage.c" +#line 1542 "ImportQueuePage.c" } diff --git a/src/library/ImportQueuePage.vala b/src/library/ImportQueuePage.vala index a2f2290..feb525d 100644 --- a/src/library/ImportQueuePage.vala +++ b/src/library/ImportQueuePage.vala @@ -63,12 +63,19 @@ public class ImportQueuePage : SinglePhotoPage { {"Stop", on_stop } }; - protected override void add_actions () { - base.add_actions (); + protected override void add_actions (GLib.ActionMap map) { + base.add_actions(map); - AppWindow.get_instance ().add_action_entries (entries, this); + map.add_action_entries(entries, this); } - + + protected override void remove_actions(GLib.ActionMap map) { + base.remove_actions(map); + foreach (var entry in entries) { + map.remove_action(entry.name); + } + } + public void enqueue_and_schedule(BatchImport batch_import, bool allow_user_cancel) { assert(!queue.contains(batch_import)); diff --git a/src/library/ImportQueueSidebarEntry.c b/src/library/ImportQueueSidebarEntry.c index 8b71718..fb038d9 100644 --- a/src/library/ImportQueueSidebarEntry.c +++ b/src/library/ImportQueueSidebarEntry.c @@ -1,4 +1,4 @@ -/* ImportQueueSidebarEntry.c generated by valac 0.32.1, the Vala compiler +/* ImportQueueSidebarEntry.c generated by valac 0.34.4, the Vala compiler * generated from ImportQueueSidebarEntry.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/library/LastImportPage.c b/src/library/LastImportPage.c index fbec432..bfaa3ed 100644 --- a/src/library/LastImportPage.c +++ b/src/library/LastImportPage.c @@ -1,4 +1,4 @@ -/* LastImportPage.c generated by valac 0.32.1, the Vala compiler +/* LastImportPage.c generated by valac 0.34.4, the Vala compiler * generated from LastImportPage.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -12,9 +12,9 @@ #include <gtk/gtk.h> #include <stdlib.h> #include <string.h> +#include <gio/gio.h> #include <gee.h> #include <gdk/gdk.h> -#include <gio/gio.h> #include <glib/gi18n-lib.h> @@ -385,7 +385,8 @@ struct _PageClass { void (*ready) (Page* self); void (*switching_to_fullscreen) (Page* self, FullscreenWindow* fsw); void (*returning_from_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*add_actions) (Page* self); + void (*add_actions) (Page* self, GActionMap* map); + void (*remove_actions) (Page* self, GActionMap* map); void (*init_collect_ui_filenames) (Page* self, GeeList* ui_filenames); InjectionGroup** (*init_collect_injection_groups) (Page* self, int* result_length1); void (*init_actions) (Page* self, gint selected_count, gint count); @@ -708,7 +709,7 @@ static void last_import_page_finalize (GObject* obj); static void _last_import_page_on_import_rolls_altered_media_source_collection_import_roll_altered (MediaSourceCollection* _sender, gpointer self) { #line 41 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" last_import_page_on_import_rolls_altered ((LastImportPage*) self); -#line 712 "LastImportPage.c" +#line 713 "LastImportPage.c" } @@ -716,7 +717,7 @@ LastImportPage* last_import_page_construct (GType object_type) { LastImportPage * self = NULL; #line 28 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" self = (LastImportPage*) collection_page_construct (object_type, LAST_IMPORT_PAGE_NAME); -#line 720 "LastImportPage.c" +#line 721 "LastImportPage.c" { GeeIterator* _col_it = NULL; MediaCollectionRegistry* _tmp0_ = NULL; @@ -745,7 +746,7 @@ LastImportPage* last_import_page_construct (GType object_type) { _col_it = _tmp5_; #line 31 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" while (TRUE) { -#line 749 "LastImportPage.c" +#line 750 "LastImportPage.c" GeeIterator* _tmp6_ = NULL; gboolean _tmp7_ = FALSE; MediaSourceCollection* col = NULL; @@ -760,7 +761,7 @@ LastImportPage* last_import_page_construct (GType object_type) { if (!_tmp7_) { #line 31 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" break; -#line 764 "LastImportPage.c" +#line 765 "LastImportPage.c" } #line 31 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" _tmp8_ = _col_it; @@ -774,24 +775,24 @@ LastImportPage* last_import_page_construct (GType object_type) { g_signal_connect_object (_tmp10_, "import-roll-altered", (GCallback) _last_import_page_on_import_rolls_altered_media_source_collection_import_roll_altered, self, 0); #line 31 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" _data_collection_unref0 (col); -#line 778 "LastImportPage.c" +#line 779 "LastImportPage.c" } #line 31 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" _g_object_unref0 (_col_it); -#line 782 "LastImportPage.c" +#line 783 "LastImportPage.c" } #line 36 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" last_import_page_on_import_rolls_altered (self); #line 27 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" return self; -#line 788 "LastImportPage.c" +#line 789 "LastImportPage.c" } LastImportPage* last_import_page_new (void) { #line 27 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" return last_import_page_construct (TYPE_LAST_IMPORT_PAGE); -#line 795 "LastImportPage.c" +#line 796 "LastImportPage.c" } @@ -829,7 +830,7 @@ static void last_import_page_on_import_rolls_altered (LastImportPage* self) { _tmp4_ = current_last_import_id; #line 50 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" if (_tmp4_ == NULL) { -#line 833 "LastImportPage.c" +#line 834 "LastImportPage.c" ViewCollection* _tmp5_ = NULL; ViewCollection* _tmp6_ = NULL; ViewCollection* _tmp7_ = NULL; @@ -854,7 +855,7 @@ static void last_import_page_on_import_rolls_altered (LastImportPage* self) { _import_id_free0 (current_last_import_id); #line 54 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" return; -#line 858 "LastImportPage.c" +#line 859 "LastImportPage.c" } #line 57 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" _tmp9_ = current_last_import_id; @@ -870,7 +871,7 @@ static void last_import_page_on_import_rolls_altered (LastImportPage* self) { _import_id_free0 (current_last_import_id); #line 58 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" return; -#line 874 "LastImportPage.c" +#line 875 "LastImportPage.c" } #line 60 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" _tmp13_ = current_last_import_id; @@ -892,7 +893,7 @@ static void last_import_page_on_import_rolls_altered (LastImportPage* self) { data_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_DATA_COLLECTION, DataCollection)); #line 63 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" _data_collection_unref0 (_tmp17_); -#line 896 "LastImportPage.c" +#line 897 "LastImportPage.c" { GeeIterator* _col_it = NULL; MediaCollectionRegistry* _tmp18_ = NULL; @@ -921,7 +922,7 @@ static void last_import_page_on_import_rolls_altered (LastImportPage* self) { _col_it = _tmp23_; #line 65 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" while (TRUE) { -#line 925 "LastImportPage.c" +#line 926 "LastImportPage.c" GeeIterator* _tmp24_ = NULL; gboolean _tmp25_ = FALSE; MediaSourceCollection* col = NULL; @@ -944,7 +945,7 @@ static void last_import_page_on_import_rolls_altered (LastImportPage* self) { if (!_tmp25_) { #line 65 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" break; -#line 948 "LastImportPage.c" +#line 949 "LastImportPage.c" } #line 65 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" _tmp26_ = _col_it; @@ -978,15 +979,15 @@ static void last_import_page_on_import_rolls_altered (LastImportPage* self) { _data_collection_unref0 (_tmp29_); #line 65 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" _data_collection_unref0 (col); -#line 982 "LastImportPage.c" +#line 983 "LastImportPage.c" } #line 65 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" _g_object_unref0 (_col_it); -#line 986 "LastImportPage.c" +#line 987 "LastImportPage.c" } #line 45 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" _import_id_free0 (current_last_import_id); -#line 990 "LastImportPage.c" +#line 991 "LastImportPage.c" } @@ -1016,13 +1017,13 @@ static void last_import_page_real_get_config_photos_sort (MediaPage* base, gbool if (sort_order) { #line 71 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" *sort_order = _vala_sort_order; -#line 1020 "LastImportPage.c" +#line 1021 "LastImportPage.c" } #line 71 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" if (sort_by) { #line 71 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" *sort_by = _vala_sort_by; -#line 1026 "LastImportPage.c" +#line 1027 "LastImportPage.c" } } @@ -1047,7 +1048,7 @@ static void last_import_page_real_set_config_photos_sort (MediaPage* base, gbool configuration_facade_set_library_photos_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_); #line 76 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" _g_object_unref0 (_tmp1_); -#line 1051 "LastImportPage.c" +#line 1052 "LastImportPage.c" } @@ -1069,14 +1070,14 @@ static LastImportPageLastImportViewManager* last_import_page_last_import_view_ma self->priv->import_id = _tmp1_; #line 13 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" return self; -#line 1073 "LastImportPage.c" +#line 1074 "LastImportPage.c" } static LastImportPageLastImportViewManager* last_import_page_last_import_view_manager_new (LastImportPage* owner, ImportID* import_id) { #line 13 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" return last_import_page_last_import_view_manager_construct (LAST_IMPORT_PAGE_TYPE_LAST_IMPORT_VIEW_MANAGER, owner, import_id); -#line 1080 "LastImportPage.c" +#line 1081 "LastImportPage.c" } @@ -1106,7 +1107,7 @@ static gboolean last_import_page_last_import_view_manager_real_include_in_view ( result = _tmp2_ == _tmp4_; #line 20 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" return result; -#line 1110 "LastImportPage.c" +#line 1111 "LastImportPage.c" } @@ -1119,14 +1120,14 @@ static void last_import_page_last_import_view_manager_class_init (LastImportPage g_type_class_add_private (klass, sizeof (LastImportPageLastImportViewManagerPrivate)); #line 10 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" ((ViewManagerClass *) klass)->include_in_view = last_import_page_last_import_view_manager_real_include_in_view; -#line 1123 "LastImportPage.c" +#line 1124 "LastImportPage.c" } static void last_import_page_last_import_view_manager_instance_init (LastImportPageLastImportViewManager * self) { #line 10 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" self->priv = LAST_IMPORT_PAGE_LAST_IMPORT_VIEW_MANAGER_GET_PRIVATE (self); -#line 1130 "LastImportPage.c" +#line 1131 "LastImportPage.c" } @@ -1136,7 +1137,7 @@ static void last_import_page_last_import_view_manager_finalize (ViewManager* obj self = G_TYPE_CHECK_INSTANCE_CAST (obj, LAST_IMPORT_PAGE_TYPE_LAST_IMPORT_VIEW_MANAGER, LastImportPageLastImportViewManager); #line 10 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" VIEW_MANAGER_CLASS (last_import_page_last_import_view_manager_parent_class)->finalize (obj); -#line 1140 "LastImportPage.c" +#line 1141 "LastImportPage.c" } @@ -1163,7 +1164,7 @@ static void last_import_page_class_init (LastImportPageClass * klass) { ((MediaPageClass *) klass)->set_config_photos_sort = last_import_page_real_set_config_photos_sort; #line 7 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" G_OBJECT_CLASS (klass)->finalize = last_import_page_finalize; -#line 1167 "LastImportPage.c" +#line 1168 "LastImportPage.c" } @@ -1177,7 +1178,7 @@ static void last_import_page_instance_init (LastImportPage * self) { _tmp0_ = alteration_new ("metadata", "import-id"); #line 25 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" self->priv->last_import_alteration = _tmp0_; -#line 1181 "LastImportPage.c" +#line 1182 "LastImportPage.c" } @@ -1185,7 +1186,7 @@ static void last_import_page_finalize (GObject* obj) { LastImportPage * self; #line 7 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_LAST_IMPORT_PAGE, LastImportPage); -#line 1189 "LastImportPage.c" +#line 1190 "LastImportPage.c" { GeeIterator* _col_it = NULL; MediaCollectionRegistry* _tmp0_ = NULL; @@ -1214,7 +1215,7 @@ static void last_import_page_finalize (GObject* obj) { _col_it = _tmp5_; #line 40 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" while (TRUE) { -#line 1218 "LastImportPage.c" +#line 1219 "LastImportPage.c" GeeIterator* _tmp6_ = NULL; gboolean _tmp7_ = FALSE; MediaSourceCollection* col = NULL; @@ -1230,7 +1231,7 @@ static void last_import_page_finalize (GObject* obj) { if (!_tmp7_) { #line 40 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" break; -#line 1234 "LastImportPage.c" +#line 1235 "LastImportPage.c" } #line 40 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" _tmp8_ = _col_it; @@ -1246,17 +1247,17 @@ static void last_import_page_finalize (GObject* obj) { g_signal_handlers_disconnect_matched (_tmp10_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp11_, 0, NULL, (GCallback) _last_import_page_on_import_rolls_altered_media_source_collection_import_roll_altered, self); #line 40 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" _data_collection_unref0 (col); -#line 1250 "LastImportPage.c" +#line 1251 "LastImportPage.c" } #line 40 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" _g_object_unref0 (_col_it); -#line 1254 "LastImportPage.c" +#line 1255 "LastImportPage.c" } #line 25 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" _alteration_unref0 (self->priv->last_import_alteration); #line 7 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" G_OBJECT_CLASS (last_import_page_parent_class)->finalize (obj); -#line 1260 "LastImportPage.c" +#line 1261 "LastImportPage.c" } diff --git a/src/library/LastImportSidebarEntry.c b/src/library/LastImportSidebarEntry.c index bdf6b91..d30c4af 100644 --- a/src/library/LastImportSidebarEntry.c +++ b/src/library/LastImportSidebarEntry.c @@ -1,4 +1,4 @@ -/* LastImportSidebarEntry.c generated by valac 0.32.1, the Vala compiler +/* LastImportSidebarEntry.c generated by valac 0.34.4, the Vala compiler * generated from LastImportSidebarEntry.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/library/Library.c b/src/library/Library.c index 4ce5d56..0e29d27 100644 --- a/src/library/Library.c +++ b/src/library/Library.c @@ -1,4 +1,4 @@ -/* Library.c generated by valac 0.32.1, the Vala compiler +/* Library.c generated by valac 0.34.4, the Vala compiler * generated from Library.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/library/LibraryWindow.c b/src/library/LibraryWindow.c index e4d802b..07c30d7 100644 --- a/src/library/LibraryWindow.c +++ b/src/library/LibraryWindow.c @@ -1,4 +1,4 @@ -/* LibraryWindow.c generated by valac 0.32.1, the Vala compiler +/* LibraryWindow.c generated by valac 0.34.4, the Vala compiler * generated from LibraryWindow.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -1084,7 +1084,8 @@ struct _PageClass { void (*ready) (Page* self); void (*switching_to_fullscreen) (Page* self, FullscreenWindow* fsw); void (*returning_from_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*add_actions) (Page* self); + void (*add_actions) (Page* self, GActionMap* map); + void (*remove_actions) (Page* self, GActionMap* map); void (*init_collect_ui_filenames) (Page* self, GeeList* ui_filenames); InjectionGroup** (*init_collect_injection_groups) (Page* self, int* result_length1); void (*init_actions) (Page* self, gint selected_count, gint count); @@ -1422,6 +1423,7 @@ GType library_photos_entry_get_type (void) G_GNUC_CONST; LibraryPhotosEntry* library_branch_get_photos_entry (LibraryBranch* self); Page* sidebar_page_representative_get_page (SidebarPageRepresentative* self); static void library_window_load_configuration (LibraryWindow* self); +void application_set_accels_for_action (const gchar* action, gchar** accel, int accel_length1); GFile* directory_monitor_get_root (DirectoryMonitor* self); static void library_window_on_library_monitor_discovery_started (LibraryWindow* self); static void _library_window_on_library_monitor_discovery_started_directory_monitor_discovery_started (DirectoryMonitor* _sender, gpointer self); @@ -1670,7 +1672,6 @@ static void library_window_update_background_progress_bar (LibraryWindow* self, static void library_window_hide_background_progress_bar (LibraryWindow* self); gint configuration_facade_get_sidebar_position (ConfigurationFacade* self); gint library_window_get_PAGE_MIN_WIDTH (void); -void application_set_appmenu (GMenuModel* model); static void library_window_real_set_current_page (PageWindow* base, Page* page); void library_window_set_page_switching_enabled (LibraryWindow* self, gboolean should_enable); void application_set_menubar (GMenuModel* model); @@ -1729,6 +1730,7 @@ enum { LIBRARY_WINDOW_FULLSCREEN_PHOTO_PAGE_DUMMY_PROPERTY }; static void library_window_fullscreen_photo_page_real_switched_to (Page* base); +static void library_window_fullscreen_photo_page_real_switching_from (Page* base); static void library_window_fullscreen_photo_page_real_init_collect_ui_filenames (Page* base, GeeList* ui_filenames); static void library_window_fullscreen_photo_page_finalize (GObject* obj); static void library_window_finalize (GObject* obj); @@ -1742,86 +1744,86 @@ const GtkTargetEntry LIBRARY_WINDOW_DND_TARGET_ENTRIES[3] = {{"text/uri-list", ( static const GActionEntry LIBRARY_WINDOW_common_actions[13] = {{"CommonFileImport", _library_window_on_file_import_gsimple_action_activate_callback}, {"ExternalLibraryImport", _library_window_on_external_library_import_gsimple_action_activate_callback}, {"CommonPreferences", _library_window_on_preferences_gsimple_action_activate_callback}, {"CommonEmptyTrash", _library_window_on_empty_trash_gsimple_action_activate_callback}, {"CommonJumpToEvent", _library_window_on_jump_to_event_gsimple_action_activate_callback}, {"CommonFind", _library_window_on_find_gsimple_action_activate_callback}, {"CommonNewSearch", _library_window_on_new_search_gsimple_action_activate_callback}, {"CommonDisplayBasicProperties", _library_window_on_action_toggle_gsimple_action_activate_callback, NULL, "false", _library_window_on_display_basic_properties_gsimple_action_change_state_callback}, {"CommonDisplayExtendedProperties", _library_window_on_action_toggle_gsimple_action_activate_callback, NULL, "false", _library_window_on_display_extended_properties_gsimple_action_change_state_callback}, {"CommonDisplaySearchbar", NULL, NULL, "false", _library_window_on_display_searchbar_gsimple_action_change_state_callback}, {"CommonDisplaySidebar", _library_window_on_action_toggle_gsimple_action_activate_callback, NULL, "true", _library_window_on_display_sidebar_gsimple_action_change_state_callback}, {"CommonDisplayToolbar", NULL, NULL, "true", _library_window_on_display_toolbar_gsimple_action_change_state_callback}, {"CommonSortEvents", _library_window_on_action_radio_gsimple_action_activate_callback, "s", "'ascending'", _library_window_on_events_sort_changed_gsimple_action_change_state_callback}}; static void _library_window_on_page_created_sidebar_tree_page_created (SidebarTree* _sender, SidebarPageRepresentative* entry, Page* page, gpointer self) { -#line 216 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 222 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_on_page_created ((LibraryWindow*) self, entry, page); -#line 1748 "LibraryWindow.c" +#line 1750 "LibraryWindow.c" } static void _library_window_on_destroying_page_sidebar_tree_destroying_page (SidebarTree* _sender, SidebarPageRepresentative* entry, Page* page, gpointer self) { -#line 217 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 223 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_on_destroying_page ((LibraryWindow*) self, entry, page); -#line 1755 "LibraryWindow.c" +#line 1757 "LibraryWindow.c" } static void _library_window_on_sidebar_entry_selected_sidebar_tree_entry_selected (SidebarTree* _sender, SidebarSelectableEntry* selectable, gpointer self) { -#line 218 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 224 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_on_sidebar_entry_selected ((LibraryWindow*) self, selectable); -#line 1762 "LibraryWindow.c" +#line 1764 "LibraryWindow.c" } static void _library_window_on_sidebar_selected_entry_removed_sidebar_tree_selected_entry_removed (SidebarTree* _sender, SidebarSelectableEntry* removed, gpointer self) { -#line 219 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 225 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_on_sidebar_selected_entry_removed ((LibraryWindow*) self, removed); -#line 1769 "LibraryWindow.c" +#line 1771 "LibraryWindow.c" } static void _library_window_hide_extended_properties_gtk_widget_hide (GtkWidget* _sender, gpointer self) { -#line 223 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 229 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_hide_extended_properties ((LibraryWindow*) self); -#line 1776 "LibraryWindow.c" +#line 1778 "LibraryWindow.c" } static void _library_window_show_extended_properties_gtk_widget_show (GtkWidget* _sender, gpointer self) { -#line 224 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 230 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_show_extended_properties ((LibraryWindow*) self); -#line 1783 "LibraryWindow.c" +#line 1785 "LibraryWindow.c" } static void _library_window_on_trashcan_contents_altered_media_source_collection_trashcan_contents_altered (MediaSourceCollection* _sender, GeeCollection* added, GeeCollection* removed, gpointer self) { -#line 227 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 233 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_on_trashcan_contents_altered ((LibraryWindow*) self); -#line 1790 "LibraryWindow.c" +#line 1792 "LibraryWindow.c" } static void _library_window_on_media_altered_data_collection_items_altered (DataCollection* _sender, GeeMap* items, gpointer self) { -#line 228 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 234 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_on_media_altered ((LibraryWindow*) self); -#line 1797 "LibraryWindow.c" +#line 1799 "LibraryWindow.c" } static void _library_window_on_metadata_writer_progress_metadata_writer_progress (MetadataWriter* _sender, guint completed, guint total, gpointer self) { -#line 231 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 237 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_on_metadata_writer_progress ((LibraryWindow*) self, completed, total); -#line 1804 "LibraryWindow.c" +#line 1806 "LibraryWindow.c" } static void _library_window_on_library_monitor_installed_library_monitor_pool_monitor_installed (LibraryMonitorPool* _sender, LibraryMonitor* monitor, gpointer self) { -#line 237 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 243 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_on_library_monitor_installed ((LibraryWindow*) self, monitor); -#line 1811 "LibraryWindow.c" +#line 1813 "LibraryWindow.c" } static void _library_window_on_library_monitor_destroyed_library_monitor_pool_monitor_destroyed (LibraryMonitorPool* _sender, LibraryMonitor* monitor, gpointer self) { -#line 238 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 244 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_on_library_monitor_destroyed ((LibraryWindow*) self, monitor); -#line 1818 "LibraryWindow.c" +#line 1820 "LibraryWindow.c" } static void _library_window_on_camera_added_camera_table_camera_added (CameraTable* _sender, DiscoveredCamera* camera, gpointer self) { -#line 240 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 246 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_on_camera_added ((LibraryWindow*) self, camera); -#line 1825 "LibraryWindow.c" +#line 1827 "LibraryWindow.c" } @@ -1850,121 +1852,121 @@ GType library_window_target_type_get_type (void) { static void _library_window_on_file_import_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { -#line 265 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 271 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_on_file_import ((LibraryWindow*) self); -#line 1856 "LibraryWindow.c" +#line 1858 "LibraryWindow.c" } static void _library_window_on_external_library_import_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { -#line 265 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 271 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_on_external_library_import ((LibraryWindow*) self); -#line 1863 "LibraryWindow.c" +#line 1865 "LibraryWindow.c" } static void _library_window_on_preferences_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { -#line 265 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 271 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_on_preferences ((LibraryWindow*) self); -#line 1870 "LibraryWindow.c" +#line 1872 "LibraryWindow.c" } static void _library_window_on_empty_trash_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { -#line 265 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 271 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_on_empty_trash ((LibraryWindow*) self); -#line 1877 "LibraryWindow.c" +#line 1879 "LibraryWindow.c" } static void _library_window_on_jump_to_event_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { -#line 265 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 271 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_on_jump_to_event ((LibraryWindow*) self); -#line 1884 "LibraryWindow.c" +#line 1886 "LibraryWindow.c" } static void _library_window_on_find_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { -#line 265 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 271 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_on_find ((LibraryWindow*) self); -#line 1891 "LibraryWindow.c" +#line 1893 "LibraryWindow.c" } static void _library_window_on_new_search_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { -#line 265 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 271 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_on_new_search ((LibraryWindow*) self); -#line 1898 "LibraryWindow.c" +#line 1900 "LibraryWindow.c" } static void _library_window_on_action_toggle_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { -#line 265 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 271 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_on_action_toggle ((LibraryWindow*) self, action, parameter); -#line 1905 "LibraryWindow.c" +#line 1907 "LibraryWindow.c" } static void _library_window_on_display_basic_properties_gsimple_action_change_state_callback (GSimpleAction* action, GVariant* value, gpointer self) { -#line 265 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 271 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_on_display_basic_properties ((LibraryWindow*) self, action, value); -#line 1912 "LibraryWindow.c" +#line 1914 "LibraryWindow.c" } static void _library_window_on_display_extended_properties_gsimple_action_change_state_callback (GSimpleAction* action, GVariant* value, gpointer self) { -#line 265 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 271 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_on_display_extended_properties ((LibraryWindow*) self, action, value); -#line 1919 "LibraryWindow.c" +#line 1921 "LibraryWindow.c" } static void _library_window_on_display_searchbar_gsimple_action_change_state_callback (GSimpleAction* action, GVariant* value, gpointer self) { -#line 265 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 271 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_on_display_searchbar ((LibraryWindow*) self, action, value); -#line 1926 "LibraryWindow.c" +#line 1928 "LibraryWindow.c" } static void _library_window_on_display_sidebar_gsimple_action_change_state_callback (GSimpleAction* action, GVariant* value, gpointer self) { -#line 265 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 271 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_on_display_sidebar ((LibraryWindow*) self, action, value); -#line 1933 "LibraryWindow.c" +#line 1935 "LibraryWindow.c" } static void _library_window_on_display_toolbar_gsimple_action_change_state_callback (GSimpleAction* action, GVariant* value, gpointer self) { -#line 265 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 271 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_on_display_toolbar ((LibraryWindow*) self, action, value); -#line 1940 "LibraryWindow.c" +#line 1942 "LibraryWindow.c" } static void _library_window_on_action_radio_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { -#line 265 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 271 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_on_action_radio ((LibraryWindow*) self, action, parameter); -#line 1947 "LibraryWindow.c" +#line 1949 "LibraryWindow.c" } static void _library_window_on_events_sort_changed_gsimple_action_change_state_callback (GSimpleAction* action, GVariant* value, gpointer self) { -#line 265 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 271 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_on_events_sort_changed ((LibraryWindow*) self, action, value); -#line 1954 "LibraryWindow.c" +#line 1956 "LibraryWindow.c" } static void _library_window_external_drop_handler_sidebar_tree_external_drop_handler (GdkDragContext* context, SidebarEntry* entry, GtkSelectionData* data, guint info, guint time, gpointer self) { -#line 152 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 154 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_external_drop_handler ((LibraryWindow*) self, context, entry, data, info, time); -#line 1961 "LibraryWindow.c" +#line 1963 "LibraryWindow.c" } static void _library_window_on_update_properties_now_one_shot_callback (gpointer self) { -#line 172 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 174 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_on_update_properties_now ((LibraryWindow*) self); -#line 1968 "LibraryWindow.c" +#line 1970 "LibraryWindow.c" } @@ -2021,117 +2023,119 @@ LibraryWindow* library_window_construct (GType object_type, ProgressMonitor prog CameraTable* _tmp56_ = NULL; CameraTable* _tmp57_ = NULL; GtkProgressBar* _tmp58_ = NULL; -#line 150 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self = (LibraryWindow*) app_window_construct (object_type); +#line 217 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + static const gchar* accels[] = {"<Primary>f", "F8", NULL}; #line 152 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + self = (LibraryWindow*) app_window_construct (object_type); +#line 154 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = sidebar_tree_new (LIBRARY_WINDOW_DND_TARGET_ENTRIES, G_N_ELEMENTS (LIBRARY_WINDOW_DND_TARGET_ENTRIES), GDK_ACTION_ASK, _library_window_external_drop_handler_sidebar_tree_external_drop_handler, self); -#line 152 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 154 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_object_ref_sink (_tmp0_); -#line 152 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 154 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (self->priv->sidebar_tree); -#line 152 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 154 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self->priv->sidebar_tree = _tmp0_; -#line 155 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 157 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = self->priv->sidebar_tree; -#line 155 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 157 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_connect_object (_tmp1_, "page-created", (GCallback) _library_window_on_page_created_sidebar_tree_page_created, self, 0); -#line 156 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 158 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = self->priv->sidebar_tree; -#line 156 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 158 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_connect_object (_tmp2_, "destroying-page", (GCallback) _library_window_on_destroying_page_sidebar_tree_destroying_page, self, 0); -#line 157 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 159 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = self->priv->sidebar_tree; -#line 157 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 159 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_connect_object (_tmp3_, "entry-selected", (GCallback) _library_window_on_sidebar_entry_selected_sidebar_tree_entry_selected, self, 0); -#line 158 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 160 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = self->priv->sidebar_tree; -#line 158 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_connect_object (_tmp4_, "selected-entry-removed", (GCallback) _library_window_on_sidebar_selected_entry_removed_sidebar_tree_selected_entry_removed, self, 0); #line 160 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + g_signal_connect_object (_tmp4_, "selected-entry-removed", (GCallback) _library_window_on_sidebar_selected_entry_removed_sidebar_tree_selected_entry_removed, self, 0); +#line 162 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = self->priv->sidebar_tree; -#line 160 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 162 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = self->priv->library_branch; -#line 160 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 162 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" sidebar_tree_graft (_tmp5_, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, SIDEBAR_TYPE_BRANCH, SidebarBranch), (gint) LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_LIBRARY); -#line 161 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 163 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp7_ = self->priv->sidebar_tree; -#line 161 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 163 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp8_ = self->priv->tags_branch; -#line 161 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 163 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" sidebar_tree_graft (_tmp7_, G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, SIDEBAR_TYPE_BRANCH, SidebarBranch), (gint) LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_TAGS); -#line 162 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 164 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp9_ = self->priv->sidebar_tree; -#line 162 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 164 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp10_ = self->priv->folders_branch; -#line 162 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 164 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" sidebar_tree_graft (_tmp9_, G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, SIDEBAR_TYPE_BRANCH, SidebarBranch), (gint) LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_FOLDERS); -#line 163 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 165 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp11_ = self->priv->sidebar_tree; -#line 163 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 165 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp12_ = self->priv->events_branch; -#line 163 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 165 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" sidebar_tree_graft (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, SIDEBAR_TYPE_BRANCH, SidebarBranch), (gint) LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_EVENTS); -#line 164 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 166 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp13_ = self->priv->sidebar_tree; -#line 164 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 166 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp14_ = self->priv->camera_branch; -#line 164 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 166 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" sidebar_tree_graft (_tmp13_, G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, SIDEBAR_TYPE_BRANCH, SidebarBranch), (gint) LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_CAMERAS); -#line 165 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 167 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp15_ = self->priv->sidebar_tree; -#line 165 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 167 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp16_ = self->priv->saved_search_branch; -#line 165 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 167 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" sidebar_tree_graft (_tmp15_, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, SIDEBAR_TYPE_BRANCH, SidebarBranch), (gint) LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_SAVED_SEARCH); -#line 168 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 170 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp17_ = extended_properties_window_new (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow)); -#line 168 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 170 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_object_ref_sink (_tmp17_); -#line 168 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 170 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (self->priv->extended_properties); -#line 168 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 170 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self->priv->extended_properties = _tmp17_; -#line 169 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 171 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp18_ = self->priv->extended_properties; -#line 169 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 171 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_widget_get_type (), GtkWidget), "hide", (GCallback) _library_window_hide_extended_properties_gtk_widget_hide, self, 0); -#line 170 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 172 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp19_ = self->priv->extended_properties; -#line 170 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_widget_get_type (), GtkWidget), "show", (GCallback) _library_window_show_extended_properties_gtk_widget_show, self, 0); #line 172 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_widget_get_type (), GtkWidget), "show", (GCallback) _library_window_show_extended_properties_gtk_widget_show, self, 0); +#line 174 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp20_ = one_shot_scheduler_new ("LibraryWindow properties", _library_window_on_update_properties_now_one_shot_callback, self); -#line 172 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 174 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _one_shot_scheduler_unref0 (self->priv->properties_scheduler); -#line 172 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 174 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self->priv->properties_scheduler = _tmp20_; -#line 176 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 178 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp21_ = self->priv->search_actions; -#line 176 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 178 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp22_ = search_filter_toolbar_new (_tmp21_); -#line 176 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 178 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_object_ref_sink (_tmp22_); -#line 176 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 178 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (self->priv->search_toolbar); -#line 176 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 178 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self->priv->search_toolbar = _tmp22_; -#line 179 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 181 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp23_ = self->priv->library_branch; -#line 179 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 181 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp24_ = library_branch_get_photos_entry (_tmp23_); -#line 179 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 181 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp25_ = _tmp24_; -#line 179 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 181 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp26_ = sidebar_page_representative_get_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative)); -#line 179 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 181 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp27_ = _tmp26_; -#line 179 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 181 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_create_layout (self, _tmp27_); -#line 179 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 181 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp27_); -#line 182 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 184 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_load_configuration (self); -#line 2135 "LibraryWindow.c" +#line 2139 "LibraryWindow.c" { GeeIterator* _media_sources_it = NULL; MediaCollectionRegistry* _tmp28_ = NULL; @@ -2140,27 +2144,27 @@ LibraryWindow* library_window_construct (GType object_type, ProgressMonitor prog GeeCollection* _tmp31_ = NULL; GeeIterator* _tmp32_ = NULL; GeeIterator* _tmp33_ = NULL; -#line 184 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 186 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp28_ = media_collection_registry_get_instance (); -#line 184 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 186 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp29_ = _tmp28_; -#line 184 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 186 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp30_ = media_collection_registry_get_all (_tmp29_); -#line 184 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 186 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp31_ = _tmp30_; -#line 184 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 186 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp32_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 184 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 186 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp33_ = _tmp32_; -#line 184 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 186 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp31_); -#line 184 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 186 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _media_collection_registry_unref0 (_tmp29_); -#line 184 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 186 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _media_sources_it = _tmp33_; -#line 184 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 186 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" while (TRUE) { -#line 2164 "LibraryWindow.c" +#line 2168 "LibraryWindow.c" GeeIterator* _tmp34_ = NULL; gboolean _tmp35_ = FALSE; MediaSourceCollection* media_sources = NULL; @@ -2168,176 +2172,178 @@ LibraryWindow* library_window_construct (GType object_type, ProgressMonitor prog gpointer _tmp37_ = NULL; MediaSourceCollection* _tmp38_ = NULL; MediaSourceCollection* _tmp39_ = NULL; -#line 184 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 186 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp34_ = _media_sources_it; -#line 184 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 186 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp35_ = gee_iterator_next (_tmp34_); -#line 184 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 186 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (!_tmp35_) { -#line 184 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 186 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" break; -#line 2180 "LibraryWindow.c" +#line 2184 "LibraryWindow.c" } -#line 184 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 186 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp36_ = _media_sources_it; -#line 184 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 186 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp37_ = gee_iterator_get (_tmp36_); -#line 184 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 186 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" media_sources = (MediaSourceCollection*) _tmp37_; -#line 185 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 187 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp38_ = media_sources; -#line 185 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 187 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_connect_object (_tmp38_, "trashcan-contents-altered", (GCallback) _library_window_on_trashcan_contents_altered_media_source_collection_trashcan_contents_altered, self, 0); -#line 186 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp39_ = media_sources; -#line 186 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _library_window_on_media_altered_data_collection_items_altered, self, 0); -#line 184 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 186 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _data_collection_unref0 (media_sources); -#line 2198 "LibraryWindow.c" +#line 2202 "LibraryWindow.c" } -#line 184 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 186 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_media_sources_it); -#line 2202 "LibraryWindow.c" +#line 2206 "LibraryWindow.c" } -#line 191 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 193 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp40_ = LIBRARY_WINDOW_DND_TARGET_ENTRIES[LIBRARY_WINDOW_TARGET_TYPE_URI_LIST]; -#line 191 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 193 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp41_ = LIBRARY_WINDOW_DND_TARGET_ENTRIES[LIBRARY_WINDOW_TARGET_TYPE_MEDIA_LIST]; -#line 191 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 193 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp42_ = g_new0 (GtkTargetEntry, 2); -#line 191 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 193 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp42_[0] = _tmp40_; -#line 191 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 193 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp42_[1] = _tmp41_; -#line 191 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 193 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" main_window_dnd_targets = _tmp42_; -#line 191 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 193 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" main_window_dnd_targets_length1 = 2; -#line 191 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 193 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _main_window_dnd_targets_size_ = main_window_dnd_targets_length1; -#line 197 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 199 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp43_ = main_window_dnd_targets; -#line 197 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 199 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp43__length1 = main_window_dnd_targets_length1; -#line 197 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 199 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_drag_dest_set (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), GTK_DEST_DEFAULT_ALL, _tmp43_, _tmp43__length1, (GDK_ACTION_COPY | GDK_ACTION_LINK) | GDK_ACTION_ASK); -#line 200 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 202 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp44_ = metadata_writer_get_instance (); -#line 200 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 202 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp45_ = _tmp44_; -#line 200 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 202 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_connect_object (_tmp45_, "progress", (GCallback) _library_window_on_metadata_writer_progress_metadata_writer_progress, self, 0); -#line 200 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp45_); #line 202 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + _g_object_unref0 (_tmp45_); +#line 204 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp46_ = library_monitor_pool_get_instance (); -#line 202 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 204 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp47_ = _tmp46_; -#line 202 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 204 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp48_ = library_monitor_pool_get_monitor (_tmp47_); -#line 202 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 204 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp49_ = _tmp48_; -#line 202 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 204 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _library_monitor_pool_unref0 (_tmp47_); -#line 202 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 204 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" monitor = _tmp49_; -#line 203 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 205 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp50_ = monitor; -#line 203 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 205 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp50_ != NULL) { -#line 2250 "LibraryWindow.c" +#line 2254 "LibraryWindow.c" LibraryMonitor* _tmp51_ = NULL; -#line 204 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 206 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp51_ = monitor; -#line 204 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 206 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_on_library_monitor_installed (self, _tmp51_); -#line 2256 "LibraryWindow.c" +#line 2260 "LibraryWindow.c" } -#line 206 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 208 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp52_ = library_monitor_pool_get_instance (); -#line 206 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 208 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp53_ = _tmp52_; -#line 206 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 208 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_connect_object (_tmp53_, "monitor-installed", (GCallback) _library_window_on_library_monitor_installed_library_monitor_pool_monitor_installed, self, 0); -#line 206 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 208 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _library_monitor_pool_unref0 (_tmp53_); -#line 207 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 209 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp54_ = library_monitor_pool_get_instance (); -#line 207 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 209 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp55_ = _tmp54_; -#line 207 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 209 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_connect_object (_tmp55_, "monitor-destroyed", (GCallback) _library_window_on_library_monitor_destroyed_library_monitor_pool_monitor_destroyed, self, 0); -#line 207 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _library_monitor_pool_unref0 (_tmp55_); #line 209 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + _library_monitor_pool_unref0 (_tmp55_); +#line 211 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp56_ = camera_table_get_instance (); -#line 209 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 211 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp57_ = _tmp56_; -#line 209 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 211 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_connect_object (_tmp57_, "camera-added", (GCallback) _library_window_on_camera_added_camera_table_camera_added, self, 0); -#line 209 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _camera_table_unref0 (_tmp57_); #line 211 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + _camera_table_unref0 (_tmp57_); +#line 213 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp58_ = self->priv->background_progress_bar; -#line 211 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 213 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_progress_bar_set_show_text (_tmp58_, TRUE); -#line 150 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 218 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + application_set_accels_for_action ("win.CommonDisplaySearchbar", accels, G_N_ELEMENTS (accels)); +#line 152 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (monitor); -#line 150 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 152 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" main_window_dnd_targets = (g_free (main_window_dnd_targets), NULL); -#line 150 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 152 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return self; -#line 2292 "LibraryWindow.c" +#line 2298 "LibraryWindow.c" } LibraryWindow* library_window_new (ProgressMonitor progress_monitor, void* progress_monitor_target) { -#line 150 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 152 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return library_window_construct (TYPE_LIBRARY_WINDOW, progress_monitor, progress_monitor_target); -#line 2299 "LibraryWindow.c" +#line 2305 "LibraryWindow.c" } static void _library_window_on_library_monitor_discovery_started_directory_monitor_discovery_started (DirectoryMonitor* _sender, gpointer self) { -#line 246 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 252 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_on_library_monitor_discovery_started ((LibraryWindow*) self); -#line 2306 "LibraryWindow.c" +#line 2312 "LibraryWindow.c" } static void _library_window_on_library_monitor_discovery_completed_directory_monitor_discovery_completed (DirectoryMonitor* _sender, gpointer self) { -#line 247 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 253 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_on_library_monitor_discovery_completed ((LibraryWindow*) self); -#line 2313 "LibraryWindow.c" +#line 2319 "LibraryWindow.c" } static void _library_window_on_library_monitor_discovery_completed_directory_monitor_closed (DirectoryMonitor* _sender, gpointer self) { -#line 248 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 254 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_on_library_monitor_discovery_completed ((LibraryWindow*) self); -#line 2320 "LibraryWindow.c" +#line 2326 "LibraryWindow.c" } static void _library_window_on_library_monitor_auto_update_progress_library_monitor_auto_update_progress (LibraryMonitor* _sender, gint completed_files, gint total_files, gpointer self) { -#line 249 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 255 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_on_library_monitor_auto_update_progress ((LibraryWindow*) self, completed_files, total_files); -#line 2327 "LibraryWindow.c" +#line 2333 "LibraryWindow.c" } static void _library_window_on_library_monitor_auto_import_preparing_library_monitor_auto_import_preparing (LibraryMonitor* _sender, gpointer self) { -#line 250 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 256 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_on_library_monitor_auto_import_preparing ((LibraryWindow*) self); -#line 2334 "LibraryWindow.c" +#line 2340 "LibraryWindow.c" } static void _library_window_on_library_monitor_auto_import_progress_library_monitor_auto_import_progress (LibraryMonitor* _sender, guint64 completed_bytes, guint64 total_bytes, gpointer self) { -#line 251 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 257 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_on_library_monitor_auto_import_progress ((LibraryWindow*) self, completed_bytes, total_bytes); -#line 2341 "LibraryWindow.c" +#line 2347 "LibraryWindow.c" } @@ -2353,51 +2359,51 @@ static void library_window_on_library_monitor_installed (LibraryWindow* self, Li LibraryMonitor* _tmp8_ = NULL; LibraryMonitor* _tmp9_ = NULL; LibraryMonitor* _tmp10_ = NULL; -#line 243 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 249 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 243 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 249 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_MONITOR (monitor)); -#line 244 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 250 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = monitor; -#line 244 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 250 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = directory_monitor_get_root (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DIRECTORY_MONITOR, DirectoryMonitor)); -#line 244 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 250 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = _tmp1_; -#line 244 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 250 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = g_file_get_path (_tmp2_); -#line 244 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 250 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = _tmp3_; -#line 244 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_debug ("LibraryWindow.vala:244: on_library_monitor_installed: %s", _tmp4_); -#line 244 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 250 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + g_debug ("LibraryWindow.vala:250: on_library_monitor_installed: %s", _tmp4_); +#line 250 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_free0 (_tmp4_); -#line 244 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 250 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp2_); -#line 246 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 252 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = monitor; -#line 246 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 252 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), "discovery-started", (GCallback) _library_window_on_library_monitor_discovery_started_directory_monitor_discovery_started, self, 0); -#line 247 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 253 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = monitor; -#line 247 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 253 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), "discovery-completed", (GCallback) _library_window_on_library_monitor_discovery_completed_directory_monitor_discovery_completed, self, 0); -#line 248 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 254 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp7_ = monitor; -#line 248 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 254 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), "closed", (GCallback) _library_window_on_library_monitor_discovery_completed_directory_monitor_closed, self, 0); -#line 249 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 255 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp8_ = monitor; -#line 249 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 255 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_connect_object (_tmp8_, "auto-update-progress", (GCallback) _library_window_on_library_monitor_auto_update_progress_library_monitor_auto_update_progress, self, 0); -#line 250 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 256 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp9_ = monitor; -#line 250 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 256 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_connect_object (_tmp9_, "auto-import-preparing", (GCallback) _library_window_on_library_monitor_auto_import_preparing_library_monitor_auto_import_preparing, self, 0); -#line 251 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 257 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp10_ = monitor; -#line 251 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 257 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_connect_object (_tmp10_, "auto-import-progress", (GCallback) _library_window_on_library_monitor_auto_import_progress_library_monitor_auto_import_progress, self, 0); -#line 2401 "LibraryWindow.c" +#line 2407 "LibraryWindow.c" } @@ -2419,84 +2425,84 @@ static void library_window_on_library_monitor_destroyed (LibraryWindow* self, Li guint _tmp14_ = 0U; LibraryMonitor* _tmp15_ = NULL; guint _tmp16_ = 0U; -#line 254 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 260 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 254 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 260 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_MONITOR (monitor)); -#line 255 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 261 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = monitor; -#line 255 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 261 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = directory_monitor_get_root (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DIRECTORY_MONITOR, DirectoryMonitor)); -#line 255 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 261 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = _tmp1_; -#line 255 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 261 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = g_file_get_path (_tmp2_); -#line 255 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 261 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = _tmp3_; -#line 255 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_debug ("LibraryWindow.vala:255: on_library_monitor_destroyed: %s", _tmp4_); -#line 255 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 261 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + g_debug ("LibraryWindow.vala:261: on_library_monitor_destroyed: %s", _tmp4_); +#line 261 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_free0 (_tmp4_); -#line 255 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 261 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp2_); -#line 257 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 263 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = monitor; -#line 257 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 263 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_parse_name ("discovery-started", TYPE_DIRECTORY_MONITOR, &_tmp6_, NULL, FALSE); -#line 257 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 263 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp6_, 0, NULL, (GCallback) _library_window_on_library_monitor_discovery_started_directory_monitor_discovery_started, self); -#line 258 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 264 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp7_ = monitor; -#line 258 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 264 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_parse_name ("discovery-completed", TYPE_DIRECTORY_MONITOR, &_tmp8_, NULL, FALSE); -#line 258 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 264 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp8_, 0, NULL, (GCallback) _library_window_on_library_monitor_discovery_completed_directory_monitor_discovery_completed, self); -#line 259 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 265 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp9_ = monitor; -#line 259 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 265 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_parse_name ("closed", TYPE_DIRECTORY_MONITOR, &_tmp10_, NULL, FALSE); -#line 259 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 265 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp10_, 0, NULL, (GCallback) _library_window_on_library_monitor_discovery_completed_directory_monitor_closed, self); -#line 260 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 266 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp11_ = monitor; -#line 260 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 266 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_parse_name ("auto-update-progress", TYPE_LIBRARY_MONITOR, &_tmp12_, NULL, FALSE); -#line 260 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 266 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_handlers_disconnect_matched (_tmp11_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp12_, 0, NULL, (GCallback) _library_window_on_library_monitor_auto_update_progress_library_monitor_auto_update_progress, self); -#line 261 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 267 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp13_ = monitor; -#line 261 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 267 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_parse_name ("auto-import-preparing", TYPE_LIBRARY_MONITOR, &_tmp14_, NULL, FALSE); -#line 261 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 267 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_handlers_disconnect_matched (_tmp13_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp14_, 0, NULL, (GCallback) _library_window_on_library_monitor_auto_import_preparing_library_monitor_auto_import_preparing, self); -#line 262 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 268 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp15_ = monitor; -#line 262 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 268 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_parse_name ("auto-import-progress", TYPE_LIBRARY_MONITOR, &_tmp16_, NULL, FALSE); -#line 262 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 268 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_handlers_disconnect_matched (_tmp15_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp16_, 0, NULL, (GCallback) _library_window_on_library_monitor_auto_import_progress_library_monitor_auto_import_progress, self); -#line 2479 "LibraryWindow.c" +#line 2485 "LibraryWindow.c" } static GVariant* _variant_new1 (gboolean value) { -#line 291 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 297 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 2486 "LibraryWindow.c" +#line 2492 "LibraryWindow.c" } static GVariant* _variant_new2 (gboolean value) { -#line 292 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 298 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 2493 "LibraryWindow.c" +#line 2499 "LibraryWindow.c" } static GVariant* _variant_new3 (gboolean value) { -#line 293 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 299 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 2500 "LibraryWindow.c" +#line 2506 "LibraryWindow.c" } @@ -2517,71 +2523,71 @@ static void library_window_real_add_actions (AppWindow* base) { GAction* _tmp12_ = NULL; gboolean _tmp13_ = FALSE; GVariant* _tmp14_ = NULL; -#line 286 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 292 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_WINDOW, LibraryWindow); -#line 287 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 293 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" APP_WINDOW_CLASS (library_window_parent_class)->add_actions (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow)); -#line 288 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 294 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_action_map_add_action_entries (G_TYPE_CHECK_INSTANCE_CAST (self, g_action_map_get_type (), GActionMap), LIBRARY_WINDOW_common_actions, G_N_ELEMENTS (LIBRARY_WINDOW_common_actions), self); -#line 289 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 295 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = self->priv->search_actions; -#line 289 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 295 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = search_filter_actions_get_actions (_tmp0_, &_tmp1_); -#line 289 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 295 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = self->priv->search_actions; -#line 289 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 295 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_action_map_add_action_entries (G_TYPE_CHECK_INSTANCE_CAST (self, g_action_map_get_type (), GActionMap), _tmp2_, _tmp1_, _tmp3_); -#line 291 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 297 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = g_action_map_lookup_action (G_TYPE_CHECK_INSTANCE_CAST (self, g_action_map_get_type (), GActionMap), "CommonDisplaySearchbar"); -#line 291 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 297 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = config_facade_get_instance (); -#line 291 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 297 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = _tmp5_; -#line 291 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 297 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp7_ = configuration_facade_get_display_search_bar (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 291 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 297 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp8_ = _variant_new1 (_tmp7_); -#line 291 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 297 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_action_change_state (_tmp4_, _tmp8_); -#line 291 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 297 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_variant_unref0 (_tmp8_); -#line 291 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 297 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp6_); -#line 292 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 298 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp9_ = g_action_map_lookup_action (G_TYPE_CHECK_INSTANCE_CAST (self, g_action_map_get_type (), GActionMap), "CommonDisplaySidebar"); -#line 292 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 298 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp10_ = library_window_is_sidebar_visible (self); -#line 292 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 298 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp11_ = _variant_new2 (_tmp10_); -#line 292 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 298 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_action_change_state (_tmp9_, _tmp11_); -#line 292 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 298 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_variant_unref0 (_tmp11_); -#line 293 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 299 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp12_ = g_action_map_lookup_action (G_TYPE_CHECK_INSTANCE_CAST (self, g_action_map_get_type (), GActionMap), "CommonDisplayToolbar"); -#line 293 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 299 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp13_ = library_window_is_toolbar_visible (self); -#line 293 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 299 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp14_ = _variant_new3 (_tmp13_); -#line 293 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 299 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_action_change_state (_tmp12_, _tmp14_); -#line 293 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 299 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_variant_unref0 (_tmp14_); -#line 2571 "LibraryWindow.c" +#line 2577 "LibraryWindow.c" } static void _library_window_on_view_filter_installed_view_collection_view_filter_installed (ViewCollection* _sender, ViewFilter* filer, gpointer self) { -#line 301 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 307 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_on_view_filter_installed ((LibraryWindow*) self, filer); -#line 2578 "LibraryWindow.c" +#line 2584 "LibraryWindow.c" } static void _library_window_on_view_filter_removed_view_collection_view_filter_removed (ViewCollection* _sender, ViewFilter* filer, gpointer self) { -#line 302 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 308 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_on_view_filter_removed ((LibraryWindow*) self, filer); -#line 2585 "LibraryWindow.c" +#line 2591 "LibraryWindow.c" } @@ -2594,23 +2600,23 @@ static void library_window_real_switched_pages (PageWindow* base, Page* old_page SearchFilterActions* _tmp18_ = NULL; Page* _tmp19_ = NULL; Page* _tmp20_ = NULL; -#line 296 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 302 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_WINDOW, LibraryWindow); -#line 296 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 302 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail ((old_page == NULL) || IS_PAGE (old_page)); -#line 296 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 302 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail ((new_page == NULL) || IS_PAGE (new_page)); -#line 297 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 303 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = old_page; -#line 297 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 303 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = new_page; -#line 297 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 303 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" PAGE_WINDOW_CLASS (library_window_parent_class)->switched_pages (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow), TYPE_PAGE_WINDOW, PageWindow), _tmp0_, _tmp1_); -#line 300 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 306 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = old_page; -#line 300 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 306 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp2_ != NULL) { -#line 2614 "LibraryWindow.c" +#line 2620 "LibraryWindow.c" Page* _tmp3_ = NULL; ViewCollection* _tmp4_ = NULL; ViewCollection* _tmp5_ = NULL; @@ -2619,126 +2625,126 @@ static void library_window_real_switched_pages (PageWindow* base, Page* old_page ViewCollection* _tmp8_ = NULL; ViewCollection* _tmp9_ = NULL; guint _tmp10_ = 0U; -#line 301 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 307 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = old_page; -#line 301 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 307 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = page_get_view (_tmp3_); -#line 301 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 307 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = _tmp4_; -#line 301 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 307 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_parse_name ("view-filter-installed", TYPE_VIEW_COLLECTION, &_tmp6_, NULL, FALSE); -#line 301 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 307 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_handlers_disconnect_matched (_tmp5_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp6_, 0, NULL, (GCallback) _library_window_on_view_filter_installed_view_collection_view_filter_installed, self); -#line 301 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 307 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _data_collection_unref0 (_tmp5_); -#line 302 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 308 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp7_ = old_page; -#line 302 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 308 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp8_ = page_get_view (_tmp7_); -#line 302 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 308 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp9_ = _tmp8_; -#line 302 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 308 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_parse_name ("view-filter-removed", TYPE_VIEW_COLLECTION, &_tmp10_, NULL, FALSE); -#line 302 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 308 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_handlers_disconnect_matched (_tmp9_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp10_, 0, NULL, (GCallback) _library_window_on_view_filter_removed_view_collection_view_filter_removed, self); -#line 302 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 308 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _data_collection_unref0 (_tmp9_); -#line 2647 "LibraryWindow.c" +#line 2653 "LibraryWindow.c" } -#line 305 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 311 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp11_ = new_page; -#line 305 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 311 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp11_ != NULL) { -#line 2653 "LibraryWindow.c" +#line 2659 "LibraryWindow.c" Page* _tmp12_ = NULL; ViewCollection* _tmp13_ = NULL; ViewCollection* _tmp14_ = NULL; Page* _tmp15_ = NULL; ViewCollection* _tmp16_ = NULL; ViewCollection* _tmp17_ = NULL; -#line 306 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 312 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp12_ = new_page; -#line 306 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 312 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp13_ = page_get_view (_tmp12_); -#line 306 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 312 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp14_ = _tmp13_; -#line 306 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 312 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_connect_object (_tmp14_, "view-filter-installed", (GCallback) _library_window_on_view_filter_installed_view_collection_view_filter_installed, self, 0); -#line 306 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 312 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _data_collection_unref0 (_tmp14_); -#line 307 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 313 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp15_ = new_page; -#line 307 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 313 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp16_ = page_get_view (_tmp15_); -#line 307 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 313 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp17_ = _tmp16_; -#line 307 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 313 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_connect_object (_tmp17_, "view-filter-removed", (GCallback) _library_window_on_view_filter_removed_view_collection_view_filter_removed, self, 0); -#line 307 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 313 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _data_collection_unref0 (_tmp17_); -#line 2680 "LibraryWindow.c" +#line 2686 "LibraryWindow.c" } -#line 310 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 316 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp18_ = self->priv->search_actions; -#line 310 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 316 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp19_ = old_page; -#line 310 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 316 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp20_ = new_page; -#line 310 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 316 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" search_filter_actions_monitor_page_contents (_tmp18_, _tmp19_, _tmp20_); -#line 2690 "LibraryWindow.c" +#line 2696 "LibraryWindow.c" } static void _library_window_on_view_filter_refreshed_view_filter_refresh (ViewFilter* _sender, gpointer self) { -#line 314 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 320 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_on_view_filter_refreshed ((LibraryWindow*) self); -#line 2697 "LibraryWindow.c" +#line 2703 "LibraryWindow.c" } static void library_window_on_view_filter_installed (LibraryWindow* self, ViewFilter* filter) { ViewFilter* _tmp0_ = NULL; -#line 313 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 319 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 313 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 319 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_VIEW_FILTER (filter)); -#line 314 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 320 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = filter; -#line 314 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 320 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_connect_object (_tmp0_, "refresh", (GCallback) _library_window_on_view_filter_refreshed_view_filter_refresh, self, 0); -#line 2711 "LibraryWindow.c" +#line 2717 "LibraryWindow.c" } static void library_window_on_view_filter_removed (LibraryWindow* self, ViewFilter* filter) { ViewFilter* _tmp0_ = NULL; guint _tmp1_ = 0U; -#line 317 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 323 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 317 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 323 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_VIEW_FILTER (filter)); -#line 318 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 324 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = filter; -#line 318 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 324 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_parse_name ("refresh", TYPE_VIEW_FILTER, &_tmp1_, NULL, FALSE); -#line 318 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 324 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _library_window_on_view_filter_refreshed_view_filter_refresh, self); -#line 2728 "LibraryWindow.c" +#line 2734 "LibraryWindow.c" } static gpointer _g_object_ref0 (gpointer self) { -#line 328 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 334 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return self ? g_object_ref (self) : NULL; -#line 2735 "LibraryWindow.c" +#line 2741 "LibraryWindow.c" } static GVariant* _variant_new4 (gboolean value) { -#line 331 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 337 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 2742 "LibraryWindow.c" +#line 2748 "LibraryWindow.c" } @@ -2753,56 +2759,56 @@ static void library_window_on_view_filter_refreshed (LibraryWindow* self) { GAction* _tmp6_ = NULL; GAction* _tmp7_ = NULL; GAction* _tmp8_ = NULL; -#line 321 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 327 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 324 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 330 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 324 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 330 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = _tmp0_; -#line 324 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 330 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = page_get_view (_tmp1_); -#line 324 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 330 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = _tmp2_; -#line 324 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 330 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = view_collection_are_items_filtered_out (_tmp3_); -#line 324 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 330 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = !_tmp4_; -#line 324 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 330 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _data_collection_unref0 (_tmp3_); -#line 324 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 330 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp1_); -#line 324 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 330 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp5_) { -#line 325 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 331 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return; -#line 2779 "LibraryWindow.c" +#line 2785 "LibraryWindow.c" } -#line 328 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 334 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = g_action_map_lookup_action (G_TYPE_CHECK_INSTANCE_CAST (self, g_action_map_get_type (), GActionMap), "CommonDisplaySearchbar"); -#line 328 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 334 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp7_ = _g_object_ref0 (_tmp6_); -#line 328 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 334 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" action = _tmp7_; -#line 330 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 336 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp8_ = action; -#line 330 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 336 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp8_ != NULL) { -#line 2791 "LibraryWindow.c" +#line 2797 "LibraryWindow.c" GAction* _tmp9_ = NULL; GVariant* _tmp10_ = NULL; -#line 331 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 337 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp9_ = action; -#line 331 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 337 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp10_ = _variant_new4 (TRUE); -#line 331 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 337 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_action_change_state (_tmp9_, _tmp10_); -#line 331 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 337 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_variant_unref0 (_tmp10_); -#line 2802 "LibraryWindow.c" +#line 2808 "LibraryWindow.c" } -#line 321 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 327 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (action); -#line 2806 "LibraryWindow.c" +#line 2812 "LibraryWindow.c" } @@ -2826,87 +2832,87 @@ static void library_window_real_show_all (GtkWidget* base) { gboolean _tmp15_ = FALSE; CheckerboardPage* _tmp16_ = NULL; gboolean _tmp17_ = FALSE; -#line 335 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 341 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_WINDOW, LibraryWindow); -#line 336 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 342 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" GTK_WIDGET_CLASS (library_window_parent_class)->show_all (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow), gtk_widget_get_type (), GtkWidget)); -#line 338 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 344 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 338 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 344 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = _tmp0_; -#line 338 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 344 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = page_get_common_action (_tmp1_, "CommonDisplayBasicProperties", TRUE); -#line 338 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 344 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = _tmp2_; -#line 338 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 344 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp1_); -#line 338 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 344 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" basic_properties_action = _tmp3_; -#line 340 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 346 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = basic_properties_action; -#line 340 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 346 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _vala_assert (_tmp4_ != NULL, "basic_properties_action != null"); -#line 342 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 348 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = basic_properties_action; -#line 342 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 348 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = g_action_get_state (_tmp5_); -#line 342 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 348 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp7_ = _tmp6_; -#line 342 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 348 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp8_ = g_variant_get_boolean (_tmp7_); -#line 342 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 348 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp9_ = !_tmp8_; -#line 342 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 348 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_variant_unref0 (_tmp7_); -#line 342 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 348 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp9_) { -#line 2864 "LibraryWindow.c" +#line 2870 "LibraryWindow.c" GtkFrame* _tmp10_ = NULL; -#line 343 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 349 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp10_ = self->priv->bottom_frame; -#line 343 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 349 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget)); -#line 2870 "LibraryWindow.c" +#line 2876 "LibraryWindow.c" } -#line 346 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 352 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp11_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 346 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 352 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp12_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp11_, TYPE_CHECKERBOARD_PAGE) ? ((CheckerboardPage*) _tmp11_) : NULL; -#line 346 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 352 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp12_ == NULL) { -#line 346 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 352 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp11_); -#line 2880 "LibraryWindow.c" +#line 2886 "LibraryWindow.c" } -#line 346 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 352 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" current_page = _tmp12_; -#line 347 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 353 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp13_ = current_page; -#line 347 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 353 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp13_ != NULL) { -#line 2888 "LibraryWindow.c" +#line 2894 "LibraryWindow.c" CheckerboardPage* _tmp14_ = NULL; -#line 348 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 354 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp14_ = current_page; -#line 348 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 354 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_init_view_filter (self, _tmp14_); -#line 2894 "LibraryWindow.c" +#line 2900 "LibraryWindow.c" } -#line 350 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 356 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp15_ = library_window_should_show_search_bar (self); -#line 350 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 356 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp16_ = current_page; -#line 350 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 356 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_toggle_search_bar (self, _tmp15_, _tmp16_); -#line 353 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 359 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp17_ = library_window_is_sidebar_visible (self); -#line 353 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 359 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_set_sidebar_visible (self, _tmp17_); -#line 335 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 341 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (current_page); -#line 335 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 341 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (basic_properties_action); -#line 2910 "LibraryWindow.c" +#line 2916 "LibraryWindow.c" } @@ -2915,77 +2921,77 @@ LibraryWindow* library_window_get_app (void) { AppWindow* _tmp0_ = NULL; AppWindow* _tmp1_ = NULL; LibraryWindow* _tmp2_ = NULL; -#line 357 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 363 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = app_window_instance; -#line 357 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 363 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _vala_assert (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_LIBRARY_WINDOW), "instance is LibraryWindow"); -#line 359 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 365 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = app_window_instance; -#line 359 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 365 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_LIBRARY_WINDOW, LibraryWindow)); -#line 359 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 365 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" result = _tmp2_; -#line 359 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 365 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return result; -#line 2931 "LibraryWindow.c" +#line 2937 "LibraryWindow.c" } gboolean library_window_is_mount_uri_supported (const gchar* uri) { gboolean result = FALSE; -#line 363 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 369 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_val_if_fail (uri != NULL, FALSE); -#line 2939 "LibraryWindow.c" +#line 2945 "LibraryWindow.c" { const gchar** scheme_collection = NULL; gint scheme_collection_length1 = 0; gint _scheme_collection_size_ = 0; gint scheme_it = 0; -#line 364 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 370 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" scheme_collection = LIBRARY_WINDOW_SUPPORTED_MOUNT_SCHEMES; -#line 364 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 370 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" scheme_collection_length1 = G_N_ELEMENTS (LIBRARY_WINDOW_SUPPORTED_MOUNT_SCHEMES); -#line 364 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 370 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" for (scheme_it = 0; scheme_it < G_N_ELEMENTS (LIBRARY_WINDOW_SUPPORTED_MOUNT_SCHEMES); scheme_it = scheme_it + 1) { -#line 2951 "LibraryWindow.c" +#line 2957 "LibraryWindow.c" gchar* _tmp0_ = NULL; gchar* scheme = NULL; -#line 364 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 370 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = g_strdup (scheme_collection[scheme_it]); -#line 364 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 370 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" scheme = _tmp0_; -#line 2958 "LibraryWindow.c" +#line 2964 "LibraryWindow.c" { const gchar* _tmp1_ = NULL; const gchar* _tmp2_ = NULL; gboolean _tmp3_ = FALSE; -#line 365 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 371 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = uri; -#line 365 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 371 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = scheme; -#line 365 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 371 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = g_str_has_prefix (_tmp1_, _tmp2_); -#line 365 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 371 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp3_) { -#line 366 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 372 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" result = TRUE; -#line 366 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 372 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_free0 (scheme); -#line 366 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 372 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return result; -#line 2977 "LibraryWindow.c" +#line 2983 "LibraryWindow.c" } -#line 364 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 370 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_free0 (scheme); -#line 2981 "LibraryWindow.c" +#line 2987 "LibraryWindow.c" } } } -#line 369 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 375 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" result = FALSE; -#line 369 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 375 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return result; -#line 2989 "LibraryWindow.c" +#line 2995 "LibraryWindow.c" } @@ -2993,15 +2999,15 @@ static gchar* library_window_real_get_app_role (AppWindow* base) { LibraryWindow * self; gchar* result = NULL; gchar* _tmp0_ = NULL; -#line 372 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 378 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_WINDOW, LibraryWindow); -#line 373 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 379 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = g_strdup (RESOURCES_APP_LIBRARY_ROLE); -#line 373 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 379 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" result = _tmp0_; -#line 373 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 379 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return result; -#line 3005 "LibraryWindow.c" +#line 3011 "LibraryWindow.c" } @@ -3011,40 +3017,40 @@ void library_window_rename_tag_in_sidebar (LibraryWindow* self, Tag* tag) { Tag* _tmp1_ = NULL; TagsSidebarEntry* _tmp2_ = NULL; TagsSidebarEntry* _tmp3_ = NULL; -#line 376 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 382 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 376 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 382 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_TAG (tag)); -#line 377 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 383 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = self->priv->tags_branch; -#line 377 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 383 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = tag; -#line 377 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 383 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = tags_branch_get_entry_for_tag (_tmp0_, _tmp1_); -#line 377 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 383 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" entry = _tmp2_; -#line 378 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 384 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = entry; -#line 378 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 384 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp3_ != NULL) { -#line 3031 "LibraryWindow.c" +#line 3037 "LibraryWindow.c" SidebarTree* _tmp4_ = NULL; TagsSidebarEntry* _tmp5_ = NULL; -#line 379 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 385 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = self->priv->sidebar_tree; -#line 379 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 385 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = entry; -#line 379 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 385 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" sidebar_tree_rename_entry_in_place (_tmp4_, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, SIDEBAR_TYPE_ENTRY, SidebarEntry)); -#line 3040 "LibraryWindow.c" +#line 3046 "LibraryWindow.c" } else { -#line 381 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_debug ("LibraryWindow.vala:381: No tag entry found for rename"); -#line 3044 "LibraryWindow.c" +#line 387 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + g_debug ("LibraryWindow.vala:387: No tag entry found for rename"); +#line 3050 "LibraryWindow.c" } -#line 376 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 382 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (entry); -#line 3048 "LibraryWindow.c" +#line 3054 "LibraryWindow.c" } @@ -3054,40 +3060,40 @@ void library_window_rename_event_in_sidebar (LibraryWindow* self, Event* event) Event* _tmp1_ = NULL; EventsEventEntry* _tmp2_ = NULL; EventsEventEntry* _tmp3_ = NULL; -#line 384 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 390 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 384 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 390 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_EVENT (event)); -#line 385 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 391 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = self->priv->events_branch; -#line 385 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 391 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = event; -#line 385 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 391 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = events_branch_get_entry_for_event (_tmp0_, _tmp1_); -#line 385 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 391 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" entry = _tmp2_; -#line 386 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 392 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = entry; -#line 386 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 392 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp3_ != NULL) { -#line 3074 "LibraryWindow.c" +#line 3080 "LibraryWindow.c" SidebarTree* _tmp4_ = NULL; EventsEventEntry* _tmp5_ = NULL; -#line 387 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 393 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = self->priv->sidebar_tree; -#line 387 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 393 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = entry; -#line 387 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 393 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" sidebar_tree_rename_entry_in_place (_tmp4_, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, SIDEBAR_TYPE_ENTRY, SidebarEntry)); -#line 3083 "LibraryWindow.c" +#line 3089 "LibraryWindow.c" } else { -#line 389 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_debug ("LibraryWindow.vala:389: No event entry found for rename"); -#line 3087 "LibraryWindow.c" +#line 395 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + g_debug ("LibraryWindow.vala:395: No event entry found for rename"); +#line 3093 "LibraryWindow.c" } -#line 384 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 390 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (entry); -#line 3091 "LibraryWindow.c" +#line 3097 "LibraryWindow.c" } @@ -3097,40 +3103,40 @@ void library_window_rename_search_in_sidebar (LibraryWindow* self, SavedSearch* SavedSearch* _tmp1_ = NULL; SearchesSidebarEntry* _tmp2_ = NULL; SearchesSidebarEntry* _tmp3_ = NULL; -#line 392 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 398 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 392 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 398 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_SAVED_SEARCH (search)); -#line 393 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 399 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = self->priv->saved_search_branch; -#line 393 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 399 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = search; -#line 393 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 399 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = searches_branch_get_entry_for_saved_search (_tmp0_, _tmp1_); -#line 393 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 399 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" entry = _tmp2_; -#line 394 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 400 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = entry; -#line 394 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 400 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp3_ != NULL) { -#line 3117 "LibraryWindow.c" +#line 3123 "LibraryWindow.c" SidebarTree* _tmp4_ = NULL; SearchesSidebarEntry* _tmp5_ = NULL; -#line 395 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 401 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = self->priv->sidebar_tree; -#line 395 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 401 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = entry; -#line 395 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 401 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" sidebar_tree_rename_entry_in_place (_tmp4_, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, SIDEBAR_TYPE_ENTRY, SidebarEntry)); -#line 3126 "LibraryWindow.c" +#line 3132 "LibraryWindow.c" } else { -#line 397 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_debug ("LibraryWindow.vala:397: No search entry found for rename"); -#line 3130 "LibraryWindow.c" +#line 403 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + g_debug ("LibraryWindow.vala:403: No search entry found for rename"); +#line 3136 "LibraryWindow.c" } -#line 392 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 398 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (entry); -#line 3134 "LibraryWindow.c" +#line 3140 "LibraryWindow.c" } @@ -3145,37 +3151,37 @@ static void library_window_real_on_quit (AppWindow* base) { GtkPaned* _tmp6_ = NULL; gint _tmp7_ = 0; gint _tmp8_ = 0; -#line 400 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 406 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_WINDOW, LibraryWindow); -#line 401 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 407 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = config_facade_get_instance (); -#line 401 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 407 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = _tmp0_; -#line 401 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 407 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow)->maximized; -#line 401 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 407 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow)->dimensions; -#line 401 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 407 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" configuration_facade_set_library_window_state (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, &_tmp3_); -#line 401 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 407 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp1_); -#line 403 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 409 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = config_facade_get_instance (); -#line 403 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 409 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = _tmp4_; -#line 403 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 409 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = self->priv->client_paned; -#line 403 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 409 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp7_ = gtk_paned_get_position (_tmp6_); -#line 403 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 409 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp8_ = _tmp7_; -#line 403 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 409 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" configuration_facade_set_sidebar_position (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp8_); -#line 403 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 409 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp5_); -#line 405 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 411 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" APP_WINDOW_CLASS (library_window_parent_class)->on_quit (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow)); -#line 3179 "LibraryWindow.c" +#line 3185 "LibraryWindow.c" } @@ -3192,105 +3198,105 @@ static Photo* library_window_get_start_fullscreen_photo (LibraryWindow* self, Co Photo* _tmp10_ = NULL; gboolean _tmp11_ = FALSE; GeeList* _tmp12_ = NULL; -#line 408 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 414 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_val_if_fail (IS_LIBRARY_WINDOW (self), NULL); -#line 408 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 414 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_val_if_fail (IS_COLLECTION_PAGE (page), NULL); -#line 409 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 415 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = page; -#line 409 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 415 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PAGE, Page)); -#line 409 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 415 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" view = _tmp1_; -#line 413 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 419 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = view; -#line 413 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 419 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = view_collection_get_selected_count (_tmp3_); -#line 413 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 419 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp4_ > 0) { -#line 3212 "LibraryWindow.c" +#line 3218 "LibraryWindow.c" ViewCollection* _tmp5_ = NULL; GeeList* _tmp6_ = NULL; -#line 414 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 420 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = view; -#line 414 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 420 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = view_collection_get_selected_sources_of_type (_tmp5_, TYPE_LIBRARY_PHOTO); -#line 414 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 420 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp2_); -#line 414 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 420 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = _tmp6_; -#line 3223 "LibraryWindow.c" +#line 3229 "LibraryWindow.c" } else { ViewCollection* _tmp7_ = NULL; GeeList* _tmp8_ = NULL; -#line 415 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 421 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp7_ = view; -#line 415 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 421 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp8_ = view_collection_get_sources_of_type (_tmp7_, TYPE_LIBRARY_PHOTO); -#line 415 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 421 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp2_); -#line 415 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 421 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = _tmp8_; -#line 3235 "LibraryWindow.c" +#line 3241 "LibraryWindow.c" } -#line 413 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 419 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp9_ = _g_object_ref0 (_tmp2_); -#line 413 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 419 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" sources = _tmp9_; -#line 417 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 423 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp12_ = sources; -#line 417 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 423 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp12_ != NULL) { -#line 3245 "LibraryWindow.c" +#line 3251 "LibraryWindow.c" GeeList* _tmp13_ = NULL; gint _tmp14_ = 0; gint _tmp15_ = 0; -#line 417 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 423 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp13_ = sources; -#line 417 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 423 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp14_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 417 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 423 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp15_ = _tmp14_; -#line 417 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 423 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp11_ = _tmp15_ != 0; -#line 3257 "LibraryWindow.c" +#line 3263 "LibraryWindow.c" } else { -#line 417 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 423 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp11_ = FALSE; -#line 3261 "LibraryWindow.c" +#line 3267 "LibraryWindow.c" } -#line 417 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 423 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp11_) { -#line 3265 "LibraryWindow.c" +#line 3271 "LibraryWindow.c" GeeList* _tmp16_ = NULL; gpointer _tmp17_ = NULL; -#line 418 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 424 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp16_ = sources; -#line 418 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 424 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp17_ = gee_list_get (_tmp16_, 0); -#line 418 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 424 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp10_); -#line 418 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 424 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp10_ = G_TYPE_CHECK_INSTANCE_CAST ((DataSource*) _tmp17_, TYPE_PHOTO, Photo); -#line 3276 "LibraryWindow.c" +#line 3282 "LibraryWindow.c" } else { -#line 418 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 424 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp10_); -#line 418 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 424 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp10_ = NULL; -#line 3282 "LibraryWindow.c" +#line 3288 "LibraryWindow.c" } -#line 417 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 423 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" result = _tmp10_; -#line 417 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 423 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (sources); -#line 417 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 423 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp2_); -#line 417 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 423 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _data_collection_unref0 (view); -#line 417 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 423 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return result; -#line 3294 "LibraryWindow.c" +#line 3300 "LibraryWindow.c" } @@ -3302,27 +3308,27 @@ static gboolean library_window_get_fullscreen_photo (LibraryWindow* self, Page* Page* _tmp0_ = NULL; Page* _tmp8_ = NULL; Page* _tmp30_ = NULL; -#line 421 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 427 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_val_if_fail (IS_LIBRARY_WINDOW (self), FALSE); -#line 421 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 427 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_val_if_fail (IS_PAGE (page), FALSE); -#line 423 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 429 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_vala_collection); -#line 423 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 429 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _vala_collection = NULL; -#line 424 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 430 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_vala_start); -#line 424 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 430 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _vala_start = NULL; -#line 425 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 431 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _data_collection_unref0 (_vala_view_collection); -#line 425 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 431 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _vala_view_collection = NULL; -#line 428 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 434 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = page; -#line 428 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 434 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_COLLECTION_PAGE)) { -#line 3326 "LibraryWindow.c" +#line 3332 "LibraryWindow.c" Page* _tmp1_ = NULL; CollectionPage* _tmp2_ = NULL; Photo* photo = NULL; @@ -3331,117 +3337,117 @@ static gboolean library_window_get_fullscreen_photo (LibraryWindow* self, Page* Photo* _tmp5_ = NULL; Photo* _tmp6_ = NULL; Photo* _tmp7_ = NULL; -#line 429 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 435 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = page; -#line 429 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 435 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_COLLECTION_PAGE, CollectionPage)); -#line 429 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 435 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_vala_collection); -#line 429 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 435 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _vala_collection = _tmp2_; -#line 430 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 436 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = _vala_collection; -#line 430 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 436 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = library_window_get_start_fullscreen_photo (self, _tmp3_); -#line 430 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 436 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" photo = _tmp4_; -#line 431 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 437 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = photo; -#line 431 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 437 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp5_ == NULL) { -#line 432 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 438 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" result = FALSE; -#line 432 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 438 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (photo); -#line 432 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 438 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (collection) { -#line 432 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 438 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" *collection = _vala_collection; -#line 3361 "LibraryWindow.c" +#line 3367 "LibraryWindow.c" } else { -#line 432 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 438 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_vala_collection); -#line 3365 "LibraryWindow.c" +#line 3371 "LibraryWindow.c" } -#line 432 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 438 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (start) { -#line 432 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 438 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" *start = _vala_start; -#line 3371 "LibraryWindow.c" +#line 3377 "LibraryWindow.c" } else { -#line 432 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 438 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_vala_start); -#line 3375 "LibraryWindow.c" +#line 3381 "LibraryWindow.c" } -#line 432 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 438 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (view_collection) { -#line 432 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 438 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" *view_collection = _vala_view_collection; -#line 3381 "LibraryWindow.c" +#line 3387 "LibraryWindow.c" } else { -#line 432 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 438 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _data_collection_unref0 (_vala_view_collection); -#line 3385 "LibraryWindow.c" +#line 3391 "LibraryWindow.c" } -#line 432 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 438 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return result; -#line 3389 "LibraryWindow.c" +#line 3395 "LibraryWindow.c" } -#line 434 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 440 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = photo; -#line 434 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 440 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp7_ = _g_object_ref0 (_tmp6_); -#line 434 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 440 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_vala_start); -#line 434 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 440 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _vala_start = _tmp7_; -#line 435 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 441 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _data_collection_unref0 (_vala_view_collection); -#line 435 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 441 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _vala_view_collection = NULL; -#line 437 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 443 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" result = TRUE; -#line 437 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 443 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (photo); -#line 437 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 443 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (collection) { -#line 437 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 443 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" *collection = _vala_collection; -#line 3411 "LibraryWindow.c" +#line 3417 "LibraryWindow.c" } else { -#line 437 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 443 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_vala_collection); -#line 3415 "LibraryWindow.c" +#line 3421 "LibraryWindow.c" } -#line 437 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 443 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (start) { -#line 437 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 443 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" *start = _vala_start; -#line 3421 "LibraryWindow.c" +#line 3427 "LibraryWindow.c" } else { -#line 437 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 443 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_vala_start); -#line 3425 "LibraryWindow.c" +#line 3431 "LibraryWindow.c" } -#line 437 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 443 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (view_collection) { -#line 437 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 443 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" *view_collection = _vala_view_collection; -#line 3431 "LibraryWindow.c" +#line 3437 "LibraryWindow.c" } else { -#line 437 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 443 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _data_collection_unref0 (_vala_view_collection); -#line 3435 "LibraryWindow.c" +#line 3441 "LibraryWindow.c" } -#line 437 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 443 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return result; -#line 3439 "LibraryWindow.c" +#line 3445 "LibraryWindow.c" } -#line 440 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 446 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp8_ = page; -#line 440 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 446 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp8_, TYPE_EVENTS_DIRECTORY_PAGE)) { -#line 3445 "LibraryWindow.c" +#line 3451 "LibraryWindow.c" ViewCollection* view = NULL; Page* _tmp9_ = NULL; ViewCollection* _tmp10_ = NULL; @@ -3467,291 +3473,291 @@ static gboolean library_window_get_fullscreen_photo (LibraryWindow* self, Page* Photo* _tmp27_ = NULL; Photo* _tmp28_ = NULL; Photo* _tmp29_ = NULL; -#line 441 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 447 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp9_ = page; -#line 441 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 447 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp10_ = page_get_view (_tmp9_); -#line 441 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 447 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" view = _tmp10_; -#line 442 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 448 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp11_ = view; -#line 442 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 448 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp12_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_DATA_COLLECTION, DataCollection)); -#line 442 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 448 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp12_ == 0) { -#line 443 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 449 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" result = FALSE; -#line 443 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 449 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _data_collection_unref0 (view); -#line 443 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 449 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (collection) { -#line 443 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 449 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" *collection = _vala_collection; -#line 3491 "LibraryWindow.c" +#line 3497 "LibraryWindow.c" } else { -#line 443 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 449 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_vala_collection); -#line 3495 "LibraryWindow.c" +#line 3501 "LibraryWindow.c" } -#line 443 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 449 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (start) { -#line 443 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 449 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" *start = _vala_start; -#line 3501 "LibraryWindow.c" +#line 3507 "LibraryWindow.c" } else { -#line 443 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 449 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_vala_start); -#line 3505 "LibraryWindow.c" +#line 3511 "LibraryWindow.c" } -#line 443 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 449 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (view_collection) { -#line 443 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 449 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" *view_collection = _vala_view_collection; -#line 3511 "LibraryWindow.c" +#line 3517 "LibraryWindow.c" } else { -#line 443 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 449 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _data_collection_unref0 (_vala_view_collection); -#line 3515 "LibraryWindow.c" +#line 3521 "LibraryWindow.c" } -#line 443 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 449 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return result; -#line 3519 "LibraryWindow.c" +#line 3525 "LibraryWindow.c" } -#line 445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp13_ = view; -#line 445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp14_ = data_collection_get_at (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_DATA_COLLECTION, DataCollection), 0); -#line 445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp15_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_DATA_VIEW, DataView); -#line 445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp16_ = data_view_get_source (_tmp15_); -#line 445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp17_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_EVENT, Event); -#line 445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp15_); -#line 445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" event = _tmp17_; -#line 446 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 452 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp18_ = event; -#line 446 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 452 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp18_ == NULL) { -#line 447 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 453 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" result = FALSE; -#line 447 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 453 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (event); -#line 447 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 453 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _data_collection_unref0 (view); -#line 447 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 453 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (collection) { -#line 447 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 453 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" *collection = _vala_collection; -#line 3549 "LibraryWindow.c" +#line 3555 "LibraryWindow.c" } else { -#line 447 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 453 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_vala_collection); -#line 3553 "LibraryWindow.c" +#line 3559 "LibraryWindow.c" } -#line 447 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 453 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (start) { -#line 447 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 453 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" *start = _vala_start; -#line 3559 "LibraryWindow.c" +#line 3565 "LibraryWindow.c" } else { -#line 447 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 453 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_vala_start); -#line 3563 "LibraryWindow.c" +#line 3569 "LibraryWindow.c" } -#line 447 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 453 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (view_collection) { -#line 447 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 453 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" *view_collection = _vala_view_collection; -#line 3569 "LibraryWindow.c" +#line 3575 "LibraryWindow.c" } else { -#line 447 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 453 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _data_collection_unref0 (_vala_view_collection); -#line 3573 "LibraryWindow.c" +#line 3579 "LibraryWindow.c" } -#line 447 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 453 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return result; -#line 3577 "LibraryWindow.c" +#line 3583 "LibraryWindow.c" } -#line 449 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 455 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp19_ = self->priv->events_branch; -#line 449 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 455 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp20_ = event; -#line 449 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 455 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp21_ = events_branch_get_entry_for_event (_tmp19_, _tmp20_); -#line 449 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 455 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" entry = _tmp21_; -#line 450 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 456 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp22_ = entry; -#line 450 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 456 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp22_ == NULL) { -#line 451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 457 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" result = FALSE; -#line 451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 457 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (entry); -#line 451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 457 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (event); -#line 451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 457 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _data_collection_unref0 (view); -#line 451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 457 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (collection) { -#line 451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 457 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" *collection = _vala_collection; -#line 3603 "LibraryWindow.c" +#line 3609 "LibraryWindow.c" } else { -#line 451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 457 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_vala_collection); -#line 3607 "LibraryWindow.c" +#line 3613 "LibraryWindow.c" } -#line 451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 457 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (start) { -#line 451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 457 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" *start = _vala_start; -#line 3613 "LibraryWindow.c" +#line 3619 "LibraryWindow.c" } else { -#line 451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 457 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_vala_start); -#line 3617 "LibraryWindow.c" +#line 3623 "LibraryWindow.c" } -#line 451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 457 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (view_collection) { -#line 451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 457 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" *view_collection = _vala_view_collection; -#line 3623 "LibraryWindow.c" +#line 3629 "LibraryWindow.c" } else { -#line 451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 457 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _data_collection_unref0 (_vala_view_collection); -#line 3627 "LibraryWindow.c" +#line 3633 "LibraryWindow.c" } -#line 451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 457 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return result; -#line 3631 "LibraryWindow.c" +#line 3637 "LibraryWindow.c" } -#line 453 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 459 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp23_ = entry; -#line 453 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 459 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp24_ = sidebar_page_representative_get_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative)); -#line 453 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 459 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_vala_collection); -#line 453 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 459 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _vala_collection = G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_EVENT_PAGE, EventPage), TYPE_COLLECTION_PAGE, CollectionPage); -#line 454 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 460 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp25_ = _vala_collection; -#line 454 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 460 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp26_ = library_window_get_start_fullscreen_photo (self, _tmp25_); -#line 454 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 460 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" photo = _tmp26_; -#line 455 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 461 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp27_ = photo; -#line 455 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 461 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp27_ == NULL) { -#line 456 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 462 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" result = FALSE; -#line 456 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 462 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (photo); -#line 456 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 462 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (entry); -#line 456 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 462 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (event); -#line 456 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 462 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _data_collection_unref0 (view); -#line 456 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 462 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (collection) { -#line 456 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 462 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" *collection = _vala_collection; -#line 3665 "LibraryWindow.c" +#line 3671 "LibraryWindow.c" } else { -#line 456 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 462 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_vala_collection); -#line 3669 "LibraryWindow.c" +#line 3675 "LibraryWindow.c" } -#line 456 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 462 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (start) { -#line 456 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 462 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" *start = _vala_start; -#line 3675 "LibraryWindow.c" +#line 3681 "LibraryWindow.c" } else { -#line 456 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 462 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_vala_start); -#line 3679 "LibraryWindow.c" +#line 3685 "LibraryWindow.c" } -#line 456 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 462 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (view_collection) { -#line 456 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 462 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" *view_collection = _vala_view_collection; -#line 3685 "LibraryWindow.c" +#line 3691 "LibraryWindow.c" } else { -#line 456 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 462 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _data_collection_unref0 (_vala_view_collection); -#line 3689 "LibraryWindow.c" +#line 3695 "LibraryWindow.c" } -#line 456 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 462 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return result; -#line 3693 "LibraryWindow.c" +#line 3699 "LibraryWindow.c" } -#line 458 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 464 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp28_ = photo; -#line 458 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 464 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp29_ = _g_object_ref0 (_tmp28_); -#line 458 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 464 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_vala_start); -#line 458 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 464 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _vala_start = _tmp29_; -#line 459 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 465 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _data_collection_unref0 (_vala_view_collection); -#line 459 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 465 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _vala_view_collection = NULL; -#line 461 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 467 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" result = TRUE; -#line 461 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 467 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (photo); -#line 461 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 467 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (entry); -#line 461 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 467 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (event); -#line 461 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 467 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _data_collection_unref0 (view); -#line 461 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 467 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (collection) { -#line 461 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 467 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" *collection = _vala_collection; -#line 3721 "LibraryWindow.c" +#line 3727 "LibraryWindow.c" } else { -#line 461 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 467 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_vala_collection); -#line 3725 "LibraryWindow.c" +#line 3731 "LibraryWindow.c" } -#line 461 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 467 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (start) { -#line 461 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 467 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" *start = _vala_start; -#line 3731 "LibraryWindow.c" +#line 3737 "LibraryWindow.c" } else { -#line 461 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 467 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_vala_start); -#line 3735 "LibraryWindow.c" +#line 3741 "LibraryWindow.c" } -#line 461 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 467 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (view_collection) { -#line 461 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 467 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" *view_collection = _vala_view_collection; -#line 3741 "LibraryWindow.c" +#line 3747 "LibraryWindow.c" } else { -#line 461 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 467 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _data_collection_unref0 (_vala_view_collection); -#line 3745 "LibraryWindow.c" +#line 3751 "LibraryWindow.c" } -#line 461 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 467 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return result; -#line 3749 "LibraryWindow.c" +#line 3755 "LibraryWindow.c" } -#line 464 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 470 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp30_ = page; -#line 464 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 470 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp30_, TYPE_LIBRARY_PHOTO_PAGE)) { -#line 3755 "LibraryWindow.c" +#line 3761 "LibraryWindow.c" LibraryPhotoPage* photo_page = NULL; Page* _tmp31_ = NULL; LibraryPhotoPage* _tmp32_ = NULL; @@ -3767,207 +3773,207 @@ static gboolean library_window_get_fullscreen_photo (LibraryWindow* self, Page* Photo* _tmp41_ = NULL; LibraryPhotoPage* _tmp42_ = NULL; ViewCollection* _tmp43_ = NULL; -#line 465 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 471 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp31_ = page; -#line 465 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 471 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp32_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage)); -#line 465 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 471 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" photo_page = _tmp32_; -#line 467 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 473 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp33_ = photo_page; -#line 467 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 473 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp34_ = library_photo_page_get_controller_page (_tmp33_); -#line 467 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 473 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" controller = _tmp34_; -#line 468 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 474 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp35_ = controller; -#line 468 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 474 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp35_ == NULL) { -#line 469 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 475 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" result = FALSE; -#line 469 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 475 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (controller); -#line 469 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 475 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (photo_page); -#line 469 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 475 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (collection) { -#line 469 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 475 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" *collection = _vala_collection; -#line 3797 "LibraryWindow.c" +#line 3803 "LibraryWindow.c" } else { -#line 469 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 475 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_vala_collection); -#line 3801 "LibraryWindow.c" +#line 3807 "LibraryWindow.c" } -#line 469 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 475 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (start) { -#line 469 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 475 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" *start = _vala_start; -#line 3807 "LibraryWindow.c" +#line 3813 "LibraryWindow.c" } else { -#line 469 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 475 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_vala_start); -#line 3811 "LibraryWindow.c" +#line 3817 "LibraryWindow.c" } -#line 469 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 475 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (view_collection) { -#line 469 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 475 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" *view_collection = _vala_view_collection; -#line 3817 "LibraryWindow.c" +#line 3823 "LibraryWindow.c" } else { -#line 469 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 475 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _data_collection_unref0 (_vala_view_collection); -#line 3821 "LibraryWindow.c" +#line 3827 "LibraryWindow.c" } -#line 469 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 475 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return result; -#line 3825 "LibraryWindow.c" +#line 3831 "LibraryWindow.c" } -#line 471 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 477 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp36_ = photo_page; -#line 471 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 477 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp37_ = editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 471 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 477 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (!_tmp37_) { -#line 472 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 478 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" result = FALSE; -#line 472 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 478 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (controller); -#line 472 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 478 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (photo_page); -#line 472 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 478 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (collection) { -#line 472 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 478 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" *collection = _vala_collection; -#line 3843 "LibraryWindow.c" +#line 3849 "LibraryWindow.c" } else { -#line 472 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 478 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_vala_collection); -#line 3847 "LibraryWindow.c" +#line 3853 "LibraryWindow.c" } -#line 472 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 478 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (start) { -#line 472 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 478 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" *start = _vala_start; -#line 3853 "LibraryWindow.c" +#line 3859 "LibraryWindow.c" } else { -#line 472 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 478 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_vala_start); -#line 3857 "LibraryWindow.c" +#line 3863 "LibraryWindow.c" } -#line 472 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 478 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (view_collection) { -#line 472 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 478 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" *view_collection = _vala_view_collection; -#line 3863 "LibraryWindow.c" +#line 3869 "LibraryWindow.c" } else { -#line 472 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 478 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _data_collection_unref0 (_vala_view_collection); -#line 3867 "LibraryWindow.c" +#line 3873 "LibraryWindow.c" } -#line 472 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 478 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return result; -#line 3871 "LibraryWindow.c" +#line 3877 "LibraryWindow.c" } -#line 474 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 480 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp38_ = controller; -#line 474 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 480 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp39_ = _g_object_ref0 (_tmp38_); -#line 474 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 480 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_vala_collection); -#line 474 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 480 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _vala_collection = _tmp39_; -#line 475 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 481 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp40_ = photo_page; -#line 475 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 481 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp41_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 475 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 481 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_vala_start); -#line 475 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 481 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _vala_start = _tmp41_; -#line 476 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 482 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp42_ = photo_page; -#line 476 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 482 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp43_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, TYPE_PAGE, Page)); -#line 476 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 482 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _data_collection_unref0 (_vala_view_collection); -#line 476 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 482 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _vala_view_collection = _tmp43_; -#line 478 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 484 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" result = TRUE; -#line 478 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 484 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (controller); -#line 478 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 484 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (photo_page); -#line 478 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 484 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (collection) { -#line 478 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 484 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" *collection = _vala_collection; -#line 3907 "LibraryWindow.c" +#line 3913 "LibraryWindow.c" } else { -#line 478 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 484 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_vala_collection); -#line 3911 "LibraryWindow.c" +#line 3917 "LibraryWindow.c" } -#line 478 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 484 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (start) { -#line 478 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 484 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" *start = _vala_start; -#line 3917 "LibraryWindow.c" +#line 3923 "LibraryWindow.c" } else { -#line 478 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 484 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_vala_start); -#line 3921 "LibraryWindow.c" +#line 3927 "LibraryWindow.c" } -#line 478 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 484 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (view_collection) { -#line 478 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 484 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" *view_collection = _vala_view_collection; -#line 3927 "LibraryWindow.c" +#line 3933 "LibraryWindow.c" } else { -#line 478 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 484 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _data_collection_unref0 (_vala_view_collection); -#line 3931 "LibraryWindow.c" +#line 3937 "LibraryWindow.c" } -#line 478 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 484 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return result; -#line 3935 "LibraryWindow.c" +#line 3941 "LibraryWindow.c" } -#line 481 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 487 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" result = FALSE; -#line 481 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 487 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (collection) { -#line 481 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 487 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" *collection = _vala_collection; -#line 3943 "LibraryWindow.c" +#line 3949 "LibraryWindow.c" } else { -#line 481 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 487 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_vala_collection); -#line 3947 "LibraryWindow.c" +#line 3953 "LibraryWindow.c" } -#line 481 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 487 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (start) { -#line 481 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 487 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" *start = _vala_start; -#line 3953 "LibraryWindow.c" +#line 3959 "LibraryWindow.c" } else { -#line 481 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 487 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_vala_start); -#line 3957 "LibraryWindow.c" +#line 3963 "LibraryWindow.c" } -#line 481 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 487 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (view_collection) { -#line 481 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 487 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" *view_collection = _vala_view_collection; -#line 3963 "LibraryWindow.c" +#line 3969 "LibraryWindow.c" } else { -#line 481 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 487 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _data_collection_unref0 (_vala_view_collection); -#line 3967 "LibraryWindow.c" +#line 3973 "LibraryWindow.c" } -#line 481 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 487 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return result; -#line 3971 "LibraryWindow.c" +#line 3977 "LibraryWindow.c" } @@ -3990,97 +3996,97 @@ static void library_window_real_on_fullscreen (AppWindow* base) { ViewCollection* _tmp9_ = NULL; LibraryWindowFullscreenPhotoPage* _tmp10_ = NULL; LibraryWindowFullscreenPhotoPage* _tmp11_ = NULL; -#line 484 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 490 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_WINDOW, LibraryWindow); -#line 485 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 491 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 485 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 491 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" current_page = _tmp0_; -#line 486 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 492 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = current_page; -#line 486 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 492 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp1_ == NULL) { -#line 487 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 493 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (current_page); -#line 487 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 493 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return; -#line 4008 "LibraryWindow.c" +#line 4014 "LibraryWindow.c" } -#line 491 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 497 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" view = NULL; -#line 492 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 498 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = current_page; -#line 492 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 498 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = library_window_get_fullscreen_photo (self, _tmp2_, &_tmp3_, &_tmp4_, &_tmp5_); -#line 492 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 498 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (collection); -#line 492 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 498 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" collection = _tmp3_; -#line 492 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 498 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (start); -#line 492 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 498 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" start = _tmp4_; -#line 492 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 498 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _data_collection_unref0 (view); -#line 492 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 498 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" view = _tmp5_; -#line 492 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 498 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (!_tmp6_) { -#line 493 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 499 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _data_collection_unref0 (view); -#line 493 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 499 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (start); -#line 493 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 499 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (collection); -#line 493 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 499 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (current_page); -#line 493 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 499 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return; -#line 4040 "LibraryWindow.c" +#line 4046 "LibraryWindow.c" } -#line 495 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 501 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp7_ = collection; -#line 495 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 501 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp8_ = start; -#line 495 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 501 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp9_ = view; -#line 495 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 501 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp10_ = library_window_fullscreen_photo_page_new (_tmp7_, _tmp8_, _tmp9_); -#line 495 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 501 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_object_ref_sink (_tmp10_); -#line 495 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 501 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" fs_photo = _tmp10_; -#line 497 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 503 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp11_ = fs_photo; -#line 497 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 503 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" app_window_go_fullscreen (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow), G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_PAGE, Page)); -#line 484 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 490 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (fs_photo); -#line 484 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 490 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _data_collection_unref0 (view); -#line 484 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 490 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (start); -#line 484 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 490 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (collection); -#line 484 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 490 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (current_page); -#line 4068 "LibraryWindow.c" +#line 4074 "LibraryWindow.c" } static void _g_free0_ (gpointer var) { -#line 517 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 523 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" var = (g_free (var), NULL); -#line 4075 "LibraryWindow.c" +#line 4081 "LibraryWindow.c" } static void _g_slist_free__g_free0_ (GSList* self) { -#line 517 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 523 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_slist_foreach (self, (GFunc) _g_free0_, NULL); -#line 517 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 523 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_slist_free (self); -#line 4084 "LibraryWindow.c" +#line 4090 "LibraryWindow.c" } @@ -4099,41 +4105,41 @@ static void library_window_on_file_import (LibraryWindow* self) { GtkFileChooserDialog* _tmp23_ = NULL; gchar* _tmp24_ = NULL; GtkFileChooserDialog* _tmp25_ = NULL; -#line 500 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 506 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 501 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 507 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = _ ("Import From Folder"); -#line 501 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 507 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = (GtkFileChooserDialog*) gtk_file_chooser_dialog_new (_tmp0_, NULL, GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER, RESOURCES_CANCEL_LABEL, GTK_RESPONSE_CANCEL, RESOURCES_OK_LABEL, GTK_RESPONSE_OK, NULL); -#line 501 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 507 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_object_ref_sink (_tmp1_); -#line 501 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 507 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" import_dialog = _tmp1_; -#line 504 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 510 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = import_dialog; -#line 504 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 510 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_file_chooser_set_local_only (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GTK_TYPE_FILE_CHOOSER, GtkFileChooser), FALSE); -#line 505 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 511 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = import_dialog; -#line 505 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 511 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_file_chooser_set_select_multiple (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GTK_TYPE_FILE_CHOOSER, GtkFileChooser), TRUE); -#line 506 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 512 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = import_dialog; -#line 506 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 512 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = self->priv->import_dir; -#line 506 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 512 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_file_chooser_set_current_folder (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GTK_TYPE_FILE_CHOOSER, GtkFileChooser), _tmp5_); -#line 508 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 514 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = import_dialog; -#line 508 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 514 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp7_ = gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_dialog_get_type (), GtkDialog)); -#line 508 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 514 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" response = _tmp7_; -#line 510 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 516 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp8_ = response; -#line 510 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 516 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp8_ == ((gint) GTK_RESPONSE_OK)) { -#line 4137 "LibraryWindow.c" +#line 4143 "LibraryWindow.c" GtkResponseType _tmp9_ = 0; GtkFileChooserDialog* _tmp10_ = NULL; gchar* _tmp11_ = NULL; @@ -4144,95 +4150,95 @@ static void library_window_on_file_import (LibraryWindow* self) { gboolean _tmp16_ = FALSE; GtkResponseType copy_files_response = 0; GtkResponseType _tmp18_ = 0; -#line 513 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 519 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp10_ = import_dialog; -#line 513 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 519 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp11_ = gtk_file_chooser_get_uri (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GTK_TYPE_FILE_CHOOSER, GtkFileChooser)); -#line 513 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 519 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp12_ = _tmp11_; -#line 513 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 519 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp13_ = g_file_new_for_uri (_tmp12_); -#line 513 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 519 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp14_ = _tmp13_; -#line 513 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 519 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp15_ = app_dirs_is_in_import_dir (_tmp14_); -#line 513 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 519 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp16_ = _tmp15_; -#line 513 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 519 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp14_); -#line 513 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 519 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_free0 (_tmp12_); -#line 513 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 519 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp16_) { -#line 514 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 520 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp9_ = GTK_RESPONSE_REJECT; -#line 4170 "LibraryWindow.c" +#line 4176 "LibraryWindow.c" } else { GtkResponseType _tmp17_ = 0; -#line 514 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 520 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp17_ = copy_files_dialog (); -#line 514 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 520 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp9_ = _tmp17_; -#line 4177 "LibraryWindow.c" +#line 4183 "LibraryWindow.c" } -#line 512 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 518 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" copy_files_response = _tmp9_; -#line 516 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 522 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp18_ = copy_files_response; -#line 516 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 522 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp18_ != GTK_RESPONSE_CANCEL) { -#line 4185 "LibraryWindow.c" +#line 4191 "LibraryWindow.c" GtkFileChooserDialog* _tmp19_ = NULL; GSList* _tmp20_ = NULL; GSList* _tmp21_ = NULL; GtkResponseType _tmp22_ = 0; -#line 517 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 523 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp19_ = import_dialog; -#line 517 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 523 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp20_ = gtk_file_chooser_get_uris (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GTK_TYPE_FILE_CHOOSER, GtkFileChooser)); -#line 517 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 523 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp21_ = _tmp20_; -#line 517 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 523 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp22_ = copy_files_response; -#line 517 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 523 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_dispatch_import_jobs (self, _tmp21_, "folders", _tmp22_ == GTK_RESPONSE_ACCEPT); -#line 517 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 523 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" __g_slist_free__g_free0_0 (_tmp21_); -#line 4202 "LibraryWindow.c" +#line 4208 "LibraryWindow.c" } } -#line 522 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 528 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp23_ = import_dialog; -#line 522 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 528 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp24_ = gtk_file_chooser_get_current_folder (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GTK_TYPE_FILE_CHOOSER, GtkFileChooser)); -#line 522 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 528 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_free0 (self->priv->import_dir); -#line 522 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 528 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self->priv->import_dir = _tmp24_; -#line 523 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 529 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp25_ = import_dialog; -#line 523 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 529 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, gtk_widget_get_type (), GtkWidget)); -#line 500 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 506 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (import_dialog); -#line 4219 "LibraryWindow.c" +#line 4225 "LibraryWindow.c" } static void library_window_on_external_library_import (LibraryWindow* self) { GtkDialog* import_dialog = NULL; DataImportsUIDataImportsDialog* _tmp0_ = NULL; -#line 526 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 532 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 527 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 533 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = data_imports_ui_data_imports_dialog_get_or_create_instance (); -#line 527 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 533 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" import_dialog = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_dialog_get_type (), GtkDialog); -#line 529 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 535 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_dialog_run (import_dialog); -#line 526 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 532 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (import_dialog); -#line 4236 "LibraryWindow.c" +#line 4242 "LibraryWindow.c" } @@ -4242,27 +4248,27 @@ static void library_window_real_update_common_action_availability (AppWindow* ba Page* _tmp1_ = NULL; gboolean is_checkerboard = FALSE; Page* _tmp2_ = NULL; -#line 532 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 538 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_WINDOW, LibraryWindow); -#line 532 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 538 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail ((old_page == NULL) || IS_PAGE (old_page)); -#line 532 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 538 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail ((new_page == NULL) || IS_PAGE (new_page)); -#line 533 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 539 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = old_page; -#line 533 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 539 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = new_page; -#line 533 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 539 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" APP_WINDOW_CLASS (library_window_parent_class)->update_common_action_availability (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow), _tmp0_, _tmp1_); -#line 535 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 541 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = new_page; -#line 535 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 541 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" is_checkerboard = G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, TYPE_CHECKERBOARD_PAGE); -#line 537 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 543 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" app_window_set_common_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow), "CommonDisplaySearchbar", is_checkerboard); -#line 538 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 544 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" app_window_set_common_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow), "CommonFind", is_checkerboard); -#line 4266 "LibraryWindow.c" +#line 4272 "LibraryWindow.c" } @@ -4280,61 +4286,61 @@ static void library_window_real_update_common_actions (AppWindow* base, Page* pa Page* _tmp6_ = NULL; gint _tmp7_ = 0; gint _tmp8_ = 0; -#line 541 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 547 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_WINDOW, LibraryWindow); -#line 541 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_PAGE (page)); #line 547 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + g_return_if_fail (IS_PAGE (page)); +#line 553 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = page; -#line 547 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 553 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = library_window_get_fullscreen_photo (self, _tmp0_, &_tmp1_, &_tmp2_, NULL); -#line 547 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 553 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (collection); -#line 547 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 553 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" collection = _tmp1_; -#line 547 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 553 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (start); -#line 547 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 553 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" start = _tmp2_; -#line 547 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 553 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" can_fullscreen = _tmp3_; -#line 549 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 555 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = library_window_can_empty_trash (self); -#line 549 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 555 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" app_window_set_common_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow), "CommonEmptyTrash", _tmp4_); -#line 550 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 556 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" app_window_set_common_action_visible (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow), "CommonJumpToEvent", TRUE); -#line 551 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 557 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = library_window_can_jump_to_event (self); -#line 551 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 557 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" app_window_set_common_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow), "CommonJumpToEvent", _tmp5_); -#line 552 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 558 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" app_window_set_common_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow), "CommonFullscreen", can_fullscreen); -#line 554 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 560 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = page; -#line 554 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 560 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp7_ = selected_count; -#line 554 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 560 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp8_ = count; -#line 554 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 560 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" APP_WINDOW_CLASS (library_window_parent_class)->update_common_actions (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow), _tmp6_, _tmp7_, _tmp8_); -#line 541 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 547 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (start); -#line 541 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 547 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (collection); -#line 4326 "LibraryWindow.c" +#line 4332 "LibraryWindow.c" } static void library_window_on_trashcan_contents_altered (LibraryWindow* self) { gboolean _tmp0_ = FALSE; -#line 557 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 563 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 558 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 564 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = library_window_can_empty_trash (self); -#line 558 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 564 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" app_window_set_common_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow), "CommonEmptyTrash", _tmp0_); -#line 4338 "LibraryWindow.c" +#line 4344 "LibraryWindow.c" } @@ -4343,33 +4349,33 @@ static gboolean library_window_can_empty_trash (LibraryWindow* self) { gboolean _tmp0_ = FALSE; LibraryPhotoSourceCollection* _tmp1_ = NULL; gint _tmp2_ = 0; -#line 561 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 567 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_val_if_fail (IS_LIBRARY_WINDOW (self), FALSE); -#line 562 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 568 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = library_photo_global; -#line 562 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 568 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = media_source_collection_get_trashcan_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 562 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 568 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp2_ > 0) { -#line 562 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 568 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = TRUE; -#line 4357 "LibraryWindow.c" +#line 4363 "LibraryWindow.c" } else { VideoSourceCollection* _tmp3_ = NULL; gint _tmp4_ = 0; -#line 562 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 568 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = video_global; -#line 562 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 568 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = media_source_collection_get_trashcan_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 562 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 568 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = _tmp4_ > 0; -#line 4367 "LibraryWindow.c" +#line 4373 "LibraryWindow.c" } -#line 562 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 568 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" result = _tmp0_; -#line 562 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 568 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return result; -#line 4373 "LibraryWindow.c" +#line 4379 "LibraryWindow.c" } @@ -4386,66 +4392,66 @@ static void library_window_on_empty_trash (LibraryWindow* self) { const gchar* _tmp8_ = NULL; CommandManager* _tmp9_ = NULL; CommandManager* _tmp10_ = NULL; -#line 565 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 571 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 566 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 572 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = gee_array_list_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL); -#line 566 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 572 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" to_remove = _tmp0_; -#line 567 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 573 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = library_photo_global; -#line 567 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 573 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = media_source_collection_get_trashcan_contents (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 567 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 573 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = _tmp2_; -#line 567 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 573 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gee_array_list_add_all (to_remove, _tmp3_); -#line 567 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 573 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp3_); -#line 568 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 574 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = video_global; -#line 568 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 574 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = media_source_collection_get_trashcan_contents (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 568 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 574 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = _tmp5_; -#line 568 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 574 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gee_array_list_add_all (to_remove, _tmp6_); -#line 568 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 574 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp6_); -#line 570 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 576 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp7_ = _ ("Empty Trash"); -#line 570 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 576 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp8_ = _ ("Emptying Trash…"); -#line 570 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 576 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" remove_from_app (G_TYPE_CHECK_INSTANCE_CAST (to_remove, GEE_TYPE_COLLECTION, GeeCollection), _tmp7_, _tmp8_); -#line 572 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 578 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp9_ = app_window_get_command_manager (); -#line 572 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 578 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp10_ = _tmp9_; -#line 572 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 578 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" command_manager_reset (_tmp10_); -#line 572 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 578 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _command_manager_unref0 (_tmp10_); -#line 565 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 571 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (to_remove); -#line 4432 "LibraryWindow.c" +#line 4438 "LibraryWindow.c" } static void library_window_on_new_search (LibraryWindow* self) { SavedSearchDialog* _tmp0_ = NULL; SavedSearchDialog* _tmp1_ = NULL; -#line 575 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 581 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 576 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 582 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = saved_search_dialog_new (); -#line 576 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 582 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = _tmp0_; -#line 576 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 582 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" saved_search_dialog_show (_tmp1_); -#line 576 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 582 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _saved_search_dialog_unref0 (_tmp1_); -#line 4449 "LibraryWindow.c" +#line 4455 "LibraryWindow.c" } @@ -4458,115 +4464,115 @@ static gboolean library_window_can_jump_to_event (LibraryWindow* self) { ViewCollection* _tmp3_ = NULL; ViewCollection* _tmp4_ = NULL; gint _tmp5_ = 0; -#line 579 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 585 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_val_if_fail (IS_LIBRARY_WINDOW (self), FALSE); -#line 580 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 586 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 580 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 586 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = _tmp0_; -#line 580 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 586 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = page_get_view (_tmp1_); -#line 580 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 586 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = _tmp2_; -#line 580 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 586 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp1_); -#line 580 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 586 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" view = _tmp3_; -#line 581 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 587 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = view; -#line 581 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 587 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = view_collection_get_selected_count (_tmp4_); -#line 581 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 587 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp5_ == 1) { -#line 4482 "LibraryWindow.c" +#line 4488 "LibraryWindow.c" DataSource* selected_source = NULL; ViewCollection* _tmp6_ = NULL; DataSource* _tmp7_ = NULL; DataSource* _tmp8_ = NULL; -#line 582 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 588 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = view; -#line 582 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 588 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp7_ = view_collection_get_selected_source_at (_tmp6_, 0); -#line 582 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 588 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" selected_source = _tmp7_; -#line 583 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 589 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp8_ = selected_source; -#line 583 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 589 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp8_, TYPE_EVENT)) { -#line 584 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 590 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" result = TRUE; -#line 584 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 590 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (selected_source); -#line 584 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 590 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _data_collection_unref0 (view); -#line 584 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 590 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return result; -#line 4505 "LibraryWindow.c" +#line 4511 "LibraryWindow.c" } else { DataSource* _tmp9_ = NULL; -#line 585 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 591 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp9_ = selected_source; -#line 585 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 591 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, TYPE_MEDIA_SOURCE)) { -#line 4512 "LibraryWindow.c" +#line 4518 "LibraryWindow.c" ViewCollection* _tmp10_ = NULL; DataSource* _tmp11_ = NULL; MediaSource* _tmp12_ = NULL; Event* _tmp13_ = NULL; Event* _tmp14_ = NULL; gboolean _tmp15_ = FALSE; -#line 586 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 592 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp10_ = view; -#line 586 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 592 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp11_ = view_collection_get_selected_source_at (_tmp10_, 0); -#line 586 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 592 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp12_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_MEDIA_SOURCE, MediaSource); -#line 586 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 592 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp13_ = media_source_get_event (_tmp12_); -#line 586 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 592 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp14_ = _tmp13_; -#line 586 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 592 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp15_ = _tmp14_ != NULL; -#line 586 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 592 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp14_); -#line 586 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 592 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp12_); -#line 586 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 592 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" result = _tmp15_; -#line 586 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 592 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (selected_source); -#line 586 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 592 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _data_collection_unref0 (view); -#line 586 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 592 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return result; -#line 4543 "LibraryWindow.c" +#line 4549 "LibraryWindow.c" } else { -#line 588 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 594 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" result = FALSE; -#line 588 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 594 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (selected_source); -#line 588 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 594 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _data_collection_unref0 (view); -#line 588 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 594 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return result; -#line 4553 "LibraryWindow.c" +#line 4559 "LibraryWindow.c" } } -#line 581 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 587 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (selected_source); -#line 4558 "LibraryWindow.c" +#line 4564 "LibraryWindow.c" } else { -#line 590 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 596 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" result = FALSE; -#line 590 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 596 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _data_collection_unref0 (view); -#line 590 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 596 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return result; -#line 4566 "LibraryWindow.c" +#line 4572 "LibraryWindow.c" } -#line 579 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 585 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _data_collection_unref0 (view); -#line 4570 "LibraryWindow.c" +#line 4576 "LibraryWindow.c" } @@ -4587,98 +4593,98 @@ static void library_window_on_jump_to_event (LibraryWindow* self) { Event* _tmp11_ = NULL; Event* _tmp12_ = NULL; gboolean _tmp13_ = FALSE; -#line 594 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 600 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 595 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 601 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 595 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 601 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = _tmp0_; -#line 595 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 601 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = page_get_view (_tmp1_); -#line 595 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 601 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = _tmp2_; -#line 595 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 601 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp1_); -#line 595 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 601 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" view = _tmp3_; -#line 597 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 603 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = view; -#line 597 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 603 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = view_collection_get_selected_count (_tmp4_); -#line 597 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 603 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp5_ != 1) { -#line 598 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 604 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _data_collection_unref0 (view); -#line 598 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 604 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return; -#line 4615 "LibraryWindow.c" +#line 4621 "LibraryWindow.c" } -#line 600 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 606 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = view; -#line 600 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 606 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp7_ = view_collection_get_selected_source_at (_tmp6_, 0); -#line 600 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 606 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp8_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, TYPE_MEDIA_SOURCE) ? ((MediaSource*) _tmp7_) : NULL; -#line 600 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 606 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp8_ == NULL) { -#line 600 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 606 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp7_); -#line 4627 "LibraryWindow.c" +#line 4633 "LibraryWindow.c" } -#line 600 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 606 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" media = _tmp8_; -#line 601 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 607 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp9_ = media; -#line 601 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 607 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp9_ == NULL) { -#line 602 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 608 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (media); -#line 602 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 608 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _data_collection_unref0 (view); -#line 602 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 608 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return; -#line 4641 "LibraryWindow.c" +#line 4647 "LibraryWindow.c" } -#line 604 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 610 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp10_ = media; -#line 604 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 610 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp11_ = media_source_get_event (_tmp10_); -#line 604 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 610 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp12_ = _tmp11_; -#line 604 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 610 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp13_ = _tmp12_ != NULL; -#line 604 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 610 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp12_); -#line 604 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 610 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp13_) { -#line 4655 "LibraryWindow.c" +#line 4661 "LibraryWindow.c" MediaSource* _tmp14_ = NULL; Event* _tmp15_ = NULL; Event* _tmp16_ = NULL; -#line 605 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 611 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp14_ = media; -#line 605 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 611 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp15_ = media_source_get_event (_tmp14_); -#line 605 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 611 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp16_ = _tmp15_; -#line 605 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 611 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_switch_to_event (self, _tmp16_); -#line 605 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 611 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp16_); -#line 4669 "LibraryWindow.c" +#line 4675 "LibraryWindow.c" } -#line 594 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 600 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (media); -#line 594 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 600 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _data_collection_unref0 (view); -#line 4675 "LibraryWindow.c" +#line 4681 "LibraryWindow.c" } static GVariant* _variant_new5 (gboolean value) { -#line 610 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 616 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 4682 "LibraryWindow.c" +#line 4688 "LibraryWindow.c" } @@ -4688,57 +4694,57 @@ static void library_window_on_find (LibraryWindow* self) { GAction* _tmp1_ = NULL; GVariant* _tmp2_ = NULL; SearchFilterToolbar* _tmp3_ = NULL; -#line 608 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 614 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 609 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 615 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = g_action_map_lookup_action (G_TYPE_CHECK_INSTANCE_CAST (self, g_action_map_get_type (), GActionMap), "CommonDisplaySearchbar"); -#line 609 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 615 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = _g_object_ref0 (_tmp0_); -#line 609 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 615 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" action = _tmp1_; -#line 610 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 616 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = _variant_new5 (TRUE); -#line 610 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 616 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_action_change_state (action, _tmp2_); -#line 610 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 616 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_variant_unref0 (_tmp2_); -#line 613 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 619 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = self->priv->search_toolbar; -#line 613 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 619 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" search_filter_toolbar_take_focus (_tmp3_); -#line 608 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 614 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (action); -#line 4712 "LibraryWindow.c" +#line 4718 "LibraryWindow.c" } static void library_window_on_media_altered (LibraryWindow* self) { gboolean _tmp0_ = FALSE; -#line 616 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 622 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 617 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 623 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = library_window_can_jump_to_event (self); -#line 617 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 623 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" app_window_set_common_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow), "CommonJumpToEvent", _tmp0_); -#line 4724 "LibraryWindow.c" +#line 4730 "LibraryWindow.c" } static void library_window_on_clear_search (LibraryWindow* self) { gboolean _tmp0_ = FALSE; -#line 620 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 626 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 621 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 627 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = self->priv->is_search_toolbar_visible; -#line 621 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 627 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp0_) { -#line 4736 "LibraryWindow.c" +#line 4742 "LibraryWindow.c" SearchFilterActions* _tmp1_ = NULL; -#line 622 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 628 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = self->priv->search_actions; -#line 622 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 628 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" search_filter_actions_reset (_tmp1_); -#line 4742 "LibraryWindow.c" +#line 4748 "LibraryWindow.c" } } @@ -4750,19 +4756,19 @@ gint library_window_get_events_sort (LibraryWindow* self) { GSimpleAction* _tmp1_ = NULL; gint _tmp2_ = 0; GSimpleAction* _tmp3_ = NULL; -#line 625 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 631 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_val_if_fail (IS_LIBRARY_WINDOW (self), 0); -#line 626 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 632 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = g_action_map_lookup_action (G_TYPE_CHECK_INSTANCE_CAST (self, g_action_map_get_type (), GActionMap), "CommonSortEvents"); -#line 626 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 632 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp0_) : NULL); -#line 626 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 632 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" action = _tmp1_; -#line 628 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 634 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = action; -#line 628 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 634 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp3_ != NULL) { -#line 4766 "LibraryWindow.c" +#line 4772 "LibraryWindow.c" gint _tmp4_ = 0; GSimpleAction* _tmp5_ = NULL; GVariant* _tmp6_ = NULL; @@ -4770,45 +4776,45 @@ gint library_window_get_events_sort (LibraryWindow* self) { GVariant* _tmp8_ = NULL; const gchar* _tmp9_ = NULL; gboolean _tmp10_ = FALSE; -#line 628 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 634 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = action; -#line 628 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 634 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = g_action_get_state (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, g_action_get_type (), GAction)); -#line 628 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 634 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp7_ = _tmp6_; -#line 628 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 634 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp8_ = _tmp7_; -#line 628 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 634 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp9_ = g_variant_get_string (_tmp8_, NULL); -#line 628 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 634 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp10_ = g_strcmp0 (_tmp9_, LIBRARY_WINDOW_SORT_EVENTS_ORDER_ASCENDING) == 0; -#line 628 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 634 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_variant_unref0 (_tmp8_); -#line 628 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 634 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp10_) { -#line 629 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 635 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = 0; -#line 4792 "LibraryWindow.c" +#line 4798 "LibraryWindow.c" } else { -#line 629 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 635 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = 1; -#line 4796 "LibraryWindow.c" +#line 4802 "LibraryWindow.c" } -#line 628 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 634 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = _tmp4_; -#line 4800 "LibraryWindow.c" +#line 4806 "LibraryWindow.c" } else { -#line 630 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 636 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = 1; -#line 4804 "LibraryWindow.c" +#line 4810 "LibraryWindow.c" } -#line 628 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 634 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" result = _tmp2_; -#line 628 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 634 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (action); -#line 628 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 634 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return result; -#line 4812 "LibraryWindow.c" +#line 4818 "LibraryWindow.c" } @@ -4819,38 +4825,38 @@ static void library_window_on_events_sort_changed (LibraryWindow* self, GSimpleA const gchar* _tmp3_ = NULL; GSimpleAction* _tmp4_ = NULL; GVariant* _tmp5_ = NULL; -#line 633 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 639 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 633 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 639 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (G_IS_SIMPLE_ACTION (action)); -#line 635 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 641 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = config_facade_get_instance (); -#line 635 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 641 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = _tmp0_; -#line 635 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 641 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = value; -#line 635 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 641 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = g_variant_get_string (_tmp2_, NULL); -#line 635 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 641 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" configuration_facade_set_events_sort_ascending (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), g_strcmp0 (_tmp3_, LIBRARY_WINDOW_SORT_EVENTS_ORDER_ASCENDING) == 0); -#line 635 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 641 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp1_); -#line 638 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 644 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = action; -#line 638 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 644 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = value; -#line 638 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 644 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_simple_action_set_state (_tmp4_, _tmp5_); -#line 4845 "LibraryWindow.c" +#line 4851 "LibraryWindow.c" } static void library_window_on_preferences (LibraryWindow* self) { -#line 641 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 647 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 642 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 648 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" preferences_dialog_show (); -#line 4854 "LibraryWindow.c" +#line 4860 "LibraryWindow.c" } @@ -4864,89 +4870,89 @@ static void library_window_on_display_basic_properties (LibraryWindow* self, GSi gboolean _tmp12_ = FALSE; GSimpleAction* _tmp13_ = NULL; GVariant* _tmp14_ = NULL; -#line 645 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 651 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 645 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 651 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (G_IS_SIMPLE_ACTION (action)); -#line 646 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 652 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = value; -#line 646 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 652 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = g_variant_get_boolean (_tmp0_); -#line 646 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 652 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" display = _tmp1_; -#line 648 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 654 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = display; -#line 648 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 654 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp2_) { -#line 4882 "LibraryWindow.c" +#line 4888 "LibraryWindow.c" BasicProperties* _tmp3_ = NULL; Page* _tmp4_ = NULL; Page* _tmp5_ = NULL; GtkFrame* _tmp6_ = NULL; -#line 649 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 655 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = self->priv->basic_properties; -#line 649 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 655 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 649 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 655 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = _tmp4_; -#line 649 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 655 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" properties_update_properties (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_PROPERTIES, Properties), _tmp5_); -#line 649 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 655 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp5_); -#line 650 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 656 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = self->priv->bottom_frame; -#line 650 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 656 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_widget_show (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget)); -#line 4901 "LibraryWindow.c" +#line 4907 "LibraryWindow.c" } else { GtkPaned* _tmp7_ = NULL; GtkWidget* _tmp8_ = NULL; -#line 652 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 658 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp7_ = self->priv->sidebar_paned; -#line 652 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 658 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp8_ = gtk_paned_get_child2 (_tmp7_); -#line 652 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 658 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp8_ != NULL) { -#line 4911 "LibraryWindow.c" +#line 4917 "LibraryWindow.c" GtkFrame* _tmp9_ = NULL; -#line 653 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 659 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp9_ = self->priv->bottom_frame; -#line 653 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 659 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget)); -#line 4917 "LibraryWindow.c" +#line 4923 "LibraryWindow.c" } } -#line 658 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 664 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp10_ = config_facade_get_instance (); -#line 658 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 664 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp11_ = _tmp10_; -#line 658 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 664 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp12_ = display; -#line 658 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 664 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" configuration_facade_set_display_basic_properties (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp12_); -#line 658 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 664 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp11_); -#line 659 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 665 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp13_ = action; -#line 659 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 665 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp14_ = value; -#line 659 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 665 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_simple_action_set_state (_tmp13_, _tmp14_); -#line 4936 "LibraryWindow.c" +#line 4942 "LibraryWindow.c" } static gboolean _variant_get6 (GVariant* value) { -#line 663 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 669 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return g_variant_get_boolean (value); -#line 4943 "LibraryWindow.c" +#line 4949 "LibraryWindow.c" } static GVariant* _variant_new7 (gboolean value) { -#line 663 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 669 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 4950 "LibraryWindow.c" +#line 4956 "LibraryWindow.c" } @@ -4959,50 +4965,50 @@ static void library_window_on_action_toggle (LibraryWindow* self, GAction* actio GVariant* _tmp4_ = NULL; GVariant* _tmp5_ = NULL; GAction* _tmp6_ = NULL; -#line 662 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 668 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 662 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 668 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (G_IS_ACTION (action)); -#line 663 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 669 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = action; -#line 663 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 669 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = g_action_get_state (_tmp0_); -#line 663 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 669 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = _tmp1_; -#line 663 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 669 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = _variant_get6 (_tmp2_); -#line 663 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 669 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = _variant_new7 (!_tmp3_); -#line 663 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 669 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = _tmp4_; -#line 663 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 669 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_variant_unref0 (_tmp2_); -#line 663 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 669 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" new_state = _tmp5_; -#line 664 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 670 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = action; -#line 664 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 670 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_action_change_state (_tmp6_, new_state); -#line 662 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 668 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_variant_unref0 (new_state); -#line 4989 "LibraryWindow.c" +#line 4995 "LibraryWindow.c" } static void library_window_on_action_radio (LibraryWindow* self, GAction* action, GVariant* value) { GAction* _tmp0_ = NULL; GVariant* _tmp1_ = NULL; -#line 667 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 673 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 667 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 673 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (G_IS_ACTION (action)); -#line 668 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 674 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = action; -#line 668 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 674 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = value; -#line 668 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 674 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_action_change_state (_tmp0_, _tmp1_); -#line 5006 "LibraryWindow.c" +#line 5012 "LibraryWindow.c" } @@ -5013,62 +5019,62 @@ static void library_window_on_display_extended_properties (LibraryWindow* self, gboolean _tmp2_ = FALSE; GSimpleAction* _tmp8_ = NULL; GVariant* _tmp9_ = NULL; -#line 671 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 677 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 671 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 677 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (G_IS_SIMPLE_ACTION (action)); -#line 672 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 678 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = value; -#line 672 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 678 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = g_variant_get_boolean (_tmp0_); -#line 672 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 678 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" display = _tmp1_; -#line 674 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 680 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = display; -#line 674 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 680 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp2_) { -#line 5031 "LibraryWindow.c" +#line 5037 "LibraryWindow.c" ExtendedPropertiesWindow* _tmp3_ = NULL; Page* _tmp4_ = NULL; Page* _tmp5_ = NULL; ExtendedPropertiesWindow* _tmp6_ = NULL; -#line 675 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 681 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = self->priv->extended_properties; -#line 675 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 681 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 675 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 681 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = _tmp4_; -#line 675 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 681 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" extended_properties_window_update_properties (_tmp3_, _tmp5_); -#line 675 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 681 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp5_); -#line 676 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 682 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = self->priv->extended_properties; -#line 676 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 682 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget)); -#line 5050 "LibraryWindow.c" +#line 5056 "LibraryWindow.c" } else { ExtendedPropertiesWindow* _tmp7_ = NULL; -#line 678 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 684 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp7_ = self->priv->extended_properties; -#line 678 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 684 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget)); -#line 5057 "LibraryWindow.c" +#line 5063 "LibraryWindow.c" } -#line 681 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 687 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp8_ = action; -#line 681 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 687 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp9_ = value; -#line 681 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 687 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_simple_action_set_state (_tmp8_, _tmp9_); -#line 5065 "LibraryWindow.c" +#line 5071 "LibraryWindow.c" } static GVariant* _variant_new8 (gboolean value) { -#line 689 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 695 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 5072 "LibraryWindow.c" +#line 5078 "LibraryWindow.c" } @@ -5080,35 +5086,35 @@ static void library_window_on_display_searchbar (LibraryWindow* self, GSimpleAct ConfigFacade* _tmp3_ = NULL; GSimpleAction* _tmp4_ = NULL; GVariant* _tmp5_ = NULL; -#line 684 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 690 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 684 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 690 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (G_IS_SIMPLE_ACTION (action)); -#line 685 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 691 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = value; -#line 685 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 691 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = g_variant_get_boolean (_tmp0_); -#line 685 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 691 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" is_shown = _tmp1_; -#line 687 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 693 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = config_facade_get_instance (); -#line 687 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 693 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = _tmp2_; -#line 687 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 693 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" configuration_facade_set_display_search_bar (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), is_shown); -#line 687 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 693 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp3_); -#line 688 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 694 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_show_search_bar (self, is_shown); -#line 689 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 695 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = action; -#line 689 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 695 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = _variant_new8 (is_shown); -#line 689 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 695 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_simple_action_set_state (_tmp4_, _tmp5_); -#line 689 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 695 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_variant_unref0 (_tmp5_); -#line 5112 "LibraryWindow.c" +#line 5118 "LibraryWindow.c" } @@ -5122,55 +5128,55 @@ void library_window_show_search_bar (LibraryWindow* self, gboolean display) { CheckerboardPage* _tmp6_ = NULL; CheckerboardPage* _tmp7_ = NULL; gboolean _tmp8_ = FALSE; -#line 692 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 698 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 693 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 699 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 693 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 699 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = _tmp0_; -#line 693 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 699 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = !G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, TYPE_CHECKERBOARD_PAGE); -#line 693 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 699 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp1_); -#line 693 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 699 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp2_) { -#line 694 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 700 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return; -#line 5140 "LibraryWindow.c" +#line 5146 "LibraryWindow.c" } -#line 696 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 702 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = display; -#line 696 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 702 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self->priv->is_search_toolbar_visible = _tmp3_; -#line 697 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 703 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = library_window_should_show_search_bar (self); -#line 697 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 703 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 697 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 703 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, TYPE_CHECKERBOARD_PAGE) ? ((CheckerboardPage*) _tmp5_) : NULL; -#line 697 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 703 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp6_ == NULL) { -#line 697 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 703 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp5_); -#line 5156 "LibraryWindow.c" +#line 5162 "LibraryWindow.c" } -#line 697 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 703 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp7_ = _tmp6_; -#line 697 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 703 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_toggle_search_bar (self, _tmp4_, _tmp7_); -#line 697 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 703 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp7_); -#line 698 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 704 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp8_ = display; -#line 698 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 704 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (!_tmp8_) { -#line 5168 "LibraryWindow.c" +#line 5174 "LibraryWindow.c" SearchFilterActions* _tmp9_ = NULL; -#line 699 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 705 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp9_ = self->priv->search_actions; -#line 699 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 705 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" search_filter_actions_reset (_tmp9_); -#line 5174 "LibraryWindow.c" +#line 5180 "LibraryWindow.c" } } @@ -5180,23 +5186,23 @@ static void library_window_on_display_sidebar (LibraryWindow* self, GSimpleActio gboolean _tmp1_ = FALSE; GSimpleAction* _tmp2_ = NULL; GVariant* _tmp3_ = NULL; -#line 702 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 708 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 702 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 708 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (G_IS_SIMPLE_ACTION (action)); -#line 703 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 709 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = variant; -#line 703 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 709 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = g_variant_get_boolean (_tmp0_); -#line 703 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 709 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_set_sidebar_visible (self, _tmp1_); -#line 705 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 711 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = action; -#line 705 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 711 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = variant; -#line 705 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 711 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_simple_action_set_state (_tmp2_, _tmp3_); -#line 5200 "LibraryWindow.c" +#line 5206 "LibraryWindow.c" } @@ -5206,25 +5212,25 @@ static void library_window_set_sidebar_visible (LibraryWindow* self, gboolean vi ConfigFacade* _tmp2_ = NULL; ConfigFacade* _tmp3_ = NULL; gboolean _tmp4_ = FALSE; -#line 708 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 714 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 709 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 715 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = self->priv->sidebar_paned; -#line 709 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 715 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = visible; -#line 709 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 715 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), _tmp1_); -#line 710 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 716 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = config_facade_get_instance (); -#line 710 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 716 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = _tmp2_; -#line 710 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 716 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = visible; -#line 710 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 716 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" configuration_facade_set_display_sidebar (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp4_); -#line 710 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 716 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp3_); -#line 5228 "LibraryWindow.c" +#line 5234 "LibraryWindow.c" } @@ -5234,23 +5240,23 @@ static gboolean library_window_is_sidebar_visible (LibraryWindow* self) { ConfigFacade* _tmp1_ = NULL; gboolean _tmp2_ = FALSE; gboolean _tmp3_ = FALSE; -#line 713 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 719 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_val_if_fail (IS_LIBRARY_WINDOW (self), FALSE); -#line 714 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 720 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = config_facade_get_instance (); -#line 714 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 720 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = _tmp0_; -#line 714 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 720 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = configuration_facade_get_display_sidebar (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 714 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 720 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = _tmp2_; -#line 714 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 720 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp1_); -#line 714 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 720 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" result = _tmp3_; -#line 714 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 720 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return result; -#line 5254 "LibraryWindow.c" +#line 5260 "LibraryWindow.c" } @@ -5259,23 +5265,23 @@ static void library_window_on_display_toolbar (LibraryWindow* self, GSimpleActio gboolean _tmp1_ = FALSE; GSimpleAction* _tmp2_ = NULL; GVariant* _tmp3_ = NULL; -#line 717 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 723 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 717 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 723 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (G_IS_SIMPLE_ACTION (action)); -#line 718 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 724 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = variant; -#line 718 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 724 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = g_variant_get_boolean (_tmp0_); -#line 718 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 724 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_set_toolbar_visible (self, _tmp1_); -#line 720 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 726 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = action; -#line 720 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 726 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = variant; -#line 720 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 726 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_simple_action_set_state (_tmp2_, _tmp3_); -#line 5279 "LibraryWindow.c" +#line 5285 "LibraryWindow.c" } @@ -5292,62 +5298,62 @@ static void library_window_set_toolbar_visible (LibraryWindow* self, gboolean vi ConfigFacade* _tmp10_ = NULL; ConfigFacade* _tmp11_ = NULL; gboolean _tmp12_ = FALSE; -#line 723 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 729 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 724 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 730 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 724 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 730 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = _tmp0_; -#line 724 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 730 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = _tmp1_ == NULL; -#line 724 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 730 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp1_); -#line 724 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 730 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp2_) { -#line 725 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 731 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return; -#line 5310 "LibraryWindow.c" +#line 5316 "LibraryWindow.c" } -#line 728 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 734 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 728 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 734 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = _tmp3_; -#line 728 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 734 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = page_get_toolbar (_tmp4_); -#line 728 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 734 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = _tmp5_; -#line 728 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 734 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp4_); -#line 728 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 734 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" toolbar = _tmp6_; -#line 729 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 735 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp7_ = toolbar; -#line 729 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 735 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp7_ != NULL) { -#line 5328 "LibraryWindow.c" +#line 5334 "LibraryWindow.c" GtkRevealer* _tmp8_ = NULL; gboolean _tmp9_ = FALSE; -#line 730 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 736 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp8_ = self->priv->toolbar_revealer; -#line 730 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 736 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp9_ = visible; -#line 730 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 736 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_revealer_set_reveal_child (_tmp8_, _tmp9_); -#line 5337 "LibraryWindow.c" +#line 5343 "LibraryWindow.c" } -#line 732 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 738 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp10_ = config_facade_get_instance (); -#line 732 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 738 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp11_ = _tmp10_; -#line 732 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 738 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp12_ = visible; -#line 732 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 738 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" configuration_facade_set_display_toolbar (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp12_); -#line 732 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 738 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp11_); -#line 723 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 729 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (toolbar); -#line 5351 "LibraryWindow.c" +#line 5357 "LibraryWindow.c" } @@ -5357,48 +5363,48 @@ static gboolean library_window_is_toolbar_visible (LibraryWindow* self) { ConfigFacade* _tmp1_ = NULL; gboolean _tmp2_ = FALSE; gboolean _tmp3_ = FALSE; -#line 735 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 741 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_val_if_fail (IS_LIBRARY_WINDOW (self), FALSE); -#line 736 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 742 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = config_facade_get_instance (); -#line 736 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 742 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = _tmp0_; -#line 736 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 742 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = configuration_facade_get_display_toolbar (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 736 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 742 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = _tmp2_; -#line 736 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 742 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp1_); -#line 736 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 742 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" result = _tmp3_; -#line 736 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 742 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return result; -#line 5377 "LibraryWindow.c" +#line 5383 "LibraryWindow.c" } static void library_window_show_extended_properties (LibraryWindow* self) { -#line 739 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 745 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 740 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 746 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_sync_extended_properties (self, TRUE); -#line 5386 "LibraryWindow.c" +#line 5392 "LibraryWindow.c" } static void library_window_hide_extended_properties (LibraryWindow* self) { -#line 743 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 749 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 744 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 750 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_sync_extended_properties (self, FALSE); -#line 5395 "LibraryWindow.c" +#line 5401 "LibraryWindow.c" } static GVariant* _variant_new9 (gboolean value) { -#line 749 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 755 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 5402 "LibraryWindow.c" +#line 5408 "LibraryWindow.c" } @@ -5411,35 +5417,35 @@ static void library_window_sync_extended_properties (LibraryWindow* self, gboole ConfigFacade* _tmp4_ = NULL; ConfigFacade* _tmp5_ = NULL; gboolean _tmp6_ = FALSE; -#line 747 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 753 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 748 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 754 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = g_action_map_lookup_action (G_TYPE_CHECK_INSTANCE_CAST (self, g_action_map_get_type (), GActionMap), "CommonDisplayExtendedProperties"); -#line 748 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 754 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = _g_object_ref0 (_tmp0_); -#line 748 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 754 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" action = _tmp1_; -#line 749 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 755 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = show; -#line 749 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 755 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = _variant_new9 (_tmp2_); -#line 749 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 755 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_action_change_state (action, _tmp3_); -#line 749 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 755 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_variant_unref0 (_tmp3_); -#line 752 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 758 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = config_facade_get_instance (); -#line 752 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 758 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = _tmp4_; -#line 752 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 758 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = show; -#line 752 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 758 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" configuration_facade_set_display_extended_properties (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp6_); -#line 752 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 758 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp5_); -#line 747 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 753 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (action); -#line 5443 "LibraryWindow.c" +#line 5449 "LibraryWindow.c" } @@ -5449,44 +5455,44 @@ void library_window_enqueue_batch_import (LibraryWindow* self, BatchImport* batc LibraryImportQueueSidebarEntry* _tmp2_ = NULL; BatchImport* _tmp3_ = NULL; gboolean _tmp4_ = FALSE; -#line 755 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 761 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 755 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 761 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_BATCH_IMPORT (batch_import)); -#line 756 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 762 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = self->priv->library_branch; -#line 756 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 762 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = library_branch_get_import_queue_entry (_tmp0_); -#line 756 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 762 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = _tmp1_; -#line 756 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 762 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = batch_import; -#line 756 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 762 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = allow_user_cancel; -#line 756 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 762 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_import_queue_sidebar_entry_enqueue_and_schedule (_tmp2_, _tmp3_, _tmp4_); -#line 5469 "LibraryWindow.c" +#line 5475 "LibraryWindow.c" } static void library_window_import_reporter (LibraryWindow* self, ImportManifest* manifest) { ImportManifest* _tmp0_ = NULL; -#line 759 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 765 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 759 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 765 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_IMPORT_MANIFEST (manifest)); -#line 760 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 766 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = manifest; -#line 760 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 766 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" import_ui_report_manifest (_tmp0_, TRUE, NULL); -#line 5483 "LibraryWindow.c" +#line 5489 "LibraryWindow.c" } static void _library_window_import_reporter_batch_import_import_reporter (ImportManifest* manifest, BatchImportRoll* import_roll, gpointer self) { -#line 791 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 797 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_import_reporter ((LibraryWindow*) self, manifest); -#line 5490 "LibraryWindow.c" +#line 5496 "LibraryWindow.c" } @@ -5504,43 +5510,43 @@ static void library_window_dispatch_import_jobs (LibraryWindow* self, GSList* ur GeeArrayList* _tmp33_ = NULL; gint _tmp34_ = 0; gint _tmp35_ = 0; -#line 763 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 769 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 763 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 769 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (job_name != NULL); -#line 764 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 770 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = app_dirs_get_import_dir (); -#line 764 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 770 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = _tmp1_; -#line 764 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 770 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = g_file_get_path (_tmp2_); -#line 764 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 770 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = _tmp3_; -#line 764 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 770 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = g_get_home_dir (); -#line 764 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 770 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = g_strcmp0 (_tmp4_, _tmp5_) == 0; -#line 764 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 770 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_free0 (_tmp4_); -#line 764 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 770 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp2_); -#line 764 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 770 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp6_) { -#line 5530 "LibraryWindow.c" +#line 5536 "LibraryWindow.c" gboolean _tmp7_ = FALSE; -#line 764 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 770 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp7_ = self->priv->notify_library_is_home_dir; -#line 764 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 770 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = _tmp7_; -#line 5536 "LibraryWindow.c" +#line 5542 "LibraryWindow.c" } else { -#line 764 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 770 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = FALSE; -#line 5540 "LibraryWindow.c" +#line 5546 "LibraryWindow.c" } -#line 764 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 770 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp0_) { -#line 5544 "LibraryWindow.c" +#line 5550 "LibraryWindow.c" GtkResponseType response = 0; const gchar* _tmp8_ = NULL; gchar* _tmp9_ = NULL; @@ -5552,65 +5558,65 @@ static void library_window_dispatch_import_jobs (LibraryWindow* self, GSList* ur GtkResponseType _tmp15_ = 0; GtkResponseType _tmp16_ = 0; GtkResponseType _tmp17_ = 0; -#line 765 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 771 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp8_ = _ ("Shotwell is configured to import photos to your home directory.\n" "We recommend changing this in <span weight=\"bold\">Edit %s Preference" \ "s</span>.\n" "Do you want to continue importing photos?"); -#line 765 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 771 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp9_ = g_strdup_printf (_tmp8_, "▸"); -#line 765 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 771 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp10_ = _tmp9_; -#line 765 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 771 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp11_ = _ ("_Import"); -#line 765 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 771 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp12_ = _ ("Library Location"); -#line 765 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 771 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp13_ = app_window_get_instance (); -#line 765 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 771 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp14_ = _tmp13_; -#line 765 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 771 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp15_ = app_window_affirm_cancel_question (_tmp10_, _tmp11_, _tmp12_, G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_window_get_type (), GtkWindow)); -#line 765 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 771 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp16_ = _tmp15_; -#line 765 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 771 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp14_); -#line 765 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 771 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_free0 (_tmp10_); -#line 765 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - response = _tmp16_; #line 771 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + response = _tmp16_; +#line 777 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp17_ = response; -#line 771 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 777 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp17_ == GTK_RESPONSE_CANCEL) { -#line 772 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 778 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return; -#line 5586 "LibraryWindow.c" +#line 5592 "LibraryWindow.c" } -#line 774 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 780 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self->priv->notify_library_is_home_dir = FALSE; -#line 5590 "LibraryWindow.c" +#line 5596 "LibraryWindow.c" } -#line 777 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 783 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp18_ = gee_array_list_new (TYPE_FILE_IMPORT_JOB, (GBoxedCopyFunc) batch_import_job_ref, batch_import_job_unref, NULL, NULL, NULL); -#line 777 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 783 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" jobs = _tmp18_; -#line 778 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 784 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp19_ = uris; -#line 5598 "LibraryWindow.c" +#line 5604 "LibraryWindow.c" { GSList* uri_collection = NULL; GSList* uri_it = NULL; -#line 778 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 784 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" uri_collection = _tmp19_; -#line 778 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 784 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" for (uri_it = uri_collection; uri_it != NULL; uri_it = uri_it->next) { -#line 5606 "LibraryWindow.c" +#line 5612 "LibraryWindow.c" gchar* _tmp20_ = NULL; gchar* uri = NULL; -#line 778 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 784 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp20_ = g_strdup ((const gchar*) uri_it->data); -#line 778 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 784 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" uri = _tmp20_; -#line 5613 "LibraryWindow.c" +#line 5619 "LibraryWindow.c" { GFile* file_or_dir = NULL; const gchar* _tmp21_ = NULL; @@ -5624,95 +5630,95 @@ static void library_window_dispatch_import_jobs (LibraryWindow* self, GSList* ur gboolean _tmp30_ = FALSE; FileImportJob* _tmp31_ = NULL; FileImportJob* _tmp32_ = NULL; -#line 779 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 785 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp21_ = uri; -#line 779 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 785 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp22_ = g_file_new_for_uri (_tmp21_); -#line 779 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 785 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" file_or_dir = _tmp22_; -#line 780 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 786 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp23_ = file_or_dir; -#line 780 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 786 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp24_ = g_file_get_path (_tmp23_); -#line 780 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 786 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp25_ = _tmp24_; -#line 780 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 786 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp26_ = _tmp25_ == NULL; -#line 780 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 786 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_free0 (_tmp25_); -#line 780 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 786 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp26_) { -#line 5645 "LibraryWindow.c" +#line 5651 "LibraryWindow.c" const gchar* _tmp27_ = NULL; -#line 782 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 788 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp27_ = _ ("Photos cannot be imported from this directory."); -#line 782 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 788 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" app_window_error_message (_tmp27_, NULL); -#line 784 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 790 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (file_or_dir); -#line 784 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 790 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_free0 (uri); -#line 784 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 790 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" continue; -#line 5657 "LibraryWindow.c" +#line 5663 "LibraryWindow.c" } -#line 787 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 793 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp28_ = jobs; -#line 787 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 793 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp29_ = file_or_dir; -#line 787 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 793 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp30_ = copy_to_library; -#line 787 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 793 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp31_ = file_import_job_new (_tmp29_, _tmp30_); -#line 787 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 793 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp32_ = _tmp31_; -#line 787 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 793 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp32_); -#line 787 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 793 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _batch_import_job_unref0 (_tmp32_); -#line 778 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 784 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (file_or_dir); -#line 778 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 784 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_free0 (uri); -#line 5677 "LibraryWindow.c" +#line 5683 "LibraryWindow.c" } } } -#line 790 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 796 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp33_ = jobs; -#line 790 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 796 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp34_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 790 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 796 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp35_ = _tmp34_; -#line 790 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 796 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp35_ > 0) { -#line 5689 "LibraryWindow.c" +#line 5695 "LibraryWindow.c" BatchImport* batch_import = NULL; GeeArrayList* _tmp36_ = NULL; const gchar* _tmp37_ = NULL; BatchImport* _tmp38_ = NULL; BatchImport* _tmp39_ = NULL; -#line 791 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 797 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp36_ = jobs; -#line 791 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 797 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp37_ = job_name; -#line 791 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 797 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp38_ = batch_import_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, GEE_TYPE_ITERABLE, GeeIterable), _tmp37_, _library_window_import_reporter_batch_import_import_reporter, self, NULL, NULL, NULL, NULL, NULL); -#line 791 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 797 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" batch_import = _tmp38_; -#line 792 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 798 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp39_ = batch_import; -#line 792 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 798 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_enqueue_batch_import (self, _tmp39_, TRUE); -#line 793 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 799 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_switch_to_import_queue_page (self); -#line 790 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 796 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (batch_import); -#line 5711 "LibraryWindow.c" +#line 5717 "LibraryWindow.c" } -#line 763 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 769 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (jobs); -#line 5715 "LibraryWindow.c" +#line 5721 "LibraryWindow.c" } @@ -5733,157 +5739,157 @@ static GdkDragAction library_window_get_drag_action (LibraryWindow* self) { gboolean _tmp8_ = FALSE; gboolean _tmp9_ = FALSE; gboolean _tmp10_ = FALSE; -#line 797 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 803 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_val_if_fail (IS_LIBRARY_WINDOW (self), 0); -#line 800 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 806 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 800 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 806 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = gdk_display_get_default (); -#line 800 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 806 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = gdk_display_get_device_manager (_tmp1_); -#line 800 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 806 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = gdk_device_manager_get_client_pointer (_tmp2_); -#line 800 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 806 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gdk_window_get_device_position (_tmp0_, _tmp3_, NULL, NULL, &_tmp4_); -#line 800 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 806 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" mask = _tmp4_; -#line 803 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 809 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = mask; -#line 803 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 809 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" ctrl = (_tmp5_ & GDK_CONTROL_MASK) != 0; -#line 804 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 810 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = mask; -#line 804 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 810 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" alt = (_tmp6_ & GDK_MOD1_MASK) != 0; -#line 805 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 811 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp7_ = mask; -#line 805 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 811 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" shift = (_tmp7_ & GDK_SHIFT_MASK) != 0; -#line 807 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 813 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp10_ = ctrl; -#line 807 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 813 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp10_) { -#line 5766 "LibraryWindow.c" +#line 5772 "LibraryWindow.c" gboolean _tmp11_ = FALSE; -#line 807 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 813 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp11_ = alt; -#line 807 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 813 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp9_ = !_tmp11_; -#line 5772 "LibraryWindow.c" +#line 5778 "LibraryWindow.c" } else { -#line 807 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 813 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp9_ = FALSE; -#line 5776 "LibraryWindow.c" +#line 5782 "LibraryWindow.c" } -#line 807 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 813 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp9_) { -#line 5780 "LibraryWindow.c" +#line 5786 "LibraryWindow.c" gboolean _tmp12_ = FALSE; -#line 807 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 813 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp12_ = shift; -#line 807 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 813 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp8_ = !_tmp12_; -#line 5786 "LibraryWindow.c" +#line 5792 "LibraryWindow.c" } else { -#line 807 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 813 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp8_ = FALSE; -#line 5790 "LibraryWindow.c" +#line 5796 "LibraryWindow.c" } -#line 807 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 813 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp8_) { -#line 808 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 814 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" result = GDK_ACTION_COPY; -#line 808 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 814 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return result; -#line 5798 "LibraryWindow.c" +#line 5804 "LibraryWindow.c" } else { gboolean _tmp13_ = FALSE; gboolean _tmp14_ = FALSE; gboolean _tmp15_ = FALSE; -#line 809 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 815 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp15_ = ctrl; -#line 809 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 815 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (!_tmp15_) { -#line 5807 "LibraryWindow.c" +#line 5813 "LibraryWindow.c" gboolean _tmp16_ = FALSE; -#line 809 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 815 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp16_ = alt; -#line 809 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 815 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp14_ = _tmp16_; -#line 5813 "LibraryWindow.c" +#line 5819 "LibraryWindow.c" } else { -#line 809 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 815 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp14_ = FALSE; -#line 5817 "LibraryWindow.c" +#line 5823 "LibraryWindow.c" } -#line 809 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 815 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp14_) { -#line 5821 "LibraryWindow.c" +#line 5827 "LibraryWindow.c" gboolean _tmp17_ = FALSE; -#line 809 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 815 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp17_ = shift; -#line 809 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 815 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp13_ = !_tmp17_; -#line 5827 "LibraryWindow.c" +#line 5833 "LibraryWindow.c" } else { -#line 809 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 815 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp13_ = FALSE; -#line 5831 "LibraryWindow.c" +#line 5837 "LibraryWindow.c" } -#line 809 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 815 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp13_) { -#line 810 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 816 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" result = GDK_ACTION_ASK; -#line 810 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 816 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return result; -#line 5839 "LibraryWindow.c" +#line 5845 "LibraryWindow.c" } else { gboolean _tmp18_ = FALSE; gboolean _tmp19_ = FALSE; gboolean _tmp20_ = FALSE; -#line 811 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 817 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp20_ = ctrl; -#line 811 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 817 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp20_) { -#line 5848 "LibraryWindow.c" +#line 5854 "LibraryWindow.c" gboolean _tmp21_ = FALSE; -#line 811 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 817 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp21_ = alt; -#line 811 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 817 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp19_ = !_tmp21_; -#line 5854 "LibraryWindow.c" +#line 5860 "LibraryWindow.c" } else { -#line 811 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 817 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp19_ = FALSE; -#line 5858 "LibraryWindow.c" +#line 5864 "LibraryWindow.c" } -#line 811 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 817 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp19_) { -#line 5862 "LibraryWindow.c" +#line 5868 "LibraryWindow.c" gboolean _tmp22_ = FALSE; -#line 811 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 817 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp22_ = shift; -#line 811 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 817 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp18_ = _tmp22_; -#line 5868 "LibraryWindow.c" +#line 5874 "LibraryWindow.c" } else { -#line 811 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 817 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp18_ = FALSE; -#line 5872 "LibraryWindow.c" +#line 5878 "LibraryWindow.c" } -#line 811 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 817 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp18_) { -#line 812 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 818 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" result = GDK_ACTION_LINK; -#line 812 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 818 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return result; -#line 5880 "LibraryWindow.c" +#line 5886 "LibraryWindow.c" } else { -#line 814 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 820 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" result = GDK_ACTION_DEFAULT; -#line 814 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 820 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return result; -#line 5886 "LibraryWindow.c" +#line 5892 "LibraryWindow.c" } } } @@ -5907,87 +5913,87 @@ static gboolean library_window_real_drag_motion (GtkWidget* base, GdkDragContext GdkDragContext* _tmp13_ = NULL; GdkDragAction _tmp14_ = 0; guint _tmp15_ = 0U; -#line 817 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 823 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_WINDOW, LibraryWindow); -#line 817 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 823 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_val_if_fail (GDK_IS_DRAG_CONTEXT (context), FALSE); -#line 818 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 824 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = context; -#line 818 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 824 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = gtk_drag_dest_get_target_list (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 818 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 824 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = gtk_drag_dest_find_target (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), _tmp0_, _tmp1_); -#line 818 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 824 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" target = _tmp2_; -#line 819 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 825 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = target; -#line 819 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 825 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = GDK_NONE; -#line 819 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 825 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp3_ == _tmp4_) { -#line 5928 "LibraryWindow.c" +#line 5934 "LibraryWindow.c" GdkDragContext* _tmp5_ = NULL; guint _tmp6_ = 0U; -#line 820 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_debug ("LibraryWindow.vala:820: drag target is GDK_NONE"); -#line 821 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 826 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + g_debug ("LibraryWindow.vala:826: drag target is GDK_NONE"); +#line 827 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = context; -#line 821 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 827 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = time; -#line 821 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 827 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gdk_drag_status (_tmp5_, 0, (guint32) _tmp6_); -#line 823 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 829 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" result = TRUE; -#line 823 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 829 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return result; -#line 5943 "LibraryWindow.c" +#line 5949 "LibraryWindow.c" } -#line 827 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 833 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp7_ = context; -#line 827 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 833 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp8_ = gtk_drag_get_source_widget (_tmp7_); -#line 827 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 833 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp8_ != NULL) { -#line 5951 "LibraryWindow.c" +#line 5957 "LibraryWindow.c" GdkDragContext* _tmp9_ = NULL; guint _tmp10_ = 0U; -#line 828 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 834 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp9_ = context; -#line 828 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 834 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp10_ = time; -#line 828 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 834 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gdk_drag_status (_tmp9_, GDK_ACTION_PRIVATE, (guint32) _tmp10_); -#line 830 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 836 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" result = TRUE; -#line 830 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 836 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return result; -#line 5964 "LibraryWindow.c" +#line 5970 "LibraryWindow.c" } -#line 834 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 840 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp11_ = library_window_get_drag_action (self); -#line 834 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 840 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" drag_action = _tmp11_; -#line 836 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 842 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp12_ = drag_action; -#line 836 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 842 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp12_ == GDK_ACTION_DEFAULT) { -#line 837 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 843 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" drag_action = GDK_ACTION_ASK; -#line 5976 "LibraryWindow.c" +#line 5982 "LibraryWindow.c" } -#line 839 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 845 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp13_ = context; -#line 839 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 845 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp14_ = drag_action; -#line 839 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 845 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp15_ = time; -#line 839 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 845 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gdk_drag_status (_tmp13_, _tmp14_, (guint32) _tmp15_); -#line 841 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 847 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" result = TRUE; -#line 841 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 847 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return result; -#line 5990 "LibraryWindow.c" +#line 5996 "LibraryWindow.c" } @@ -5997,54 +6003,54 @@ static void library_window_real_drag_data_received (GtkWidget* base, GdkDragCont guchar* _tmp1_ = NULL; GdkDragContext* _tmp2_ = NULL; GtkWidget* _tmp3_ = NULL; -#line 844 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 850 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_WINDOW, LibraryWindow); -#line 844 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 850 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (GDK_IS_DRAG_CONTEXT (context)); -#line 844 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 850 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (selection_data != NULL); -#line 846 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 852 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = selection_data; -#line 846 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 852 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = gtk_selection_data_get_data (_tmp0_); -#line 846 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 852 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (-1 < 0) { -#line 847 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_debug ("LibraryWindow.vala:847: failed to retrieve SelectionData"); -#line 6014 "LibraryWindow.c" +#line 853 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + g_debug ("LibraryWindow.vala:853: failed to retrieve SelectionData"); +#line 6020 "LibraryWindow.c" } -#line 851 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 857 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = context; -#line 851 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 857 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = gtk_drag_get_source_widget (_tmp2_); -#line 851 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 857 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp3_ == NULL) { -#line 6022 "LibraryWindow.c" +#line 6028 "LibraryWindow.c" GdkDragContext* _tmp4_ = NULL; GtkSelectionData* _tmp5_ = NULL; guint _tmp6_ = 0U; guint _tmp7_ = 0U; -#line 852 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 858 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = context; -#line 852 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 858 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = selection_data; -#line 852 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 858 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = info; -#line 852 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 858 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp7_ = time; -#line 852 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 858 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_external_drop_handler (self, _tmp4_, NULL, _tmp5_, _tmp6_, _tmp7_); -#line 6037 "LibraryWindow.c" +#line 6043 "LibraryWindow.c" } else { GdkDragContext* _tmp8_ = NULL; guint _tmp9_ = 0U; -#line 854 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 860 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp8_ = context; -#line 854 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 860 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp9_ = time; -#line 854 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 860 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_drag_finish (_tmp8_, FALSE, FALSE, (guint32) _tmp9_); -#line 6047 "LibraryWindow.c" +#line 6053 "LibraryWindow.c" } } @@ -6067,198 +6073,198 @@ static void library_window_external_drop_handler (LibraryWindow* self, GdkDragCo GdkDragAction _tmp22_ = 0; GdkDragContext* _tmp23_ = NULL; guint _tmp24_ = 0U; -#line 857 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 863 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 857 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 863 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (GDK_IS_DRAG_CONTEXT (context)); -#line 857 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 863 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail ((entry == NULL) || SIDEBAR_IS_ENTRY (entry)); -#line 857 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 863 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (data != NULL); -#line 859 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 865 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = data; -#line 859 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 865 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = _tmp1_ = gtk_selection_data_get_uris (_tmp0_); -#line 859 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 865 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" uris_array = _tmp2_; -#line 859 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 865 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" uris_array_length1 = _vala_array_length (_tmp1_); -#line 859 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 865 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _uris_array_size_ = uris_array_length1; -#line 861 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 867 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" uris = NULL; -#line 862 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 868 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = uris_array; -#line 862 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 868 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3__length1 = uris_array_length1; -#line 6094 "LibraryWindow.c" +#line 6100 "LibraryWindow.c" { gchar** uri_collection = NULL; gint uri_collection_length1 = 0; gint _uri_collection_size_ = 0; gint uri_it = 0; -#line 862 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 868 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" uri_collection = _tmp3_; -#line 862 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 868 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" uri_collection_length1 = _tmp3__length1; -#line 862 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 868 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" for (uri_it = 0; uri_it < _tmp3__length1; uri_it = uri_it + 1) { -#line 6106 "LibraryWindow.c" +#line 6112 "LibraryWindow.c" gchar* _tmp4_ = NULL; gchar* uri = NULL; -#line 862 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 868 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = g_strdup (uri_collection[uri_it]); -#line 862 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 868 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" uri = _tmp4_; -#line 6113 "LibraryWindow.c" +#line 6119 "LibraryWindow.c" { const gchar* _tmp5_ = NULL; gchar* _tmp6_ = NULL; -#line 863 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 869 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = uri; -#line 863 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 869 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = g_strdup (_tmp5_); -#line 863 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 869 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" uris = g_slist_append (uris, _tmp6_); -#line 862 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 868 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_free0 (uri); -#line 6125 "LibraryWindow.c" +#line 6131 "LibraryWindow.c" } } } -#line 865 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 871 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp7_ = context; -#line 865 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 871 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp8_ = gdk_drag_context_get_selected_action (_tmp7_); -#line 865 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 871 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" selected_action = _tmp8_; -#line 866 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 872 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp9_ = selected_action; -#line 866 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 872 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp9_ == GDK_ACTION_ASK) { -#line 6139 "LibraryWindow.c" +#line 6145 "LibraryWindow.c" GtkResponseType _result_ = 0; GSList* _tmp10_ = NULL; GtkResponseType _tmp18_ = 0; -#line 868 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 874 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _result_ = GTK_RESPONSE_REJECT; -#line 869 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 875 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp10_ = uris; -#line 6147 "LibraryWindow.c" +#line 6153 "LibraryWindow.c" { GSList* uri_collection = NULL; GSList* uri_it = NULL; -#line 869 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 875 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" uri_collection = _tmp10_; -#line 869 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 875 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" for (uri_it = uri_collection; uri_it != NULL; uri_it = uri_it->next) { -#line 6155 "LibraryWindow.c" +#line 6161 "LibraryWindow.c" gchar* _tmp11_ = NULL; gchar* uri = NULL; -#line 869 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 875 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp11_ = g_strdup ((const gchar*) uri_it->data); -#line 869 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 875 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" uri = _tmp11_; -#line 6162 "LibraryWindow.c" +#line 6168 "LibraryWindow.c" { const gchar* _tmp12_ = NULL; GFile* _tmp13_ = NULL; GFile* _tmp14_ = NULL; gboolean _tmp15_ = FALSE; gboolean _tmp16_ = FALSE; -#line 870 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 876 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp12_ = uri; -#line 870 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 876 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp13_ = g_file_new_for_uri (_tmp12_); -#line 870 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 876 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp14_ = _tmp13_; -#line 870 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 876 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp15_ = app_dirs_is_in_import_dir (_tmp14_); -#line 870 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 876 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp16_ = !_tmp15_; -#line 870 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 876 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp14_); -#line 870 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 876 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp16_) { -#line 6183 "LibraryWindow.c" +#line 6189 "LibraryWindow.c" GtkResponseType _tmp17_ = 0; -#line 871 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 877 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp17_ = copy_files_dialog (); -#line 871 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 877 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _result_ = _tmp17_; -#line 873 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 879 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_free0 (uri); -#line 873 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 879 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" break; -#line 6193 "LibraryWindow.c" +#line 6199 "LibraryWindow.c" } -#line 869 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 875 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_free0 (uri); -#line 6197 "LibraryWindow.c" +#line 6203 "LibraryWindow.c" } } } -#line 877 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 883 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp18_ = _result_; -#line 877 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 883 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" switch (_tmp18_) { -#line 877 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 883 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" case GTK_RESPONSE_ACCEPT: -#line 6207 "LibraryWindow.c" +#line 6213 "LibraryWindow.c" { -#line 879 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 885 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" selected_action = GDK_ACTION_COPY; -#line 880 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 886 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" break; -#line 6213 "LibraryWindow.c" +#line 6219 "LibraryWindow.c" } -#line 877 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 883 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" case GTK_RESPONSE_REJECT: -#line 6217 "LibraryWindow.c" +#line 6223 "LibraryWindow.c" { -#line 883 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 889 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" selected_action = GDK_ACTION_LINK; -#line 884 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 890 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" break; -#line 6223 "LibraryWindow.c" +#line 6229 "LibraryWindow.c" } default: { GdkDragContext* _tmp19_ = NULL; guint _tmp20_ = 0U; -#line 888 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 894 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp19_ = context; -#line 888 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 894 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp20_ = time; -#line 888 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 894 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_drag_finish (_tmp19_, FALSE, FALSE, (guint32) _tmp20_); -#line 890 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 896 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" __g_slist_free__g_free0_0 (uris); -#line 890 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 896 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" uris_array = (_vala_array_free (uris_array, uris_array_length1, (GDestroyNotify) g_free), NULL); -#line 890 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 896 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return; -#line 6241 "LibraryWindow.c" +#line 6247 "LibraryWindow.c" } } } -#line 894 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 900 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp21_ = uris; -#line 894 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 900 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp22_ = selected_action; -#line 894 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 900 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_dispatch_import_jobs (self, _tmp21_, "drag-and-drop", _tmp22_ == GDK_ACTION_COPY); -#line 896 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 902 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp23_ = context; -#line 896 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 902 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp24_ = time; -#line 896 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 902 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_drag_finish (_tmp23_, TRUE, FALSE, (guint32) _tmp24_); -#line 857 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 863 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" __g_slist_free__g_free0_0 (uris); -#line 857 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 863 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" uris_array = (_vala_array_free (uris_array, uris_array_length1, (GDestroyNotify) g_free), NULL); -#line 6261 "LibraryWindow.c" +#line 6267 "LibraryWindow.c" } @@ -6268,23 +6274,23 @@ void library_window_switch_to_library_page (LibraryWindow* self) { LibraryPhotosEntry* _tmp2_ = NULL; Page* _tmp3_ = NULL; Page* _tmp4_ = NULL; -#line 899 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 905 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 900 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 906 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = self->priv->library_branch; -#line 900 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 906 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = library_branch_get_photos_entry (_tmp0_); -#line 900 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 906 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = _tmp1_; -#line 900 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 906 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = sidebar_page_representative_get_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative)); -#line 900 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 906 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = _tmp3_; -#line 900 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 906 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_switch_to_page (self, _tmp4_); -#line 900 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 906 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp4_); -#line 6287 "LibraryWindow.c" +#line 6293 "LibraryWindow.c" } @@ -6294,41 +6300,41 @@ void library_window_switch_to_event (LibraryWindow* self, Event* event) { Event* _tmp1_ = NULL; EventsEventEntry* _tmp2_ = NULL; EventsEventEntry* _tmp3_ = NULL; -#line 903 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 909 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 903 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 909 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_EVENT (event)); -#line 904 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 910 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = self->priv->events_branch; -#line 904 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 910 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = event; -#line 904 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 910 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = events_branch_get_entry_for_event (_tmp0_, _tmp1_); -#line 904 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 910 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" entry = _tmp2_; -#line 905 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 911 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = entry; -#line 905 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 911 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp3_ != NULL) { -#line 6313 "LibraryWindow.c" +#line 6319 "LibraryWindow.c" EventsEventEntry* _tmp4_ = NULL; Page* _tmp5_ = NULL; Page* _tmp6_ = NULL; -#line 906 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 912 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = entry; -#line 906 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 912 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = sidebar_page_representative_get_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative)); -#line 906 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 912 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = _tmp5_; -#line 906 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 912 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_switch_to_page (self, _tmp6_); -#line 906 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 912 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp6_); -#line 6327 "LibraryWindow.c" +#line 6333 "LibraryWindow.c" } -#line 903 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 909 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (entry); -#line 6331 "LibraryWindow.c" +#line 6337 "LibraryWindow.c" } @@ -6338,41 +6344,41 @@ void library_window_switch_to_tag (LibraryWindow* self, Tag* tag) { Tag* _tmp1_ = NULL; TagsSidebarEntry* _tmp2_ = NULL; TagsSidebarEntry* _tmp3_ = NULL; -#line 909 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 915 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 909 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 915 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_TAG (tag)); -#line 910 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 916 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = self->priv->tags_branch; -#line 910 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 916 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = tag; -#line 910 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 916 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = tags_branch_get_entry_for_tag (_tmp0_, _tmp1_); -#line 910 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 916 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" entry = _tmp2_; -#line 911 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 917 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = entry; -#line 911 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 917 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp3_ != NULL) { -#line 6357 "LibraryWindow.c" +#line 6363 "LibraryWindow.c" TagsSidebarEntry* _tmp4_ = NULL; Page* _tmp5_ = NULL; Page* _tmp6_ = NULL; -#line 912 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 918 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = entry; -#line 912 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 918 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = sidebar_page_representative_get_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative)); -#line 912 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 918 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = _tmp5_; -#line 912 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 918 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_switch_to_page (self, _tmp6_); -#line 912 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 918 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp6_); -#line 6371 "LibraryWindow.c" +#line 6377 "LibraryWindow.c" } -#line 909 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 915 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (entry); -#line 6375 "LibraryWindow.c" +#line 6381 "LibraryWindow.c" } @@ -6382,41 +6388,41 @@ void library_window_switch_to_saved_search (LibraryWindow* self, SavedSearch* se SavedSearch* _tmp1_ = NULL; SearchesSidebarEntry* _tmp2_ = NULL; SearchesSidebarEntry* _tmp3_ = NULL; -#line 915 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 921 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 915 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 921 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_SAVED_SEARCH (search)); -#line 916 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 922 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = self->priv->saved_search_branch; -#line 916 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 922 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = search; -#line 916 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 922 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = searches_branch_get_entry_for_saved_search (_tmp0_, _tmp1_); -#line 916 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 922 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" entry = _tmp2_; -#line 917 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 923 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = entry; -#line 917 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 923 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp3_ != NULL) { -#line 6401 "LibraryWindow.c" +#line 6407 "LibraryWindow.c" SearchesSidebarEntry* _tmp4_ = NULL; Page* _tmp5_ = NULL; Page* _tmp6_ = NULL; -#line 918 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 924 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = entry; -#line 918 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 924 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = sidebar_page_representative_get_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative)); -#line 918 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 924 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = _tmp5_; -#line 918 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 924 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_switch_to_page (self, _tmp6_); -#line 918 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 924 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp6_); -#line 6415 "LibraryWindow.c" +#line 6421 "LibraryWindow.c" } -#line 915 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 921 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (entry); -#line 6419 "LibraryWindow.c" +#line 6425 "LibraryWindow.c" } @@ -6432,66 +6438,66 @@ void library_window_switch_to_photo_page (LibraryWindow* self, CollectionPage* c CollectionPage* _tmp10_ = NULL; Photo* _tmp11_ = NULL; LibraryPhotoPage* _tmp12_ = NULL; -#line 921 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 927 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 921 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 927 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_COLLECTION_PAGE (controller)); -#line 921 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 927 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_PHOTO (current)); -#line 922 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 928 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = controller; -#line 922 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 928 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PAGE, Page)); -#line 922 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 928 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = _tmp1_; -#line 922 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 928 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = current; -#line 922 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 928 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = view_collection_get_view_for_source (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_SOURCE, DataSource)); -#line 922 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 928 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = _tmp4_; -#line 922 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 928 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _vala_assert (_tmp5_ != NULL, "controller.get_view().get_view_for_source(current) != null"); -#line 922 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 928 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp5_); -#line 922 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 928 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _data_collection_unref0 (_tmp2_); -#line 923 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 929 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = self->priv->photo_page; -#line 923 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 929 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp6_ == NULL) { -#line 6463 "LibraryWindow.c" +#line 6469 "LibraryWindow.c" LibraryPhotoPage* _tmp7_ = NULL; LibraryPhotoPage* _tmp8_ = NULL; -#line 924 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 930 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp7_ = library_photo_page_new (); -#line 924 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 930 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_object_ref_sink (_tmp7_); -#line 924 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 930 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (self->priv->photo_page); -#line 924 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 930 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self->priv->photo_page = _tmp7_; -#line 925 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 931 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp8_ = self->priv->photo_page; -#line 925 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 931 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_add_to_stack (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_PAGE, Page)); -#line 929 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 935 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" spin_event_loop (); -#line 6480 "LibraryWindow.c" +#line 6486 "LibraryWindow.c" } -#line 932 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 938 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp9_ = self->priv->photo_page; -#line 932 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 938 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp10_ = controller; -#line 932 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 938 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp11_ = current; -#line 932 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 938 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_photo_page_display_for_collection (_tmp9_, _tmp10_, _tmp11_, NULL); -#line 933 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 939 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp12_ = self->priv->photo_page; -#line 933 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 939 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_switch_to_page (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_PAGE, Page)); -#line 6494 "LibraryWindow.c" +#line 6500 "LibraryWindow.c" } @@ -6501,23 +6507,23 @@ void library_window_switch_to_import_queue_page (LibraryWindow* self) { LibraryImportQueueSidebarEntry* _tmp2_ = NULL; Page* _tmp3_ = NULL; Page* _tmp4_ = NULL; -#line 936 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 942 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 937 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 943 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = self->priv->library_branch; -#line 937 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 943 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = library_branch_get_import_queue_entry (_tmp0_); -#line 937 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 943 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = _tmp1_; -#line 937 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 943 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = sidebar_page_representative_get_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative)); -#line 937 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 943 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = _tmp3_; -#line 937 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 943 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_switch_to_page (self, _tmp4_); -#line 937 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 943 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp4_); -#line 6520 "LibraryWindow.c" +#line 6526 "LibraryWindow.c" } @@ -6538,169 +6544,169 @@ static void library_window_on_camera_added (LibraryWindow* self, DiscoveredCamer gboolean _tmp13_ = FALSE; GMount* _tmp14_ = NULL; GError * _inner_error_ = NULL; -#line 940 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 946 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 940 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 946 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_DISCOVERED_CAMERA (camera)); -#line 941 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 947 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = self->priv->camera_branch; -#line 941 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 947 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = camera; -#line 941 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 947 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = camera_branch_get_entry_for_camera (_tmp0_, _tmp1_); -#line 941 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 947 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" entry = _tmp2_; -#line 942 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 948 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = entry; -#line 942 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 948 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp3_ == NULL) { -#line 943 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 949 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (entry); -#line 943 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 949 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return; -#line 6561 "LibraryWindow.c" +#line 6567 "LibraryWindow.c" } -#line 945 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 951 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = entry; -#line 945 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 951 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = sidebar_page_representative_get_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative)); -#line 945 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 951 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" page = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_IMPORT_PAGE, ImportPage); -#line 946 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 952 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = camera; -#line 946 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 952 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp7_ = _tmp6_->uri; -#line 946 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 952 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp8_ = g_file_new_for_uri (_tmp7_); -#line 946 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 952 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" uri_file = _tmp8_; -#line 949 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 955 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" mount = NULL; -#line 6579 "LibraryWindow.c" +#line 6585 "LibraryWindow.c" { GMount* _tmp9_ = NULL; GFile* _tmp10_ = NULL; GMount* _tmp11_ = NULL; GMount* _tmp12_ = NULL; -#line 951 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 957 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp10_ = uri_file; -#line 951 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 957 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp11_ = g_file_find_enclosing_mount (_tmp10_, NULL, &_inner_error_); -#line 951 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 957 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp9_ = _tmp11_; -#line 951 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 957 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 6593 "LibraryWindow.c" - goto __catch39_g_error; +#line 6599 "LibraryWindow.c" + goto __catch41_g_error; } -#line 951 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 957 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp12_ = _tmp9_; -#line 951 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 957 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp9_ = NULL; -#line 951 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 957 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (mount); -#line 951 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 957 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" mount = _tmp12_; -#line 950 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 956 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp9_); -#line 6606 "LibraryWindow.c" +#line 6612 "LibraryWindow.c" } - goto __finally39; - __catch39_g_error: + goto __finally41; + __catch41_g_error: { GError* err = NULL; -#line 950 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 956 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" err = _inner_error_; -#line 950 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 956 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _inner_error_ = NULL; -#line 950 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 956 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_error_free0 (err); -#line 6618 "LibraryWindow.c" +#line 6624 "LibraryWindow.c" } - __finally39: -#line 950 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + __finally41: +#line 956 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 950 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 956 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (mount); -#line 950 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 956 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (uri_file); -#line 950 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 956 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (page); -#line 950 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 956 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (entry); -#line 950 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 956 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 950 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 956 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_clear_error (&_inner_error_); -#line 950 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 956 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return; -#line 6637 "LibraryWindow.c" +#line 6643 "LibraryWindow.c" } -#line 957 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 963 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp14_ = mount; -#line 957 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 963 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp14_ != NULL) { -#line 6643 "LibraryWindow.c" +#line 6649 "LibraryWindow.c" DiscoveredCamera* _tmp15_ = NULL; const gchar* _tmp16_ = NULL; gboolean _tmp17_ = FALSE; -#line 957 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 963 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp15_ = camera; -#line 957 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 963 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp16_ = _tmp15_->uri; -#line 957 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 963 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp17_ = g_str_has_prefix (_tmp16_, "file://"); -#line 957 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 963 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp13_ = !_tmp17_; -#line 6655 "LibraryWindow.c" +#line 6661 "LibraryWindow.c" } else { -#line 957 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 963 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp13_ = FALSE; -#line 6659 "LibraryWindow.c" +#line 6665 "LibraryWindow.c" } -#line 957 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 963 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp13_) { -#line 6663 "LibraryWindow.c" +#line 6669 "LibraryWindow.c" ImportPage* _tmp18_ = NULL; GMount* _tmp19_ = NULL; gboolean _tmp20_ = FALSE; -#line 958 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 964 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp18_ = page; -#line 958 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 964 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp19_ = mount; -#line 958 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 964 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp20_ = import_page_unmount_camera (_tmp18_, _tmp19_); -#line 958 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 964 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp20_) { -#line 6675 "LibraryWindow.c" +#line 6681 "LibraryWindow.c" ImportPage* _tmp21_ = NULL; -#line 959 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 965 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp21_ = page; -#line 959 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 965 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_switch_to_page (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_PAGE, Page)); -#line 6681 "LibraryWindow.c" +#line 6687 "LibraryWindow.c" } else { -#line 961 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 967 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" app_window_error_message ("Unable to unmount the camera at this time.", NULL); -#line 6685 "LibraryWindow.c" +#line 6691 "LibraryWindow.c" } } else { ImportPage* _tmp22_ = NULL; -#line 963 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 969 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp22_ = page; -#line 963 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 969 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_switch_to_page (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_PAGE, Page)); -#line 6693 "LibraryWindow.c" +#line 6699 "LibraryWindow.c" } -#line 940 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 946 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (mount); -#line 940 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 946 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (uri_file); -#line 940 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 946 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (page); -#line 940 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 946 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (entry); -#line 6703 "LibraryWindow.c" +#line 6709 "LibraryWindow.c" } @@ -6709,25 +6715,25 @@ void library_window_add_to_stack (LibraryWindow* self, Page* page) { GtkStack* _tmp1_ = NULL; Page* _tmp2_ = NULL; GtkStack* _tmp3_ = NULL; -#line 968 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 974 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 968 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 974 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_PAGE (page)); -#line 970 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 976 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = page; -#line 970 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 976 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 972 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 978 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = self->priv->stack; -#line 972 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 978 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = page; -#line 972 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 978 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget)); -#line 974 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 980 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = self->priv->stack; -#line 974 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 980 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget)); -#line 6730 "LibraryWindow.c" +#line 6736 "LibraryWindow.c" } @@ -6735,49 +6741,49 @@ static void library_window_remove_from_stack (LibraryWindow* self, Page* page) { GtkStack* _tmp0_ = NULL; Page* _tmp1_ = NULL; GtkStack* _tmp2_ = NULL; -#line 977 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 983 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 977 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 983 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_PAGE (page)); -#line 978 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 984 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = self->priv->stack; -#line 978 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 984 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = page; -#line 978 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 984 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_container_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget)); -#line 981 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 987 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = self->priv->stack; -#line 981 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 987 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget)); -#line 6752 "LibraryWindow.c" +#line 6758 "LibraryWindow.c" } static GVariant* _variant_new10 (gboolean value) { -#line 988 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 994 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 6759 "LibraryWindow.c" +#line 6765 "LibraryWindow.c" } static GVariant* _variant_new11 (gboolean value) { -#line 992 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 998 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 6766 "LibraryWindow.c" +#line 6772 "LibraryWindow.c" } static GVariant* _variant_new12 (gboolean value) { -#line 996 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1002 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 6773 "LibraryWindow.c" +#line 6779 "LibraryWindow.c" } static GVariant* _variant_new13 (const gchar* value) { -#line 1007 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1013 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return g_variant_ref_sink (g_variant_new_string (value)); -#line 6780 "LibraryWindow.c" +#line 6786 "LibraryWindow.c" } @@ -6822,148 +6828,148 @@ static void library_window_load_configuration (LibraryWindow* self) { gchar* _tmp32_ = NULL; GAction* _tmp33_ = NULL; GVariant* _tmp34_ = NULL; -#line 985 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 991 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 986 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 992 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = g_action_map_lookup_action (G_TYPE_CHECK_INSTANCE_CAST (self, g_action_map_get_type (), GActionMap), "CommonDisplayBasicProperties"); -#line 986 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 992 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = _g_object_ref0 (_tmp0_); -#line 986 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 992 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" basic_display_action = _tmp1_; -#line 987 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 993 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = basic_display_action; -#line 987 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 993 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _vala_assert (_tmp2_ != NULL, "basic_display_action != null"); -#line 988 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 994 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = basic_display_action; -#line 988 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 994 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = config_facade_get_instance (); -#line 988 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 994 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = _tmp4_; -#line 988 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 994 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = configuration_facade_get_display_basic_properties (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 988 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 994 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp7_ = _variant_new10 (_tmp6_); -#line 988 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 994 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_action_change_state (_tmp3_, _tmp7_); -#line 988 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 994 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_variant_unref0 (_tmp7_); -#line 988 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 994 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp5_); -#line 990 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 996 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp8_ = g_action_map_lookup_action (G_TYPE_CHECK_INSTANCE_CAST (self, g_action_map_get_type (), GActionMap), "CommonDisplayExtendedProperties"); -#line 990 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 996 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp9_ = _g_object_ref0 (_tmp8_); -#line 990 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 996 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" extended_display_action = _tmp9_; -#line 991 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 997 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp10_ = extended_display_action; -#line 991 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 997 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _vala_assert (_tmp10_ != NULL, "extended_display_action != null"); -#line 992 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 998 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp11_ = extended_display_action; -#line 992 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 998 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp12_ = config_facade_get_instance (); -#line 992 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 998 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp13_ = _tmp12_; -#line 992 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 998 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp14_ = configuration_facade_get_display_extended_properties (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 992 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 998 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp15_ = _variant_new11 (_tmp14_); -#line 992 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 998 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_action_change_state (_tmp11_, _tmp15_); -#line 992 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 998 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_variant_unref0 (_tmp15_); -#line 992 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 998 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp13_); -#line 994 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1000 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp16_ = g_action_map_lookup_action (G_TYPE_CHECK_INSTANCE_CAST (self, g_action_map_get_type (), GActionMap), "CommonDisplaySearchbar"); -#line 994 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1000 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp17_ = _g_object_ref0 (_tmp16_); -#line 994 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1000 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" search_bar_display_action = _tmp17_; -#line 995 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1001 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp18_ = search_bar_display_action; -#line 995 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1001 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _vala_assert (_tmp18_ != NULL, "search_bar_display_action != null"); -#line 996 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1002 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp19_ = search_bar_display_action; -#line 996 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1002 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp20_ = config_facade_get_instance (); -#line 996 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1002 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp21_ = _tmp20_; -#line 996 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1002 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp22_ = configuration_facade_get_display_search_bar (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 996 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1002 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp23_ = _variant_new12 (_tmp22_); -#line 996 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1002 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_action_change_state (_tmp19_, _tmp23_); -#line 996 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1002 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_variant_unref0 (_tmp23_); -#line 996 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1002 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp21_); -#line 998 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1004 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp24_ = g_action_map_lookup_action (G_TYPE_CHECK_INSTANCE_CAST (self, g_action_map_get_type (), GActionMap), "CommonSortEvents"); -#line 998 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1004 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp25_ = _g_object_ref0 (_tmp24_); -#line 998 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1004 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" sort_events_action = _tmp25_; -#line 999 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1005 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp26_ = sort_events_action; -#line 999 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1005 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _vala_assert (_tmp26_ != NULL, "sort_events_action != null"); -#line 1004 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1010 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp28_ = config_facade_get_instance (); -#line 1004 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1010 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp29_ = _tmp28_; -#line 1004 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1010 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp30_ = configuration_facade_get_events_sort_ascending (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 1004 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1010 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp31_ = _tmp30_; -#line 1004 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1010 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp29_); -#line 1004 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1010 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp31_) { -#line 1004 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1010 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp27_ = LIBRARY_WINDOW_SORT_EVENTS_ORDER_ASCENDING; -#line 6929 "LibraryWindow.c" +#line 6935 "LibraryWindow.c" } else { -#line 1005 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1011 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp27_ = LIBRARY_WINDOW_SORT_EVENTS_ORDER_DESCENDING; -#line 6933 "LibraryWindow.c" +#line 6939 "LibraryWindow.c" } -#line 1004 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1010 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp32_ = g_strdup (_tmp27_); -#line 1004 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1010 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" event_sort_val = _tmp32_; -#line 1007 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1013 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp33_ = sort_events_action; -#line 1007 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1013 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp34_ = _variant_new13 (event_sort_val); -#line 1007 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1013 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_action_change_state (_tmp33_, _tmp34_); -#line 1007 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1013 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_variant_unref0 (_tmp34_); -#line 985 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 991 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_free0 (event_sort_val); -#line 985 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 991 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (sort_events_action); -#line 985 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 991 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (search_bar_display_action); -#line 985 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 991 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (extended_display_action); -#line 985 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 991 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (basic_display_action); -#line 6957 "LibraryWindow.c" +#line 6963 "LibraryWindow.c" } static gboolean _library_window_on_pulse_background_progress_bar_gsource_func (gpointer self) { gboolean result; result = library_window_on_pulse_background_progress_bar ((LibraryWindow*) self); -#line 1022 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1028 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return result; -#line 6966 "LibraryWindow.c" +#line 6972 "LibraryWindow.c" } @@ -6976,62 +6982,62 @@ static void library_window_start_pulse_background_progress_bar (LibraryWindow* s const gchar* _tmp5_ = NULL; GtkProgressBar* _tmp6_ = NULL; guint _tmp7_ = 0U; -#line 1010 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1016 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1010 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1016 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (label != NULL); -#line 1011 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1017 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = priority; -#line 1011 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1017 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = self->priv->current_progress_priority; -#line 1011 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1017 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp0_ < _tmp1_) { -#line 1012 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1018 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return; -#line 6991 "LibraryWindow.c" +#line 6997 "LibraryWindow.c" } -#line 1014 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1020 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = priority; -#line 1014 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1020 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_stop_pulse_background_progress_bar (self, _tmp2_, FALSE); -#line 1016 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1022 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = priority; -#line 1016 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1022 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self->priv->current_progress_priority = _tmp3_; -#line 1018 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1024 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = self->priv->background_progress_bar; -#line 1018 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1024 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = label; -#line 1018 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1024 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_progress_bar_set_text (_tmp4_, _tmp5_); -#line 1019 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1025 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = self->priv->background_progress_bar; -#line 1019 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1025 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_progress_bar_pulse (_tmp6_); -#line 1020 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1026 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_show_background_progress_bar (self); -#line 1022 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1028 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp7_ = g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) LIBRARY_WINDOW_BACKGROUND_PROGRESS_PULSE_MSEC, _library_window_on_pulse_background_progress_bar_gsource_func, g_object_ref (self), g_object_unref); -#line 1022 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1028 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self->priv->background_progress_pulse_id = _tmp7_; -#line 7017 "LibraryWindow.c" +#line 7023 "LibraryWindow.c" } static gboolean library_window_on_pulse_background_progress_bar (LibraryWindow* self) { gboolean result = FALSE; GtkProgressBar* _tmp0_ = NULL; -#line 1026 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1032 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_val_if_fail (IS_LIBRARY_WINDOW (self), FALSE); -#line 1027 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1033 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = self->priv->background_progress_bar; -#line 1027 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1033 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_progress_bar_pulse (_tmp0_); -#line 1029 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1035 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" result = TRUE; -#line 1029 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1035 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return result; -#line 7034 "LibraryWindow.c" +#line 7040 "LibraryWindow.c" } @@ -7040,43 +7046,43 @@ static void library_window_stop_pulse_background_progress_bar (LibraryWindow* se gint _tmp1_ = 0; guint _tmp2_ = 0U; gboolean _tmp4_ = FALSE; -#line 1032 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1038 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1033 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1039 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = priority; -#line 1033 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1039 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = self->priv->current_progress_priority; -#line 1033 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1039 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp0_ < _tmp1_) { -#line 1034 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1040 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return; -#line 7053 "LibraryWindow.c" +#line 7059 "LibraryWindow.c" } -#line 1036 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1042 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = self->priv->background_progress_pulse_id; -#line 1036 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1042 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp2_ != ((guint) 0)) { -#line 7059 "LibraryWindow.c" +#line 7065 "LibraryWindow.c" guint _tmp3_ = 0U; -#line 1037 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1043 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = self->priv->background_progress_pulse_id; -#line 1037 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1043 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_source_remove (_tmp3_); -#line 1038 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1044 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self->priv->background_progress_pulse_id = (guint) 0; -#line 7067 "LibraryWindow.c" +#line 7073 "LibraryWindow.c" } -#line 1041 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1047 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = clear; -#line 1041 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1047 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp4_) { -#line 7073 "LibraryWindow.c" +#line 7079 "LibraryWindow.c" gint _tmp5_ = 0; -#line 1042 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1048 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = priority; -#line 1042 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1048 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_clear_background_progress_bar (self, _tmp5_); -#line 7079 "LibraryWindow.c" +#line 7085 "LibraryWindow.c" } } @@ -7100,102 +7106,102 @@ static void library_window_update_background_progress_bar (LibraryWindow* self, gdouble _tmp18_ = 0.0; gchar* _tmp19_ = NULL; gchar* _tmp20_ = NULL; -#line 1045 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1051 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1045 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1051 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (label != NULL); -#line 1047 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1053 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = priority; -#line 1047 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1053 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = self->priv->current_progress_priority; -#line 1047 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1053 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp0_ < _tmp1_) { -#line 1048 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1054 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return; -#line 7115 "LibraryWindow.c" +#line 7121 "LibraryWindow.c" } -#line 1050 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1056 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = priority; -#line 1050 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1056 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_stop_pulse_background_progress_bar (self, _tmp2_, FALSE); -#line 1052 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1058 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = count; -#line 1052 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1058 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp5_ <= 0.0) { -#line 1052 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1058 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = TRUE; -#line 7127 "LibraryWindow.c" +#line 7133 "LibraryWindow.c" } else { gdouble _tmp6_ = 0.0; -#line 1052 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1058 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = total; -#line 1052 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1058 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = _tmp6_ <= 0.0; -#line 7134 "LibraryWindow.c" +#line 7140 "LibraryWindow.c" } -#line 1052 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1058 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp4_) { -#line 1052 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1058 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = TRUE; -#line 7140 "LibraryWindow.c" +#line 7146 "LibraryWindow.c" } else { gdouble _tmp7_ = 0.0; gdouble _tmp8_ = 0.0; -#line 1052 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1058 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp7_ = count; -#line 1052 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1058 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp8_ = total; -#line 1052 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1058 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = _tmp7_ >= _tmp8_; -#line 7150 "LibraryWindow.c" +#line 7156 "LibraryWindow.c" } -#line 1052 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1058 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp3_) { -#line 7154 "LibraryWindow.c" +#line 7160 "LibraryWindow.c" gint _tmp9_ = 0; -#line 1053 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1059 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp9_ = priority; -#line 1053 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1059 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_clear_background_progress_bar (self, _tmp9_); -#line 1055 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1061 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return; -#line 7162 "LibraryWindow.c" +#line 7168 "LibraryWindow.c" } -#line 1058 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1064 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp10_ = priority; -#line 1058 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1064 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self->priv->current_progress_priority = _tmp10_; -#line 1060 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1066 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp11_ = count; -#line 1060 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1066 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp12_ = total; -#line 1060 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1066 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" fraction = _tmp11_ / _tmp12_; -#line 1061 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1067 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp13_ = self->priv->background_progress_bar; -#line 1061 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1067 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp14_ = fraction; -#line 1061 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1067 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_progress_bar_set_fraction (_tmp13_, _tmp14_); -#line 1062 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1068 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp15_ = self->priv->background_progress_bar; -#line 1062 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1068 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp16_ = _ ("%s (%d%%)"); -#line 1062 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1068 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp17_ = label; -#line 1062 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1068 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp18_ = fraction; -#line 1062 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1068 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp19_ = g_strdup_printf (_tmp16_, _tmp17_, (gint) (_tmp18_ * 100.0)); -#line 1062 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1068 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp20_ = _tmp19_; -#line 1062 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1068 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_progress_bar_set_text (_tmp15_, _tmp20_); -#line 1062 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1068 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_free0 (_tmp20_); -#line 1063 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1069 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_show_background_progress_bar (self); -#line 7198 "LibraryWindow.c" +#line 7204 "LibraryWindow.c" } @@ -7205,149 +7211,149 @@ static void library_window_clear_background_progress_bar (LibraryWindow* self, g gint _tmp2_ = 0; GtkProgressBar* _tmp3_ = NULL; GtkProgressBar* _tmp4_ = NULL; -#line 1072 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1078 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1073 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1079 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = priority; -#line 1073 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1079 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = self->priv->current_progress_priority; -#line 1073 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1079 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp0_ < _tmp1_) { -#line 1074 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1080 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return; -#line 7218 "LibraryWindow.c" +#line 7224 "LibraryWindow.c" } -#line 1076 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1082 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = priority; -#line 1076 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1082 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_stop_pulse_background_progress_bar (self, _tmp2_, FALSE); -#line 1078 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1084 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self->priv->current_progress_priority = 0; -#line 1080 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1086 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = self->priv->background_progress_bar; -#line 1080 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1086 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_progress_bar_set_fraction (_tmp3_, 0.0); -#line 1081 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1087 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = self->priv->background_progress_bar; -#line 1081 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1087 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_progress_bar_set_text (_tmp4_, ""); -#line 1082 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1088 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_hide_background_progress_bar (self); -#line 7236 "LibraryWindow.c" +#line 7242 "LibraryWindow.c" } static void library_window_show_background_progress_bar (LibraryWindow* self) { gboolean _tmp0_ = FALSE; -#line 1090 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1096 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1091 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1097 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = self->priv->background_progress_displayed; -#line 1091 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1097 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (!_tmp0_) { -#line 7248 "LibraryWindow.c" +#line 7254 "LibraryWindow.c" GtkBox* _tmp1_ = NULL; GtkFrame* _tmp2_ = NULL; GtkFrame* _tmp3_ = NULL; -#line 1092 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1098 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = self->priv->top_section; -#line 1092 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1098 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = self->priv->background_progress_frame; -#line 1092 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1098 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_box_pack_end (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 1093 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1099 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = self->priv->background_progress_frame; -#line 1093 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1099 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget)); -#line 1094 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1100 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self->priv->background_progress_displayed = TRUE; -#line 7264 "LibraryWindow.c" +#line 7270 "LibraryWindow.c" } } static void library_window_hide_background_progress_bar (LibraryWindow* self) { gboolean _tmp0_ = FALSE; -#line 1098 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1104 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1099 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1105 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = self->priv->background_progress_displayed; -#line 1099 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1105 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp0_) { -#line 7277 "LibraryWindow.c" +#line 7283 "LibraryWindow.c" GtkBox* _tmp1_ = NULL; GtkFrame* _tmp2_ = NULL; -#line 1100 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1106 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = self->priv->top_section; -#line 1100 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1106 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = self->priv->background_progress_frame; -#line 1100 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1106 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_container_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget)); -#line 1101 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1107 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self->priv->background_progress_displayed = FALSE; -#line 7288 "LibraryWindow.c" +#line 7294 "LibraryWindow.c" } } static void library_window_on_library_monitor_discovery_started (LibraryWindow* self) { const gchar* _tmp0_ = NULL; -#line 1105 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1111 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1106 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1112 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = _ ("Updating library…"); -#line 1106 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1112 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_start_pulse_background_progress_bar (self, _tmp0_, LIBRARY_WINDOW_STARTUP_SCAN_PROGRESS_PRIORITY); -#line 7301 "LibraryWindow.c" +#line 7307 "LibraryWindow.c" } static void library_window_on_library_monitor_discovery_completed (LibraryWindow* self) { -#line 1109 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1115 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1110 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1116 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_stop_pulse_background_progress_bar (self, LIBRARY_WINDOW_STARTUP_SCAN_PROGRESS_PRIORITY, TRUE); -#line 7310 "LibraryWindow.c" +#line 7316 "LibraryWindow.c" } static void library_window_on_library_monitor_auto_update_progress (LibraryWindow* self, gint completed_files, gint total_files) { gint _tmp0_ = 0; -#line 1113 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1119 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1114 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1120 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = total_files; -#line 1114 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1120 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp0_ < LIBRARY_WINDOW_MIN_PROGRESS_BAR_FILES) { -#line 1115 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1121 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_clear_background_progress_bar (self, LIBRARY_WINDOW_REALTIME_UPDATE_PROGRESS_PRIORITY); -#line 7324 "LibraryWindow.c" +#line 7330 "LibraryWindow.c" } else { const gchar* _tmp1_ = NULL; gint _tmp2_ = 0; gint _tmp3_ = 0; -#line 1117 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1123 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = _ ("Updating library…"); -#line 1117 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1123 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = completed_files; -#line 1117 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1123 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = total_files; -#line 1117 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1123 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_update_background_progress_bar (self, _tmp1_, LIBRARY_WINDOW_REALTIME_UPDATE_PROGRESS_PRIORITY, (gdouble) _tmp2_, (gdouble) _tmp3_); -#line 7337 "LibraryWindow.c" +#line 7343 "LibraryWindow.c" } } static void library_window_on_library_monitor_auto_import_preparing (LibraryWindow* self) { const gchar* _tmp0_ = NULL; -#line 1122 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1128 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1123 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1129 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = _ ("Preparing to auto-import photos…"); -#line 1123 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1129 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_start_pulse_background_progress_bar (self, _tmp0_, LIBRARY_WINDOW_REALTIME_IMPORT_PROGRESS_PRIORITY); -#line 7350 "LibraryWindow.c" +#line 7356 "LibraryWindow.c" } @@ -7355,44 +7361,44 @@ static void library_window_on_library_monitor_auto_import_progress (LibraryWindo const gchar* _tmp0_ = NULL; guint64 _tmp1_ = 0ULL; guint64 _tmp2_ = 0ULL; -#line 1127 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1133 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1128 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1134 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = _ ("Auto-importing photos…"); -#line 1128 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1134 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = completed_bytes; -#line 1128 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1134 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = total_bytes; -#line 1128 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1134 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_update_background_progress_bar (self, _tmp0_, LIBRARY_WINDOW_REALTIME_IMPORT_PROGRESS_PRIORITY, (gdouble) _tmp1_, (gdouble) _tmp2_); -#line 7368 "LibraryWindow.c" +#line 7374 "LibraryWindow.c" } static void library_window_on_metadata_writer_progress (LibraryWindow* self, guint completed, guint total) { guint _tmp0_ = 0U; -#line 1132 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1138 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1133 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1139 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = total; -#line 1133 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1139 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp0_ < ((guint) LIBRARY_WINDOW_MIN_PROGRESS_BAR_FILES)) { -#line 1134 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1140 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_clear_background_progress_bar (self, LIBRARY_WINDOW_METADATA_WRITER_PROGRESS_PRIORITY); -#line 7382 "LibraryWindow.c" +#line 7388 "LibraryWindow.c" } else { const gchar* _tmp1_ = NULL; guint _tmp2_ = 0U; guint _tmp3_ = 0U; -#line 1136 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1142 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = _ ("Writing metadata to files…"); -#line 1136 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1142 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = completed; -#line 1136 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1142 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = total; -#line 1136 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1142 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_update_background_progress_bar (self, _tmp1_, LIBRARY_WINDOW_METADATA_WRITER_PROGRESS_PRIORITY, (gdouble) _tmp2_, (gdouble) _tmp3_); -#line 7395 "LibraryWindow.c" +#line 7401 "LibraryWindow.c" } } @@ -7447,235 +7453,222 @@ static void library_window_create_layout (LibraryWindow* self, Page* start_page) GtkBox* _tmp45_ = NULL; GtkPaned* _tmp46_ = NULL; GtkBox* _tmp47_ = NULL; - GtkBuilder* builder = NULL; - GtkBuilder* _tmp48_ = NULL; - GObject* _tmp49_ = NULL; - Page* _tmp50_ = NULL; - Page* _tmp51_ = NULL; -#line 1141 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + Page* _tmp48_ = NULL; + Page* _tmp49_ = NULL; +#line 1147 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1141 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1147 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_PAGE (start_page)); -#line 1144 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1150 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = (GtkScrolledWindow*) gtk_scrolled_window_new (NULL, NULL); -#line 1144 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1150 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_object_ref_sink (_tmp0_); -#line 1144 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1150 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" scrolled_sidebar = _tmp0_; -#line 1145 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1151 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_scrolled_window_set_policy (scrolled_sidebar, GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC); -#line 1146 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1152 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = self->priv->sidebar_tree; -#line 1146 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1152 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (scrolled_sidebar, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget)); -#line 1148 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1154 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = self->priv->background_progress_frame; -#line 1148 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1154 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_container_set_border_width (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_container_get_type (), GtkContainer), (guint) 2); -#line 1149 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1155 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = self->priv->background_progress_frame; -#line 1149 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1155 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = self->priv->background_progress_bar; -#line 1149 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1155 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget)); -#line 1150 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1156 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = self->priv->background_progress_frame; -#line 1150 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1156 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = gtk_widget_get_style_context (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget)); -#line 1150 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1156 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_style_context_remove_class (_tmp6_, "frame"); -#line 1153 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1159 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp7_ = self->priv->basic_properties; -#line 1153 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1159 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_FILL); -#line 1154 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1160 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp8_ = self->priv->basic_properties; -#line 1154 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1160 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_CENTER); -#line 1155 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1161 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp9_ = self->priv->basic_properties; -#line 1155 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1161 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_widget_set_hexpand (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 1156 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1162 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp10_ = self->priv->basic_properties; -#line 1156 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1162 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_widget_set_vexpand (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1157 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1163 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp11_ = self->priv->basic_properties; -#line 1157 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1163 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_widget_set_margin_top (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_widget_get_type (), GtkWidget), 10); -#line 1158 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1164 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp12_ = self->priv->basic_properties; -#line 1158 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1164 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_widget_set_margin_bottom (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_widget_get_type (), GtkWidget), 10); -#line 1159 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1165 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp13_ = self->priv->basic_properties; -#line 1159 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1165 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_widget_set_margin_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_widget_get_type (), GtkWidget), 6); -#line 1160 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1166 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp14_ = self->priv->basic_properties; -#line 1160 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1166 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_widget_set_margin_end (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_widget_get_type (), GtkWidget), 0); -#line 1162 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1168 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp15_ = self->priv->bottom_frame; -#line 1162 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1168 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp16_ = self->priv->basic_properties; -#line 1162 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1168 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_widget_get_type (), GtkWidget)); -#line 1163 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1169 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp17_ = self->priv->bottom_frame; -#line 1163 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1169 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp18_ = gtk_widget_get_style_context (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_widget_get_type (), GtkWidget)); -#line 1163 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1169 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_style_context_remove_class (_tmp18_, "frame"); -#line 1167 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1173 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp19_ = self->priv->top_section; -#line 1167 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1173 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_box_pack_start (_tmp19_, G_TYPE_CHECK_INSTANCE_CAST (scrolled_sidebar, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0); -#line 1169 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1175 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp20_ = self->priv->sidebar_paned; -#line 1169 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1175 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp21_ = self->priv->top_section; -#line 1169 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1175 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_paned_pack1 (_tmp20_, G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_widget_get_type (), GtkWidget), TRUE, FALSE); -#line 1170 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1176 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp22_ = self->priv->sidebar_paned; -#line 1170 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1176 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp23_ = self->priv->bottom_frame; -#line 1170 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1176 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_paned_pack2 (_tmp22_, G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE); -#line 1171 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1177 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp24_ = self->priv->sidebar_paned; -#line 1171 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1177 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_paned_set_position (_tmp24_, 1000); -#line 1173 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1179 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp25_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); -#line 1173 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1179 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_object_ref_sink (_tmp25_); -#line 1173 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1179 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (self->priv->right_vbox); -#line 1173 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1179 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self->priv->right_vbox = _tmp25_; -#line 1174 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1180 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp26_ = self->priv->right_vbox; -#line 1174 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1180 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp27_ = self->priv->search_toolbar; -#line 1174 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1180 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_box_pack_start (_tmp26_, G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 1175 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1181 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp28_ = self->priv->right_vbox; -#line 1175 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1181 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp29_ = self->priv->stack; -#line 1175 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1181 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_box_pack_start (_tmp28_, G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0); -#line 1176 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1182 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp30_ = self->priv->right_vbox; -#line 1176 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1182 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp31_ = self->priv->toolbar_revealer; -#line 1176 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1182 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, gtk_widget_get_type (), GtkWidget)); -#line 1178 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1184 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp32_ = (GtkPaned*) gtk_paned_new (GTK_ORIENTATION_HORIZONTAL); -#line 1178 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1184 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_object_ref_sink (_tmp32_); -#line 1178 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1184 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (self->priv->client_paned); -#line 1178 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1184 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self->priv->client_paned = _tmp32_; -#line 1179 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1185 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp33_ = self->priv->client_paned; -#line 1179 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1185 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp34_ = self->priv->sidebar_paned; -#line 1179 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1185 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_paned_pack1 (_tmp33_, G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE); -#line 1180 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1186 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp35_ = self->priv->sidebar_tree; -#line 1180 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1186 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, gtk_widget_get_type (), GtkWidget), LIBRARY_WINDOW_SIDEBAR_MIN_WIDTH, -1); -#line 1181 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1187 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp36_ = self->priv->client_paned; -#line 1181 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1187 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp37_ = self->priv->right_vbox; -#line 1181 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1187 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_paned_pack2 (_tmp36_, G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, gtk_widget_get_type (), GtkWidget), TRUE, FALSE); -#line 1182 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp38_ = self->priv->client_paned; -#line 1182 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp39_ = config_facade_get_instance (); -#line 1182 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp40_ = _tmp39_; -#line 1182 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp41_ = configuration_facade_get_sidebar_position (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 1182 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_paned_set_position (_tmp38_, _tmp41_); -#line 1182 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp40_); -#line 1184 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1190 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp42_ = self->priv->stack; -#line 1184 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1190 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp43_ = library_window_get_PAGE_MIN_WIDTH (); -#line 1184 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1190 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp44_ = _tmp43_; -#line 1184 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1190 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, gtk_widget_get_type (), GtkWidget), _tmp44_, -1); -#line 1186 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1192 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp45_ = self->priv->layout; -#line 1186 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1192 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp46_ = self->priv->client_paned; -#line 1186 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1192 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_box_pack_end (_tmp45_, G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0); -#line 1188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp47_ = self->priv->layout; -#line 1188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, gtk_widget_get_type (), GtkWidget)); -#line 1190 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp48_ = gtk_builder_new_from_resource ("/org/gnome/Shotwell/appmenu.ui"); -#line 1190 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - builder = _tmp48_; -#line 1191 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp49_ = gtk_builder_get_object (builder, "appmenu"); -#line 1191 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - application_set_appmenu (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_TYPE (_tmp49_, g_menu_get_type ()) ? ((GMenu*) _tmp49_) : NULL, g_menu_model_get_type (), GMenuModel)); -#line 1193 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp50_ = start_page; -#line 1193 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_switch_to_page (self, _tmp50_); #line 1194 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp51_ = start_page; + _tmp47_ = self->priv->layout; #line 1194 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, gtk_widget_get_type (), GtkWidget)); -#line 1141 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (builder); -#line 1141 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, gtk_widget_get_type (), GtkWidget)); +#line 1196 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + _tmp48_ = start_page; +#line 1196 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + library_window_switch_to_page (self, _tmp48_); +#line 1197 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + _tmp49_ = start_page; +#line 1197 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, gtk_widget_get_type (), GtkWidget)); +#line 1147 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (scrolled_sidebar); -#line 7651 "LibraryWindow.c" +#line 7644 "LibraryWindow.c" } static void library_window_real_set_current_page (PageWindow* base, Page* page) { LibraryWindow * self; Page* _tmp0_ = NULL; -#line 1197 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1200 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_WINDOW, LibraryWindow); -#line 1197 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1200 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_PAGE (page)); -#line 1199 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1202 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = page; -#line 1199 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1202 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_switch_to_page (self, _tmp0_); -#line 7666 "LibraryWindow.c" +#line 7659 "LibraryWindow.c" } void library_window_set_page_switching_enabled (LibraryWindow* self, gboolean should_enable) { gboolean _tmp0_ = FALSE; -#line 1202 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1205 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1203 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1206 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = should_enable; -#line 1203 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1206 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self->priv->page_switching_enabled = _tmp0_; -#line 7678 "LibraryWindow.c" +#line 7671 "LibraryWindow.c" } @@ -7707,48 +7700,56 @@ void library_window_switch_to_page (LibraryWindow* self, Page* page) { Page* _tmp43_ = NULL; GMenuModel* _tmp44_ = NULL; GMenuModel* _tmp45_ = NULL; + gboolean old = FALSE; + GtkSettings* _tmp46_ = NULL; + gboolean _tmp47_ = FALSE; + gboolean _tmp48_ = FALSE; + GtkSettings* _tmp49_ = NULL; + gboolean _tmp50_ = FALSE; + GtkSettings* _tmp51_ = NULL; + gboolean _tmp52_ = FALSE; GtkToolbar* toolbar = NULL; - Page* _tmp46_ = NULL; - GtkToolbar* _tmp47_ = NULL; - GtkToolbar* _tmp48_ = NULL; - Page* _tmp54_ = NULL; -#line 1206 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + Page* _tmp53_ = NULL; + GtkToolbar* _tmp54_ = NULL; + GtkToolbar* _tmp55_ = NULL; + Page* _tmp61_ = NULL; +#line 1209 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1206 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1209 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_PAGE (page)); -#line 1207 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1210 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = self->priv->page_switching_enabled; -#line 1207 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1210 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (!_tmp0_) { -#line 1208 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1211 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return; -#line 7725 "LibraryWindow.c" +#line 7726 "LibraryWindow.c" } -#line 1210 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1213 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = page; -#line 1210 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1213 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 1210 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1213 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = _tmp2_; -#line 1210 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1213 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = _tmp1_ == _tmp3_; -#line 1210 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1213 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp3_); -#line 1210 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1213 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp4_) { -#line 1211 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1214 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return; -#line 7741 "LibraryWindow.c" +#line 7742 "LibraryWindow.c" } -#line 1213 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1216 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 1213 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1216 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" current_page = _tmp5_; -#line 1214 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1217 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = current_page; -#line 1214 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1217 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp6_ != NULL) { -#line 7751 "LibraryWindow.c" +#line 7752 "LibraryWindow.c" GtkToolbar* toolbar = NULL; Page* _tmp7_ = NULL; GtkToolbar* _tmp8_ = NULL; @@ -7756,96 +7757,96 @@ void library_window_switch_to_page (LibraryWindow* self, Page* page) { Page* _tmp12_ = NULL; Page* _tmp13_ = NULL; Page* _tmp15_ = NULL; -#line 1215 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1218 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_application_window_set_show_menubar (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_application_window_get_type (), GtkApplicationWindow), FALSE); -#line 1216 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1219 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" application_set_menubar (NULL); -#line 1218 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1221 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp7_ = current_page; -#line 1218 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1221 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp8_ = page_get_toolbar (_tmp7_); -#line 1218 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1221 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" toolbar = _tmp8_; -#line 1219 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1222 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp9_ = toolbar; -#line 1219 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1222 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp9_ != NULL) { -#line 7773 "LibraryWindow.c" +#line 7774 "LibraryWindow.c" GtkRevealer* _tmp10_ = NULL; GtkToolbar* _tmp11_ = NULL; -#line 1220 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1223 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp10_ = self->priv->toolbar_revealer; -#line 1220 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1223 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp11_ = toolbar; -#line 1220 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1223 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_container_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_widget_get_type (), GtkWidget)); -#line 7782 "LibraryWindow.c" +#line 7783 "LibraryWindow.c" } -#line 1222 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1225 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp12_ = current_page; -#line 1222 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1225 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" page_switching_from (_tmp12_); -#line 1226 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1229 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp13_ = current_page; -#line 1226 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1229 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp13_, TYPE_LIBRARY_PHOTO_PAGE)) { -#line 7792 "LibraryWindow.c" +#line 7793 "LibraryWindow.c" SidebarTree* _tmp14_ = NULL; -#line 1227 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1230 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp14_ = self->priv->sidebar_tree; -#line 1227 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1230 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" sidebar_tree_enable_editing (_tmp14_); -#line 7798 "LibraryWindow.c" +#line 7799 "LibraryWindow.c" } -#line 1230 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1233 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp15_ = current_page; -#line 1230 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1233 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_unsubscribe_from_basic_information (self, _tmp15_); -#line 1214 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1217 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (toolbar); -#line 7806 "LibraryWindow.c" +#line 7807 "LibraryWindow.c" } -#line 1233 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1236 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp16_ = self->priv->stack; -#line 1233 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1236 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp17_ = page; -#line 1233 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1236 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_stack_set_visible_child (_tmp16_, G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_widget_get_type (), GtkWidget)); -#line 1237 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1240 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp18_ = page; -#line 1237 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1240 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" PAGE_WINDOW_CLASS (library_window_parent_class)->set_current_page (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow), TYPE_PAGE_WINDOW, PageWindow), _tmp18_); -#line 1243 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1246 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp19_ = page; -#line 1243 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1246 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp19_, TYPE_LIBRARY_PHOTO_PAGE)) { -#line 7822 "LibraryWindow.c" +#line 7823 "LibraryWindow.c" SidebarTree* _tmp20_ = NULL; -#line 1244 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1247 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp20_ = self->priv->sidebar_tree; -#line 1244 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1247 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" sidebar_tree_disable_editing (_tmp20_); -#line 7828 "LibraryWindow.c" +#line 7829 "LibraryWindow.c" } -#line 1247 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1250 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp21_ = library_window_should_show_search_bar (self); -#line 1247 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1250 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp22_ = page; -#line 1247 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_toggle_search_bar (self, _tmp21_, G_TYPE_CHECK_INSTANCE_TYPE (_tmp22_, TYPE_CHECKERBOARD_PAGE) ? ((CheckerboardPage*) _tmp22_) : NULL); #line 1250 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + library_window_toggle_search_bar (self, _tmp21_, G_TYPE_CHECK_INSTANCE_TYPE (_tmp22_, TYPE_CHECKERBOARD_PAGE) ? ((CheckerboardPage*) _tmp22_) : NULL); +#line 1253 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp23_ = self->priv->page_map; -#line 1250 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1253 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp24_ = page; -#line 1250 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1253 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp25_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp24_); -#line 1250 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1253 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" entry = (SidebarEntry*) _tmp25_; -#line 1251 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1254 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp26_ = entry; -#line 1251 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1254 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp26_ != NULL) { -#line 7848 "LibraryWindow.c" +#line 7849 "LibraryWindow.c" SidebarExpandableEntry* expandable_entry = NULL; SidebarEntry* _tmp27_ = NULL; SidebarExpandableEntry* _tmp28_ = NULL; @@ -7853,141 +7854,161 @@ void library_window_switch_to_page (LibraryWindow* self, Page* page) { SidebarExpandableEntry* _tmp30_ = NULL; SidebarTree* _tmp35_ = NULL; SidebarEntry* _tmp36_ = NULL; -#line 1254 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1257 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp27_ = entry; -#line 1254 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1257 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp28_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp27_, SIDEBAR_TYPE_EXPANDABLE_ENTRY) ? ((SidebarExpandableEntry*) _tmp27_) : NULL); -#line 1254 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1257 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" expandable_entry = _tmp28_; -#line 1255 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1258 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp30_ = expandable_entry; -#line 1255 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1258 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp30_ != NULL) { -#line 7866 "LibraryWindow.c" +#line 7867 "LibraryWindow.c" SidebarExpandableEntry* _tmp31_ = NULL; gboolean _tmp32_ = FALSE; -#line 1255 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1258 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp31_ = expandable_entry; -#line 1255 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1258 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp32_ = sidebar_expandable_entry_expand_on_select (_tmp31_); -#line 1255 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1258 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp29_ = _tmp32_; -#line 7875 "LibraryWindow.c" +#line 7876 "LibraryWindow.c" } else { -#line 1255 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1258 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp29_ = FALSE; -#line 7879 "LibraryWindow.c" +#line 7880 "LibraryWindow.c" } -#line 1255 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1258 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp29_) { -#line 7883 "LibraryWindow.c" +#line 7884 "LibraryWindow.c" SidebarTree* _tmp33_ = NULL; SidebarEntry* _tmp34_ = NULL; -#line 1256 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1259 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp33_ = self->priv->sidebar_tree; -#line 1256 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1259 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp34_ = entry; -#line 1256 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1259 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" sidebar_tree_expand_to_entry (_tmp33_, _tmp34_); -#line 7892 "LibraryWindow.c" +#line 7893 "LibraryWindow.c" } -#line 1258 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1261 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp35_ = self->priv->sidebar_tree; -#line 1258 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1261 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp36_ = entry; -#line 1258 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1261 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" sidebar_tree_place_cursor (_tmp35_, _tmp36_, TRUE); -#line 1251 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1254 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (expandable_entry); -#line 7902 "LibraryWindow.c" +#line 7903 "LibraryWindow.c" } -#line 1261 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1264 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_on_update_properties (self); -#line 1263 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1266 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp37_ = page; -#line 1263 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1266 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp37_, TYPE_CHECKERBOARD_PAGE)) { -#line 7910 "LibraryWindow.c" +#line 7911 "LibraryWindow.c" Page* _tmp38_ = NULL; -#line 1264 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1267 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp38_ = page; -#line 1264 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1267 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_init_view_filter (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, TYPE_CHECKERBOARD_PAGE, CheckerboardPage)); -#line 7916 "LibraryWindow.c" +#line 7917 "LibraryWindow.c" } -#line 1266 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1269 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp39_ = page; -#line 1266 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, gtk_widget_get_type (), GtkWidget)); #line 1269 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, gtk_widget_get_type (), GtkWidget)); +#line 1272 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp40_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 1269 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1272 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp41_ = _tmp40_; -#line 1269 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1272 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_subscribe_for_basic_information (self, _tmp41_); -#line 1269 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1272 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp41_); -#line 1271 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1274 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp42_ = page; -#line 1271 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1274 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" page_switched_to (_tmp42_); -#line 1273 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1276 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp43_ = page; -#line 1273 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1276 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp44_ = page_get_menubar (_tmp43_); -#line 1273 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp45_ = _tmp44_; -#line 1273 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - application_set_menubar (_tmp45_); -#line 1273 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp45_); -#line 1274 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_application_window_set_show_menubar (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_application_window_get_type (), GtkApplicationWindow), TRUE); #line 1276 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp46_ = page; + _tmp45_ = _tmp44_; #line 1276 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp47_ = page_get_toolbar (_tmp46_); + application_set_menubar (_tmp45_); #line 1276 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - toolbar = _tmp47_; -#line 1277 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp48_ = toolbar; + _g_object_unref0 (_tmp45_); #line 1277 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp48_ != NULL) { -#line 7956 "LibraryWindow.c" - GtkRevealer* _tmp49_ = NULL; - GtkToolbar* _tmp50_ = NULL; - GtkToolbar* _tmp51_ = NULL; - GtkRevealer* _tmp52_ = NULL; - gboolean _tmp53_ = FALSE; + gtk_application_window_set_show_menubar (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_application_window_get_type (), GtkApplicationWindow), TRUE); #line 1278 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp49_ = self->priv->toolbar_revealer; + _tmp46_ = gtk_widget_get_settings (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); #line 1278 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp50_ = toolbar; + g_object_get (_tmp46_, "gtk-shell-shows-menubar", &_tmp47_, NULL); #line 1278 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, gtk_widget_get_type (), GtkWidget)); + _tmp48_ = _tmp47_; +#line 1278 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + old = _tmp48_; +#line 1279 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + _tmp49_ = gtk_widget_get_settings (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); #line 1279 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp51_ = toolbar; + _tmp50_ = old; #line 1279 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, gtk_widget_get_type (), GtkWidget)); + g_object_set (_tmp49_, "gtk-shell-shows-menubar", !_tmp50_, NULL); #line 1280 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp52_ = self->priv->toolbar_revealer; + _tmp51_ = gtk_widget_get_settings (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); #line 1280 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp53_ = library_window_is_toolbar_visible (self); + _tmp52_ = old; #line 1280 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_revealer_set_reveal_child (_tmp52_, _tmp53_); -#line 7978 "LibraryWindow.c" - } + g_object_set (_tmp51_, "gtk-shell-shows-menubar", _tmp52_, NULL); +#line 1282 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + _tmp53_ = page; +#line 1282 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + _tmp54_ = page_get_toolbar (_tmp53_); +#line 1282 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + toolbar = _tmp54_; #line 1283 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp54_ = page; + _tmp55_ = toolbar; #line 1283 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - page_ready (_tmp54_); -#line 1206 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + if (_tmp55_ != NULL) { +#line 7977 "LibraryWindow.c" + GtkRevealer* _tmp56_ = NULL; + GtkToolbar* _tmp57_ = NULL; + GtkToolbar* _tmp58_ = NULL; + GtkRevealer* _tmp59_ = NULL; + gboolean _tmp60_ = FALSE; +#line 1284 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + _tmp56_ = self->priv->toolbar_revealer; +#line 1284 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + _tmp57_ = toolbar; +#line 1284 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp57_, gtk_widget_get_type (), GtkWidget)); +#line 1285 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + _tmp58_ = toolbar; +#line 1285 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, gtk_widget_get_type (), GtkWidget)); +#line 1286 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + _tmp59_ = self->priv->toolbar_revealer; +#line 1286 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + _tmp60_ = library_window_is_toolbar_visible (self); +#line 1286 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + gtk_revealer_set_reveal_child (_tmp59_, _tmp60_); +#line 7999 "LibraryWindow.c" + } +#line 1289 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + _tmp61_ = page; +#line 1289 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + page_ready (_tmp61_); +#line 1209 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (toolbar); -#line 1206 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1209 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (entry); -#line 1206 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1209 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (current_page); -#line 7990 "LibraryWindow.c" +#line 8011 "LibraryWindow.c" } @@ -8002,41 +8023,41 @@ static void library_window_init_view_filter (LibraryWindow* self, CheckerboardPa CheckerboardPage* _tmp7_ = NULL; SearchViewFilter* _tmp8_ = NULL; SearchViewFilter* _tmp9_ = NULL; -#line 1286 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1292 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1286 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1292 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_CHECKERBOARD_PAGE (page)); -#line 1287 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1293 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = self->priv->search_toolbar; -#line 1287 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1293 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = page; -#line 1287 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1293 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = checkerboard_page_get_search_view_filter (_tmp1_); -#line 1287 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1293 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = _tmp2_; -#line 1287 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1293 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" search_filter_toolbar_set_view_filter (_tmp0_, _tmp3_); -#line 1287 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1293 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _view_filter_unref0 (_tmp3_); -#line 1288 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1294 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = page; -#line 1288 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1294 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_PAGE, Page)); -#line 1288 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1294 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = _tmp5_; -#line 1288 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1294 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp7_ = page; -#line 1288 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1294 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp8_ = checkerboard_page_get_search_view_filter (_tmp7_); -#line 1288 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1294 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp9_ = _tmp8_; -#line 1288 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1294 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" view_collection_install_view_filter (_tmp6_, G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_VIEW_FILTER, ViewFilter)); -#line 1288 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1294 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _view_filter_unref0 (_tmp9_); -#line 1288 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1294 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _data_collection_unref0 (_tmp6_); -#line 8039 "LibraryWindow.c" +#line 8060 "LibraryWindow.c" } @@ -8046,35 +8067,35 @@ static gboolean library_window_should_show_search_bar (LibraryWindow* self) { Page* _tmp1_ = NULL; Page* _tmp2_ = NULL; gboolean _tmp3_ = FALSE; -#line 1291 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1297 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_val_if_fail (IS_LIBRARY_WINDOW (self), FALSE); -#line 1292 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1298 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 1292 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1298 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = _tmp1_; -#line 1292 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1298 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, TYPE_CHECKERBOARD_PAGE); -#line 1292 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1298 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp2_); -#line 1292 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1298 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp3_) { -#line 8061 "LibraryWindow.c" +#line 8082 "LibraryWindow.c" gboolean _tmp4_ = FALSE; -#line 1292 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1298 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = self->priv->is_search_toolbar_visible; -#line 1292 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1298 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = _tmp4_; -#line 8067 "LibraryWindow.c" +#line 8088 "LibraryWindow.c" } else { -#line 1292 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1298 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = FALSE; -#line 8071 "LibraryWindow.c" +#line 8092 "LibraryWindow.c" } -#line 1292 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1298 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" result = _tmp0_; -#line 1292 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1298 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return result; -#line 8077 "LibraryWindow.c" +#line 8098 "LibraryWindow.c" } @@ -8082,21 +8103,21 @@ static void library_window_toggle_search_bar (LibraryWindow* self, gboolean show SearchFilterToolbar* _tmp0_ = NULL; gboolean _tmp1_ = FALSE; gboolean _tmp2_ = FALSE; -#line 1296 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1302 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1296 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1302 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail ((page == NULL) || IS_CHECKERBOARD_PAGE (page)); -#line 1297 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1303 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = self->priv->search_toolbar; -#line 1297 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1303 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = show; -#line 1297 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1303 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gtk_revealer_set_reveal_child (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_revealer_get_type (), GtkRevealer), _tmp1_); -#line 1298 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1304 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = show; -#line 1298 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1304 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp2_) { -#line 8099 "LibraryWindow.c" +#line 8120 "LibraryWindow.c" CheckerboardPage* _tmp3_ = NULL; SearchFilterToolbar* _tmp4_ = NULL; CheckerboardPage* _tmp5_ = NULL; @@ -8108,70 +8129,70 @@ static void library_window_toggle_search_bar (LibraryWindow* self, gboolean show CheckerboardPage* _tmp11_ = NULL; SearchViewFilter* _tmp12_ = NULL; SearchViewFilter* _tmp13_ = NULL; -#line 1299 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1305 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = page; -#line 1299 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1305 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _vala_assert (NULL != _tmp3_, "null != page"); -#line 1300 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1306 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = self->priv->search_toolbar; -#line 1300 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1306 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = page; -#line 1300 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1306 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = checkerboard_page_get_search_view_filter (_tmp5_); -#line 1300 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1306 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp7_ = _tmp6_; -#line 1300 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1306 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" search_filter_toolbar_set_view_filter (_tmp4_, _tmp7_); -#line 1300 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1306 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _view_filter_unref0 (_tmp7_); -#line 1301 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1307 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp8_ = page; -#line 1301 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1307 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp9_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_PAGE, Page)); -#line 1301 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1307 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp10_ = _tmp9_; -#line 1301 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1307 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp11_ = page; -#line 1301 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1307 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp12_ = checkerboard_page_get_search_view_filter (_tmp11_); -#line 1301 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1307 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp13_ = _tmp12_; -#line 1301 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1307 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" view_collection_install_view_filter (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_VIEW_FILTER, ViewFilter)); -#line 1301 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1307 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _view_filter_unref0 (_tmp13_); -#line 1301 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1307 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _data_collection_unref0 (_tmp10_); -#line 8145 "LibraryWindow.c" +#line 8166 "LibraryWindow.c" } else { CheckerboardPage* _tmp14_ = NULL; -#line 1303 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1309 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp14_ = page; -#line 1303 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1309 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp14_ != NULL) { -#line 8152 "LibraryWindow.c" +#line 8173 "LibraryWindow.c" CheckerboardPage* _tmp15_ = NULL; ViewCollection* _tmp16_ = NULL; ViewCollection* _tmp17_ = NULL; DisabledViewFilter* _tmp18_ = NULL; DisabledViewFilter* _tmp19_ = NULL; -#line 1304 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1310 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp15_ = page; -#line 1304 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1310 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp16_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_PAGE, Page)); -#line 1304 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1310 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp17_ = _tmp16_; -#line 1304 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1310 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp18_ = disabled_view_filter_new (); -#line 1304 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1310 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp19_ = _tmp18_; -#line 1304 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1310 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" view_collection_install_view_filter (_tmp17_, G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_VIEW_FILTER, ViewFilter)); -#line 1304 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1310 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _view_filter_unref0 (_tmp19_); -#line 1304 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1310 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _data_collection_unref0 (_tmp17_); -#line 8174 "LibraryWindow.c" +#line 8195 "LibraryWindow.c" } } } @@ -8185,33 +8206,33 @@ static void library_window_on_page_created (LibraryWindow* self, SidebarPageRepr Page* _tmp4_ = NULL; SidebarPageRepresentative* _tmp5_ = NULL; Page* _tmp6_ = NULL; -#line 1308 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1314 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1308 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1314 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (SIDEBAR_IS_PAGE_REPRESENTATIVE (entry)); -#line 1308 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1314 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_PAGE (page)); -#line 1309 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1315 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = self->priv->page_map; -#line 1309 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1315 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = page; -#line 1309 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1315 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp1_); -#line 1309 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1315 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _vala_assert (!_tmp2_, "!page_map.has_key(page)"); -#line 1310 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1316 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = self->priv->page_map; -#line 1310 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1316 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = page; -#line 1310 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1316 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = entry; -#line 1310 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1316 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp4_, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, SIDEBAR_TYPE_ENTRY, SidebarEntry)); -#line 1312 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1318 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = page; -#line 1312 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1318 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_add_to_stack (self, _tmp6_); -#line 8214 "LibraryWindow.c" +#line 8235 "LibraryWindow.c" } @@ -8225,61 +8246,61 @@ static void library_window_on_destroying_page (LibraryWindow* self, SidebarPageR GeeHashMap* _tmp10_ = NULL; Page* _tmp11_ = NULL; gboolean _tmp12_ = FALSE; -#line 1315 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1321 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1315 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1321 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (SIDEBAR_IS_PAGE_REPRESENTATIVE (entry)); -#line 1315 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1321 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_PAGE (page)); -#line 1317 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1323 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = page; -#line 1317 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1323 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 1317 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1323 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = _tmp1_; -#line 1317 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1323 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = _tmp0_ == _tmp2_; -#line 1317 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1323 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp2_); -#line 1317 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1323 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp3_) { -#line 8246 "LibraryWindow.c" +#line 8267 "LibraryWindow.c" LibraryBranch* _tmp4_ = NULL; LibraryPhotosEntry* _tmp5_ = NULL; LibraryPhotosEntry* _tmp6_ = NULL; Page* _tmp7_ = NULL; Page* _tmp8_ = NULL; -#line 1318 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1324 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = self->priv->library_branch; -#line 1318 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1324 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = library_branch_get_photos_entry (_tmp4_); -#line 1318 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1324 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = _tmp5_; -#line 1318 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1324 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp7_ = sidebar_page_representative_get_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative)); -#line 1318 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1324 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp8_ = _tmp7_; -#line 1318 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1324 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_switch_to_page (self, _tmp8_); -#line 1318 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1324 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp8_); -#line 8266 "LibraryWindow.c" +#line 8287 "LibraryWindow.c" } -#line 1320 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1326 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp9_ = page; -#line 1320 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1326 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_remove_from_stack (self, _tmp9_); -#line 1322 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1328 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp10_ = self->priv->page_map; -#line 1322 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1328 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp11_ = page; -#line 1322 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1328 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp12_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp11_, NULL); -#line 1322 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1328 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" removed = _tmp12_; -#line 1323 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1329 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _vala_assert (removed, "removed"); -#line 8282 "LibraryWindow.c" +#line 8303 "LibraryWindow.c" } @@ -8288,39 +8309,39 @@ static void library_window_on_sidebar_entry_selected (LibraryWindow* self, Sideb SidebarSelectableEntry* _tmp0_ = NULL; SidebarPageRepresentative* _tmp1_ = NULL; SidebarPageRepresentative* _tmp2_ = NULL; -#line 1326 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1332 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1326 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1332 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (SIDEBAR_IS_SELECTABLE_ENTRY (selectable)); -#line 1327 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1333 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = selectable; -#line 1327 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1333 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, SIDEBAR_TYPE_PAGE_REPRESENTATIVE) ? ((SidebarPageRepresentative*) _tmp0_) : NULL); -#line 1327 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1333 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" page_rep = _tmp1_; -#line 1328 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1334 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = page_rep; -#line 1328 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1334 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp2_ != NULL) { -#line 8305 "LibraryWindow.c" +#line 8326 "LibraryWindow.c" SidebarPageRepresentative* _tmp3_ = NULL; Page* _tmp4_ = NULL; Page* _tmp5_ = NULL; -#line 1329 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1335 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = page_rep; -#line 1329 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1335 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = sidebar_page_representative_get_page (_tmp3_); -#line 1329 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1335 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = _tmp4_; -#line 1329 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1335 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_switch_to_page (self, _tmp5_); -#line 1329 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1335 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp5_); -#line 8319 "LibraryWindow.c" +#line 8340 "LibraryWindow.c" } -#line 1326 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1332 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (page_rep); -#line 8323 "LibraryWindow.c" +#line 8344 "LibraryWindow.c" } @@ -8341,207 +8362,207 @@ static void library_window_on_sidebar_selected_entry_removed (LibraryWindow* sel LibraryPhotosEntry* _tmp32_ = NULL; Page* _tmp33_ = NULL; Page* _tmp34_ = NULL; -#line 1332 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1338 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1332 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1338 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (SIDEBAR_IS_SELECTABLE_ENTRY (selectable)); -#line 1336 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1342 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = self->priv->library_branch; -#line 1336 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1342 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = library_branch_get_last_imported_entry (_tmp0_); -#line 1336 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1342 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = _tmp1_; -#line 1336 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1342 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = _g_object_ref0 (_tmp2_); -#line 1336 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1342 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" last_import_entry = _tmp3_; -#line 1339 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1345 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = selectable; -#line 1339 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1345 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY)) { -#line 8362 "LibraryWindow.c" +#line 8383 "LibraryWindow.c" LibraryLastImportSidebarEntry* _tmp6_ = NULL; gboolean _tmp7_ = FALSE; gboolean _tmp8_ = FALSE; -#line 1339 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1345 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = last_import_entry; -#line 1339 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1345 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp7_ = library_hideable_page_entry_get_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry)); -#line 1339 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1345 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp8_ = _tmp7_; -#line 1339 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1345 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = _tmp8_; -#line 8374 "LibraryWindow.c" +#line 8395 "LibraryWindow.c" } else { -#line 1339 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1345 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = FALSE; -#line 8378 "LibraryWindow.c" +#line 8399 "LibraryWindow.c" } -#line 1339 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1345 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp4_) { -#line 8382 "LibraryWindow.c" +#line 8403 "LibraryWindow.c" LibraryLastImportSidebarEntry* _tmp9_ = NULL; Page* _tmp10_ = NULL; Page* _tmp11_ = NULL; -#line 1340 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1346 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp9_ = last_import_entry; -#line 1340 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1346 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp10_ = sidebar_page_representative_get_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative)); -#line 1340 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1346 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp11_ = _tmp10_; -#line 1340 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1346 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_switch_to_page (self, _tmp11_); -#line 1340 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1346 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp11_); -#line 1342 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1348 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (last_import_entry); -#line 1342 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1348 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return; -#line 8400 "LibraryWindow.c" +#line 8421 "LibraryWindow.c" } -#line 1346 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1352 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp13_ = selectable; -#line 1346 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1352 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp13_, EVENTS_TYPE_EVENT_ENTRY)) { -#line 8406 "LibraryWindow.c" +#line 8427 "LibraryWindow.c" EventsBranch* _tmp14_ = NULL; gboolean _tmp15_ = FALSE; -#line 1346 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1352 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp14_ = self->priv->events_branch; -#line 1346 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1352 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp15_ = sidebar_branch_get_show_branch (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, SIDEBAR_TYPE_BRANCH, SidebarBranch)); -#line 1346 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1352 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp12_ = _tmp15_; -#line 8415 "LibraryWindow.c" +#line 8436 "LibraryWindow.c" } else { -#line 1346 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1352 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp12_ = FALSE; -#line 8419 "LibraryWindow.c" +#line 8440 "LibraryWindow.c" } -#line 1346 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1352 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp12_) { -#line 8423 "LibraryWindow.c" +#line 8444 "LibraryWindow.c" EventsBranch* _tmp16_ = NULL; EventsMasterDirectoryEntry* _tmp17_ = NULL; EventsMasterDirectoryEntry* _tmp18_ = NULL; Page* _tmp19_ = NULL; Page* _tmp20_ = NULL; -#line 1347 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1353 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp16_ = self->priv->events_branch; -#line 1347 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1353 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp17_ = events_branch_get_master_entry (_tmp16_); -#line 1347 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1353 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp18_ = _tmp17_; -#line 1347 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1353 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp19_ = sidebar_page_representative_get_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative)); -#line 1347 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1353 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp20_ = _tmp19_; -#line 1347 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1353 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_switch_to_page (self, _tmp20_); -#line 1347 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1353 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp20_); -#line 1347 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1353 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp18_); -#line 1349 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1355 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (last_import_entry); -#line 1349 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1355 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return; -#line 8449 "LibraryWindow.c" +#line 8470 "LibraryWindow.c" } -#line 1353 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1359 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp22_ = selectable; -#line 1353 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1359 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp22_, EVENTS_TYPE_DIRECTORY_ENTRY)) { -#line 8455 "LibraryWindow.c" +#line 8476 "LibraryWindow.c" EventsBranch* _tmp23_ = NULL; gboolean _tmp24_ = FALSE; -#line 1353 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1359 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp23_ = self->priv->events_branch; -#line 1353 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1359 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp24_ = sidebar_branch_get_show_branch (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, SIDEBAR_TYPE_BRANCH, SidebarBranch)); -#line 1353 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1359 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp21_ = _tmp24_; -#line 8464 "LibraryWindow.c" +#line 8485 "LibraryWindow.c" } else { -#line 1353 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1359 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp21_ = FALSE; -#line 8468 "LibraryWindow.c" +#line 8489 "LibraryWindow.c" } -#line 1353 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1359 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp21_) { -#line 8472 "LibraryWindow.c" +#line 8493 "LibraryWindow.c" EventsBranch* _tmp25_ = NULL; EventsMasterDirectoryEntry* _tmp26_ = NULL; EventsMasterDirectoryEntry* _tmp27_ = NULL; Page* _tmp28_ = NULL; Page* _tmp29_ = NULL; -#line 1354 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1360 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp25_ = self->priv->events_branch; -#line 1354 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1360 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp26_ = events_branch_get_master_entry (_tmp25_); -#line 1354 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1360 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp27_ = _tmp26_; -#line 1354 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1360 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp28_ = sidebar_page_representative_get_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative)); -#line 1354 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1360 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp29_ = _tmp28_; -#line 1354 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1360 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_switch_to_page (self, _tmp29_); -#line 1354 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1360 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp29_); -#line 1354 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1360 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp27_); -#line 1356 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1362 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (last_import_entry); -#line 1356 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1362 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return; -#line 8498 "LibraryWindow.c" +#line 8519 "LibraryWindow.c" } -#line 1360 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1366 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp30_ = self->priv->library_branch; -#line 1360 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1366 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp31_ = library_branch_get_photos_entry (_tmp30_); -#line 1360 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1366 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp32_ = _tmp31_; -#line 1360 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1366 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp33_ = sidebar_page_representative_get_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative)); -#line 1360 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1366 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp34_ = _tmp33_; -#line 1360 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1366 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_switch_to_page (self, _tmp34_); -#line 1360 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1366 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp34_); -#line 1332 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1338 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (last_import_entry); -#line 8516 "LibraryWindow.c" +#line 8537 "LibraryWindow.c" } static void _library_window_on_update_properties_view_collection_items_state_changed (ViewCollection* _sender, GeeIterable* changed, gpointer self) { -#line 1366 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1372 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_on_update_properties ((LibraryWindow*) self); -#line 8523 "LibraryWindow.c" +#line 8544 "LibraryWindow.c" } static void _library_window_on_update_properties_data_collection_items_altered (DataCollection* _sender, GeeMap* items, gpointer self) { -#line 1367 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1373 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_on_update_properties ((LibraryWindow*) self); -#line 8530 "LibraryWindow.c" +#line 8551 "LibraryWindow.c" } static void _library_window_on_update_properties_data_collection_contents_altered (DataCollection* _sender, GeeIterable* added, GeeIterable* removed, gpointer self) { -#line 1368 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1374 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_on_update_properties ((LibraryWindow*) self); -#line 8537 "LibraryWindow.c" +#line 8558 "LibraryWindow.c" } static void _library_window_on_update_properties_view_collection_items_visibility_changed (ViewCollection* _sender, GeeCollection* changed, gpointer self) { -#line 1369 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1375 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_on_update_properties ((LibraryWindow*) self); -#line 8544 "LibraryWindow.c" +#line 8565 "LibraryWindow.c" } @@ -8549,27 +8570,27 @@ static void library_window_subscribe_for_basic_information (LibraryWindow* self, ViewCollection* view = NULL; Page* _tmp0_ = NULL; ViewCollection* _tmp1_ = NULL; -#line 1363 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1369 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1363 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1369 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_PAGE (page)); -#line 1364 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1370 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = page; -#line 1364 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1370 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = page_get_view (_tmp0_); -#line 1364 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1370 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" view = _tmp1_; -#line 1366 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1372 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_connect_object (view, "items-state-changed", (GCallback) _library_window_on_update_properties_view_collection_items_state_changed, self, 0); -#line 1367 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1373 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (view, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _library_window_on_update_properties_data_collection_items_altered, self, 0); -#line 1368 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1374 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (view, TYPE_DATA_COLLECTION, DataCollection), "contents-altered", (GCallback) _library_window_on_update_properties_data_collection_contents_altered, self, 0); -#line 1369 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1375 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_connect_object (view, "items-visibility-changed", (GCallback) _library_window_on_update_properties_view_collection_items_visibility_changed, self, 0); -#line 1363 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1369 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _data_collection_unref0 (view); -#line 8572 "LibraryWindow.c" +#line 8593 "LibraryWindow.c" } @@ -8581,47 +8602,47 @@ static void library_window_unsubscribe_from_basic_information (LibraryWindow* se guint _tmp3_ = 0U; guint _tmp4_ = 0U; guint _tmp5_ = 0U; -#line 1372 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1378 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1372 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1378 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_PAGE (page)); -#line 1373 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1379 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = page; -#line 1373 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1379 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = page_get_view (_tmp0_); -#line 1373 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1379 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" view = _tmp1_; -#line 1375 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1381 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_parse_name ("items-state-changed", TYPE_VIEW_COLLECTION, &_tmp2_, NULL, FALSE); -#line 1375 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1381 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_handlers_disconnect_matched (view, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _library_window_on_update_properties_view_collection_items_state_changed, self); -#line 1376 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1382 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_parse_name ("items-altered", TYPE_DATA_COLLECTION, &_tmp3_, NULL, FALSE); -#line 1376 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1382 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (view, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _library_window_on_update_properties_data_collection_items_altered, self); -#line 1377 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1383 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_parse_name ("contents-altered", TYPE_DATA_COLLECTION, &_tmp4_, NULL, FALSE); -#line 1377 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1383 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (view, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp4_, 0, NULL, (GCallback) _library_window_on_update_properties_data_collection_contents_altered, self); -#line 1378 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1384 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_parse_name ("items-visibility-changed", TYPE_VIEW_COLLECTION, &_tmp5_, NULL, FALSE); -#line 1378 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1384 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_handlers_disconnect_matched (view, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _library_window_on_update_properties_view_collection_items_visibility_changed, self); -#line 1372 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1378 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _data_collection_unref0 (view); -#line 8612 "LibraryWindow.c" +#line 8633 "LibraryWindow.c" } static void library_window_on_update_properties (LibraryWindow* self) { OneShotScheduler* _tmp0_ = NULL; -#line 1381 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1387 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1382 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1388 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = self->priv->properties_scheduler; -#line 1382 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1388 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" one_shot_scheduler_at_idle (_tmp0_); -#line 8624 "LibraryWindow.c" +#line 8645 "LibraryWindow.c" } @@ -8632,55 +8653,55 @@ static void library_window_on_update_properties_now (LibraryWindow* self) { ExtendedPropertiesWindow* _tmp6_ = NULL; gboolean _tmp7_ = FALSE; gboolean _tmp8_ = FALSE; -#line 1385 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1391 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1386 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1392 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = self->priv->bottom_frame; -#line 1386 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1392 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = gtk_widget_get_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 1386 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1392 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = _tmp1_; -#line 1386 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1392 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp2_) { -#line 8645 "LibraryWindow.c" +#line 8666 "LibraryWindow.c" BasicProperties* _tmp3_ = NULL; Page* _tmp4_ = NULL; Page* _tmp5_ = NULL; -#line 1387 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1393 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = self->priv->basic_properties; -#line 1387 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1393 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 1387 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1393 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = _tmp4_; -#line 1387 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1393 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" properties_update_properties (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_PROPERTIES, Properties), _tmp5_); -#line 1387 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1393 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp5_); -#line 8659 "LibraryWindow.c" +#line 8680 "LibraryWindow.c" } -#line 1389 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1395 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = self->priv->extended_properties; -#line 1389 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1395 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp7_ = gtk_widget_get_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget)); -#line 1389 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1395 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp8_ = _tmp7_; -#line 1389 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1395 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp8_) { -#line 8669 "LibraryWindow.c" +#line 8690 "LibraryWindow.c" ExtendedPropertiesWindow* _tmp9_ = NULL; Page* _tmp10_ = NULL; Page* _tmp11_ = NULL; -#line 1390 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1396 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp9_ = self->priv->extended_properties; -#line 1390 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1396 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp10_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 1390 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1396 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp11_ = _tmp10_; -#line 1390 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1396 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" extended_properties_window_update_properties (_tmp9_, _tmp11_); -#line 1390 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1396 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp11_); -#line 8683 "LibraryWindow.c" +#line 8704 "LibraryWindow.c" } } @@ -8688,13 +8709,13 @@ static void library_window_on_update_properties_now (LibraryWindow* self) { static gchar* string_replace (const gchar* self, const gchar* old, const gchar* replacement) { gchar* result = NULL; GError * _inner_error_ = NULL; -#line 1380 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1380 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, NULL); -#line 1380 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1380 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (old != NULL, NULL); -#line 1380 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1380 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (replacement != NULL, NULL); -#line 8697 "LibraryWindow.c" +#line 8718 "LibraryWindow.c" { GRegex* regex = NULL; const gchar* _tmp0_ = NULL; @@ -8707,100 +8728,100 @@ static gchar* string_replace (const gchar* self, const gchar* old, const gchar* const gchar* _tmp7_ = NULL; gchar* _tmp8_ = NULL; gchar* _tmp9_ = NULL; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = old; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = g_regex_escape_string (_tmp0_, -1); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = _tmp1_; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = g_regex_new (_tmp2_, 0, 0, &_inner_error_); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = _tmp3_; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_free0 (_tmp2_); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" regex = _tmp4_; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_inner_error_->domain == G_REGEX_ERROR) { -#line 8728 "LibraryWindow.c" - goto __catch41_g_regex_error; +#line 8749 "LibraryWindow.c" + goto __catch43_g_regex_error; } -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_clear_error (&_inner_error_); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return NULL; -#line 8737 "LibraryWindow.c" +#line 8758 "LibraryWindow.c" } -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp6_ = regex; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp7_ = replacement; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp8_ = g_regex_replace_literal (_tmp6_, self, (gssize) -1, 0, _tmp7_, 0, &_inner_error_); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = _tmp8_; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_regex_unref0 (regex); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_inner_error_->domain == G_REGEX_ERROR) { -#line 8753 "LibraryWindow.c" - goto __catch41_g_regex_error; +#line 8774 "LibraryWindow.c" + goto __catch43_g_regex_error; } -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_regex_unref0 (regex); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_clear_error (&_inner_error_); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return NULL; -#line 8764 "LibraryWindow.c" +#line 8785 "LibraryWindow.c" } -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp9_ = _tmp5_; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = NULL; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp9_; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_free0 (_tmp5_); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_regex_unref0 (regex); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; -#line 8778 "LibraryWindow.c" +#line 8799 "LibraryWindow.c" } - goto __finally41; - __catch41_g_regex_error: + goto __finally43; + __catch43_g_regex_error: { GError* e = NULL; -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" e = _inner_error_; -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _inner_error_ = NULL; -#line 1385 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1385 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_assert_not_reached (); -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_error_free0 (e); -#line 8792 "LibraryWindow.c" +#line 8813 "LibraryWindow.c" } - __finally41: -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" + __finally43: +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_clear_error (&_inner_error_); -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return NULL; -#line 8803 "LibraryWindow.c" +#line 8824 "LibraryWindow.c" } } @@ -8818,188 +8839,188 @@ void library_window_mounted_camera_shell_notification (LibraryWindow* self, cons gboolean _tmp13_ = FALSE; gboolean _tmp18_ = FALSE; GError * _inner_error_ = NULL; -#line 1393 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1399 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1393 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1399 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_if_fail (uri != NULL); -#line 1394 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1400 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = uri; -#line 1394 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_debug ("LibraryWindow.vala:1394: mount point reported: %s", _tmp0_); -#line 1397 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1400 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + g_debug ("LibraryWindow.vala:1400: mount point reported: %s", _tmp0_); +#line 1403 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = uri; -#line 1397 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1403 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = library_window_is_mount_uri_supported (_tmp1_); -#line 1397 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1403 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (!_tmp2_) { -#line 8835 "LibraryWindow.c" +#line 8856 "LibraryWindow.c" const gchar* _tmp3_ = NULL; -#line 1398 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1404 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = uri; -#line 1398 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_debug ("LibraryWindow.vala:1398: Unsupported mount scheme: %s", _tmp3_); -#line 1400 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1404 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + g_debug ("LibraryWindow.vala:1404: Unsupported mount scheme: %s", _tmp3_); +#line 1406 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return; -#line 8843 "LibraryWindow.c" +#line 8864 "LibraryWindow.c" } -#line 1403 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1409 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = uri; -#line 1403 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1409 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = g_file_new_for_uri (_tmp4_); -#line 1403 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1409 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" uri_file = _tmp5_; -#line 1406 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1412 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" mount = NULL; -#line 8853 "LibraryWindow.c" +#line 8874 "LibraryWindow.c" { GMount* _tmp6_ = NULL; GFile* _tmp7_ = NULL; GMount* _tmp8_ = NULL; GMount* _tmp9_ = NULL; -#line 1408 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1414 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp7_ = uri_file; -#line 1408 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1414 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp8_ = g_file_find_enclosing_mount (_tmp7_, NULL, &_inner_error_); -#line 1408 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1414 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = _tmp8_; -#line 1408 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1414 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 8867 "LibraryWindow.c" - goto __catch40_g_error; +#line 8888 "LibraryWindow.c" + goto __catch42_g_error; } -#line 1408 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1414 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp9_ = _tmp6_; -#line 1408 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1414 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = NULL; -#line 1408 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1414 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (mount); -#line 1408 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1414 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" mount = _tmp9_; -#line 1407 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1413 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp6_); -#line 8880 "LibraryWindow.c" +#line 8901 "LibraryWindow.c" } - goto __finally40; - __catch40_g_error: + goto __finally42; + __catch42_g_error: { GError* err = NULL; GError* _tmp10_ = NULL; const gchar* _tmp11_ = NULL; -#line 1407 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1413 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" err = _inner_error_; -#line 1407 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1413 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _inner_error_ = NULL; -#line 1410 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1416 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp10_ = err; -#line 1410 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1416 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp11_ = _tmp10_->message; -#line 1410 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_debug ("LibraryWindow.vala:1410: %s", _tmp11_); -#line 1412 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1416 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + g_debug ("LibraryWindow.vala:1416: %s", _tmp11_); +#line 1418 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_error_free0 (err); -#line 1412 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1418 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (mount); -#line 1412 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1418 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (uri_file); -#line 1412 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1418 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return; -#line 8906 "LibraryWindow.c" +#line 8927 "LibraryWindow.c" } - __finally40: -#line 1407 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + __finally42: +#line 1413 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1407 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1413 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (mount); -#line 1407 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1413 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (uri_file); -#line 1407 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1413 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1407 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1413 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_clear_error (&_inner_error_); -#line 1407 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1413 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return; -#line 8921 "LibraryWindow.c" +#line 8942 "LibraryWindow.c" } -#line 1416 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1422 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" alt_uri = NULL; -#line 1417 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1423 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp12_ = uri; -#line 1417 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1423 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp13_ = g_str_has_prefix (_tmp12_, "file://"); -#line 1417 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1423 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp13_) { -#line 8931 "LibraryWindow.c" +#line 8952 "LibraryWindow.c" const gchar* _tmp14_ = NULL; gchar* _tmp15_ = NULL; gchar* _tmp16_ = NULL; gchar* _tmp17_ = NULL; -#line 1418 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1424 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp14_ = uri; -#line 1418 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1424 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp15_ = string_replace (_tmp14_, "file://", "disk:"); -#line 1418 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1424 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp16_ = _tmp15_; -#line 1418 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1424 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp17_ = camera_table_get_port_uri (_tmp16_); -#line 1418 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1424 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_free0 (alt_uri); -#line 1418 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1424 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" alt_uri = _tmp17_; -#line 1418 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1424 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_free0 (_tmp16_); -#line 8950 "LibraryWindow.c" +#line 8971 "LibraryWindow.c" } -#line 1421 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1427 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp18_ = at_startup; -#line 1421 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1427 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp18_) { -#line 8956 "LibraryWindow.c" +#line 8977 "LibraryWindow.c" const gchar* _tmp19_ = NULL; gboolean _tmp20_ = FALSE; const gchar* _tmp23_ = NULL; gboolean _tmp24_ = FALSE; -#line 1422 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1428 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp19_ = uri; -#line 1422 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1428 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp20_ = is_string_empty (_tmp19_); -#line 1422 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1428 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (!_tmp20_) { -#line 8967 "LibraryWindow.c" +#line 8988 "LibraryWindow.c" GeeHashSet* _tmp21_ = NULL; const gchar* _tmp22_ = NULL; -#line 1423 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1429 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp21_ = library_window_initial_camera_uris; -#line 1423 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1429 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp22_ = uri; -#line 1423 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1429 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp22_); -#line 8976 "LibraryWindow.c" +#line 8997 "LibraryWindow.c" } -#line 1425 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1431 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp23_ = alt_uri; -#line 1425 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1431 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp24_ = is_string_empty (_tmp23_); -#line 1425 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1431 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (!_tmp24_) { -#line 8984 "LibraryWindow.c" +#line 9005 "LibraryWindow.c" GeeHashSet* _tmp25_ = NULL; const gchar* _tmp26_ = NULL; -#line 1426 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1432 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp25_ = library_window_initial_camera_uris; -#line 1426 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1432 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp26_ = alt_uri; -#line 1426 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1432 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp26_); -#line 8993 "LibraryWindow.c" +#line 9014 "LibraryWindow.c" } } -#line 1393 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1399 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_free0 (alt_uri); -#line 1393 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1399 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (mount); -#line 1393 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1399 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (uri_file); -#line 9002 "LibraryWindow.c" +#line 9023 "LibraryWindow.c" } @@ -9016,97 +9037,97 @@ static gboolean library_window_real_key_press_event (GtkWidget* base, GdkEventKe GdkEventKey* _tmp13_ = NULL; guint _tmp14_ = 0U; const gchar* _tmp15_ = NULL; -#line 1430 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1436 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_WINDOW, LibraryWindow); -#line 1430 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1436 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 1431 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1437 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = self->priv->sidebar_tree; -#line 1431 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1437 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_object_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), "has-focus", &_tmp3_, NULL); -#line 1431 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1437 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = _tmp3_; -#line 1431 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1437 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp4_) { -#line 9031 "LibraryWindow.c" +#line 9052 "LibraryWindow.c" SidebarTree* _tmp5_ = NULL; GdkEventKey* _tmp6_ = NULL; gboolean _tmp7_ = FALSE; -#line 1431 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1437 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = self->priv->sidebar_tree; -#line 1431 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1437 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = event; -#line 1431 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1437 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp7_ = sidebar_tree_is_keypress_interpreted (_tmp5_, _tmp6_); -#line 1431 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1437 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = _tmp7_; -#line 9043 "LibraryWindow.c" +#line 9064 "LibraryWindow.c" } else { -#line 1431 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1437 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = FALSE; -#line 9047 "LibraryWindow.c" +#line 9068 "LibraryWindow.c" } -#line 1431 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1437 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp1_) { -#line 9051 "LibraryWindow.c" +#line 9072 "LibraryWindow.c" SidebarTree* _tmp8_ = NULL; GdkEventKey* _tmp9_ = NULL; gboolean _tmp10_ = FALSE; -#line 1432 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1438 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp8_ = self->priv->sidebar_tree; -#line 1432 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1438 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp9_ = event; -#line 1432 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1438 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget), "key-press-event", _tmp9_, &_tmp10_); -#line 1432 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1438 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = _tmp10_; -#line 9063 "LibraryWindow.c" +#line 9084 "LibraryWindow.c" } else { -#line 1431 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1437 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = FALSE; -#line 9067 "LibraryWindow.c" +#line 9088 "LibraryWindow.c" } -#line 1431 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1437 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp0_) { -#line 1433 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1439 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" result = TRUE; -#line 1433 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1439 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return result; -#line 9075 "LibraryWindow.c" +#line 9096 "LibraryWindow.c" } -#line 1436 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1442 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp11_ = event; -#line 1436 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1442 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp12_ = GTK_WIDGET_CLASS (library_window_parent_class)->key_press_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow), gtk_widget_get_type (), GtkWidget), _tmp11_); -#line 1436 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1442 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp12_) { -#line 1437 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1443 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" result = TRUE; -#line 1437 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1443 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return result; -#line 9087 "LibraryWindow.c" +#line 9108 "LibraryWindow.c" } -#line 1439 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp13_ = event; -#line 1439 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp14_ = _tmp13_->keyval; -#line 1439 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp15_ = gdk_keyval_name (_tmp14_); -#line 1439 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (g_strcmp0 (_tmp15_, "Escape") == 0) { -#line 1440 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1446 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_on_clear_search (self); -#line 1441 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1447 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" result = TRUE; -#line 1441 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1447 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return result; -#line 9103 "LibraryWindow.c" +#line 9124 "LibraryWindow.c" } -#line 1444 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1450 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" result = FALSE; -#line 1444 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 1450 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return result; -#line 9109 "LibraryWindow.c" +#line 9130 "LibraryWindow.c" } @@ -9122,14 +9143,14 @@ gint library_window_get_PAGE_MIN_WIDTH (void) { result = _tmp1_ + (CHECKERBOARD_LAYOUT_COLUMN_GUTTER_PADDING * 2); #line 12 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return result; -#line 9125 "LibraryWindow.c" +#line 9146 "LibraryWindow.c" } static gpointer _data_collection_ref0 (gpointer self) { #line 78 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return self ? data_collection_ref (self) : NULL; -#line 9132 "LibraryWindow.c" +#line 9153 "LibraryWindow.c" } @@ -9175,14 +9196,14 @@ static LibraryWindowFullscreenPhotoPage* library_window_fullscreen_photo_page_co self->priv->view = _tmp5_; #line 75 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return self; -#line 9178 "LibraryWindow.c" +#line 9199 "LibraryWindow.c" } static LibraryWindowFullscreenPhotoPage* library_window_fullscreen_photo_page_new (CollectionPage* collection, Photo* start, ViewCollection* view) { #line 75 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" return library_window_fullscreen_photo_page_construct (LIBRARY_WINDOW_TYPE_FULLSCREEN_PHOTO_PAGE, collection, start, view); -#line 9185 "LibraryWindow.c" +#line 9206 "LibraryWindow.c" } @@ -9203,22 +9224,30 @@ static void library_window_fullscreen_photo_page_real_switched_to (Page* base) { library_photo_page_display_for_collection (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage), _tmp0_, _tmp1_, _tmp2_); #line 84 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" PAGE_CLASS (library_window_fullscreen_photo_page_parent_class)->switched_to (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage), TYPE_PAGE, Page)); -#line 9206 "LibraryWindow.c" +#line 9227 "LibraryWindow.c" +} + + +static void library_window_fullscreen_photo_page_real_switching_from (Page* base) { + LibraryWindowFullscreenPhotoPage * self; +#line 87 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_WINDOW_TYPE_FULLSCREEN_PHOTO_PAGE, LibraryWindowFullscreenPhotoPage); +#line 9235 "LibraryWindow.c" } static void library_window_fullscreen_photo_page_real_init_collect_ui_filenames (Page* base, GeeList* ui_filenames) { LibraryWindowFullscreenPhotoPage * self; GeeList* _tmp0_ = NULL; -#line 87 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 90 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_WINDOW_TYPE_FULLSCREEN_PHOTO_PAGE, LibraryWindowFullscreenPhotoPage); -#line 87 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (GEE_IS_LIST (ui_filenames)); #line 90 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + g_return_if_fail (GEE_IS_LIST (ui_filenames)); +#line 93 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = ui_filenames; -#line 90 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 93 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection), "photo_context.ui"); -#line 9221 "LibraryWindow.c" +#line 9250 "LibraryWindow.c" } @@ -9230,17 +9259,19 @@ static void library_window_fullscreen_photo_page_class_init (LibraryWindowFullsc #line 70 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" ((PageClass *) klass)->switched_to = library_window_fullscreen_photo_page_real_switched_to; #line 70 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + ((PageClass *) klass)->switching_from = library_window_fullscreen_photo_page_real_switching_from; +#line 70 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" ((PageClass *) klass)->init_collect_ui_filenames = library_window_fullscreen_photo_page_real_init_collect_ui_filenames; #line 70 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" G_OBJECT_CLASS (klass)->finalize = library_window_fullscreen_photo_page_finalize; -#line 9236 "LibraryWindow.c" +#line 9267 "LibraryWindow.c" } static void library_window_fullscreen_photo_page_instance_init (LibraryWindowFullscreenPhotoPage * self) { #line 70 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self->priv = LIBRARY_WINDOW_FULLSCREEN_PHOTO_PAGE_GET_PRIVATE (self); -#line 9243 "LibraryWindow.c" +#line 9274 "LibraryWindow.c" } @@ -9256,7 +9287,7 @@ static void library_window_fullscreen_photo_page_finalize (GObject* obj) { _data_collection_unref0 (self->priv->view); #line 70 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" G_OBJECT_CLASS (library_window_fullscreen_photo_page_parent_class)->finalize (obj); -#line 9259 "LibraryWindow.c" +#line 9290 "LibraryWindow.c" } @@ -9306,11 +9337,11 @@ static void library_window_class_init (LibraryWindowClass * klass) { G_OBJECT_CLASS (klass)->get_property = _vala_library_window_get_property; #line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" G_OBJECT_CLASS (klass)->finalize = library_window_finalize; -#line 119 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 121 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL, NULL, NULL, NULL, NULL); -#line 119 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 121 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_initial_camera_uris = _tmp0_; -#line 9313 "LibraryWindow.c" +#line 9344 "LibraryWindow.c" } @@ -9337,121 +9368,121 @@ static void library_window_instance_init (LibraryWindow * self) { GtkRevealer* _tmp19_ = NULL; #line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self->priv = LIBRARY_WINDOW_GET_PRIVATE (self); -#line 95 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 97 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = g_get_home_dir (); -#line 95 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 97 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp1_ = g_strdup (_tmp0_); -#line 95 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->import_dir = _tmp1_; #line 97 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + self->priv->import_dir = _tmp1_; +#line 99 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = (GtkPaned*) gtk_paned_new (GTK_ORIENTATION_VERTICAL); -#line 97 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 99 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_object_ref_sink (_tmp2_); -#line 97 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 99 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self->priv->sidebar_paned = _tmp2_; -#line 98 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 100 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp3_ = (GtkPaned*) gtk_paned_new (GTK_ORIENTATION_HORIZONTAL); -#line 98 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 100 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_object_ref_sink (_tmp3_); -#line 98 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 100 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self->priv->client_paned = _tmp3_; -#line 99 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 101 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = (GtkFrame*) gtk_frame_new (NULL); -#line 99 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 101 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_object_ref_sink (_tmp4_); -#line 99 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->bottom_frame = _tmp4_; #line 101 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + self->priv->bottom_frame = _tmp4_; +#line 103 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self->priv->properties_scheduler = NULL; -#line 102 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 104 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self->priv->notify_library_is_home_dir = TRUE; -#line 106 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 108 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp5_ = library_branch_new (); -#line 106 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 108 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self->priv->library_branch = _tmp5_; -#line 107 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 109 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = tags_branch_new (); -#line 107 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 109 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self->priv->tags_branch = _tmp6_; -#line 108 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 110 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp7_ = folders_branch_new (); -#line 108 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 110 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self->priv->folders_branch = _tmp7_; -#line 109 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 111 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp8_ = events_branch_new (); -#line 109 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 111 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self->priv->events_branch = _tmp8_; -#line 110 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 112 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp9_ = camera_branch_new (); -#line 110 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 112 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self->priv->camera_branch = _tmp9_; -#line 111 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 113 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp10_ = searches_branch_new (); -#line 111 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 113 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self->priv->saved_search_branch = _tmp10_; -#line 112 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->page_switching_enabled = TRUE; #line 114 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + self->priv->page_switching_enabled = TRUE; +#line 116 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp11_ = gee_hash_map_new (TYPE_PAGE, (GBoxedCopyFunc) g_object_ref, g_object_unref, SIDEBAR_TYPE_ENTRY, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 114 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->page_map = _tmp11_; #line 116 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + self->priv->page_map = _tmp11_; +#line 118 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self->priv->photo_page = NULL; -#line 121 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 123 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self->priv->is_search_toolbar_visible = FALSE; -#line 126 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 128 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp12_ = search_filter_actions_new (); -#line 126 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 128 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self->priv->search_actions = _tmp12_; -#line 129 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 131 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp13_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); -#line 129 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 131 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_object_ref_sink (_tmp13_); -#line 129 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 131 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self->priv->top_section = _tmp13_; -#line 130 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 132 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp14_ = (GtkFrame*) gtk_frame_new (NULL); -#line 130 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 132 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_object_ref_sink (_tmp14_); -#line 130 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 132 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self->priv->background_progress_frame = _tmp14_; -#line 131 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 133 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp15_ = (GtkProgressBar*) gtk_progress_bar_new (); -#line 131 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 133 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_object_ref_sink (_tmp15_); -#line 131 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 133 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self->priv->background_progress_bar = _tmp15_; -#line 132 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->background_progress_displayed = FALSE; #line 134 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + self->priv->background_progress_displayed = FALSE; +#line 136 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp16_ = basic_properties_new (); -#line 134 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 136 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_object_ref_sink (_tmp16_); -#line 134 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 136 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self->priv->basic_properties = _tmp16_; -#line 137 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 139 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp17_ = (GtkStack*) gtk_stack_new (); -#line 137 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 139 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_object_ref_sink (_tmp17_); -#line 137 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 139 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self->priv->stack = _tmp17_; -#line 138 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 140 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp18_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); -#line 138 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 140 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_object_ref_sink (_tmp18_); -#line 138 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->layout = _tmp18_; #line 140 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + self->priv->layout = _tmp18_; +#line 142 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp19_ = (GtkRevealer*) gtk_revealer_new (); -#line 140 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 142 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_object_ref_sink (_tmp19_); -#line 140 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->toolbar_revealer = _tmp19_; #line 142 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + self->priv->toolbar_revealer = _tmp19_; +#line 144 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self->priv->current_progress_priority = 0; -#line 143 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 145 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self->priv->background_progress_pulse_id = (guint) 0; -#line 9454 "LibraryWindow.c" +#line 9485 "LibraryWindow.c" } @@ -9491,51 +9522,51 @@ static void library_window_finalize (GObject* obj) { guint _tmp45_ = 0U; #line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_LIBRARY_WINDOW, LibraryWindow); -#line 216 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 222 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp0_ = self->priv->sidebar_tree; -#line 216 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 222 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_parse_name ("page-created", SIDEBAR_TYPE_TREE, &_tmp1_, NULL, FALSE); -#line 216 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 222 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _library_window_on_page_created_sidebar_tree_page_created, self); -#line 217 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 223 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp2_ = self->priv->sidebar_tree; -#line 217 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 223 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_parse_name ("destroying-page", SIDEBAR_TYPE_TREE, &_tmp3_, NULL, FALSE); -#line 217 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 223 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _library_window_on_destroying_page_sidebar_tree_destroying_page, self); -#line 218 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 224 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp4_ = self->priv->sidebar_tree; -#line 218 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 224 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_parse_name ("entry-selected", SIDEBAR_TYPE_TREE, &_tmp5_, NULL, FALSE); -#line 218 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 224 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _library_window_on_sidebar_entry_selected_sidebar_tree_entry_selected, self); -#line 219 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 225 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp6_ = self->priv->sidebar_tree; -#line 219 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 225 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_parse_name ("selected-entry-removed", SIDEBAR_TYPE_TREE, &_tmp7_, NULL, FALSE); -#line 219 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 225 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_handlers_disconnect_matched (_tmp6_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp7_, 0, NULL, (GCallback) _library_window_on_sidebar_selected_entry_removed_sidebar_tree_selected_entry_removed, self); -#line 221 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 227 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp8_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 221 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 227 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp9_ = _tmp8_; -#line 221 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 227 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_unsubscribe_from_basic_information (self, _tmp9_); -#line 221 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 227 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp9_); -#line 223 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 229 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp10_ = self->priv->extended_properties; -#line 223 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 229 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_parse_name ("hide", gtk_widget_get_type (), &_tmp11_, NULL, FALSE); -#line 223 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 229 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp11_, 0, NULL, (GCallback) _library_window_hide_extended_properties_gtk_widget_hide, self); -#line 224 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 230 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp12_ = self->priv->extended_properties; -#line 224 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 230 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_parse_name ("show", gtk_widget_get_type (), &_tmp13_, NULL, FALSE); -#line 224 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 230 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_widget_get_type (), GtkWidget), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp13_, 0, NULL, (GCallback) _library_window_show_extended_properties_gtk_widget_show, self); -#line 9538 "LibraryWindow.c" +#line 9569 "LibraryWindow.c" { GeeIterator* _media_sources_it = NULL; MediaCollectionRegistry* _tmp14_ = NULL; @@ -9544,27 +9575,27 @@ static void library_window_finalize (GObject* obj) { GeeCollection* _tmp17_ = NULL; GeeIterator* _tmp18_ = NULL; GeeIterator* _tmp19_ = NULL; -#line 226 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 232 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp14_ = media_collection_registry_get_instance (); -#line 226 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 232 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp15_ = _tmp14_; -#line 226 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 232 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp16_ = media_collection_registry_get_all (_tmp15_); -#line 226 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 232 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp17_ = _tmp16_; -#line 226 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 232 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp18_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 226 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 232 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp19_ = _tmp18_; -#line 226 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 232 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp17_); -#line 226 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 232 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _media_collection_registry_unref0 (_tmp15_); -#line 226 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 232 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _media_sources_it = _tmp19_; -#line 226 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 232 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" while (TRUE) { -#line 9567 "LibraryWindow.c" +#line 9598 "LibraryWindow.c" GeeIterator* _tmp20_ = NULL; gboolean _tmp21_ = FALSE; MediaSourceCollection* media_sources = NULL; @@ -9574,161 +9605,161 @@ static void library_window_finalize (GObject* obj) { guint _tmp25_ = 0U; MediaSourceCollection* _tmp26_ = NULL; guint _tmp27_ = 0U; -#line 226 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 232 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp20_ = _media_sources_it; -#line 226 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 232 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp21_ = gee_iterator_next (_tmp20_); -#line 226 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 232 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (!_tmp21_) { -#line 226 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 232 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" break; -#line 9585 "LibraryWindow.c" +#line 9616 "LibraryWindow.c" } -#line 226 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 232 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp22_ = _media_sources_it; -#line 226 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 232 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp23_ = gee_iterator_get (_tmp22_); -#line 226 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 232 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" media_sources = (MediaSourceCollection*) _tmp23_; -#line 227 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 233 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp24_ = media_sources; -#line 227 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 233 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_parse_name ("trashcan-contents-altered", TYPE_MEDIA_SOURCE_COLLECTION, &_tmp25_, NULL, FALSE); -#line 227 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 233 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_handlers_disconnect_matched (_tmp24_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp25_, 0, NULL, (GCallback) _library_window_on_trashcan_contents_altered_media_source_collection_trashcan_contents_altered, self); -#line 228 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 234 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp26_ = media_sources; -#line 228 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 234 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_parse_name ("items-altered", TYPE_DATA_COLLECTION, &_tmp27_, NULL, FALSE); -#line 228 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 234 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp27_, 0, NULL, (GCallback) _library_window_on_media_altered_data_collection_items_altered, self); -#line 226 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 232 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _data_collection_unref0 (media_sources); -#line 9607 "LibraryWindow.c" +#line 9638 "LibraryWindow.c" } -#line 226 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 232 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_media_sources_it); -#line 9611 "LibraryWindow.c" +#line 9642 "LibraryWindow.c" } -#line 231 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 237 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp28_ = metadata_writer_get_instance (); -#line 231 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 237 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp29_ = _tmp28_; -#line 231 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 237 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_parse_name ("progress", TYPE_METADATA_WRITER, &_tmp30_, NULL, FALSE); -#line 231 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 237 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_handlers_disconnect_matched (_tmp29_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp30_, 0, NULL, (GCallback) _library_window_on_metadata_writer_progress_metadata_writer_progress, self); -#line 231 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 237 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (_tmp29_); -#line 233 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 239 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp31_ = library_monitor_pool_get_instance (); -#line 233 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 239 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp32_ = _tmp31_; -#line 233 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 239 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp33_ = library_monitor_pool_get_monitor (_tmp32_); -#line 233 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 239 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp34_ = _tmp33_; -#line 233 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 239 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _library_monitor_pool_unref0 (_tmp32_); -#line 233 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 239 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" monitor = _tmp34_; -#line 234 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 240 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp35_ = monitor; -#line 234 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 240 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" if (_tmp35_ != NULL) { -#line 9639 "LibraryWindow.c" +#line 9670 "LibraryWindow.c" LibraryMonitor* _tmp36_ = NULL; -#line 235 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 241 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp36_ = monitor; -#line 235 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 241 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" library_window_on_library_monitor_destroyed (self, _tmp36_); -#line 9645 "LibraryWindow.c" +#line 9676 "LibraryWindow.c" } -#line 237 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 243 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp37_ = library_monitor_pool_get_instance (); -#line 237 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 243 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp38_ = _tmp37_; -#line 237 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 243 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_parse_name ("monitor-installed", TYPE_LIBRARY_MONITOR_POOL, &_tmp39_, NULL, FALSE); -#line 237 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 243 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_handlers_disconnect_matched (_tmp38_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp39_, 0, NULL, (GCallback) _library_window_on_library_monitor_installed_library_monitor_pool_monitor_installed, self); -#line 237 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 243 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _library_monitor_pool_unref0 (_tmp38_); -#line 238 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 244 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp40_ = library_monitor_pool_get_instance (); -#line 238 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 244 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp41_ = _tmp40_; -#line 238 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 244 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_parse_name ("monitor-destroyed", TYPE_LIBRARY_MONITOR_POOL, &_tmp42_, NULL, FALSE); -#line 238 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 244 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_handlers_disconnect_matched (_tmp41_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp42_, 0, NULL, (GCallback) _library_window_on_library_monitor_destroyed_library_monitor_pool_monitor_destroyed, self); -#line 238 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 244 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _library_monitor_pool_unref0 (_tmp41_); -#line 240 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 246 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp43_ = camera_table_get_instance (); -#line 240 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 246 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _tmp44_ = _tmp43_; -#line 240 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 246 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_parse_name ("camera-added", TYPE_CAMERA_TABLE, &_tmp45_, NULL, FALSE); -#line 240 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 246 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" g_signal_handlers_disconnect_matched (_tmp44_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp45_, 0, NULL, (GCallback) _library_window_on_camera_added_camera_table_camera_added, self); -#line 240 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 246 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _camera_table_unref0 (_tmp44_); #line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (monitor); -#line 95 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_free0 (self->priv->import_dir); #line 97 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + _g_free0 (self->priv->import_dir); +#line 99 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (self->priv->sidebar_paned); -#line 98 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 100 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (self->priv->client_paned); -#line 99 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (self->priv->bottom_frame); #line 101 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + _g_object_unref0 (self->priv->bottom_frame); +#line 103 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _one_shot_scheduler_unref0 (self->priv->properties_scheduler); -#line 105 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 107 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (self->priv->sidebar_tree); -#line 106 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 108 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (self->priv->library_branch); -#line 107 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 109 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (self->priv->tags_branch); -#line 108 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 110 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (self->priv->folders_branch); -#line 109 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 111 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (self->priv->events_branch); -#line 110 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 112 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (self->priv->camera_branch); -#line 111 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 113 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (self->priv->saved_search_branch); -#line 114 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (self->priv->page_map); #line 116 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + _g_object_unref0 (self->priv->page_map); +#line 118 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (self->priv->photo_page); -#line 126 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 128 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _search_filter_actions_unref0 (self->priv->search_actions); -#line 127 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (self->priv->search_toolbar); #line 129 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + _g_object_unref0 (self->priv->search_toolbar); +#line 131 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (self->priv->top_section); -#line 130 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 132 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (self->priv->background_progress_frame); -#line 131 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 133 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (self->priv->background_progress_bar); -#line 134 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 136 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (self->priv->basic_properties); -#line 135 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (self->priv->extended_properties); #line 137 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" + _g_object_unref0 (self->priv->extended_properties); +#line 139 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (self->priv->stack); -#line 138 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 140 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (self->priv->layout); -#line 139 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 141 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (self->priv->right_vbox); -#line 140 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" +#line 142 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" _g_object_unref0 (self->priv->toolbar_revealer); #line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" G_OBJECT_CLASS (library_window_parent_class)->finalize (obj); -#line 9731 "LibraryWindow.c" +#line 9762 "LibraryWindow.c" } @@ -9749,13 +9780,13 @@ static void _vala_library_window_get_property (GObject * object, guint property_ self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_LIBRARY_WINDOW, LibraryWindow); #line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" switch (property_id) { -#line 9752 "LibraryWindow.c" +#line 9783 "LibraryWindow.c" default: #line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); #line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" break; -#line 9758 "LibraryWindow.c" +#line 9789 "LibraryWindow.c" } } diff --git a/src/library/LibraryWindow.vala b/src/library/LibraryWindow.vala index 628bc36..0a39318 100644 --- a/src/library/LibraryWindow.vala +++ b/src/library/LibraryWindow.vala @@ -84,12 +84,14 @@ public class LibraryWindow : AppWindow { base.switched_to(); } + public override void switching_from() { + } + protected override void init_collect_ui_filenames(Gee.List<string> ui_filenames) { // We intentionally don't call the base class here since we don't want the // top-level menu in photo.ui. ui_filenames.add("photo_context.ui"); } - } private string import_dir = Environment.get_home_dir(); @@ -209,7 +211,11 @@ public class LibraryWindow : AppWindow { CameraTable.get_instance().camera_added.connect(on_camera_added); background_progress_bar.set_show_text(true); - + + // Need to re-install F8 here as it will overwrite the binding created + // by the menu + const string[] accels = { "<Primary>f", "F8", null }; + Application.set_accels_for_action("win.CommonDisplaySearchbar", accels); } ~LibraryWindow() { @@ -1187,9 +1193,6 @@ public class LibraryWindow : AppWindow { add(layout); - var builder = new Gtk.Builder.from_resource ("/org/gnome/Shotwell/appmenu.ui"); - Application.set_appmenu (builder.get_object ("appmenu") as GLib.Menu); - switch_to_page(start_page); start_page.grab_focus(); } @@ -1272,6 +1275,9 @@ public class LibraryWindow : AppWindow { Application.set_menubar (page.get_menubar ()); set_show_menubar (true); + var old = get_settings().gtk_shell_shows_menubar; + get_settings().gtk_shell_shows_menubar = !old; + get_settings().gtk_shell_shows_menubar = old; Gtk.Toolbar toolbar = page.get_toolbar(); if (toolbar != null) { diff --git a/src/library/OfflinePage.c b/src/library/OfflinePage.c index b8ec792..1117bcd 100644 --- a/src/library/OfflinePage.c +++ b/src/library/OfflinePage.c @@ -1,4 +1,4 @@ -/* OfflinePage.c generated by valac 0.32.1, the Vala compiler +/* OfflinePage.c generated by valac 0.34.4, the Vala compiler * generated from OfflinePage.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -12,10 +12,10 @@ #include <gtk/gtk.h> #include <stdlib.h> #include <string.h> +#include <gio/gio.h> #include <gee.h> #include <gdk/gdk.h> #include <glib/gi18n-lib.h> -#include <gio/gio.h> #include <cairo.h> #include <float.h> #include <math.h> @@ -304,16 +304,6 @@ typedef struct _ViewCollectionClass ViewCollectionClass; #define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; - #define TYPE_MEDIA_SOURCE_ITEM (media_source_item_get_type ()) #define MEDIA_SOURCE_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_ITEM, MediaSourceItem)) #define MEDIA_SOURCE_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_ITEM, MediaSourceItemClass)) @@ -352,6 +342,16 @@ typedef struct _OfflinePageOfflineViewClass OfflinePageOfflineViewClass; typedef struct _Marker Marker; typedef struct _MarkerIface MarkerIface; +#define TYPE_APP_WINDOW (app_window_get_type ()) +#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) +#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) +#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) +#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) +#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) + +typedef struct _AppWindow AppWindow; +typedef struct _AppWindowClass AppWindowClass; + #define TYPE_PROGRESS_DIALOG (progress_dialog_get_type ()) #define PROGRESS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PROGRESS_DIALOG, ProgressDialog)) #define PROGRESS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PROGRESS_DIALOG, ProgressDialogClass)) @@ -462,7 +462,8 @@ struct _PageClass { void (*ready) (Page* self); void (*switching_to_fullscreen) (Page* self, FullscreenWindow* fsw); void (*returning_from_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*add_actions) (Page* self); + void (*add_actions) (Page* self, GActionMap* map); + void (*remove_actions) (Page* self, GActionMap* map); void (*init_collect_ui_filenames) (Page* self, GeeList* ui_filenames); InjectionGroup** (*init_collect_injection_groups) (Page* self, int* result_length1); void (*init_actions) (Page* self, gint selected_count, gint count); @@ -794,10 +795,10 @@ MediaViewTracker* media_view_tracker_construct (GType object_type, ViewCollectio GeeCollection* media_source_collection_get_offline_bin_contents (MediaSourceCollection* self); static void offline_page_real_init_collect_ui_filenames (Page* base, GeeList* ui_filenames); void page_init_collect_ui_filenames (Page* self, GeeList* ui_filenames); -static void offline_page_real_add_actions (Page* base); -void page_add_actions (Page* self); -GType app_window_get_type (void) G_GNUC_CONST; -AppWindow* app_window_get_instance (void); +static void offline_page_real_add_actions (Page* base, GActionMap* map); +void page_add_actions (Page* self, GActionMap* map); +static void offline_page_real_remove_actions (Page* base, GActionMap* map); +void page_remove_actions (Page* self, GActionMap* map); static CoreViewTracker* offline_page_real_get_view_tracker (CheckerboardPage* base); static void offline_page_real_update_actions (Page* base, gint selected_count, gint count); void page_set_action_sensitive (Page* self, const gchar* name, gboolean sensitive); @@ -815,6 +816,8 @@ DataView* view_collection_get_view_for_source (ViewCollection* self, DataSource* void data_collection_remove_marked (DataCollection* self, Marker* m); GeeList* view_collection_get_selected_sources (ViewCollection* self); gboolean remove_offline_dialog (GtkWindow* owner, gint count); +GType app_window_get_type (void) G_GNUC_CONST; +AppWindow* app_window_get_instance (void); void page_window_set_busy_cursor (PageWindow* self); GType progress_dialog_get_type (void) G_GNUC_CONST; ProgressDialog* progress_dialog_new (GtkWindow* owner, const gchar* text, GCancellable* cancellable); @@ -861,14 +864,14 @@ static const GActionEntry OFFLINE_PAGE_entries[1] = {{"RemoveFromLibrary", _offl static void _offline_page_on_offline_contents_altered_media_source_collection_offline_contents_altered (MediaSourceCollection* _sender, GeeCollection* added, GeeCollection* removed, gpointer self) { #line 45 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" offline_page_on_offline_contents_altered ((OfflinePage*) self, added, removed); -#line 865 "OfflinePage.c" +#line 868 "OfflinePage.c" } static void _offline_page_on_remove_from_library_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 55 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" offline_page_on_remove_from_library ((OfflinePage*) self); -#line 872 "OfflinePage.c" +#line 875 "OfflinePage.c" } @@ -933,14 +936,14 @@ OfflinePage* offline_page_construct (GType object_type) { _g_object_unref0 (_tmp10_); #line 28 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" return self; -#line 937 "OfflinePage.c" +#line 940 "OfflinePage.c" } OfflinePage* offline_page_new (void) { #line 28 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" return offline_page_construct (TYPE_OFFLINE_PAGE); -#line 944 "OfflinePage.c" +#line 947 "OfflinePage.c" } @@ -960,34 +963,81 @@ static void offline_page_real_init_collect_ui_filenames (Page* base, GeeList* ui _tmp1_ = ui_filenames; #line 52 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection), "offline.ui"); -#line 964 "OfflinePage.c" +#line 967 "OfflinePage.c" } -static void offline_page_real_add_actions (Page* base) { +static void offline_page_real_add_actions (Page* base, GActionMap* map) { OfflinePage * self; - AppWindow* _tmp0_ = NULL; - AppWindow* _tmp1_ = NULL; + GActionMap* _tmp0_ = NULL; + GActionMap* _tmp1_ = NULL; #line 59 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_OFFLINE_PAGE, OfflinePage); +#line 59 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" + g_return_if_fail (G_IS_ACTION_MAP (map)); #line 60 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - PAGE_CLASS (offline_page_parent_class)->add_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page)); -#line 62 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp0_ = app_window_get_instance (); -#line 62 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp1_ = _tmp0_; + _tmp0_ = map; +#line 60 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" + PAGE_CLASS (offline_page_parent_class)->add_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), _tmp0_); #line 62 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - g_action_map_add_action_entries (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, g_action_map_get_type (), GActionMap), OFFLINE_PAGE_entries, G_N_ELEMENTS (OFFLINE_PAGE_entries), self); + _tmp1_ = map; #line 62 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _g_object_unref0 (_tmp1_); -#line 984 "OfflinePage.c" + g_action_map_add_action_entries (_tmp1_, OFFLINE_PAGE_entries, G_N_ELEMENTS (OFFLINE_PAGE_entries), self); +#line 987 "OfflinePage.c" } -static gpointer _core_tracker_ref0 (gpointer self) { +static void offline_page_real_remove_actions (Page* base, GActionMap* map) { + OfflinePage * self; + GActionMap* _tmp0_ = NULL; +#line 65 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" + self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_OFFLINE_PAGE, OfflinePage); +#line 65 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" + g_return_if_fail (G_IS_ACTION_MAP (map)); +#line 66 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" + _tmp0_ = map; #line 66 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" + PAGE_CLASS (offline_page_parent_class)->remove_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), _tmp0_); +#line 1002 "OfflinePage.c" + { + GActionEntry* entry_collection = NULL; + gint entry_collection_length1 = 0; + gint _entry_collection_size_ = 0; + gint entry_it = 0; +#line 67 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" + entry_collection = OFFLINE_PAGE_entries; +#line 67 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" + entry_collection_length1 = G_N_ELEMENTS (OFFLINE_PAGE_entries); +#line 67 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" + for (entry_it = 0; entry_it < G_N_ELEMENTS (OFFLINE_PAGE_entries); entry_it = entry_it + 1) { +#line 1014 "OfflinePage.c" + GActionEntry entry = {0}; +#line 67 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" + entry = entry_collection[entry_it]; +#line 1018 "OfflinePage.c" + { + GActionMap* _tmp1_ = NULL; + GActionEntry _tmp2_ = {0}; + const gchar* _tmp3_ = NULL; +#line 68 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" + _tmp1_ = map; +#line 68 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" + _tmp2_ = entry; +#line 68 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" + _tmp3_ = _tmp2_.name; +#line 68 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" + g_action_map_remove_action (_tmp1_, _tmp3_); +#line 1031 "OfflinePage.c" + } + } + } +} + + +static gpointer _core_tracker_ref0 (gpointer self) { +#line 73 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" return self ? core_tracker_ref (self) : NULL; -#line 991 "OfflinePage.c" +#line 1041 "OfflinePage.c" } @@ -996,17 +1046,17 @@ static CoreViewTracker* offline_page_real_get_view_tracker (CheckerboardPage* ba CoreViewTracker* result = NULL; MediaViewTracker* _tmp0_ = NULL; CoreViewTracker* _tmp1_ = NULL; -#line 65 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 72 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_OFFLINE_PAGE, OfflinePage); -#line 66 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 73 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp0_ = self->priv->tracker; -#line 66 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 73 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp1_ = _core_tracker_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, CORE_TYPE_VIEW_TRACKER, CoreViewTracker)); -#line 66 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 73 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" result = _tmp1_; -#line 66 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 73 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" return result; -#line 1010 "OfflinePage.c" +#line 1060 "OfflinePage.c" } @@ -1015,49 +1065,49 @@ static void offline_page_real_update_actions (Page* base, gint selected_count, g gint _tmp0_ = 0; gint _tmp1_ = 0; gint _tmp2_ = 0; -#line 69 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 76 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_OFFLINE_PAGE, OfflinePage); -#line 70 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 77 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp0_ = selected_count; -#line 70 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 77 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RemoveFromLibrary", _tmp0_ > 0); -#line 72 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 79 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp1_ = selected_count; -#line 72 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 79 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp2_ = count; -#line 72 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 79 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" PAGE_CLASS (offline_page_parent_class)->update_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), _tmp1_, _tmp2_); -#line 1031 "OfflinePage.c" +#line 1081 "OfflinePage.c" } static void offline_page_on_offline_contents_altered (OfflinePage* self, GeeCollection* added, GeeCollection* removed) { GeeCollection* _tmp0_ = NULL; GeeCollection* _tmp12_ = NULL; -#line 75 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 82 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" g_return_if_fail (IS_OFFLINE_PAGE (self)); -#line 75 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 82 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" g_return_if_fail ((added == NULL) || GEE_IS_COLLECTION (added)); -#line 75 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 82 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" g_return_if_fail ((removed == NULL) || GEE_IS_COLLECTION (removed)); -#line 77 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 84 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp0_ = added; -#line 77 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 84 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" if (_tmp0_ != NULL) { -#line 1048 "OfflinePage.c" +#line 1098 "OfflinePage.c" { GeeIterator* _source_it = NULL; GeeCollection* _tmp1_ = NULL; GeeIterator* _tmp2_ = NULL; -#line 78 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 85 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp1_ = added; -#line 78 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 85 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 78 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 85 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _source_it = _tmp2_; -#line 78 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 85 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" while (TRUE) { -#line 1061 "OfflinePage.c" +#line 1111 "OfflinePage.c" GeeIterator* _tmp3_ = NULL; gboolean _tmp4_ = FALSE; MediaSource* source = NULL; @@ -1068,52 +1118,52 @@ static void offline_page_on_offline_contents_altered (OfflinePage* self, GeeColl MediaSource* _tmp9_ = NULL; OfflinePageOfflineView* _tmp10_ = NULL; OfflinePageOfflineView* _tmp11_ = NULL; -#line 78 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 85 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp3_ = _source_it; -#line 78 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 85 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp4_ = gee_iterator_next (_tmp3_); -#line 78 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 85 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" if (!_tmp4_) { -#line 78 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 85 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" break; -#line 1080 "OfflinePage.c" +#line 1130 "OfflinePage.c" } -#line 78 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 85 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp5_ = _source_it; -#line 78 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 85 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp6_ = gee_iterator_get (_tmp5_); -#line 78 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 85 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" source = (MediaSource*) _tmp6_; -#line 79 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 86 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp7_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 79 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 86 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp8_ = _tmp7_; -#line 79 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 86 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp9_ = source; -#line 79 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 86 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp10_ = offline_page_offline_view_new (_tmp9_); -#line 79 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 86 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp11_ = _tmp10_; -#line 79 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 86 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_DATA_OBJECT, DataObject)); -#line 79 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 86 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _g_object_unref0 (_tmp11_); -#line 79 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 86 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _data_collection_unref0 (_tmp8_); -#line 78 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 85 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _g_object_unref0 (source); -#line 1106 "OfflinePage.c" +#line 1156 "OfflinePage.c" } -#line 78 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 85 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _g_object_unref0 (_source_it); -#line 1110 "OfflinePage.c" +#line 1160 "OfflinePage.c" } } -#line 82 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 89 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp12_ = removed; -#line 82 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 89 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" if (_tmp12_ != NULL) { -#line 1117 "OfflinePage.c" +#line 1167 "OfflinePage.c" Marker* marker = NULL; ViewCollection* _tmp13_ = NULL; ViewCollection* _tmp14_ = NULL; @@ -1122,32 +1172,32 @@ static void offline_page_on_offline_contents_altered (OfflinePage* self, GeeColl ViewCollection* _tmp29_ = NULL; ViewCollection* _tmp30_ = NULL; Marker* _tmp31_ = NULL; -#line 83 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 90 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp13_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 83 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 90 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp14_ = _tmp13_; -#line 83 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 90 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp15_ = data_collection_start_marking (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_DATA_COLLECTION, DataCollection)); -#line 83 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 90 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp16_ = _tmp15_; -#line 83 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 90 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _data_collection_unref0 (_tmp14_); -#line 83 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 90 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" marker = _tmp16_; -#line 1138 "OfflinePage.c" +#line 1188 "OfflinePage.c" { GeeIterator* _source_it = NULL; GeeCollection* _tmp17_ = NULL; GeeIterator* _tmp18_ = NULL; -#line 84 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 91 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp17_ = removed; -#line 84 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 91 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp18_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 84 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 91 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _source_it = _tmp18_; -#line 84 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 91 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" while (TRUE) { -#line 1151 "OfflinePage.c" +#line 1201 "OfflinePage.c" GeeIterator* _tmp19_ = NULL; gboolean _tmp20_ = FALSE; MediaSource* source = NULL; @@ -1159,61 +1209,61 @@ static void offline_page_on_offline_contents_altered (OfflinePage* self, GeeColl MediaSource* _tmp26_ = NULL; DataView* _tmp27_ = NULL; DataView* _tmp28_ = NULL; -#line 84 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 91 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp19_ = _source_it; -#line 84 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 91 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp20_ = gee_iterator_next (_tmp19_); -#line 84 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 91 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" if (!_tmp20_) { -#line 84 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 91 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" break; -#line 1171 "OfflinePage.c" +#line 1221 "OfflinePage.c" } -#line 84 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 91 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp21_ = _source_it; -#line 84 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 91 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp22_ = gee_iterator_get (_tmp21_); -#line 84 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 91 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" source = (MediaSource*) _tmp22_; -#line 85 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 92 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp23_ = marker; -#line 85 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 92 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp24_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 85 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 92 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp25_ = _tmp24_; -#line 85 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 92 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp26_ = source; -#line 85 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 92 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp27_ = view_collection_get_view_for_source (_tmp25_, G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_DATA_SOURCE, DataSource)); -#line 85 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 92 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp28_ = _tmp27_; -#line 85 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 92 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" marker_mark (_tmp23_, G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, TYPE_DATA_OBJECT, DataObject)); -#line 85 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 92 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _g_object_unref0 (_tmp28_); -#line 85 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 92 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _data_collection_unref0 (_tmp25_); -#line 84 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 91 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _g_object_unref0 (source); -#line 1199 "OfflinePage.c" +#line 1249 "OfflinePage.c" } -#line 84 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 91 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _g_object_unref0 (_source_it); -#line 1203 "OfflinePage.c" +#line 1253 "OfflinePage.c" } -#line 86 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 93 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp29_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 86 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 93 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp30_ = _tmp29_; -#line 86 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 93 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp31_ = marker; -#line 86 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 93 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" data_collection_remove_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, TYPE_DATA_COLLECTION, DataCollection), _tmp31_); -#line 86 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 93 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _data_collection_unref0 (_tmp30_); -#line 82 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 89 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _g_object_unref0 (marker); -#line 1217 "OfflinePage.c" +#line 1267 "OfflinePage.c" } } @@ -1221,9 +1271,9 @@ static void offline_page_on_offline_contents_altered (OfflinePage* self, GeeColl static gboolean _progress_dialog_monitor_progress_monitor (guint64 current, guint64 total, gboolean do_event_loop, gpointer self) { gboolean result; result = progress_dialog_monitor ((ProgressDialog*) self, current, total, do_event_loop); -#line 110 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 117 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" return result; -#line 1227 "OfflinePage.c" +#line 1277 "OfflinePage.c" } @@ -1260,198 +1310,198 @@ static void offline_page_on_remove_from_library (OfflinePage* self) { ProgressDialog* _tmp39_ = NULL; AppWindow* _tmp41_ = NULL; AppWindow* _tmp42_ = NULL; -#line 90 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 97 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" g_return_if_fail (IS_OFFLINE_PAGE (self)); -#line 91 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 98 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 91 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 98 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp1_ = _tmp0_; -#line 91 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 98 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp2_ = view_collection_get_selected_sources (_tmp1_); -#line 91 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 98 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection); -#line 91 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 98 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _data_collection_unref0 (_tmp1_); -#line 91 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 98 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" sources = _tmp3_; -#line 93 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 100 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp4_ = sources; -#line 93 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 100 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp5_ = gee_collection_get_size (_tmp4_); -#line 93 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 100 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp6_ = _tmp5_; -#line 93 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 100 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" if (_tmp6_ == 0) { -#line 94 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 101 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _g_object_unref0 (sources); -#line 94 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 101 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" return; -#line 1290 "OfflinePage.c" +#line 1340 "OfflinePage.c" } -#line 96 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 103 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp7_ = app_window_get_instance (); -#line 96 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 103 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp8_ = _tmp7_; -#line 96 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 103 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp9_ = sources; -#line 96 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 103 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp10_ = gee_collection_get_size (_tmp9_); -#line 96 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 103 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp11_ = _tmp10_; -#line 96 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 103 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp12_ = remove_offline_dialog (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_window_get_type (), GtkWindow), _tmp11_); -#line 96 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 103 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp13_ = !_tmp12_; -#line 96 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 103 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _g_object_unref0 (_tmp8_); -#line 96 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 103 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" if (_tmp13_) { -#line 97 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 104 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _g_object_unref0 (sources); -#line 97 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 104 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" return; -#line 1314 "OfflinePage.c" +#line 1364 "OfflinePage.c" } -#line 99 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 106 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp14_ = app_window_get_instance (); -#line 99 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 106 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp15_ = _tmp14_; -#line 99 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 106 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_PAGE_WINDOW, PageWindow)); -#line 99 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 106 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _g_object_unref0 (_tmp15_); -#line 101 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 108 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" progress = NULL; -#line 102 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 109 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp16_ = sources; -#line 102 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 109 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp17_ = gee_collection_get_size (_tmp16_); -#line 102 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 109 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp18_ = _tmp17_; -#line 102 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 109 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" if (_tmp18_ >= 20) { -#line 1334 "OfflinePage.c" +#line 1384 "OfflinePage.c" AppWindow* _tmp19_ = NULL; AppWindow* _tmp20_ = NULL; const gchar* _tmp21_ = NULL; ProgressDialog* _tmp22_ = NULL; -#line 103 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 110 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp19_ = app_window_get_instance (); -#line 103 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 110 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp20_ = _tmp19_; -#line 103 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 110 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp21_ = _ ("Deleting…"); -#line 103 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 110 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp22_ = progress_dialog_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_window_get_type (), GtkWindow), _tmp21_, NULL); -#line 103 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 110 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" g_object_ref_sink (_tmp22_); -#line 103 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 110 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _g_object_unref0 (progress); -#line 103 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 110 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" progress = _tmp22_; -#line 103 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 110 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _g_object_unref0 (_tmp20_); -#line 1355 "OfflinePage.c" +#line 1405 "OfflinePage.c" } -#line 105 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 112 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp23_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL); -#line 105 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 112 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" photos = _tmp23_; -#line 106 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 113 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp24_ = gee_array_list_new (TYPE_VIDEO, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL); -#line 106 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 113 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" videos = _tmp24_; -#line 107 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 114 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp25_ = sources; -#line 107 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 114 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp26_ = photos; -#line 107 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 114 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp27_ = videos; -#line 107 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 114 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" media_source_collection_filter_media (_tmp25_, G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 109 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 116 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp28_ = progress; -#line 109 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 116 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" if (_tmp28_ != NULL) { -#line 1377 "OfflinePage.c" +#line 1427 "OfflinePage.c" LibraryPhotoSourceCollection* _tmp29_ = NULL; GeeArrayList* _tmp30_ = NULL; ProgressDialog* _tmp31_ = NULL; VideoSourceCollection* _tmp32_ = NULL; GeeArrayList* _tmp33_ = NULL; ProgressDialog* _tmp34_ = NULL; -#line 110 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 117 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp29_ = library_photo_global; -#line 110 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 117 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp30_ = photos; -#line 110 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 117 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp31_ = progress; -#line 110 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 117 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" media_source_collection_remove_from_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, GEE_TYPE_COLLECTION, GeeCollection), FALSE, _progress_dialog_monitor_progress_monitor, _tmp31_, NULL); -#line 111 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 118 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp32_ = video_global; -#line 111 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 118 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp33_ = videos; -#line 111 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 118 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp34_ = progress; -#line 111 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 118 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" media_source_collection_remove_from_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, GEE_TYPE_COLLECTION, GeeCollection), FALSE, _progress_dialog_monitor_progress_monitor, _tmp34_, NULL); -#line 1400 "OfflinePage.c" +#line 1450 "OfflinePage.c" } else { LibraryPhotoSourceCollection* _tmp35_ = NULL; GeeArrayList* _tmp36_ = NULL; VideoSourceCollection* _tmp37_ = NULL; GeeArrayList* _tmp38_ = NULL; -#line 113 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 120 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp35_ = library_photo_global; -#line 113 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 120 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp36_ = photos; -#line 113 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 120 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" media_source_collection_remove_from_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, GEE_TYPE_COLLECTION, GeeCollection), FALSE, NULL, NULL, NULL); -#line 114 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 121 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp37_ = video_global; -#line 114 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 121 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp38_ = videos; -#line 114 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 121 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" media_source_collection_remove_from_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, GEE_TYPE_COLLECTION, GeeCollection), FALSE, NULL, NULL, NULL); -#line 1418 "OfflinePage.c" +#line 1468 "OfflinePage.c" } -#line 117 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 124 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp39_ = progress; -#line 117 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 124 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" if (_tmp39_ != NULL) { -#line 1424 "OfflinePage.c" +#line 1474 "OfflinePage.c" ProgressDialog* _tmp40_ = NULL; -#line 118 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 125 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp40_ = progress; -#line 118 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 125 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" progress_dialog_close (_tmp40_); -#line 1430 "OfflinePage.c" +#line 1480 "OfflinePage.c" } -#line 120 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 127 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp41_ = app_window_get_instance (); -#line 120 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 127 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp42_ = _tmp41_; -#line 120 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 127 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, TYPE_PAGE_WINDOW, PageWindow)); -#line 120 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 127 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _g_object_unref0 (_tmp42_); -#line 90 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 97 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _g_object_unref0 (videos); -#line 90 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 97 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _g_object_unref0 (photos); -#line 90 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 97 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _g_object_unref0 (progress); -#line 90 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 97 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _g_object_unref0 (sources); -#line 1448 "OfflinePage.c" +#line 1498 "OfflinePage.c" } static gpointer _view_filter_ref0 (gpointer self) { -#line 124 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 131 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" return self ? view_filter_ref (self) : NULL; -#line 1455 "OfflinePage.c" +#line 1505 "OfflinePage.c" } @@ -1460,17 +1510,17 @@ static SearchViewFilter* offline_page_real_get_search_view_filter (CheckerboardP SearchViewFilter* result = NULL; OfflinePageOfflineSearchViewFilter* _tmp0_ = NULL; SearchViewFilter* _tmp1_ = NULL; -#line 123 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 130 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_OFFLINE_PAGE, OfflinePage); -#line 124 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 131 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp0_ = self->priv->search_filter; -#line 124 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 131 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" _tmp1_ = _view_filter_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)); -#line 124 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 131 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" result = _tmp1_; -#line 124 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" +#line 131 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" return result; -#line 1474 "OfflinePage.c" +#line 1524 "OfflinePage.c" } @@ -1499,21 +1549,21 @@ static OfflinePageOfflineView* offline_page_offline_view_construct (GType object _vala_assert (_tmp4_, "source.is_offline()"); #line 11 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" return self; -#line 1503 "OfflinePage.c" +#line 1553 "OfflinePage.c" } static OfflinePageOfflineView* offline_page_offline_view_new (MediaSource* source) { #line 11 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" return offline_page_offline_view_construct (OFFLINE_PAGE_TYPE_OFFLINE_VIEW, source); -#line 1510 "OfflinePage.c" +#line 1560 "OfflinePage.c" } static void offline_page_offline_view_class_init (OfflinePageOfflineViewClass * klass) { #line 10 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" offline_page_offline_view_parent_class = g_type_class_peek_parent (klass); -#line 1517 "OfflinePage.c" +#line 1567 "OfflinePage.c" } @@ -1542,7 +1592,7 @@ static guint offline_page_offline_search_view_filter_real_get_criteria (SearchVi result = (guint) ((((SEARCH_FILTER_CRITERIA_TEXT | SEARCH_FILTER_CRITERIA_FLAG) | SEARCH_FILTER_CRITERIA_MEDIA) | SEARCH_FILTER_CRITERIA_RATING) | SEARCH_FILTER_CRITERIA_SAVEDSEARCH); #line 20 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" return result; -#line 1546 "OfflinePage.c" +#line 1596 "OfflinePage.c" } @@ -1552,14 +1602,14 @@ static OfflinePageOfflineSearchViewFilter* offline_page_offline_search_view_filt self = (OfflinePageOfflineSearchViewFilter*) default_search_view_filter_construct (object_type); #line 18 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" return self; -#line 1556 "OfflinePage.c" +#line 1606 "OfflinePage.c" } static OfflinePageOfflineSearchViewFilter* offline_page_offline_search_view_filter_new (void) { #line 18 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" return offline_page_offline_search_view_filter_construct (OFFLINE_PAGE_TYPE_OFFLINE_SEARCH_VIEW_FILTER); -#line 1563 "OfflinePage.c" +#line 1613 "OfflinePage.c" } @@ -1568,7 +1618,7 @@ static void offline_page_offline_search_view_filter_class_init (OfflinePageOffli offline_page_offline_search_view_filter_parent_class = g_type_class_peek_parent (klass); #line 18 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" ((SearchViewFilterClass *) klass)->get_criteria = offline_page_offline_search_view_filter_real_get_criteria; -#line 1572 "OfflinePage.c" +#line 1622 "OfflinePage.c" } @@ -1598,6 +1648,8 @@ static void offline_page_class_init (OfflinePageClass * klass) { #line 7 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" ((PageClass *) klass)->add_actions = offline_page_real_add_actions; #line 7 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" + ((PageClass *) klass)->remove_actions = offline_page_real_remove_actions; +#line 7 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" ((CheckerboardPageClass *) klass)->get_view_tracker = offline_page_real_get_view_tracker; #line 7 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" ((PageClass *) klass)->update_actions = offline_page_real_update_actions; @@ -1605,7 +1657,7 @@ static void offline_page_class_init (OfflinePageClass * klass) { ((CheckerboardPageClass *) klass)->get_search_view_filter = offline_page_real_get_search_view_filter; #line 7 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" G_OBJECT_CLASS (klass)->finalize = offline_page_finalize; -#line 1609 "OfflinePage.c" +#line 1661 "OfflinePage.c" } @@ -1617,7 +1669,7 @@ static void offline_page_instance_init (OfflinePage * self) { _tmp0_ = offline_page_offline_search_view_filter_new (); #line 25 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" self->priv->search_filter = _tmp0_; -#line 1621 "OfflinePage.c" +#line 1673 "OfflinePage.c" } @@ -1647,7 +1699,7 @@ static void offline_page_finalize (GObject* obj) { _core_tracker_unref0 (self->priv->tracker); #line 7 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" G_OBJECT_CLASS (offline_page_parent_class)->finalize (obj); -#line 1651 "OfflinePage.c" +#line 1703 "OfflinePage.c" } diff --git a/src/library/OfflinePage.vala b/src/library/OfflinePage.vala index bd916d0..1982618 100644 --- a/src/library/OfflinePage.vala +++ b/src/library/OfflinePage.vala @@ -56,10 +56,17 @@ public class OfflinePage : CheckerboardPage { { "RemoveFromLibrary", on_remove_from_library } }; - protected override void add_actions () { - base.add_actions (); + protected override void add_actions (GLib.ActionMap map) { + base.add_actions(map); - AppWindow.get_instance ().add_action_entries (entries, this); + map.add_action_entries(entries, this); + } + + protected override void remove_actions(GLib.ActionMap map) { + base.remove_actions(map); + foreach (var entry in entries) { + map.remove_action(entry.name); + } } public override Core.ViewTracker? get_view_tracker() { diff --git a/src/library/OfflineSidebarEntry.c b/src/library/OfflineSidebarEntry.c index a2025d1..1a19cd3 100644 --- a/src/library/OfflineSidebarEntry.c +++ b/src/library/OfflineSidebarEntry.c @@ -1,4 +1,4 @@ -/* OfflineSidebarEntry.c generated by valac 0.32.1, the Vala compiler +/* OfflineSidebarEntry.c generated by valac 0.34.4, the Vala compiler * generated from OfflineSidebarEntry.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/library/TrashPage.c b/src/library/TrashPage.c index 8c6cf47..c108bba 100644 --- a/src/library/TrashPage.c +++ b/src/library/TrashPage.c @@ -1,4 +1,4 @@ -/* TrashPage.c generated by valac 0.32.1, the Vala compiler +/* TrashPage.c generated by valac 0.34.4, the Vala compiler * generated from TrashPage.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -12,10 +12,10 @@ #include <gtk/gtk.h> #include <stdlib.h> #include <string.h> +#include <gio/gio.h> #include <gee.h> #include <gdk/gdk.h> #include <glib/gi18n-lib.h> -#include <gio/gio.h> #include <cairo.h> #include <float.h> #include <math.h> @@ -304,16 +304,6 @@ typedef struct _VideoSourceCollection VideoSourceCollection; typedef struct _VideoSourceCollectionClass VideoSourceCollectionClass; #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; - #define TYPE_MEDIA_SOURCE_ITEM (media_source_item_get_type ()) #define MEDIA_SOURCE_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_ITEM, MediaSourceItem)) #define MEDIA_SOURCE_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_ITEM, MediaSourceItemClass)) @@ -473,7 +463,8 @@ struct _PageClass { void (*ready) (Page* self); void (*switching_to_fullscreen) (Page* self, FullscreenWindow* fsw); void (*returning_from_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*add_actions) (Page* self); + void (*add_actions) (Page* self, GActionMap* map); + void (*remove_actions) (Page* self, GActionMap* map); void (*init_collect_ui_filenames) (Page* self, GeeList* ui_filenames); InjectionGroup** (*init_collect_injection_groups) (Page* self, int* result_length1); void (*init_actions) (Page* self, gint selected_count, gint count); @@ -807,10 +798,10 @@ GType video_source_collection_get_type (void) G_GNUC_CONST; GeeCollection* media_source_collection_get_trashcan_contents (MediaSourceCollection* self); static void trash_page_real_init_collect_ui_filenames (Page* base, GeeList* ui_filenames); void page_init_collect_ui_filenames (Page* self, GeeList* ui_filenames); -static void trash_page_real_add_actions (Page* base); -void page_add_actions (Page* self); -GType app_window_get_type (void) G_GNUC_CONST; -AppWindow* app_window_get_instance (void); +static void trash_page_real_add_actions (Page* base, GActionMap* map); +void page_add_actions (Page* self, GActionMap* map); +static void trash_page_real_remove_actions (Page* base, GActionMap* map); +void page_remove_actions (Page* self, GActionMap* map); static CoreViewTracker* trash_page_real_get_view_tracker (CheckerboardPage* base); static void trash_page_real_update_actions (Page* base, gint selected_count, gint count); void page_set_action_sensitive (Page* self, const gchar* name, gboolean sensitive); @@ -880,21 +871,21 @@ static const GActionEntry TRASH_PAGE_entries[2] = {{"Delete", _trash_page_on_del static void _trash_page_on_delete_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 50 "/home/jens/Source/shotwell/src/library/TrashPage.vala" trash_page_on_delete ((TrashPage*) self); -#line 884 "TrashPage.c" +#line 875 "TrashPage.c" } static void _trash_page_on_restore_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 50 "/home/jens/Source/shotwell/src/library/TrashPage.vala" trash_page_on_restore ((TrashPage*) self); -#line 891 "TrashPage.c" +#line 882 "TrashPage.c" } static void _trash_page_on_trashcan_contents_altered_media_source_collection_trashcan_contents_altered (MediaSourceCollection* _sender, GeeCollection* added, GeeCollection* removed, gpointer self) { #line 38 "/home/jens/Source/shotwell/src/library/TrashPage.vala" trash_page_on_trashcan_contents_altered ((TrashPage*) self, added, removed); -#line 898 "TrashPage.c" +#line 889 "TrashPage.c" } @@ -961,14 +952,14 @@ TrashPage* trash_page_construct (GType object_type) { _g_object_unref0 (_tmp10_); #line 28 "/home/jens/Source/shotwell/src/library/TrashPage.vala" return self; -#line 965 "TrashPage.c" +#line 956 "TrashPage.c" } TrashPage* trash_page_new (void) { #line 28 "/home/jens/Source/shotwell/src/library/TrashPage.vala" return trash_page_construct (TYPE_TRASH_PAGE); -#line 972 "TrashPage.c" +#line 963 "TrashPage.c" } @@ -988,34 +979,81 @@ static void trash_page_real_init_collect_ui_filenames (Page* base, GeeList* ui_f _tmp1_ = ui_filenames; #line 47 "/home/jens/Source/shotwell/src/library/TrashPage.vala" gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection), "trash.ui"); -#line 992 "TrashPage.c" +#line 983 "TrashPage.c" } -static void trash_page_real_add_actions (Page* base) { +static void trash_page_real_add_actions (Page* base, GActionMap* map) { TrashPage * self; - AppWindow* _tmp0_ = NULL; - AppWindow* _tmp1_ = NULL; + GActionMap* _tmp0_ = NULL; + GActionMap* _tmp1_ = NULL; #line 55 "/home/jens/Source/shotwell/src/library/TrashPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TRASH_PAGE, TrashPage); +#line 55 "/home/jens/Source/shotwell/src/library/TrashPage.vala" + g_return_if_fail (G_IS_ACTION_MAP (map)); #line 56 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - PAGE_CLASS (trash_page_parent_class)->add_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page)); -#line 58 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp0_ = app_window_get_instance (); -#line 58 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp1_ = _tmp0_; + _tmp0_ = map; +#line 56 "/home/jens/Source/shotwell/src/library/TrashPage.vala" + PAGE_CLASS (trash_page_parent_class)->add_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), _tmp0_); #line 58 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - g_action_map_add_action_entries (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, g_action_map_get_type (), GActionMap), TRASH_PAGE_entries, G_N_ELEMENTS (TRASH_PAGE_entries), self); + _tmp1_ = map; #line 58 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _g_object_unref0 (_tmp1_); -#line 1012 "TrashPage.c" + g_action_map_add_action_entries (_tmp1_, TRASH_PAGE_entries, G_N_ELEMENTS (TRASH_PAGE_entries), self); +#line 1003 "TrashPage.c" } -static gpointer _core_tracker_ref0 (gpointer self) { +static void trash_page_real_remove_actions (Page* base, GActionMap* map) { + TrashPage * self; + GActionMap* _tmp0_ = NULL; +#line 61 "/home/jens/Source/shotwell/src/library/TrashPage.vala" + self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TRASH_PAGE, TrashPage); +#line 61 "/home/jens/Source/shotwell/src/library/TrashPage.vala" + g_return_if_fail (G_IS_ACTION_MAP (map)); #line 62 "/home/jens/Source/shotwell/src/library/TrashPage.vala" + _tmp0_ = map; +#line 62 "/home/jens/Source/shotwell/src/library/TrashPage.vala" + PAGE_CLASS (trash_page_parent_class)->remove_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), _tmp0_); +#line 1018 "TrashPage.c" + { + GActionEntry* entry_collection = NULL; + gint entry_collection_length1 = 0; + gint _entry_collection_size_ = 0; + gint entry_it = 0; +#line 63 "/home/jens/Source/shotwell/src/library/TrashPage.vala" + entry_collection = TRASH_PAGE_entries; +#line 63 "/home/jens/Source/shotwell/src/library/TrashPage.vala" + entry_collection_length1 = G_N_ELEMENTS (TRASH_PAGE_entries); +#line 63 "/home/jens/Source/shotwell/src/library/TrashPage.vala" + for (entry_it = 0; entry_it < G_N_ELEMENTS (TRASH_PAGE_entries); entry_it = entry_it + 1) { +#line 1030 "TrashPage.c" + GActionEntry entry = {0}; +#line 63 "/home/jens/Source/shotwell/src/library/TrashPage.vala" + entry = entry_collection[entry_it]; +#line 1034 "TrashPage.c" + { + GActionMap* _tmp1_ = NULL; + GActionEntry _tmp2_ = {0}; + const gchar* _tmp3_ = NULL; +#line 64 "/home/jens/Source/shotwell/src/library/TrashPage.vala" + _tmp1_ = map; +#line 64 "/home/jens/Source/shotwell/src/library/TrashPage.vala" + _tmp2_ = entry; +#line 64 "/home/jens/Source/shotwell/src/library/TrashPage.vala" + _tmp3_ = _tmp2_.name; +#line 64 "/home/jens/Source/shotwell/src/library/TrashPage.vala" + g_action_map_remove_action (_tmp1_, _tmp3_); +#line 1047 "TrashPage.c" + } + } + } +} + + +static gpointer _core_tracker_ref0 (gpointer self) { +#line 69 "/home/jens/Source/shotwell/src/library/TrashPage.vala" return self ? core_tracker_ref (self) : NULL; -#line 1019 "TrashPage.c" +#line 1057 "TrashPage.c" } @@ -1024,17 +1062,17 @@ static CoreViewTracker* trash_page_real_get_view_tracker (CheckerboardPage* base CoreViewTracker* result = NULL; MediaViewTracker* _tmp0_ = NULL; CoreViewTracker* _tmp1_ = NULL; -#line 61 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 68 "/home/jens/Source/shotwell/src/library/TrashPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TRASH_PAGE, TrashPage); -#line 62 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 69 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp0_ = self->priv->tracker; -#line 62 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 69 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp1_ = _core_tracker_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, CORE_TYPE_VIEW_TRACKER, CoreViewTracker)); -#line 62 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 69 "/home/jens/Source/shotwell/src/library/TrashPage.vala" result = _tmp1_; -#line 62 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 69 "/home/jens/Source/shotwell/src/library/TrashPage.vala" return result; -#line 1038 "TrashPage.c" +#line 1076 "TrashPage.c" } @@ -1044,59 +1082,59 @@ static void trash_page_real_update_actions (Page* base, gint selected_count, gin gint _tmp0_ = 0; gint _tmp1_ = 0; gint _tmp2_ = 0; -#line 65 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 72 "/home/jens/Source/shotwell/src/library/TrashPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TRASH_PAGE, TrashPage); -#line 66 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 73 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp0_ = selected_count; -#line 66 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 73 "/home/jens/Source/shotwell/src/library/TrashPage.vala" has_selected = _tmp0_ > 0; -#line 68 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 75 "/home/jens/Source/shotwell/src/library/TrashPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Delete", has_selected); -#line 69 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 76 "/home/jens/Source/shotwell/src/library/TrashPage.vala" page_set_action_important (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Delete", TRUE); -#line 70 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 77 "/home/jens/Source/shotwell/src/library/TrashPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Restore", has_selected); -#line 71 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 78 "/home/jens/Source/shotwell/src/library/TrashPage.vala" page_set_action_important (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Restore", TRUE); -#line 72 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 79 "/home/jens/Source/shotwell/src/library/TrashPage.vala" page_set_common_action_important (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CommonEmptyTrash", TRUE); -#line 74 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 81 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp1_ = selected_count; -#line 74 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 81 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp2_ = count; -#line 74 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 81 "/home/jens/Source/shotwell/src/library/TrashPage.vala" PAGE_CLASS (trash_page_parent_class)->update_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), _tmp1_, _tmp2_); -#line 1070 "TrashPage.c" +#line 1108 "TrashPage.c" } static void trash_page_on_trashcan_contents_altered (TrashPage* self, GeeCollection* added, GeeCollection* removed) { GeeCollection* _tmp0_ = NULL; GeeCollection* _tmp12_ = NULL; -#line 77 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 84 "/home/jens/Source/shotwell/src/library/TrashPage.vala" g_return_if_fail (IS_TRASH_PAGE (self)); -#line 77 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 84 "/home/jens/Source/shotwell/src/library/TrashPage.vala" g_return_if_fail ((added == NULL) || GEE_IS_COLLECTION (added)); -#line 77 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 84 "/home/jens/Source/shotwell/src/library/TrashPage.vala" g_return_if_fail ((removed == NULL) || GEE_IS_COLLECTION (removed)); -#line 79 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 86 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp0_ = added; -#line 79 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 86 "/home/jens/Source/shotwell/src/library/TrashPage.vala" if (_tmp0_ != NULL) { -#line 1087 "TrashPage.c" +#line 1125 "TrashPage.c" { GeeIterator* _source_it = NULL; GeeCollection* _tmp1_ = NULL; GeeIterator* _tmp2_ = NULL; -#line 80 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 87 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp1_ = added; -#line 80 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 87 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 80 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 87 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _source_it = _tmp2_; -#line 80 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 87 "/home/jens/Source/shotwell/src/library/TrashPage.vala" while (TRUE) { -#line 1100 "TrashPage.c" +#line 1138 "TrashPage.c" GeeIterator* _tmp3_ = NULL; gboolean _tmp4_ = FALSE; MediaSource* source = NULL; @@ -1107,52 +1145,52 @@ static void trash_page_on_trashcan_contents_altered (TrashPage* self, GeeCollect MediaSource* _tmp9_ = NULL; TrashPageTrashView* _tmp10_ = NULL; TrashPageTrashView* _tmp11_ = NULL; -#line 80 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 87 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp3_ = _source_it; -#line 80 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 87 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp4_ = gee_iterator_next (_tmp3_); -#line 80 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 87 "/home/jens/Source/shotwell/src/library/TrashPage.vala" if (!_tmp4_) { -#line 80 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 87 "/home/jens/Source/shotwell/src/library/TrashPage.vala" break; -#line 1119 "TrashPage.c" +#line 1157 "TrashPage.c" } -#line 80 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 87 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp5_ = _source_it; -#line 80 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 87 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp6_ = gee_iterator_get (_tmp5_); -#line 80 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 87 "/home/jens/Source/shotwell/src/library/TrashPage.vala" source = (MediaSource*) _tmp6_; -#line 81 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 88 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp7_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 81 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 88 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp8_ = _tmp7_; -#line 81 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 88 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp9_ = source; -#line 81 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 88 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp10_ = trash_page_trash_view_new (_tmp9_); -#line 81 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 88 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp11_ = _tmp10_; -#line 81 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 88 "/home/jens/Source/shotwell/src/library/TrashPage.vala" data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_DATA_OBJECT, DataObject)); -#line 81 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 88 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _g_object_unref0 (_tmp11_); -#line 81 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 88 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _data_collection_unref0 (_tmp8_); -#line 80 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 87 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _g_object_unref0 (source); -#line 1145 "TrashPage.c" +#line 1183 "TrashPage.c" } -#line 80 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 87 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _g_object_unref0 (_source_it); -#line 1149 "TrashPage.c" +#line 1187 "TrashPage.c" } } -#line 84 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 91 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp12_ = removed; -#line 84 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 91 "/home/jens/Source/shotwell/src/library/TrashPage.vala" if (_tmp12_ != NULL) { -#line 1156 "TrashPage.c" +#line 1194 "TrashPage.c" Marker* marker = NULL; ViewCollection* _tmp13_ = NULL; ViewCollection* _tmp14_ = NULL; @@ -1161,32 +1199,32 @@ static void trash_page_on_trashcan_contents_altered (TrashPage* self, GeeCollect ViewCollection* _tmp29_ = NULL; ViewCollection* _tmp30_ = NULL; Marker* _tmp31_ = NULL; -#line 85 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 92 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp13_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 85 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 92 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp14_ = _tmp13_; -#line 85 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 92 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp15_ = data_collection_start_marking (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_DATA_COLLECTION, DataCollection)); -#line 85 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 92 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp16_ = _tmp15_; -#line 85 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 92 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _data_collection_unref0 (_tmp14_); -#line 85 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 92 "/home/jens/Source/shotwell/src/library/TrashPage.vala" marker = _tmp16_; -#line 1177 "TrashPage.c" +#line 1215 "TrashPage.c" { GeeIterator* _source_it = NULL; GeeCollection* _tmp17_ = NULL; GeeIterator* _tmp18_ = NULL; -#line 86 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 93 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp17_ = removed; -#line 86 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 93 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp18_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 86 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 93 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _source_it = _tmp18_; -#line 86 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 93 "/home/jens/Source/shotwell/src/library/TrashPage.vala" while (TRUE) { -#line 1190 "TrashPage.c" +#line 1228 "TrashPage.c" GeeIterator* _tmp19_ = NULL; gboolean _tmp20_ = FALSE; MediaSource* source = NULL; @@ -1198,61 +1236,61 @@ static void trash_page_on_trashcan_contents_altered (TrashPage* self, GeeCollect MediaSource* _tmp26_ = NULL; DataView* _tmp27_ = NULL; DataView* _tmp28_ = NULL; -#line 86 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 93 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp19_ = _source_it; -#line 86 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 93 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp20_ = gee_iterator_next (_tmp19_); -#line 86 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 93 "/home/jens/Source/shotwell/src/library/TrashPage.vala" if (!_tmp20_) { -#line 86 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 93 "/home/jens/Source/shotwell/src/library/TrashPage.vala" break; -#line 1210 "TrashPage.c" +#line 1248 "TrashPage.c" } -#line 86 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 93 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp21_ = _source_it; -#line 86 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 93 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp22_ = gee_iterator_get (_tmp21_); -#line 86 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 93 "/home/jens/Source/shotwell/src/library/TrashPage.vala" source = (MediaSource*) _tmp22_; -#line 87 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 94 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp23_ = marker; -#line 87 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 94 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp24_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 87 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 94 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp25_ = _tmp24_; -#line 87 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 94 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp26_ = source; -#line 87 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 94 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp27_ = view_collection_get_view_for_source (_tmp25_, G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_DATA_SOURCE, DataSource)); -#line 87 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 94 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp28_ = _tmp27_; -#line 87 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 94 "/home/jens/Source/shotwell/src/library/TrashPage.vala" marker_mark (_tmp23_, G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, TYPE_DATA_OBJECT, DataObject)); -#line 87 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 94 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _g_object_unref0 (_tmp28_); -#line 87 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 94 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _data_collection_unref0 (_tmp25_); -#line 86 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 93 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _g_object_unref0 (source); -#line 1238 "TrashPage.c" +#line 1276 "TrashPage.c" } -#line 86 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 93 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _g_object_unref0 (_source_it); -#line 1242 "TrashPage.c" +#line 1280 "TrashPage.c" } -#line 88 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 95 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp29_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 88 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 95 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp30_ = _tmp29_; -#line 88 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 95 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp31_ = marker; -#line 88 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 95 "/home/jens/Source/shotwell/src/library/TrashPage.vala" data_collection_remove_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, TYPE_DATA_COLLECTION, DataCollection), _tmp31_); -#line 88 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 95 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _data_collection_unref0 (_tmp30_); -#line 84 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 91 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _g_object_unref0 (marker); -#line 1256 "TrashPage.c" +#line 1294 "TrashPage.c" } } @@ -1270,51 +1308,51 @@ static void trash_page_on_restore (TrashPage* self) { GeeCollection* _tmp9_ = NULL; TrashUntrashPhotosCommand* _tmp10_ = NULL; TrashUntrashPhotosCommand* _tmp11_ = NULL; -#line 92 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 99 "/home/jens/Source/shotwell/src/library/TrashPage.vala" g_return_if_fail (IS_TRASH_PAGE (self)); -#line 93 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 100 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 93 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 100 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp1_ = _tmp0_; -#line 93 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 100 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp2_ = view_collection_get_selected_count (_tmp1_); -#line 93 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 100 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp3_ = _tmp2_ == 0; -#line 93 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 100 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _data_collection_unref0 (_tmp1_); -#line 93 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 100 "/home/jens/Source/shotwell/src/library/TrashPage.vala" if (_tmp3_) { -#line 94 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 101 "/home/jens/Source/shotwell/src/library/TrashPage.vala" return; -#line 1290 "TrashPage.c" +#line 1328 "TrashPage.c" } -#line 96 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 103 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp4_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 96 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 103 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp5_ = _tmp4_; -#line 96 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 103 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp6_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 96 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 103 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp7_ = _tmp6_; -#line 96 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 103 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp8_ = view_collection_get_selected_sources (_tmp7_); -#line 96 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 103 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection); -#line 96 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 103 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp10_ = trash_untrash_photos_command_new (_tmp9_, FALSE); -#line 96 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 103 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp11_ = _tmp10_; -#line 96 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 103 "/home/jens/Source/shotwell/src/library/TrashPage.vala" command_manager_execute (_tmp5_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_COMMAND, Command)); -#line 96 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 103 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _g_object_unref0 (_tmp11_); -#line 96 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 103 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _g_object_unref0 (_tmp9_); -#line 96 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 103 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _data_collection_unref0 (_tmp7_); -#line 96 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 103 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _command_manager_unref0 (_tmp5_); -#line 1318 "TrashPage.c" +#line 1356 "TrashPage.c" } @@ -1323,17 +1361,17 @@ static gchar* trash_page_real_get_view_empty_message (CheckerboardPage* base) { gchar* result = NULL; const gchar* _tmp0_ = NULL; gchar* _tmp1_ = NULL; -#line 100 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 107 "/home/jens/Source/shotwell/src/library/TrashPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TRASH_PAGE, TrashPage); -#line 101 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 108 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp0_ = _ ("Trash is empty"); -#line 101 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 108 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp1_ = g_strdup (_tmp0_); -#line 101 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 108 "/home/jens/Source/shotwell/src/library/TrashPage.vala" result = _tmp1_; -#line 101 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 108 "/home/jens/Source/shotwell/src/library/TrashPage.vala" return result; -#line 1337 "TrashPage.c" +#line 1375 "TrashPage.c" } @@ -1348,55 +1386,55 @@ static void trash_page_on_delete (TrashPage* self) { GeeList* _tmp8_ = NULL; GeeCollection* _tmp9_ = NULL; const gchar* _tmp10_ = NULL; -#line 104 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 111 "/home/jens/Source/shotwell/src/library/TrashPage.vala" g_return_if_fail (IS_TRASH_PAGE (self)); -#line 106 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 113 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp1_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 106 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 113 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp2_ = _tmp1_; -#line 106 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 113 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp3_ = view_collection_get_selected_count (_tmp2_); -#line 106 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 113 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp4_ = _tmp3_ == 1; -#line 106 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 113 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _data_collection_unref0 (_tmp2_); -#line 106 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 113 "/home/jens/Source/shotwell/src/library/TrashPage.vala" if (_tmp4_) { -#line 106 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 113 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp0_ = "Deleting a Photo"; -#line 1368 "TrashPage.c" +#line 1406 "TrashPage.c" } else { const gchar* _tmp5_ = NULL; -#line 106 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 113 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp5_ = _ ("Deleting Photos"); -#line 106 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 113 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp0_ = _tmp5_; -#line 1375 "TrashPage.c" +#line 1413 "TrashPage.c" } -#line 105 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 112 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp6_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 105 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 112 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp7_ = _tmp6_; -#line 105 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 112 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp8_ = view_collection_get_selected_sources (_tmp7_); -#line 105 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 112 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection); -#line 105 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 112 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp10_ = _ ("Delete"); -#line 105 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 112 "/home/jens/Source/shotwell/src/library/TrashPage.vala" remove_from_app (_tmp9_, _tmp10_, _tmp0_); -#line 105 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 112 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _g_object_unref0 (_tmp9_); -#line 105 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 112 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _data_collection_unref0 (_tmp7_); -#line 1393 "TrashPage.c" +#line 1431 "TrashPage.c" } static gpointer _view_filter_ref0 (gpointer self) { -#line 110 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 117 "/home/jens/Source/shotwell/src/library/TrashPage.vala" return self ? view_filter_ref (self) : NULL; -#line 1400 "TrashPage.c" +#line 1438 "TrashPage.c" } @@ -1405,17 +1443,17 @@ static SearchViewFilter* trash_page_real_get_search_view_filter (CheckerboardPag SearchViewFilter* result = NULL; TrashPageTrashSearchViewFilter* _tmp0_ = NULL; SearchViewFilter* _tmp1_ = NULL; -#line 109 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 116 "/home/jens/Source/shotwell/src/library/TrashPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TRASH_PAGE, TrashPage); -#line 110 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 117 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp0_ = self->priv->search_filter; -#line 110 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 117 "/home/jens/Source/shotwell/src/library/TrashPage.vala" _tmp1_ = _view_filter_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)); -#line 110 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 117 "/home/jens/Source/shotwell/src/library/TrashPage.vala" result = _tmp1_; -#line 110 "/home/jens/Source/shotwell/src/library/TrashPage.vala" +#line 117 "/home/jens/Source/shotwell/src/library/TrashPage.vala" return result; -#line 1419 "TrashPage.c" +#line 1457 "TrashPage.c" } @@ -1444,21 +1482,21 @@ static TrashPageTrashView* trash_page_trash_view_construct (GType object_type, M _vala_assert (_tmp4_, "source.is_trashed()"); #line 11 "/home/jens/Source/shotwell/src/library/TrashPage.vala" return self; -#line 1448 "TrashPage.c" +#line 1486 "TrashPage.c" } static TrashPageTrashView* trash_page_trash_view_new (MediaSource* source) { #line 11 "/home/jens/Source/shotwell/src/library/TrashPage.vala" return trash_page_trash_view_construct (TRASH_PAGE_TYPE_TRASH_VIEW, source); -#line 1455 "TrashPage.c" +#line 1493 "TrashPage.c" } static void trash_page_trash_view_class_init (TrashPageTrashViewClass * klass) { #line 10 "/home/jens/Source/shotwell/src/library/TrashPage.vala" trash_page_trash_view_parent_class = g_type_class_peek_parent (klass); -#line 1462 "TrashPage.c" +#line 1500 "TrashPage.c" } @@ -1487,7 +1525,7 @@ static guint trash_page_trash_search_view_filter_real_get_criteria (SearchViewFi result = (guint) ((((SEARCH_FILTER_CRITERIA_TEXT | SEARCH_FILTER_CRITERIA_FLAG) | SEARCH_FILTER_CRITERIA_MEDIA) | SEARCH_FILTER_CRITERIA_RATING) | SEARCH_FILTER_CRITERIA_SAVEDSEARCH); #line 20 "/home/jens/Source/shotwell/src/library/TrashPage.vala" return result; -#line 1491 "TrashPage.c" +#line 1529 "TrashPage.c" } @@ -1497,14 +1535,14 @@ static TrashPageTrashSearchViewFilter* trash_page_trash_search_view_filter_const self = (TrashPageTrashSearchViewFilter*) default_search_view_filter_construct (object_type); #line 18 "/home/jens/Source/shotwell/src/library/TrashPage.vala" return self; -#line 1501 "TrashPage.c" +#line 1539 "TrashPage.c" } static TrashPageTrashSearchViewFilter* trash_page_trash_search_view_filter_new (void) { #line 18 "/home/jens/Source/shotwell/src/library/TrashPage.vala" return trash_page_trash_search_view_filter_construct (TRASH_PAGE_TYPE_TRASH_SEARCH_VIEW_FILTER); -#line 1508 "TrashPage.c" +#line 1546 "TrashPage.c" } @@ -1513,7 +1551,7 @@ static void trash_page_trash_search_view_filter_class_init (TrashPageTrashSearch trash_page_trash_search_view_filter_parent_class = g_type_class_peek_parent (klass); #line 18 "/home/jens/Source/shotwell/src/library/TrashPage.vala" ((SearchViewFilterClass *) klass)->get_criteria = trash_page_trash_search_view_filter_real_get_criteria; -#line 1517 "TrashPage.c" +#line 1555 "TrashPage.c" } @@ -1543,6 +1581,8 @@ static void trash_page_class_init (TrashPageClass * klass) { #line 7 "/home/jens/Source/shotwell/src/library/TrashPage.vala" ((PageClass *) klass)->add_actions = trash_page_real_add_actions; #line 7 "/home/jens/Source/shotwell/src/library/TrashPage.vala" + ((PageClass *) klass)->remove_actions = trash_page_real_remove_actions; +#line 7 "/home/jens/Source/shotwell/src/library/TrashPage.vala" ((CheckerboardPageClass *) klass)->get_view_tracker = trash_page_real_get_view_tracker; #line 7 "/home/jens/Source/shotwell/src/library/TrashPage.vala" ((PageClass *) klass)->update_actions = trash_page_real_update_actions; @@ -1552,7 +1592,7 @@ static void trash_page_class_init (TrashPageClass * klass) { ((CheckerboardPageClass *) klass)->get_search_view_filter = trash_page_real_get_search_view_filter; #line 7 "/home/jens/Source/shotwell/src/library/TrashPage.vala" G_OBJECT_CLASS (klass)->finalize = trash_page_finalize; -#line 1556 "TrashPage.c" +#line 1596 "TrashPage.c" } @@ -1564,7 +1604,7 @@ static void trash_page_instance_init (TrashPage * self) { _tmp0_ = trash_page_trash_search_view_filter_new (); #line 25 "/home/jens/Source/shotwell/src/library/TrashPage.vala" self->priv->search_filter = _tmp0_; -#line 1568 "TrashPage.c" +#line 1608 "TrashPage.c" } @@ -1578,7 +1618,7 @@ static void trash_page_finalize (GObject* obj) { _core_tracker_unref0 (self->priv->tracker); #line 7 "/home/jens/Source/shotwell/src/library/TrashPage.vala" G_OBJECT_CLASS (trash_page_parent_class)->finalize (obj); -#line 1582 "TrashPage.c" +#line 1622 "TrashPage.c" } diff --git a/src/library/TrashPage.vala b/src/library/TrashPage.vala index 943c5e1..c06fbbf 100644 --- a/src/library/TrashPage.vala +++ b/src/library/TrashPage.vala @@ -52,10 +52,17 @@ public class TrashPage : CheckerboardPage { { "Restore", on_restore } }; - protected override void add_actions () { - base.add_actions (); + protected override void add_actions(GLib.ActionMap map) { + base.add_actions(map); - AppWindow.get_instance ().add_action_entries (entries, this); + map.add_action_entries (entries, this); + } + + protected override void remove_actions(GLib.ActionMap map) { + base.remove_actions(map); + foreach (var entry in entries) { + map.remove_action(entry.name); + } } public override Core.ViewTracker? get_view_tracker() { diff --git a/src/library/TrashSidebarEntry.c b/src/library/TrashSidebarEntry.c index 0346c07..0eca1b9 100644 --- a/src/library/TrashSidebarEntry.c +++ b/src/library/TrashSidebarEntry.c @@ -1,4 +1,4 @@ -/* TrashSidebarEntry.c generated by valac 0.32.1, the Vala compiler +/* TrashSidebarEntry.c generated by valac 0.34.4, the Vala compiler * generated from TrashSidebarEntry.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -1,4 +1,4 @@ -/* main.c generated by valac 0.32.1, the Vala compiler +/* main.c generated by valac 0.34.4, the Vala compiler * generated from main.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -835,11 +835,11 @@ void library_exec (gchar** mounts, int mounts_length1) { #line 35 "/home/jens/Source/shotwell/src/main.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 838 "main.c" - goto __catch218_g_error; + goto __catch220_g_error; } } - goto __finally218; - __catch218_g_error: + goto __finally220; + __catch220_g_error: { GError* err = NULL; GError* _tmp7_ = NULL; @@ -860,7 +860,7 @@ void library_exec (gchar** mounts, int mounts_length1) { return; #line 862 "main.c" } - __finally218: + __finally220: #line 34 "/home/jens/Source/shotwell/src/main.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 34 "/home/jens/Source/shotwell/src/main.vala" @@ -1218,7 +1218,7 @@ void library_exec (gchar** mounts, int mounts_length1) { #line 109 "/home/jens/Source/shotwell/src/main.vala" _g_free0 (icon_path); #line 1214 "main.c" - goto __catch219_g_error; + goto __catch221_g_error; } #line 109 "/home/jens/Source/shotwell/src/main.vala" _tmp72_ = progress_dialog; @@ -1230,8 +1230,8 @@ void library_exec (gchar** mounts, int mounts_length1) { _g_free0 (icon_path); #line 1225 "main.c" } - goto __finally219; - __catch219_g_error: + goto __finally221; + __catch221_g_error: { GError* err = NULL; GError* _tmp73_ = NULL; @@ -1251,7 +1251,7 @@ void library_exec (gchar** mounts, int mounts_length1) { _g_error_free0 (err); #line 1245 "main.c" } - __finally219: + __finally221: #line 107 "/home/jens/Source/shotwell/src/main.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 107 "/home/jens/Source/shotwell/src/main.vala" @@ -1927,11 +1927,11 @@ void editing_exec (const gchar* filename) { #line 253 "/home/jens/Source/shotwell/src/main.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1922 "main.c" - goto __catch220_g_error; + goto __catch222_g_error; } } - goto __finally220; - __catch220_g_error: + goto __finally222; + __catch222_g_error: { GError* err = NULL; GError* _tmp3_ = NULL; @@ -1954,7 +1954,7 @@ void editing_exec (const gchar* filename) { return; #line 1948 "main.c" } - __finally220: + __finally222: #line 252 "/home/jens/Source/shotwell/src/main.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 252 "/home/jens/Source/shotwell/src/main.vala" @@ -2350,17 +2350,17 @@ static gboolean string_contains (const gchar* self, const gchar* needle) { gboolean result = FALSE; const gchar* _tmp0_ = NULL; gchar* _tmp1_ = NULL; -#line 1376 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1376 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, FALSE); -#line 1376 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1376 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (needle != NULL, FALSE); -#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = needle; -#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = strstr ((gchar*) self, (gchar*) _tmp0_); -#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp1_ != NULL; -#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 2358 "main.c" } @@ -2468,11 +2468,11 @@ void _vala_main (gchar** args, int args_length1) { #line 338 "/home/jens/Source/shotwell/src/main.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 2463 "main.c" - goto __catch221_g_error; + goto __catch223_g_error; } } - goto __finally221; - __catch221_g_error: + goto __finally223; + __catch223_g_error: { GError* e = NULL; GError* _tmp15_ = NULL; @@ -2517,7 +2517,7 @@ void _vala_main (gchar** args, int args_length1) { return; #line 2511 "main.c" } - __finally221: + __finally223: #line 337 "/home/jens/Source/shotwell/src/main.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 337 "/home/jens/Source/shotwell/src/main.vala" @@ -2926,7 +2926,7 @@ void _vala_main (gchar** args, int args_length1) { #line 442 "/home/jens/Source/shotwell/src/main.vala" _g_object_unref0 (src); #line 2921 "main.c" - goto __catch222_g_error; + goto __catch224_g_error; } #line 439 "/home/jens/Source/shotwell/src/main.vala" _g_object_unref0 (dest); @@ -2934,8 +2934,8 @@ void _vala_main (gchar** args, int args_length1) { _g_object_unref0 (src); #line 2928 "main.c" } - goto __finally222; - __catch222_g_error: + goto __finally224; + __catch224_g_error: { GError* _error_ = NULL; GError* _tmp85_ = NULL; @@ -2954,7 +2954,7 @@ void _vala_main (gchar** args, int args_length1) { _g_error_free0 (_error_); #line 2948 "main.c" } - __finally222: + __finally224: #line 439 "/home/jens/Source/shotwell/src/main.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 439 "/home/jens/Source/shotwell/src/main.vala" diff --git a/src/photos/BmpSupport.c b/src/photos/BmpSupport.c index 11ad8c6..ae80b52 100644 --- a/src/photos/BmpSupport.c +++ b/src/photos/BmpSupport.c @@ -1,4 +1,4 @@ -/* BmpSupport.c generated by valac 0.32.1, the Vala compiler +/* BmpSupport.c generated by valac 0.34.4, the Vala compiler * generated from BmpSupport.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -1024,7 +1024,7 @@ static gboolean photos_bmp_sniffer_is_bmp_file (GFile* file, GError** error) { #line 64 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" _tmp4__length1 = file_lead_sequence_length1; #line 64 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - g_input_stream_read (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, G_TYPE_INPUT_STREAM, GInputStream), _tmp4_, (gsize) _tmp4__length1, NULL, &_inner_error_); + g_input_stream_read (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, g_input_stream_get_type (), GInputStream), _tmp4_, (gsize) _tmp4__length1, NULL, &_inner_error_); #line 64 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 64 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" diff --git a/src/photos/GRaw.c b/src/photos/GRaw.c index 36e9c88..2b56cbf 100644 --- a/src/photos/GRaw.c +++ b/src/photos/GRaw.c @@ -1,4 +1,4 @@ -/* GRaw.c generated by valac 0.32.1, the Vala compiler +/* GRaw.c generated by valac 0.34.4, the Vala compiler * generated from GRaw.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -498,7 +498,7 @@ GRawProcessedImage* graw_processed_image_construct_from_thumb (GType object_type #line 129 "/home/jens/Source/shotwell/src/photos/GRaw.vala" _tmp10_ = _tmp9_; #line 129 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp11_ = gdk_pixbuf_new_from_stream (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, G_TYPE_INPUT_STREAM, GInputStream), NULL, &_inner_error_); + _tmp11_ = gdk_pixbuf_new_from_stream (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, g_input_stream_get_type (), GInputStream), NULL, &_inner_error_); #line 129 "/home/jens/Source/shotwell/src/photos/GRaw.vala" _tmp12_ = _tmp11_; #line 129 "/home/jens/Source/shotwell/src/photos/GRaw.vala" @@ -510,7 +510,7 @@ GRawProcessedImage* graw_processed_image_construct_from_thumb (GType object_type #line 129 "/home/jens/Source/shotwell/src/photos/GRaw.vala" _g_bytes_unref0 (bytes); #line 513 "GRaw.c" - goto __catch27_g_error; + goto __catch29_g_error; } #line 129 "/home/jens/Source/shotwell/src/photos/GRaw.vala" _tmp13_ = _tmp7_; @@ -526,8 +526,8 @@ GRawProcessedImage* graw_processed_image_construct_from_thumb (GType object_type _g_bytes_unref0 (bytes); #line 528 "GRaw.c" } - goto __finally27; - __catch27_g_error: + goto __finally29; + __catch29_g_error: { GError* err = NULL; GError* _tmp14_ = NULL; @@ -548,9 +548,9 @@ GRawProcessedImage* graw_processed_image_construct_from_thumb (GType object_type #line 132 "/home/jens/Source/shotwell/src/photos/GRaw.vala" _g_error_free0 (err); #line 551 "GRaw.c" - goto __finally27; + goto __finally29; } - __finally27: + __finally29: #line 127 "/home/jens/Source/shotwell/src/photos/GRaw.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 127 "/home/jens/Source/shotwell/src/photos/GRaw.vala" diff --git a/src/photos/GdkSupport.c b/src/photos/GdkSupport.c index 010572b..b9e36c1 100644 --- a/src/photos/GdkSupport.c +++ b/src/photos/GdkSupport.c @@ -1,4 +1,4 @@ -/* GdkSupport.c generated by valac 0.32.1, the Vala compiler +/* GdkSupport.c generated by valac 0.34.4, the Vala compiler * generated from GdkSupport.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -628,11 +628,11 @@ static DetectedPhotoInformation* gdk_sniffer_real_sniff (PhotoFileSniffer* base, #line 51 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 631 "GdkSupport.c" - goto __catch28_g_error; + goto __catch30_g_error; } } - goto __finally28; - __catch28_g_error: + goto __finally30; + __catch30_g_error: { GError* err = NULL; DetectedPhotoInformation* _tmp11_ = NULL; @@ -650,7 +650,7 @@ static DetectedPhotoInformation* gdk_sniffer_real_sniff (PhotoFileSniffer* base, _g_error_free0 (err); #line 652 "GdkSupport.c" } - __finally28: + __finally30: #line 50 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 50 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" @@ -930,7 +930,7 @@ static DetectedPhotoInformation* gdk_sniffer_real_sniff (PhotoFileSniffer* base, #line 75 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" _tmp47__length1 = buffer_length1; #line 75 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp48_ = g_input_stream_read (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, G_TYPE_INPUT_STREAM, GInputStream), _tmp47_, (gsize) _tmp47__length1, NULL, &_inner_error_); + _tmp48_ = g_input_stream_read (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, g_input_stream_get_type (), GInputStream), _tmp47_, (gsize) _tmp47__length1, NULL, &_inner_error_); #line 75 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" bytes_read = (gsize) _tmp48_; #line 75 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" @@ -1084,11 +1084,11 @@ static DetectedPhotoInformation* gdk_sniffer_real_sniff (PhotoFileSniffer* base, #line 95 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1087 "GdkSupport.c" - goto __catch29_g_error; + goto __catch31_g_error; } } - goto __finally29; - __catch29_g_error: + goto __finally31; + __catch31_g_error: { GError* err = NULL; #line 94 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" @@ -1099,7 +1099,7 @@ static DetectedPhotoInformation* gdk_sniffer_real_sniff (PhotoFileSniffer* base, _g_error_free0 (err); #line 1101 "GdkSupport.c" } - __finally29: + __finally31: #line 94 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 94 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" @@ -1127,7 +1127,7 @@ static DetectedPhotoInformation* gdk_sniffer_real_sniff (PhotoFileSniffer* base, #line 100 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" _tmp69_ = fins; #line 100 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - g_input_stream_close (G_TYPE_CHECK_INSTANCE_CAST (_tmp69_, G_TYPE_INPUT_STREAM, GInputStream), NULL, &_inner_error_); + g_input_stream_close (G_TYPE_CHECK_INSTANCE_CAST (_tmp69_, g_input_stream_get_type (), GInputStream), NULL, &_inner_error_); #line 100 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 100 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" diff --git a/src/photos/JfifSupport.c b/src/photos/JfifSupport.c index 3c86a7a..113c56c 100644 --- a/src/photos/JfifSupport.c +++ b/src/photos/JfifSupport.c @@ -1,4 +1,4 @@ -/* JfifSupport.c generated by valac 0.32.1, the Vala compiler +/* JfifSupport.c generated by valac 0.34.4, the Vala compiler * generated from JfifSupport.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -1870,7 +1870,7 @@ gint jpeg_read_marker (GFileInputStream* fins, JpegMarker* marker, GError** erro #line 216 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" _tmp0_ = fins; #line 216 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp1_ = g_data_input_stream_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, G_TYPE_INPUT_STREAM, GInputStream)); + _tmp1_ = g_data_input_stream_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, g_input_stream_get_type (), GInputStream)); #line 216 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" dins = _tmp1_; #line 217 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" diff --git a/src/photos/PhotoFileAdapter.c b/src/photos/PhotoFileAdapter.c index 2f05603..59a0632 100644 --- a/src/photos/PhotoFileAdapter.c +++ b/src/photos/PhotoFileAdapter.c @@ -1,4 +1,4 @@ -/* PhotoFileAdapter.c generated by valac 0.32.1, the Vala compiler +/* PhotoFileAdapter.c generated by valac 0.34.4, the Vala compiler * generated from PhotoFileAdapter.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -370,7 +370,7 @@ GFile* photo_file_adapter_get_file (PhotoFileAdapter* self) { _result_ = _tmp5_; #line 372 "PhotoFileAdapter.c" } - __finally22: + __finally24: { GFile* _tmp6_ = NULL; #line 40 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" diff --git a/src/photos/PhotoFileFormat.c b/src/photos/PhotoFileFormat.c index 6e05342..24f6bd3 100644 --- a/src/photos/PhotoFileFormat.c +++ b/src/photos/PhotoFileFormat.c @@ -1,4 +1,4 @@ -/* PhotoFileFormat.c generated by valac 0.32.1, the Vala compiler +/* PhotoFileFormat.c generated by valac 0.34.4, the Vala compiler * generated from PhotoFileFormat.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/photos/PhotoFileSniffer.c b/src/photos/PhotoFileSniffer.c index 8d44d6b..50a71b1 100644 --- a/src/photos/PhotoFileSniffer.c +++ b/src/photos/PhotoFileSniffer.c @@ -1,4 +1,4 @@ -/* PhotoFileSniffer.c generated by valac 0.32.1, the Vala compiler +/* PhotoFileSniffer.c generated by valac 0.34.4, the Vala compiler * generated from PhotoFileSniffer.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/photos/PhotoMetadata.c b/src/photos/PhotoMetadata.c index 148df86..7748685 100644 --- a/src/photos/PhotoMetadata.c +++ b/src/photos/PhotoMetadata.c @@ -1,4 +1,4 @@ -/* PhotoMetadata.c generated by valac 0.32.1, the Vala compiler +/* PhotoMetadata.c generated by valac 0.34.4, the Vala compiler * generated from PhotoMetadata.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -9,7 +9,7 @@ /**/ /* PhotoMetadata*/ /**/ -/* PhotoMetadata is a wrapper class around gexiv2. The reasoning for this is (a) to facilitiate*/ +/* PhotoMetadata is a wrapper class around gexiv2. The reasoning for this is (a) to facilitate*/ /* interface changes to meet Shotwell's requirements without needing modifications of the library*/ /* itself, and (b) some requirements for this class (i.e. obtaining raw metadata) is not available*/ /* in gexiv2, and so must be done by hand.*/ @@ -2058,7 +2058,7 @@ static GdkPixbuf* photo_preview_real_get_pixbuf (PhotoPreview* self, GError** er #line 201 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" _tmp5_ = _tmp4_; #line 201 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp6_ = gdk_pixbuf_new_from_stream (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, G_TYPE_INPUT_STREAM, GInputStream), NULL, &_inner_error_); + _tmp6_ = gdk_pixbuf_new_from_stream (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, g_input_stream_get_type (), GInputStream), NULL, &_inner_error_); #line 201 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" _tmp7_ = _tmp6_; #line 201 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" @@ -2068,7 +2068,7 @@ static GdkPixbuf* photo_preview_real_get_pixbuf (PhotoPreview* self, GError** er #line 201 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 2071 "PhotoMetadata.c" - goto __catch23_g_error; + goto __catch25_g_error; } #line 201 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" _tmp8_ = _tmp2_; @@ -2084,8 +2084,8 @@ static GdkPixbuf* photo_preview_real_get_pixbuf (PhotoPreview* self, GError** er return result; #line 2086 "PhotoMetadata.c" } - goto __finally23; - __catch23_g_error: + goto __finally25; + __catch25_g_error: { GError* err = NULL; const gchar* _tmp9_ = NULL; @@ -2113,7 +2113,7 @@ static GdkPixbuf* photo_preview_real_get_pixbuf (PhotoPreview* self, GError** er return result; #line 2115 "PhotoMetadata.c" } - __finally23: + __finally25: #line 200 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" g_propagate_error (error, _inner_error_); #line 200 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" @@ -5336,7 +5336,7 @@ MetadataDateTime* photo_metadata_get_date_time (PhotoMetadata* self, const gchar #line 642 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 5335 "PhotoMetadata.c" - goto __catch24_g_error; + goto __catch26_g_error; } #line 642 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" _tmp8_ = _tmp5_; @@ -5382,7 +5382,7 @@ MetadataDateTime* photo_metadata_get_date_time (PhotoMetadata* self, const gchar #line 651 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 5381 "PhotoMetadata.c" - goto __catch24_g_error; + goto __catch26_g_error; } #line 651 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" _tmp12_ = _tmp9_; @@ -5400,8 +5400,8 @@ MetadataDateTime* photo_metadata_get_date_time (PhotoMetadata* self, const gchar } } } - goto __finally24; - __catch24_g_error: + goto __finally26; + __catch26_g_error: { GError* err = NULL; const gchar* _tmp13_ = NULL; @@ -5432,7 +5432,7 @@ MetadataDateTime* photo_metadata_get_date_time (PhotoMetadata* self, const gchar return result; #line 5430 "PhotoMetadata.c" } - __finally24: + __finally26: #line 639 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" _g_free0 (value); #line 639 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" @@ -6719,19 +6719,19 @@ static gchar* string_strip (const gchar* self) { gchar* _result_ = NULL; gchar* _tmp0_ = NULL; const gchar* _tmp1_ = NULL; -#line 1207 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1207 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, NULL); -#line 1208 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1208 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = g_strdup (self); -#line 1208 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1208 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _result_ = _tmp0_; -#line 1209 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1209 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = _result_; -#line 1209 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1209 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_strstrip (_tmp1_); -#line 1210 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1210 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _result_; -#line 1210 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1210 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 6732 "PhotoMetadata.c" } @@ -6741,17 +6741,17 @@ static gboolean string_contains (const gchar* self, const gchar* needle) { gboolean result = FALSE; const gchar* _tmp0_ = NULL; gchar* _tmp1_ = NULL; -#line 1376 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1376 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, FALSE); -#line 1376 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1376 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (needle != NULL, FALSE); -#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = needle; -#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = strstr ((gchar*) self, (gchar*) _tmp0_); -#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp1_ != NULL; -#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 6752 "PhotoMetadata.c" } @@ -7296,11 +7296,11 @@ static gpointer _hierarchical_keyword_field_ref0 (gpointer self) { static gchar* string_replace (const gchar* self, const gchar* old, const gchar* replacement) { gchar* result = NULL; GError * _inner_error_ = NULL; -#line 1380 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1380 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, NULL); -#line 1380 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1380 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (old != NULL, NULL); -#line 1380 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1380 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (replacement != NULL, NULL); #line 7301 "PhotoMetadata.c" { @@ -7315,98 +7315,98 @@ static gchar* string_replace (const gchar* self, const gchar* old, const gchar* const gchar* _tmp7_ = NULL; gchar* _tmp8_ = NULL; gchar* _tmp9_ = NULL; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = old; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = g_regex_escape_string (_tmp0_, -1); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = _tmp1_; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = g_regex_new (_tmp2_, 0, 0, &_inner_error_); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = _tmp3_; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_free0 (_tmp2_); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" regex = _tmp4_; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_inner_error_->domain == G_REGEX_ERROR) { #line 7332 "PhotoMetadata.c" - goto __catch25_g_regex_error; + goto __catch27_g_regex_error; } -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_clear_error (&_inner_error_); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return NULL; #line 7341 "PhotoMetadata.c" } -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp6_ = regex; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp7_ = replacement; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp8_ = g_regex_replace_literal (_tmp6_, self, (gssize) -1, 0, _tmp7_, 0, &_inner_error_); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = _tmp8_; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_regex_unref0 (regex); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_inner_error_->domain == G_REGEX_ERROR) { #line 7357 "PhotoMetadata.c" - goto __catch25_g_regex_error; + goto __catch27_g_regex_error; } -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_regex_unref0 (regex); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_clear_error (&_inner_error_); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return NULL; #line 7368 "PhotoMetadata.c" } -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp9_ = _tmp5_; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = NULL; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp9_; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_free0 (_tmp5_); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_regex_unref0 (regex); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 7382 "PhotoMetadata.c" } - goto __finally25; - __catch25_g_regex_error: + goto __finally27; + __catch27_g_regex_error: { GError* e = NULL; -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" e = _inner_error_; -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _inner_error_ = NULL; -#line 1385 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1385 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_assert_not_reached (); -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_error_free0 (e); #line 7396 "PhotoMetadata.c" } - __finally25: -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" + __finally27: +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_clear_error (&_inner_error_); -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return NULL; #line 7407 "PhotoMetadata.c" } @@ -7420,37 +7420,37 @@ static glong string_strnlen (gchar* str, glong maxlen) { glong _tmp1_ = 0L; gchar* _tmp2_ = NULL; gchar* _tmp3_ = NULL; -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = str; -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = maxlen; -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = memchr (_tmp0_, 0, (gsize) _tmp1_); -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" end = _tmp2_; -#line 1296 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1296 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = end; -#line 1296 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1296 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp3_ == NULL) { #line 7431 "PhotoMetadata.c" glong _tmp4_ = 0L; -#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = maxlen; -#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp4_; -#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 7439 "PhotoMetadata.c" } else { gchar* _tmp5_ = NULL; gchar* _tmp6_ = NULL; -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = end; -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp6_ = str; -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = (glong) (_tmp5_ - _tmp6_); -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 7451 "PhotoMetadata.c" } @@ -7470,112 +7470,112 @@ static gchar* string_substring (const gchar* self, glong offset, glong len) { glong _tmp20_ = 0L; glong _tmp21_ = 0L; gchar* _tmp22_ = NULL; -#line 1306 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1306 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, NULL); -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = offset; -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp1_ >= ((glong) 0)) { #line 7475 "PhotoMetadata.c" glong _tmp2_ = 0L; -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = len; -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = _tmp2_ >= ((glong) 0); #line 7481 "PhotoMetadata.c" } else { -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = FALSE; #line 7485 "PhotoMetadata.c" } -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp0_) { #line 7489 "PhotoMetadata.c" glong _tmp3_ = 0L; glong _tmp4_ = 0L; glong _tmp5_ = 0L; -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = offset; -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = len; -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = string_strnlen ((gchar*) self, _tmp3_ + _tmp4_); -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" string_length = _tmp5_; #line 7501 "PhotoMetadata.c" } else { gint _tmp6_ = 0; gint _tmp7_ = 0; -#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp6_ = strlen (self); -#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp7_ = _tmp6_; -#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" string_length = (glong) _tmp7_; #line 7511 "PhotoMetadata.c" } -#line 1315 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1315 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp8_ = offset; -#line 1315 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1315 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp8_ < ((glong) 0)) { #line 7517 "PhotoMetadata.c" glong _tmp9_ = 0L; glong _tmp10_ = 0L; glong _tmp11_ = 0L; -#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp9_ = string_length; -#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp10_ = offset; -#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" offset = _tmp9_ + _tmp10_; -#line 1317 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1317 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp11_ = offset; -#line 1317 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1317 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (_tmp11_ >= ((glong) 0), NULL); #line 7531 "PhotoMetadata.c" } else { glong _tmp12_ = 0L; glong _tmp13_ = 0L; -#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp12_ = offset; -#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp13_ = string_length; -#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (_tmp12_ <= _tmp13_, NULL); #line 7541 "PhotoMetadata.c" } -#line 1321 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1321 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp14_ = len; -#line 1321 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1321 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp14_ < ((glong) 0)) { #line 7547 "PhotoMetadata.c" glong _tmp15_ = 0L; glong _tmp16_ = 0L; -#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp15_ = string_length; -#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp16_ = offset; -#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" len = _tmp15_ - _tmp16_; #line 7556 "PhotoMetadata.c" } -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp17_ = offset; -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp18_ = len; -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp19_ = string_length; -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail ((_tmp17_ + _tmp18_) <= _tmp19_, NULL); -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp20_ = offset; -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp21_ = len; -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp22_ = g_strndup (((gchar*) self) + _tmp20_, (gsize) _tmp21_); -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp22_; -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 7576 "PhotoMetadata.c" } @@ -8267,7 +8267,7 @@ GeeSet* photo_metadata_get_hierarchical_keywords (PhotoMetadata* self) { #line 1091 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 8265 "PhotoMetadata.c" - goto __catch26_g_error; + goto __catch28_g_error; } #line 1092 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" _tmp23_ = transformed_values; @@ -8279,8 +8279,8 @@ GeeSet* photo_metadata_get_hierarchical_keywords (PhotoMetadata* self) { _g_object_unref0 (transformed); #line 8276 "PhotoMetadata.c" } - goto __finally26; - __catch26_g_error: + goto __finally28; + __catch28_g_error: { GError* _error_ = NULL; const gchar* _tmp25_ = NULL; @@ -8302,7 +8302,7 @@ GeeSet* photo_metadata_get_hierarchical_keywords (PhotoMetadata* self) { _g_error_free0 (_error_); #line 8299 "PhotoMetadata.c" } - __finally26: + __finally28: #line 1090 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1090 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" diff --git a/src/photos/PhotoMetadata.vala b/src/photos/PhotoMetadata.vala index 814ea6b..7764415 100644 --- a/src/photos/PhotoMetadata.vala +++ b/src/photos/PhotoMetadata.vala @@ -7,7 +7,7 @@ // // PhotoMetadata // -// PhotoMetadata is a wrapper class around gexiv2. The reasoning for this is (a) to facilitiate +// PhotoMetadata is a wrapper class around gexiv2. The reasoning for this is (a) to facilitate // interface changes to meet Shotwell's requirements without needing modifications of the library // itself, and (b) some requirements for this class (i.e. obtaining raw metadata) is not available // in gexiv2, and so must be done by hand. diff --git a/src/photos/Photos.c b/src/photos/Photos.c index 434f905..a5a2b83 100644 --- a/src/photos/Photos.c +++ b/src/photos/Photos.c @@ -1,4 +1,4 @@ -/* Photos.c generated by valac 0.32.1, the Vala compiler +/* Photos.c generated by valac 0.34.4, the Vala compiler * generated from Photos.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/photos/PngSupport.c b/src/photos/PngSupport.c index 98d4cd2..3229f52 100644 --- a/src/photos/PngSupport.c +++ b/src/photos/PngSupport.c @@ -1,4 +1,4 @@ -/* PngSupport.c generated by valac 0.32.1, the Vala compiler +/* PngSupport.c generated by valac 0.34.4, the Vala compiler * generated from PngSupport.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -1020,7 +1020,7 @@ static gboolean png_sniffer_is_png_file (GFile* file, GError** error) { #line 62 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" _tmp4__length1 = file_lead_sequence_length1; #line 62 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - g_input_stream_read (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, G_TYPE_INPUT_STREAM, GInputStream), _tmp4_, (gsize) _tmp4__length1, NULL, &_inner_error_); + g_input_stream_read (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, g_input_stream_get_type (), GInputStream), _tmp4_, (gsize) _tmp4__length1, NULL, &_inner_error_); #line 62 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 62 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" diff --git a/src/photos/RawSupport.c b/src/photos/RawSupport.c index f46b61e..6569e3b 100644 --- a/src/photos/RawSupport.c +++ b/src/photos/RawSupport.c @@ -1,4 +1,4 @@ -/* RawSupport.c generated by valac 0.32.1, the Vala compiler +/* RawSupport.c generated by valac 0.34.4, the Vala compiler * generated from RawSupport.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -1745,7 +1745,7 @@ static DetectedPhotoInformation* raw_sniffer_real_sniff (PhotoFileSniffer* base, #line 176 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" if (_inner_error_->domain == GRAW_EXCEPTION) { #line 1748 "RawSupport.c" - goto __catch30_graw_exception; + goto __catch32_graw_exception; } #line 176 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" _graw_processor_unref0 (processor); @@ -1768,7 +1768,7 @@ static DetectedPhotoInformation* raw_sniffer_real_sniff (PhotoFileSniffer* base, #line 177 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" if (_inner_error_->domain == GRAW_EXCEPTION) { #line 1771 "RawSupport.c" - goto __catch30_graw_exception; + goto __catch32_graw_exception; } #line 177 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" _graw_processor_unref0 (processor); @@ -1791,7 +1791,7 @@ static DetectedPhotoInformation* raw_sniffer_real_sniff (PhotoFileSniffer* base, #line 178 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" if (_inner_error_->domain == GRAW_EXCEPTION) { #line 1794 "RawSupport.c" - goto __catch30_graw_exception; + goto __catch32_graw_exception; } #line 178 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" _graw_processor_unref0 (processor); @@ -1806,8 +1806,8 @@ static DetectedPhotoInformation* raw_sniffer_real_sniff (PhotoFileSniffer* base, #line 1807 "RawSupport.c" } } - goto __finally30; - __catch30_graw_exception: + goto __finally32; + __catch32_graw_exception: { GError* exception = NULL; GError* _tmp11_ = NULL; @@ -1848,9 +1848,9 @@ static DetectedPhotoInformation* raw_sniffer_real_sniff (PhotoFileSniffer* base, #line 183 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" _g_error_free0 (exception); #line 1851 "RawSupport.c" - goto __finally30; + goto __finally32; } - __finally30: + __finally32: #line 175 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 175 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" @@ -1921,7 +1921,7 @@ static DetectedPhotoInformation* raw_sniffer_real_sniff (PhotoFileSniffer* base, #line 193 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1924 "RawSupport.c" - goto __catch31_g_error; + goto __catch33_g_error; } #line 193 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" _tmp32_ = detected; @@ -1937,8 +1937,8 @@ static DetectedPhotoInformation* raw_sniffer_real_sniff (PhotoFileSniffer* base, _media_metadata_unref0 (_tmp29_); #line 1939 "RawSupport.c" } - goto __finally31; - __catch31_g_error: + goto __finally33; + __catch33_g_error: { GError* err = NULL; #line 192 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" @@ -1949,7 +1949,7 @@ static DetectedPhotoInformation* raw_sniffer_real_sniff (PhotoFileSniffer* base, _g_error_free0 (err); #line 1951 "RawSupport.c" } - __finally31: + __finally33: #line 192 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 192 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" diff --git a/src/photos/TiffSupport.c b/src/photos/TiffSupport.c index 2e1282e..1b70973 100644 --- a/src/photos/TiffSupport.c +++ b/src/photos/TiffSupport.c @@ -1,4 +1,4 @@ -/* TiffSupport.c generated by valac 0.32.1, the Vala compiler +/* TiffSupport.c generated by valac 0.34.4, the Vala compiler * generated from TiffSupport.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -1601,7 +1601,7 @@ gboolean photos_is_tiff (GFile* file, GCancellable* cancellable, GError** error) #line 1602 "TiffSupport.c" } #line 155 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp3_ = g_data_input_stream_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, G_TYPE_INPUT_STREAM, GInputStream)); + _tmp3_ = g_data_input_stream_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, g_input_stream_get_type (), GInputStream)); #line 155 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" dins = _tmp3_; #line 159 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" diff --git a/src/plugins/DataImportsInterfaces.c b/src/plugins/DataImportsInterfaces.c index 96920a9..57e5069 100644 --- a/src/plugins/DataImportsInterfaces.c +++ b/src/plugins/DataImportsInterfaces.c @@ -1,4 +1,4 @@ -/* DataImportsInterfaces.c generated by valac 0.32.1, the Vala compiler +/* DataImportsInterfaces.c generated by valac 0.34.4, the Vala compiler * generated from DataImportsInterfaces.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/plugins/ManifestWidget.c b/src/plugins/ManifestWidget.c index a542964..2571817 100644 --- a/src/plugins/ManifestWidget.c +++ b/src/plugins/ManifestWidget.c @@ -1,4 +1,4 @@ -/* ManifestWidget.c generated by valac 0.32.1, the Vala compiler +/* ManifestWidget.c generated by valac 0.34.4, the Vala compiler * generated from ManifestWidget.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -245,19 +245,19 @@ static gchar* string_strip (const gchar* self) { gchar* _result_ = NULL; gchar* _tmp0_ = NULL; const gchar* _tmp1_ = NULL; -#line 1207 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1207 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, NULL); -#line 1208 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1208 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = g_strdup (self); -#line 1208 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1208 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _result_ = _tmp0_; -#line 1209 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1209 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = _result_; -#line 1209 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1209 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_strstrip (_tmp1_); -#line 1210 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1210 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _result_; -#line 1210 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1210 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 263 "ManifestWidget.c" } @@ -1402,7 +1402,7 @@ PluginsManifestListView* plugins_manifest_list_view_construct (GType object_type #line 175 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" _tmp46_ = _tmp45_; #line 175 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp47_ = gtk_icon_theme_lookup_by_gicon (_tmp41_, G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, G_TYPE_ICON, GIcon), PLUGINS_MANIFEST_LIST_VIEW_ICON_SIZE, 0); + _tmp47_ = gtk_icon_theme_lookup_by_gicon (_tmp41_, G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, g_icon_get_type (), GIcon), PLUGINS_MANIFEST_LIST_VIEW_ICON_SIZE, 0); #line 175 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" _tmp48_ = _tmp47_; #line 175 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" @@ -1428,7 +1428,7 @@ PluginsManifestListView* plugins_manifest_list_view_construct (GType object_type #line 179 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1431 "ManifestWidget.c" - goto __catch34_g_error; + goto __catch36_g_error; } #line 179 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" _tmp53_ = _tmp50_; @@ -1442,8 +1442,8 @@ PluginsManifestListView* plugins_manifest_list_view_construct (GType object_type _g_object_unref0 (_tmp50_); #line 1444 "ManifestWidget.c" } - goto __finally34; - __catch34_g_error: + goto __finally36; + __catch36_g_error: { GError* err = NULL; PluginsExtensionPoint* _tmp54_ = NULL; @@ -1471,7 +1471,7 @@ PluginsManifestListView* plugins_manifest_list_view_construct (GType object_type _g_error_free0 (err); #line 1473 "ManifestWidget.c" } - __finally34: + __finally36: #line 178 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 178 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" @@ -2187,7 +2187,7 @@ static void plugins_manifest_list_view_instance_init (PluginsManifestListView * #line 108 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" self->priv = PLUGINS_MANIFEST_LIST_VIEW_GET_PRIVATE (self); #line 122 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp0_ = gtk_tree_store_new ((gint) PLUGINS_MANIFEST_LIST_VIEW_COLUMN_N_COLUMNS, G_TYPE_BOOLEAN, G_TYPE_BOOLEAN, GDK_TYPE_PIXBUF, G_TYPE_STRING, G_TYPE_STRING); + _tmp0_ = gtk_tree_store_new ((gint) PLUGINS_MANIFEST_LIST_VIEW_COLUMN_N_COLUMNS, G_TYPE_BOOLEAN, G_TYPE_BOOLEAN, gdk_pixbuf_get_type (), G_TYPE_STRING, G_TYPE_STRING); #line 122 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" self->priv->store = _tmp0_; #line 2194 "ManifestWidget.c" diff --git a/src/plugins/Plugins.c b/src/plugins/Plugins.c index 245a6b2..983b44c 100644 --- a/src/plugins/Plugins.c +++ b/src/plugins/Plugins.c @@ -1,4 +1,4 @@ -/* Plugins.c generated by valac 0.32.1, the Vala compiler +/* Plugins.c generated by valac 0.34.4, the Vala compiler * generated from Plugins.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -1894,11 +1894,11 @@ void plugins_init (GError** error) { #line 133 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1896 "Plugins.c" - goto __catch32_g_error; + goto __catch34_g_error; } } - goto __finally32; - __catch32_g_error: + goto __finally34; + __catch34_g_error: { GError* err = NULL; GFile* _tmp13_ = NULL; @@ -1928,7 +1928,7 @@ void plugins_init (GError** error) { _g_error_free0 (err); #line 1929 "Plugins.c" } - __finally32: + __finally34: #line 132 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 132 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" @@ -3801,11 +3801,11 @@ void plugins_search_for_plugins (GFile* dir, GError** error) { #line 335 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 3803 "Plugins.c" - goto __catch33_g_error; + goto __catch35_g_error; } } - goto __finally33; - __catch33_g_error: + goto __finally35; + __catch35_g_error: { GError* err = NULL; GFile* _tmp18_ = NULL; @@ -3835,7 +3835,7 @@ void plugins_search_for_plugins (GFile* dir, GError** error) { _g_error_free0 (err); #line 3836 "Plugins.c" } - __finally33: + __finally35: #line 334 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 334 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" diff --git a/src/plugins/PublishingInterfaces.c b/src/plugins/PublishingInterfaces.c index e2e22cb..22cfa5a 100644 --- a/src/plugins/PublishingInterfaces.c +++ b/src/plugins/PublishingInterfaces.c @@ -1,4 +1,4 @@ -/* PublishingInterfaces.c generated by valac 0.32.1, the Vala compiler +/* PublishingInterfaces.c generated by valac 0.34.4, the Vala compiler * generated from PublishingInterfaces.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/plugins/SpitInterfaces.c b/src/plugins/SpitInterfaces.c index 9357a68..dc6fb3b 100644 --- a/src/plugins/SpitInterfaces.c +++ b/src/plugins/SpitInterfaces.c @@ -1,4 +1,4 @@ -/* SpitInterfaces.c generated by valac 0.32.1, the Vala compiler +/* SpitInterfaces.c generated by valac 0.34.4, the Vala compiler * generated from SpitInterfaces.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/plugins/StandardHostInterface.c b/src/plugins/StandardHostInterface.c index 3465427..497024d 100644 --- a/src/plugins/StandardHostInterface.c +++ b/src/plugins/StandardHostInterface.c @@ -1,4 +1,4 @@ -/* StandardHostInterface.c generated by valac 0.32.1, the Vala compiler +/* StandardHostInterface.c generated by valac 0.34.4, the Vala compiler * generated from StandardHostInterface.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/plugins/TransitionsInterfaces.c b/src/plugins/TransitionsInterfaces.c index aedb555..128f648 100644 --- a/src/plugins/TransitionsInterfaces.c +++ b/src/plugins/TransitionsInterfaces.c @@ -1,4 +1,4 @@ -/* TransitionsInterfaces.c generated by valac 0.32.1, the Vala compiler +/* TransitionsInterfaces.c generated by valac 0.34.4, the Vala compiler * generated from TransitionsInterfaces.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -726,7 +726,7 @@ static void spit_transitions_visuals_class_init (SpitTransitionsVisualsClass * k * If transitioning from a blank screen, this will return null. */ #line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SPIT_TRANSITIONS_VISUALS_FROM_PIXBUF, g_param_spec_object ("from-pixbuf", "from-pixbuf", "from-pixbuf", GDK_TYPE_PIXBUF, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE)); + g_object_class_install_property (G_OBJECT_CLASS (klass), SPIT_TRANSITIONS_VISUALS_FROM_PIXBUF, g_param_spec_object ("from-pixbuf", "from-pixbuf", "from-pixbuf", gdk_pixbuf_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE)); #line 731 "TransitionsInterfaces.c" /** * Returns the position of the starting pixbuf on the display. @@ -734,7 +734,7 @@ static void spit_transitions_visuals_class_init (SpitTransitionsVisualsClass * k * If transitioning from a blank screen, this will be zeroed. */ #line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SPIT_TRANSITIONS_VISUALS_FROM_POS, g_param_spec_boxed ("from-pos", "from-pos", "from-pos", GDK_TYPE_RECTANGLE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE)); + g_object_class_install_property (G_OBJECT_CLASS (klass), SPIT_TRANSITIONS_VISUALS_FROM_POS, g_param_spec_boxed ("from-pos", "from-pos", "from-pos", gdk_rectangle_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE)); #line 739 "TransitionsInterfaces.c" /** * Returns the ending pixbuf (the pixbuf that the transition should result in). @@ -742,7 +742,7 @@ static void spit_transitions_visuals_class_init (SpitTransitionsVisualsClass * k * If transitioning to a blank screen, this will return null. */ #line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SPIT_TRANSITIONS_VISUALS_TO_PIXBUF, g_param_spec_object ("to-pixbuf", "to-pixbuf", "to-pixbuf", GDK_TYPE_PIXBUF, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE)); + g_object_class_install_property (G_OBJECT_CLASS (klass), SPIT_TRANSITIONS_VISUALS_TO_PIXBUF, g_param_spec_object ("to-pixbuf", "to-pixbuf", "to-pixbuf", gdk_pixbuf_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE)); #line 747 "TransitionsInterfaces.c" /** * Returns the position of the ending pixbuf on the display. @@ -750,7 +750,7 @@ static void spit_transitions_visuals_class_init (SpitTransitionsVisualsClass * k * If transitioning to a blank screen, this will be zeroed. */ #line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SPIT_TRANSITIONS_VISUALS_TO_POS, g_param_spec_boxed ("to-pos", "to-pos", "to-pos", GDK_TYPE_RECTANGLE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE)); + g_object_class_install_property (G_OBJECT_CLASS (klass), SPIT_TRANSITIONS_VISUALS_TO_POS, g_param_spec_boxed ("to-pos", "to-pos", "to-pos", gdk_rectangle_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE)); #line 755 "TransitionsInterfaces.c" /** * Returns the background color of the viewport. diff --git a/src/publishing/APIGlue.c b/src/publishing/APIGlue.c index 329e415..690d2b3 100644 --- a/src/publishing/APIGlue.c +++ b/src/publishing/APIGlue.c @@ -1,4 +1,4 @@ -/* APIGlue.c generated by valac 0.32.1, the Vala compiler +/* APIGlue.c generated by valac 0.34.4, the Vala compiler * generated from APIGlue.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -416,11 +416,11 @@ void publishing_glue_media_source_publishable_wrapper_clean_up (PublishingGlueMe #line 27 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 419 "APIGlue.c" - goto __catch36_g_error; + goto __catch38_g_error; } } - goto __finally36; - __catch36_g_error: + goto __finally38; + __catch38_g_error: { GError* err = NULL; GFile* _tmp5_ = NULL; @@ -444,7 +444,7 @@ void publishing_glue_media_source_publishable_wrapper_clean_up (PublishingGlueMe _g_error_free0 (err); #line 446 "APIGlue.c" } - __finally36: + __finally38: #line 26 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 26 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" @@ -692,11 +692,11 @@ GFile* publishing_glue_media_source_publishable_wrapper_serialize_for_publishing #line 60 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 694 "APIGlue.c" - goto __catch37_g_error; + goto __catch39_g_error; } } - goto __finally37; - __catch37_g_error: + goto __finally39; + __catch39_g_error: { GError* err = NULL; LibraryPhoto* _tmp25_ = NULL; @@ -725,9 +725,9 @@ GFile* publishing_glue_media_source_publishable_wrapper_serialize_for_publishing #line 62 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" _g_error_free0 (err); #line 727 "APIGlue.c" - goto __finally37; + goto __finally39; } - __finally37: + __finally39: #line 57 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 57 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" @@ -882,11 +882,11 @@ GFile* publishing_glue_media_source_publishable_wrapper_serialize_for_publishing #line 80 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 883 "APIGlue.c" - goto __catch38_g_error; + goto __catch40_g_error; } } - goto __finally38; - __catch38_g_error: + goto __finally40; + __catch40_g_error: { GError* err = NULL; Video* _tmp56_ = NULL; @@ -915,9 +915,9 @@ GFile* publishing_glue_media_source_publishable_wrapper_serialize_for_publishing #line 82 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" _g_error_free0 (err); #line 916 "APIGlue.c" - goto __finally38; + goto __finally40; } - __finally38: + __finally40: #line 79 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 79 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" diff --git a/src/publishing/Publishing.c b/src/publishing/Publishing.c index fc14775..ca7ade6 100644 --- a/src/publishing/Publishing.c +++ b/src/publishing/Publishing.c @@ -1,4 +1,4 @@ -/* Publishing.c generated by valac 0.32.1, the Vala compiler +/* Publishing.c generated by valac 0.34.4, the Vala compiler * generated from Publishing.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/publishing/PublishingPluginHost.c b/src/publishing/PublishingPluginHost.c index 94f48ea..49208ca 100644 --- a/src/publishing/PublishingPluginHost.c +++ b/src/publishing/PublishingPluginHost.c @@ -1,4 +1,4 @@ -/* PublishingPluginHost.c generated by valac 0.32.1, the Vala compiler +/* PublishingPluginHost.c generated by valac 0.34.4, the Vala compiler * generated from PublishingPluginHost.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -1273,7 +1273,7 @@ static SpitPublishingProgressCallback spit_publishing_concrete_publishing_host_r #line 215 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { #line 1272 "PublishingPluginHost.c" - goto __catch35_spit_publishing_publishing_error; + goto __catch37_spit_publishing_publishing_error; } #line 215 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" _g_object_unref0 (wrapper); @@ -1293,8 +1293,8 @@ static SpitPublishingProgressCallback spit_publishing_concrete_publishing_host_r _g_object_unref0 (wrapper); #line 1291 "PublishingPluginHost.c" } - goto __finally35; - __catch35_spit_publishing_publishing_error: + goto __finally37; + __catch37_spit_publishing_publishing_error: { GError* err = NULL; GError* _tmp16_ = NULL; @@ -1331,7 +1331,7 @@ static SpitPublishingProgressCallback spit_publishing_concrete_publishing_host_r return result; #line 1329 "PublishingPluginHost.c" } - __finally35: + __finally37: #line 212 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 212 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" diff --git a/src/publishing/PublishingUI.c b/src/publishing/PublishingUI.c index 36d6265..311216d 100644 --- a/src/publishing/PublishingUI.c +++ b/src/publishing/PublishingUI.c @@ -1,4 +1,4 @@ -/* PublishingUI.c generated by valac 0.32.1, the Vala compiler +/* PublishingUI.c generated by valac 0.34.4, the Vala compiler * generated from PublishingUI.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -478,9 +478,9 @@ static SpitPublishingService** publishing_ui_publishing_dialog_load_all_services GeeCollection* plugins_get_pluggables_for_type (GType type, GCompareDataFunc compare_func, void* compare_func_target, GDestroyNotify compare_func_target_destroy_notify, gboolean include_disabled); gchar* plugins_get_pluggable_module_id (SpitPluggable* needle); static void _vala_array_add56 (SpitPublishingService*** array, int* length, int* size, SpitPublishingService* value); -static gint __lambda15_ (void* a, void* b); +static gint __lambda14_ (void* a, void* b); gint utf8_cs_compare (void* a, void* b); -static gint ___lambda15____compar_fn_t (void* key1, void* key2); +static gint ___lambda14____compar_fn_t (void* key1, void* key2); static void _vala_array_add57 (SpitPublishingService*** array, int* length, int* size, SpitPublishingService* value); static void _vala_array_add58 (SpitPublishingService*** array, int* length, int* size, SpitPublishingService* value); static void _vala_array_add59 (SpitPublishingService*** array, int* length, int* size, SpitPublishingService* value); @@ -1643,7 +1643,7 @@ PublishingUIPublishingDialog* publishing_ui_publishing_dialog_construct (GType o #line 202 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), _tmp42_); #line 204 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp43_ = gtk_list_store_new (2, GDK_TYPE_PIXBUF, G_TYPE_STRING, -1); + _tmp43_ = gtk_list_store_new (2, gdk_pixbuf_get_type (), G_TYPE_STRING, -1); #line 204 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" _g_object_unref0 (self->priv->service_selector_box_model); #line 204 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" @@ -2201,7 +2201,7 @@ static void _vala_array_add56 (SpitPublishingService*** array, int* length, int* } -static gint __lambda15_ (void* a, void* b) { +static gint __lambda14_ (void* a, void* b) { gint result = 0; void* _tmp0_ = NULL; const gchar* _tmp1_ = NULL; @@ -2226,9 +2226,9 @@ static gint __lambda15_ (void* a, void* b) { } -static gint ___lambda15____compar_fn_t (void* key1, void* key2) { +static gint ___lambda14____compar_fn_t (void* key1, void* key2) { gint result; - result = __lambda15_ (key1, key2); + result = __lambda14_ (key1, key2); #line 340 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" return result; #line 2235 "PublishingUI.c" @@ -2397,7 +2397,7 @@ static SpitPublishingService** publishing_ui_publishing_dialog_load_all_services #line 340 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" _tmp26__length1 = loaded_services_length1; #line 340 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - qsort (_tmp25_, (gsize) _tmp26__length1, (gsize) sizeof (SpitPublishingService*), ___lambda15____compar_fn_t); + qsort (_tmp25_, (gsize) _tmp26__length1, (gsize) sizeof (SpitPublishingService*), ___lambda14____compar_fn_t); #line 345 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" _tmp27_ = loaded_services; #line 345 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" diff --git a/src/searches/Branch.c b/src/searches/Branch.c index 9956e8d..c202931 100644 --- a/src/searches/Branch.c +++ b/src/searches/Branch.c @@ -1,4 +1,4 @@ -/* Branch.c generated by valac 0.32.1, the Vala compiler +/* Branch.c generated by valac 0.34.4, the Vala compiler * generated from Branch.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -1014,7 +1014,7 @@ static void searches_header_setup_context_menu (SearchesHeader* self) { #line 75 "/home/jens/Source/shotwell/src/searches/Branch.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1017 "Branch.c" - goto __catch73_g_error; + goto __catch75_g_error; } #line 77 "/home/jens/Source/shotwell/src/searches/Branch.vala" _tmp2_ = self->priv->builder; @@ -1038,8 +1038,8 @@ static void searches_header_setup_context_menu (SearchesHeader* self) { _g_object_unref0 (model); #line 1040 "Branch.c" } - goto __finally73; - __catch73_g_error: + goto __finally75; + __catch75_g_error: { GError* _error_ = NULL; GError* _tmp7_ = NULL; @@ -1076,7 +1076,7 @@ static void searches_header_setup_context_menu (SearchesHeader* self) { _g_error_free0 (_error_); #line 1078 "Branch.c" } - __finally73: + __finally75: #line 74 "/home/jens/Source/shotwell/src/searches/Branch.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 74 "/home/jens/Source/shotwell/src/searches/Branch.vala" diff --git a/src/searches/SavedSearchDialog.c b/src/searches/SavedSearchDialog.c index 278f4f0..91d066e 100644 --- a/src/searches/SavedSearchDialog.c +++ b/src/searches/SavedSearchDialog.c @@ -1,4 +1,4 @@ -/* SavedSearchDialog.c generated by valac 0.32.1, the Vala compiler +/* SavedSearchDialog.c generated by valac 0.34.4, the Vala compiler * generated from SavedSearchDialog.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -1779,19 +1779,19 @@ static gchar* string_chomp (const gchar* self) { gchar* _result_ = NULL; gchar* _tmp0_ = NULL; const gchar* _tmp1_ = NULL; -#line 1191 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1191 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, NULL); -#line 1192 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1192 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = g_strdup (self); -#line 1192 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1192 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _result_ = _tmp0_; -#line 1193 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1193 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = _result_; -#line 1193 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1193 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_strchomp (_tmp1_); -#line 1194 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1194 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _result_; -#line 1194 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1194 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 1797 "SavedSearchDialog.c" } diff --git a/src/searches/SavedSearchPage.c b/src/searches/SavedSearchPage.c index 1dc2f9b..d9e8593 100644 --- a/src/searches/SavedSearchPage.c +++ b/src/searches/SavedSearchPage.c @@ -1,4 +1,4 @@ -/* SavedSearchPage.c generated by valac 0.32.1, the Vala compiler +/* SavedSearchPage.c generated by valac 0.34.4, the Vala compiler * generated from SavedSearchPage.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -13,9 +13,9 @@ #include <gtk/gtk.h> #include <stdlib.h> #include <string.h> +#include <gio/gio.h> #include <gee.h> #include <gdk/gdk.h> -#include <gio/gio.h> #define TYPE_VIEW_MANAGER (view_manager_get_type ()) @@ -371,16 +371,6 @@ typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; typedef struct _ConfigFacade ConfigFacade; typedef struct _ConfigFacadeClass ConfigFacadeClass; -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; - #define TYPE_COMMAND_MANAGER (command_manager_get_type ()) #define COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND_MANAGER, CommandManager)) #define COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND_MANAGER, CommandManagerClass)) @@ -432,6 +422,16 @@ typedef struct _DeleteSavedSearchCommand DeleteSavedSearchCommand; typedef struct _DeleteSavedSearchCommandClass DeleteSavedSearchCommandClass; #define _command_manager_unref0(var) ((var == NULL) ? NULL : (var = (command_manager_unref (var), NULL))) +#define TYPE_APP_WINDOW (app_window_get_type ()) +#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) +#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) +#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) +#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) +#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) + +typedef struct _AppWindow AppWindow; +typedef struct _AppWindowClass AppWindowClass; + #define TYPE_LIBRARY_WINDOW (library_window_get_type ()) #define LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_WINDOW, LibraryWindow)) #define LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_WINDOW, LibraryWindowClass)) @@ -508,7 +508,8 @@ struct _PageClass { void (*ready) (Page* self); void (*switching_to_fullscreen) (Page* self, FullscreenWindow* fsw); void (*returning_from_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*add_actions) (Page* self); + void (*add_actions) (Page* self, GActionMap* map); + void (*remove_actions) (Page* self, GActionMap* map); void (*init_collect_ui_filenames) (Page* self, GeeList* ui_filenames); InjectionGroup** (*init_collect_injection_groups) (Page* self, int* result_length1); void (*init_actions) (Page* self, gint selected_count, gint count); @@ -783,10 +784,10 @@ static void saved_search_page_real_set_config_photos_sort (MediaPage* base, gboo void configuration_facade_set_library_photos_sort (ConfigurationFacade* self, gboolean sort_order, gint sort_by); static void saved_search_page_real_init_collect_ui_filenames (Page* base, GeeList* ui_filenames); void page_init_collect_ui_filenames (Page* self, GeeList* ui_filenames); -static void saved_search_page_real_add_actions (Page* base); -void page_add_actions (Page* self); -GType app_window_get_type (void) G_GNUC_CONST; -AppWindow* app_window_get_instance (void); +static void saved_search_page_real_add_actions (Page* base, GActionMap* map); +void page_add_actions (Page* self, GActionMap* map); +static void saved_search_page_real_remove_actions (Page* base, GActionMap* map); +void page_remove_actions (Page* self, GActionMap* map); gboolean dialogs_confirm_delete_saved_search (SavedSearch* search); gpointer command_manager_ref (gpointer instance); void command_manager_unref (gpointer instance); @@ -803,6 +804,7 @@ DeleteSavedSearchCommand* delete_saved_search_command_construct (GType object_ty GType page_command_get_type (void) G_GNUC_CONST; GType single_data_source_command_get_type (void) G_GNUC_CONST; GType delete_saved_search_command_get_type (void) G_GNUC_CONST; +GType app_window_get_type (void) G_GNUC_CONST; GType library_window_get_type (void) G_GNUC_CONST; LibraryWindow* library_window_get_app (void); void library_window_rename_search_in_sidebar (LibraryWindow* self, SavedSearch* search); @@ -826,7 +828,7 @@ static const GActionEntry SAVED_SEARCH_PAGE_entries[3] = {{"RenameSearch", _save static gpointer _g_object_ref0 (gpointer self) { #line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" return self ? g_object_ref (self) : NULL; -#line 830 "SavedSearchPage.c" +#line 832 "SavedSearchPage.c" } @@ -853,14 +855,14 @@ SavedSearchManager* saved_search_manager_construct (GType object_type, SavedSear self->priv->search = _tmp2_; #line 10 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" return self; -#line 857 "SavedSearchPage.c" +#line 859 "SavedSearchPage.c" } SavedSearchManager* saved_search_manager_new (SavedSearchPage* owner, SavedSearch* search) { #line 10 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" return saved_search_manager_construct (TYPE_SAVED_SEARCH_MANAGER, owner, search); -#line 864 "SavedSearchPage.c" +#line 866 "SavedSearchPage.c" } @@ -884,7 +886,7 @@ static gboolean saved_search_manager_real_include_in_view (ViewManager* base, Da result = _tmp2_; #line 16 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" return result; -#line 888 "SavedSearchPage.c" +#line 890 "SavedSearchPage.c" } @@ -897,14 +899,14 @@ static void saved_search_manager_class_init (SavedSearchManagerClass * klass) { g_type_class_add_private (klass, sizeof (SavedSearchManagerPrivate)); #line 8 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" ((ViewManagerClass *) klass)->include_in_view = saved_search_manager_real_include_in_view; -#line 901 "SavedSearchPage.c" +#line 903 "SavedSearchPage.c" } static void saved_search_manager_instance_init (SavedSearchManager * self) { #line 8 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" self->priv = SAVED_SEARCH_MANAGER_GET_PRIVATE (self); -#line 908 "SavedSearchPage.c" +#line 910 "SavedSearchPage.c" } @@ -916,7 +918,7 @@ static void saved_search_manager_finalize (ViewManager* obj) { _g_object_unref0 (self->priv->search); #line 8 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" VIEW_MANAGER_CLASS (saved_search_manager_parent_class)->finalize (obj); -#line 920 "SavedSearchPage.c" +#line 922 "SavedSearchPage.c" } @@ -935,21 +937,21 @@ GType saved_search_manager_get_type (void) { static void _saved_search_page_on_rename_search_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 50 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" saved_search_page_on_rename_search ((SavedSearchPage*) self); -#line 939 "SavedSearchPage.c" +#line 941 "SavedSearchPage.c" } static void _saved_search_page_on_edit_search_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 50 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" saved_search_page_on_edit_search ((SavedSearchPage*) self); -#line 946 "SavedSearchPage.c" +#line 948 "SavedSearchPage.c" } static void _saved_search_page_on_delete_search_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 50 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" saved_search_page_on_delete_search ((SavedSearchPage*) self); -#line 953 "SavedSearchPage.c" +#line 955 "SavedSearchPage.c" } @@ -980,7 +982,7 @@ SavedSearchPage* saved_search_page_construct (GType object_type, SavedSearch* se _g_object_unref0 (self->priv->search); #line 28 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" self->priv->search = _tmp4_; -#line 984 "SavedSearchPage.c" +#line 986 "SavedSearchPage.c" { GeeIterator* _sources_it = NULL; MediaCollectionRegistry* _tmp5_ = NULL; @@ -1009,7 +1011,7 @@ SavedSearchPage* saved_search_page_construct (GType object_type, SavedSearch* se _sources_it = _tmp10_; #line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" while (TRUE) { -#line 1013 "SavedSearchPage.c" +#line 1015 "SavedSearchPage.c" GeeIterator* _tmp11_ = NULL; gboolean _tmp12_ = FALSE; MediaSourceCollection* sources = NULL; @@ -1031,7 +1033,7 @@ SavedSearchPage* saved_search_page_construct (GType object_type, SavedSearch* se if (!_tmp12_) { #line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" break; -#line 1035 "SavedSearchPage.c" +#line 1037 "SavedSearchPage.c" } #line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" _tmp13_ = _sources_it; @@ -1063,24 +1065,24 @@ SavedSearchPage* saved_search_page_construct (GType object_type, SavedSearch* se _data_collection_unref0 (_tmp16_); #line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" _data_collection_unref0 (sources); -#line 1067 "SavedSearchPage.c" +#line 1069 "SavedSearchPage.c" } #line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" _g_object_unref0 (_sources_it); -#line 1071 "SavedSearchPage.c" +#line 1073 "SavedSearchPage.c" } #line 34 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" checkerboard_page_init_page_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), "SearchContextMenu"); #line 26 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" return self; -#line 1077 "SavedSearchPage.c" +#line 1079 "SavedSearchPage.c" } SavedSearchPage* saved_search_page_new (SavedSearch* search) { #line 26 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" return saved_search_page_construct (TYPE_SAVED_SEARCH_PAGE, search); -#line 1084 "SavedSearchPage.c" +#line 1086 "SavedSearchPage.c" } @@ -1110,13 +1112,13 @@ static void saved_search_page_real_get_config_photos_sort (MediaPage* base, gboo if (sort_order) { #line 37 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" *sort_order = _vala_sort_order; -#line 1114 "SavedSearchPage.c" +#line 1116 "SavedSearchPage.c" } #line 37 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" if (sort_by) { #line 37 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" *sort_by = _vala_sort_by; -#line 1120 "SavedSearchPage.c" +#line 1122 "SavedSearchPage.c" } } @@ -1141,7 +1143,7 @@ static void saved_search_page_real_set_config_photos_sort (MediaPage* base, gboo configuration_facade_set_library_photos_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_); #line 42 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" _g_object_unref0 (_tmp1_); -#line 1145 "SavedSearchPage.c" +#line 1147 "SavedSearchPage.c" } @@ -1161,64 +1163,111 @@ static void saved_search_page_real_init_collect_ui_filenames (Page* base, GeeLis _tmp1_ = ui_filenames; #line 47 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection), "savedsearch.ui"); -#line 1165 "SavedSearchPage.c" +#line 1167 "SavedSearchPage.c" } -static void saved_search_page_real_add_actions (Page* base) { +static void saved_search_page_real_add_actions (Page* base, GActionMap* map) { SavedSearchPage * self; - AppWindow* _tmp0_ = NULL; - AppWindow* _tmp1_ = NULL; + GActionMap* _tmp0_ = NULL; + GActionMap* _tmp1_ = NULL; #line 56 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SAVED_SEARCH_PAGE, SavedSearchPage); +#line 56 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" + g_return_if_fail (G_IS_ACTION_MAP (map)); #line 57 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - PAGE_CLASS (saved_search_page_parent_class)->add_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page)); -#line 59 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _tmp0_ = app_window_get_instance (); -#line 59 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _tmp1_ = _tmp0_; + _tmp0_ = map; +#line 57 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" + PAGE_CLASS (saved_search_page_parent_class)->add_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page), _tmp0_); #line 59 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - g_action_map_add_action_entries (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, g_action_map_get_type (), GActionMap), SAVED_SEARCH_PAGE_entries, G_N_ELEMENTS (SAVED_SEARCH_PAGE_entries), self); + _tmp1_ = map; #line 59 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _g_object_unref0 (_tmp1_); -#line 1185 "SavedSearchPage.c" + g_action_map_add_action_entries (_tmp1_, SAVED_SEARCH_PAGE_entries, G_N_ELEMENTS (SAVED_SEARCH_PAGE_entries), self); +#line 1187 "SavedSearchPage.c" +} + + +static void saved_search_page_real_remove_actions (Page* base, GActionMap* map) { + SavedSearchPage * self; + GActionMap* _tmp0_ = NULL; +#line 62 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" + self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SAVED_SEARCH_PAGE, SavedSearchPage); +#line 62 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" + g_return_if_fail (G_IS_ACTION_MAP (map)); +#line 63 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" + _tmp0_ = map; +#line 63 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" + PAGE_CLASS (saved_search_page_parent_class)->remove_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page), _tmp0_); +#line 1202 "SavedSearchPage.c" + { + GActionEntry* entry_collection = NULL; + gint entry_collection_length1 = 0; + gint _entry_collection_size_ = 0; + gint entry_it = 0; +#line 64 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" + entry_collection = SAVED_SEARCH_PAGE_entries; +#line 64 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" + entry_collection_length1 = G_N_ELEMENTS (SAVED_SEARCH_PAGE_entries); +#line 64 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" + for (entry_it = 0; entry_it < G_N_ELEMENTS (SAVED_SEARCH_PAGE_entries); entry_it = entry_it + 1) { +#line 1214 "SavedSearchPage.c" + GActionEntry entry = {0}; +#line 64 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" + entry = entry_collection[entry_it]; +#line 1218 "SavedSearchPage.c" + { + GActionMap* _tmp1_ = NULL; + GActionEntry _tmp2_ = {0}; + const gchar* _tmp3_ = NULL; +#line 65 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" + _tmp1_ = map; +#line 65 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" + _tmp2_ = entry; +#line 65 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" + _tmp3_ = _tmp2_.name; +#line 65 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" + g_action_map_remove_action (_tmp1_, _tmp3_); +#line 1231 "SavedSearchPage.c" + } + } + } } static void saved_search_page_on_delete_search (SavedSearchPage* self) { SavedSearch* _tmp0_ = NULL; gboolean _tmp1_ = FALSE; -#line 62 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" +#line 70 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" g_return_if_fail (IS_SAVED_SEARCH_PAGE (self)); -#line 63 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" +#line 71 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" _tmp0_ = self->priv->search; -#line 63 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" +#line 71 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" _tmp1_ = dialogs_confirm_delete_saved_search (_tmp0_); -#line 63 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" +#line 71 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" if (_tmp1_) { -#line 1200 "SavedSearchPage.c" +#line 1249 "SavedSearchPage.c" CommandManager* _tmp2_ = NULL; CommandManager* _tmp3_ = NULL; SavedSearch* _tmp4_ = NULL; DeleteSavedSearchCommand* _tmp5_ = NULL; DeleteSavedSearchCommand* _tmp6_ = NULL; -#line 64 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" +#line 72 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" _tmp2_ = app_window_get_command_manager (); -#line 64 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" +#line 72 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" _tmp3_ = _tmp2_; -#line 64 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" +#line 72 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" _tmp4_ = self->priv->search; -#line 64 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" +#line 72 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" _tmp5_ = delete_saved_search_command_new (_tmp4_); -#line 64 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" +#line 72 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" _tmp6_ = _tmp5_; -#line 64 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" +#line 72 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" command_manager_execute (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_COMMAND, Command)); -#line 64 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" +#line 72 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" _g_object_unref0 (_tmp6_); -#line 64 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" +#line 72 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" _command_manager_unref0 (_tmp3_); -#line 1222 "SavedSearchPage.c" +#line 1271 "SavedSearchPage.c" } } @@ -1227,19 +1276,19 @@ static void saved_search_page_on_rename_search (SavedSearchPage* self) { LibraryWindow* _tmp0_ = NULL; LibraryWindow* _tmp1_ = NULL; SavedSearch* _tmp2_ = NULL; -#line 67 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" +#line 75 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" g_return_if_fail (IS_SAVED_SEARCH_PAGE (self)); -#line 68 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" +#line 76 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" _tmp0_ = library_window_get_app (); -#line 68 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" +#line 76 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" _tmp1_ = _tmp0_; -#line 68 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" +#line 76 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" _tmp2_ = self->priv->search; -#line 68 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" +#line 76 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" library_window_rename_search_in_sidebar (_tmp1_, _tmp2_); -#line 68 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" +#line 76 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" _g_object_unref0 (_tmp1_); -#line 1243 "SavedSearchPage.c" +#line 1292 "SavedSearchPage.c" } @@ -1247,19 +1296,19 @@ static void saved_search_page_on_edit_search (SavedSearchPage* self) { SavedSearchDialog* ssd = NULL; SavedSearch* _tmp0_ = NULL; SavedSearchDialog* _tmp1_ = NULL; -#line 71 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" +#line 79 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" g_return_if_fail (IS_SAVED_SEARCH_PAGE (self)); -#line 72 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" +#line 80 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" _tmp0_ = self->priv->search; -#line 72 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" +#line 80 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" _tmp1_ = saved_search_dialog_new_edit_existing (_tmp0_); -#line 72 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" +#line 80 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" ssd = _tmp1_; -#line 73 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" +#line 81 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" saved_search_dialog_show (ssd); -#line 71 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" +#line 79 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" _saved_search_dialog_unref0 (ssd); -#line 1263 "SavedSearchPage.c" +#line 1312 "SavedSearchPage.c" } @@ -1267,21 +1316,21 @@ static void saved_search_page_real_update_actions (Page* base, gint selected_cou SavedSearchPage * self; gint _tmp0_ = 0; gint _tmp1_ = 0; -#line 76 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" +#line 84 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SAVED_SEARCH_PAGE, SavedSearchPage); -#line 77 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" +#line 85 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RenameSearch", TRUE); -#line 78 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" +#line 86 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "EditSearch", TRUE); -#line 79 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" +#line 87 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DeleteSearch", TRUE); -#line 81 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" +#line 89 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" _tmp0_ = selected_count; -#line 81 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" +#line 89 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" _tmp1_ = count; -#line 81 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" +#line 89 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" PAGE_CLASS (saved_search_page_parent_class)->update_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page), _tmp0_, _tmp1_); -#line 1285 "SavedSearchPage.c" +#line 1334 "SavedSearchPage.c" } @@ -1299,17 +1348,19 @@ static void saved_search_page_class_init (SavedSearchPageClass * klass) { #line 21 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" ((PageClass *) klass)->add_actions = saved_search_page_real_add_actions; #line 21 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" + ((PageClass *) klass)->remove_actions = saved_search_page_real_remove_actions; +#line 21 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" ((PageClass *) klass)->update_actions = saved_search_page_real_update_actions; #line 21 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" G_OBJECT_CLASS (klass)->finalize = saved_search_page_finalize; -#line 1306 "SavedSearchPage.c" +#line 1357 "SavedSearchPage.c" } static void saved_search_page_instance_init (SavedSearchPage * self) { #line 21 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" self->priv = SAVED_SEARCH_PAGE_GET_PRIVATE (self); -#line 1313 "SavedSearchPage.c" +#line 1364 "SavedSearchPage.c" } @@ -1321,7 +1372,7 @@ static void saved_search_page_finalize (GObject* obj) { _g_object_unref0 (self->priv->search); #line 21 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" G_OBJECT_CLASS (saved_search_page_parent_class)->finalize (obj); -#line 1325 "SavedSearchPage.c" +#line 1376 "SavedSearchPage.c" } diff --git a/src/searches/SavedSearchPage.vala b/src/searches/SavedSearchPage.vala index c57ec7d..9267137 100644 --- a/src/searches/SavedSearchPage.vala +++ b/src/searches/SavedSearchPage.vala @@ -53,12 +53,20 @@ public class SavedSearchPage : CollectionPage { { "DeleteSearch", on_delete_search } }; - protected override void add_actions () { - base.add_actions (); + protected override void add_actions(GLib.ActionMap map) { + base.add_actions(map); - AppWindow.get_instance ().add_action_entries (entries, this); + map.add_action_entries(entries, this); } - + + protected override void remove_actions(GLib.ActionMap map) { + base.remove_actions(map); + foreach (var entry in entries) { + map.remove_action(entry.name); + } + } + + private void on_delete_search() { if (Dialogs.confirm_delete_saved_search(search)) AppWindow.get_command_manager().execute(new DeleteSavedSearchCommand(search)); diff --git a/src/searches/SearchBoolean.c b/src/searches/SearchBoolean.c index 7da26c1..eea8d74 100644 --- a/src/searches/SearchBoolean.c +++ b/src/searches/SearchBoolean.c @@ -1,4 +1,4 @@ -/* SearchBoolean.c generated by valac 0.32.1, the Vala compiler +/* SearchBoolean.c generated by valac 0.34.4, the Vala compiler * generated from SearchBoolean.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -2305,17 +2305,17 @@ static gboolean string_contains (const gchar* self, const gchar* needle) { gboolean result = FALSE; const gchar* _tmp0_ = NULL; gchar* _tmp1_ = NULL; -#line 1376 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1376 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, FALSE); -#line 1376 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1376 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (needle != NULL, FALSE); -#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = needle; -#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = strstr ((gchar*) self, (gchar*) _tmp0_); -#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp1_ != NULL; -#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 2320 "SearchBoolean.c" } @@ -5691,7 +5691,7 @@ void saved_search_reconstitute (SavedSearch* self) { #line 847 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 5684 "SearchBoolean.c" - goto __catch74_database_error; + goto __catch76_database_error; } #line 847 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -5707,8 +5707,8 @@ void saved_search_reconstitute (SavedSearch* self) { _tmp6_->search_id = _tmp0_; #line 5699 "SearchBoolean.c" } - goto __finally74; - __catch74_database_error: + goto __finally76; + __catch76_database_error: { GError* err = NULL; GError* _tmp7_ = NULL; @@ -5724,7 +5724,7 @@ void saved_search_reconstitute (SavedSearch* self) { _g_error_free0 (err); #line 5716 "SearchBoolean.c" } - __finally74: + __finally76: #line 846 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 846 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" @@ -5835,7 +5835,7 @@ gboolean saved_search_rename (SavedSearch* self, const gchar* new_name) { #line 865 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 5828 "SearchBoolean.c" - goto __catch75_database_error; + goto __catch77_database_error; } #line 865 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -5846,8 +5846,8 @@ gboolean saved_search_rename (SavedSearch* self, const gchar* new_name) { #line 5837 "SearchBoolean.c" } } - goto __finally75; - __catch75_database_error: + goto __finally77; + __catch77_database_error: { GError* err = NULL; GError* _tmp12_ = NULL; @@ -5867,7 +5867,7 @@ gboolean saved_search_rename (SavedSearch* self, const gchar* new_name) { return result; #line 5859 "SearchBoolean.c" } - __finally75: + __finally77: #line 864 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 864 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" @@ -6041,7 +6041,7 @@ static SavedSearchTable* saved_search_table_construct (GType object_type) { #line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 6034 "SearchBoolean.c" - goto __catch76_database_error; + goto __catch78_database_error; } #line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -6132,8 +6132,8 @@ static SavedSearchTable* saved_search_table_construct (GType object_type) { _g_object_unref0 (_tmp0_); #line 6124 "SearchBoolean.c" } - goto __finally76; - __catch76_database_error: + goto __finally78; + __catch78_database_error: { GError* err = NULL; GError* _tmp18_ = NULL; @@ -6149,7 +6149,7 @@ static SavedSearchTable* saved_search_table_construct (GType object_type) { _g_error_free0 (err); #line 6141 "SearchBoolean.c" } - __finally76: + __finally78: #line 899 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 899 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" @@ -6282,7 +6282,7 @@ SavedSearch* saved_search_table_create (SavedSearchTable* self, const gchar* nam #line 926 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 6275 "SearchBoolean.c" - goto __catch77_database_error; + goto __catch79_database_error; } #line 926 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" _g_object_unref0 (search); @@ -6304,8 +6304,8 @@ SavedSearch* saved_search_table_create (SavedSearchTable* self, const gchar* nam _saved_search_row_unref0 (_tmp0_); #line 6296 "SearchBoolean.c" } - goto __finally77; - __catch77_database_error: + goto __finally79; + __catch79_database_error: { GError* err = NULL; GError* _tmp9_ = NULL; @@ -6321,7 +6321,7 @@ SavedSearch* saved_search_table_create (SavedSearchTable* self, const gchar* nam _g_error_free0 (err); #line 6313 "SearchBoolean.c" } - __finally77: + __finally79: #line 925 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 925 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" @@ -6386,7 +6386,7 @@ void saved_search_table_remove (SavedSearchTable* self, SavedSearch* search) { #line 940 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" if (_inner_error_->domain == DATABASE_ERROR) { #line 6379 "SearchBoolean.c" - goto __catch78_database_error; + goto __catch80_database_error; } #line 940 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -6397,8 +6397,8 @@ void saved_search_table_remove (SavedSearchTable* self, SavedSearch* search) { #line 6388 "SearchBoolean.c" } } - goto __finally78; - __catch78_database_error: + goto __finally80; + __catch80_database_error: { GError* err = NULL; GError* _tmp4_ = NULL; @@ -6414,7 +6414,7 @@ void saved_search_table_remove (SavedSearchTable* self, SavedSearch* search) { _g_error_free0 (err); #line 6406 "SearchBoolean.c" } - __finally78: + __finally80: #line 939 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 939 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" diff --git a/src/searches/Searches.c b/src/searches/Searches.c index 1ab6b90..bb0f199 100644 --- a/src/searches/Searches.c +++ b/src/searches/Searches.c @@ -1,4 +1,4 @@ -/* Searches.c generated by valac 0.32.1, the Vala compiler +/* Searches.c generated by valac 0.34.4, the Vala compiler * generated from Searches.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/sidebar/Branch.c b/src/sidebar/Branch.c index 10f7a72..798377f 100644 --- a/src/sidebar/Branch.c +++ b/src/sidebar/Branch.c @@ -1,4 +1,4 @@ -/* Branch.c generated by valac 0.32.1, the Vala compiler +/* Branch.c generated by valac 0.34.4, the Vala compiler * generated from Branch.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/sidebar/Entry.c b/src/sidebar/Entry.c index caa621c..8edbd4c 100644 --- a/src/sidebar/Entry.c +++ b/src/sidebar/Entry.c @@ -1,4 +1,4 @@ -/* Entry.c generated by valac 0.32.1, the Vala compiler +/* Entry.c generated by valac 0.34.4, the Vala compiler * generated from Entry.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/sidebar/Sidebar.c b/src/sidebar/Sidebar.c index 888a70c..f7f7009 100644 --- a/src/sidebar/Sidebar.c +++ b/src/sidebar/Sidebar.c @@ -1,4 +1,4 @@ -/* Sidebar.c generated by valac 0.32.1, the Vala compiler +/* Sidebar.c generated by valac 0.34.4, the Vala compiler * generated from Sidebar.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/sidebar/Tree.c b/src/sidebar/Tree.c index f297897..6a28a5f 100644 --- a/src/sidebar/Tree.c +++ b/src/sidebar/Tree.c @@ -1,4 +1,4 @@ -/* Tree.c generated by valac 0.32.1, the Vala compiler +/* Tree.c generated by valac 0.34.4, the Vala compiler * generated from Tree.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -1222,7 +1222,7 @@ static void sidebar_tree_setup_default_context_menu (SidebarTree* self) { #line 200 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1225 "Tree.c" - goto __catch48_g_error; + goto __catch50_g_error; } #line 202 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp1_ = self->priv->builder; @@ -1264,8 +1264,8 @@ static void sidebar_tree_setup_default_context_menu (SidebarTree* self) { _g_object_unref0 (model); #line 1266 "Tree.c" } - goto __finally48; - __catch48_g_error: + goto __finally50; + __catch50_g_error: { GError* _error_ = NULL; GError* _tmp10_ = NULL; @@ -1302,7 +1302,7 @@ static void sidebar_tree_setup_default_context_menu (SidebarTree* self) { _g_error_free0 (_error_); #line 1304 "Tree.c" } - __finally48: + __finally50: #line 199 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 199 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" @@ -5269,7 +5269,8 @@ static gboolean sidebar_tree_popup_context_menu (SidebarTree* self, GtkTreePath* GtkMenu* _tmp14_ = NULL; GtkMenu* _tmp15_ = NULL; GtkMenu* _tmp16_ = NULL; - GdkEventButton* _tmp17_ = NULL; + GtkWidget* _tmp17_ = NULL; + GdkEventButton* _tmp19_ = NULL; #line 830 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE); #line 830 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" @@ -5290,7 +5291,7 @@ static gboolean sidebar_tree_popup_context_menu (SidebarTree* self, GtkTreePath* _g_object_unref0 (wrapper); #line 833 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return result; -#line 5294 "Tree.c" +#line 5295 "Tree.c" } #line 835 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp3_ = wrapper; @@ -5312,7 +5313,7 @@ static gboolean sidebar_tree_popup_context_menu (SidebarTree* self, GtkTreePath* _g_object_unref0 (wrapper); #line 837 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return result; -#line 5316 "Tree.c" +#line 5317 "Tree.c" } #line 840 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp7_ = wrapper; @@ -5326,13 +5327,13 @@ static gboolean sidebar_tree_popup_context_menu (SidebarTree* self, GtkTreePath* _tmp10_ = selectable; #line 841 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp10_ != NULL) { -#line 5330 "Tree.c" +#line 5331 "Tree.c" SidebarSelectableEntry* _tmp11_ = NULL; #line 842 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp11_ = selectable; #line 842 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" g_signal_emit_by_name (self, "entry-selected", _tmp11_); -#line 5336 "Tree.c" +#line 5337 "Tree.c" } #line 844 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp12_ = contextable; @@ -5358,59 +5359,69 @@ static gboolean sidebar_tree_popup_context_menu (SidebarTree* self, GtkTreePath* _g_object_unref0 (wrapper); #line 846 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return result; -#line 5362 "Tree.c" +#line 5363 "Tree.c" } #line 848 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp16_ = context_menu; #line 848 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_menu_attach_to_widget (_tmp16_, G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), NULL); -#line 850 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp17_ = event; -#line 850 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp17_ != NULL) { -#line 5372 "Tree.c" + _tmp17_ = gtk_menu_get_attach_widget (_tmp16_); +#line 848 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" + if (_tmp17_ == NULL) { +#line 5371 "Tree.c" GtkMenu* _tmp18_ = NULL; - GdkEventButton* _tmp19_ = NULL; - guint _tmp20_ = 0U; - GdkEventButton* _tmp21_ = NULL; - guint32 _tmp22_ = 0U; -#line 851 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 849 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp18_ = context_menu; -#line 851 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp19_ = event; -#line 851 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp20_ = _tmp19_->button; -#line 851 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp21_ = event; -#line 851 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp22_ = _tmp21_->time; -#line 851 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_menu_popup (_tmp18_, NULL, NULL, NULL, NULL, _tmp20_, _tmp22_); -#line 5390 "Tree.c" - } else { - GtkMenu* _tmp23_ = NULL; +#line 849 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" + gtk_menu_attach_to_widget (_tmp18_, G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), NULL); +#line 5377 "Tree.c" + } +#line 852 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" + _tmp19_ = event; +#line 852 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" + if (_tmp19_ != NULL) { +#line 5383 "Tree.c" + GtkMenu* _tmp20_ = NULL; + GdkEventButton* _tmp21_ = NULL; + guint _tmp22_ = 0U; + GdkEventButton* _tmp23_ = NULL; guint32 _tmp24_ = 0U; #line 853 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp23_ = context_menu; + _tmp20_ = context_menu; #line 853 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp24_ = gtk_get_current_event_time (); + _tmp21_ = event; #line 853 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_menu_popup (_tmp23_, NULL, NULL, NULL, NULL, (guint) 0, _tmp24_); -#line 5400 "Tree.c" - } + _tmp22_ = _tmp21_->button; +#line 853 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" + _tmp23_ = event; +#line 853 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" + _tmp24_ = _tmp23_->time; +#line 853 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" + gtk_menu_popup (_tmp20_, NULL, NULL, NULL, NULL, _tmp22_, _tmp24_); +#line 5401 "Tree.c" + } else { + GtkMenu* _tmp25_ = NULL; + guint32 _tmp26_ = 0U; #line 855 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = TRUE; + _tmp25_ = context_menu; #line 855 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (context_menu); + _tmp26_ = gtk_get_current_event_time (); #line 855 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" + gtk_menu_popup (_tmp25_, NULL, NULL, NULL, NULL, (guint) 0, _tmp26_); +#line 5411 "Tree.c" + } +#line 857 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" + result = TRUE; +#line 857 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" + _g_object_unref0 (context_menu); +#line 857 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (selectable); -#line 855 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 857 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (contextable); -#line 855 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 857 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (wrapper); -#line 855 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 857 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return result; -#line 5414 "Tree.c" +#line 5425 "Tree.c" } @@ -5421,27 +5432,27 @@ static gboolean sidebar_tree_popup_default_context_menu (SidebarTree* self, GdkE guint _tmp2_ = 0U; GdkEventButton* _tmp3_ = NULL; guint32 _tmp4_ = 0U; -#line 858 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 860 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE); -#line 858 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 860 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 859 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 861 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp0_ = self->priv->default_context_menu; -#line 859 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 861 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp1_ = event; -#line 859 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 861 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp2_ = _tmp1_->button; -#line 859 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 861 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp3_ = event; -#line 859 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 861 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp4_ = _tmp3_->time; -#line 859 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 861 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" gtk_menu_popup (_tmp0_, NULL, NULL, NULL, NULL, _tmp2_, _tmp4_); -#line 860 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 862 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" result = TRUE; -#line 860 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 862 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return result; -#line 5445 "Tree.c" +#line 5456 "Tree.c" } @@ -5458,129 +5469,129 @@ gboolean sidebar_tree_on_toggle_row (SidebarTree* self, GtkTreeIter* iter, GtkTr GtkTreePath* _tmp6_ = NULL; gboolean _tmp7_ = FALSE; gboolean _tmp16_ = FALSE; -#line 863 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 865 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE); -#line 863 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 865 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" g_return_val_if_fail (iter != NULL, FALSE); -#line 863 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (path != NULL, FALSE); #line 865 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" + g_return_val_if_fail (path != NULL, FALSE); +#line 867 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp0_ = *iter; -#line 865 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 867 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp1_ = sidebar_tree_get_wrapper_at_iter (self, &_tmp0_); -#line 865 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 867 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" wrapper = _tmp1_; -#line 866 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 868 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp2_ = wrapper; -#line 866 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 868 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp2_ == NULL) { -#line 867 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 869 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" result = FALSE; -#line 867 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 869 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (wrapper); -#line 867 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 869 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return result; -#line 5484 "Tree.c" +#line 5495 "Tree.c" } -#line 871 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 873 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp3_ = self->priv->expander_called_manually; -#line 871 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 873 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" should_allow_toggle = _tmp3_; -#line 874 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 876 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" self->priv->expander_called_manually = FALSE; -#line 877 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 879 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp6_ = path; -#line 877 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 879 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp7_ = gtk_tree_view_row_expanded (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), _tmp6_); -#line 877 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 879 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp7_) { -#line 5498 "Tree.c" +#line 5509 "Tree.c" GtkTreeStore* _tmp8_ = NULL; GtkTreeIter _tmp9_ = {0}; gboolean _tmp10_ = FALSE; -#line 877 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 879 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp8_ = self->priv->store; -#line 877 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 879 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp9_ = *iter; -#line 877 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 879 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp10_ = gtk_tree_model_iter_has_child (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GTK_TYPE_TREE_MODEL, GtkTreeModel), &_tmp9_); -#line 877 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 879 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp5_ = _tmp10_; -#line 5510 "Tree.c" +#line 5521 "Tree.c" } else { -#line 877 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 879 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp5_ = FALSE; -#line 5514 "Tree.c" +#line 5525 "Tree.c" } -#line 877 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 879 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp5_) { -#line 5518 "Tree.c" +#line 5529 "Tree.c" SidebarTreeEntryWrapper* _tmp11_ = NULL; SidebarEntry* _tmp12_ = NULL; -#line 877 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 879 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp11_ = wrapper; -#line 877 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 879 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp12_ = _tmp11_->entry; -#line 877 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 879 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp4_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp12_, SIDEBAR_TYPE_SELECTABLE_ENTRY); -#line 5527 "Tree.c" +#line 5538 "Tree.c" } else { -#line 877 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 879 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp4_ = FALSE; -#line 5531 "Tree.c" +#line 5542 "Tree.c" } -#line 877 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 879 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp4_) { -#line 5535 "Tree.c" +#line 5546 "Tree.c" gint _tmp13_ = 0; gint _tmp14_ = 0; -#line 879 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 881 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp13_ = self->priv->expander_special_count; -#line 879 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 881 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" self->priv->expander_special_count = _tmp13_ + 1; -#line 880 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 882 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp14_ = self->priv->expander_special_count; -#line 880 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp14_ == 1) { #line 882 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" + if (_tmp14_ == 1) { +#line 884 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" result = TRUE; -#line 882 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 884 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (wrapper); -#line 882 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 884 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return result; -#line 5552 "Tree.c" +#line 5563 "Tree.c" } else { gboolean _tmp15_ = FALSE; -#line 885 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 887 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp15_ = should_allow_toggle; -#line 885 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 887 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" should_allow_toggle = !_tmp15_; -#line 5559 "Tree.c" +#line 5570 "Tree.c" } } else { -#line 889 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 891 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" self->priv->expander_special_count = 0; -#line 5564 "Tree.c" +#line 5575 "Tree.c" } -#line 892 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 894 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp16_ = should_allow_toggle; -#line 892 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 894 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp16_) { -#line 893 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 895 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" result = FALSE; -#line 893 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 895 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (wrapper); -#line 893 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 895 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return result; -#line 5576 "Tree.c" +#line 5587 "Tree.c" } -#line 896 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 898 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" result = TRUE; -#line 896 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 898 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (wrapper); -#line 896 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 898 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return result; -#line 5584 "Tree.c" +#line 5595 "Tree.c" } @@ -5597,120 +5608,120 @@ static gboolean sidebar_tree_real_button_press_event (GtkWidget* base, GdkEventB guint _tmp8_ = 0U; GdkEventButton* _tmp58_ = NULL; gboolean _tmp59_ = FALSE; -#line 899 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 901 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, SIDEBAR_TYPE_TREE, SidebarTree); -#line 899 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 901 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 900 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 902 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp0_ = event; -#line 900 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 902 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp1_ = sidebar_tree_get_path_from_event (self, _tmp0_); -#line 900 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 902 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" path = _tmp1_; -#line 903 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 905 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp3_ = path; -#line 903 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 905 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp3_ == NULL) { -#line 5615 "Tree.c" +#line 5626 "Tree.c" GdkEventButton* _tmp4_ = NULL; guint _tmp5_ = 0U; -#line 903 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 905 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp4_ = event; -#line 903 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 905 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp5_ = _tmp4_->button; -#line 903 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 905 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp2_ = _tmp5_ != ((guint) 3); -#line 5624 "Tree.c" +#line 5635 "Tree.c" } else { -#line 903 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 905 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp2_ = FALSE; -#line 5628 "Tree.c" +#line 5639 "Tree.c" } -#line 903 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 905 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp2_) { -#line 904 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 906 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" result = TRUE; -#line 904 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 906 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _gtk_tree_path_free0 (path); -#line 904 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 906 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return result; -#line 5638 "Tree.c" +#line 5649 "Tree.c" } -#line 907 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 909 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp7_ = event; -#line 907 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 909 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp8_ = _tmp7_->button; -#line 907 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 909 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp8_ == ((guint) 3)) { -#line 5646 "Tree.c" +#line 5657 "Tree.c" GdkEventButton* _tmp9_ = NULL; GdkEventType _tmp10_ = 0; -#line 907 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 909 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp9_ = event; -#line 907 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 909 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp10_ = _tmp9_->type; -#line 907 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 909 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp6_ = _tmp10_ == GDK_BUTTON_PRESS; -#line 5655 "Tree.c" +#line 5666 "Tree.c" } else { -#line 907 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 909 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp6_ = FALSE; -#line 5659 "Tree.c" +#line 5670 "Tree.c" } -#line 907 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 909 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp6_) { -#line 5663 "Tree.c" +#line 5674 "Tree.c" GtkTreePath* _tmp11_ = NULL; -#line 909 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 911 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp11_ = path; -#line 909 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 911 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp11_ != NULL) { -#line 5669 "Tree.c" +#line 5680 "Tree.c" GtkTreePath* _tmp12_ = NULL; GdkEventButton* _tmp13_ = NULL; -#line 910 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 912 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp12_ = path; -#line 910 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 912 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp13_ = event; -#line 910 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 912 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" sidebar_tree_popup_context_menu (self, _tmp12_, _tmp13_); -#line 5678 "Tree.c" +#line 5689 "Tree.c" } else { GdkEventButton* _tmp14_ = NULL; -#line 912 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 914 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp14_ = event; -#line 912 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 914 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" sidebar_tree_popup_default_context_menu (self, _tmp14_); -#line 5685 "Tree.c" +#line 5696 "Tree.c" } } else { gboolean _tmp15_ = FALSE; GdkEventButton* _tmp16_ = NULL; guint _tmp17_ = 0U; -#line 913 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 915 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp16_ = event; -#line 913 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 915 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp17_ = _tmp16_->button; -#line 913 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 915 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp17_ == ((guint) 1)) { -#line 5697 "Tree.c" +#line 5708 "Tree.c" GdkEventButton* _tmp18_ = NULL; GdkEventType _tmp19_ = 0; -#line 913 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 915 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp18_ = event; -#line 913 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 915 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp19_ = _tmp18_->type; -#line 913 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 915 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp15_ = _tmp19_ == GDK_BUTTON_PRESS; -#line 5706 "Tree.c" +#line 5717 "Tree.c" } else { -#line 913 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 915 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp15_ = FALSE; -#line 5710 "Tree.c" +#line 5721 "Tree.c" } -#line 913 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 915 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp15_) { -#line 5714 "Tree.c" +#line 5725 "Tree.c" GtkTreePath* _tmp20_ = NULL; SidebarTreeEntryWrapper* wrapper = NULL; GtkTreePath* _tmp23_ = NULL; @@ -5728,226 +5739,226 @@ static gboolean sidebar_tree_real_button_press_event (GtkWidget* base, GdkEventB GtkTreeStore* _tmp55_ = NULL; GtkTreePath* _tmp56_ = NULL; GtkTreeRowReference* _tmp57_ = NULL; -#line 914 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 916 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp20_ = path; -#line 914 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 916 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp20_ == NULL) { -#line 5736 "Tree.c" +#line 5747 "Tree.c" GdkEventButton* _tmp21_ = NULL; gboolean _tmp22_ = FALSE; -#line 915 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 917 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _gtk_tree_row_reference_free0 (self->priv->old_path_ref); -#line 915 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 917 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" self->priv->old_path_ref = NULL; -#line 916 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 918 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp21_ = event; -#line 916 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 918 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp22_ = GTK_WIDGET_CLASS (sidebar_tree_parent_class)->button_press_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), gtk_widget_get_type (), GtkWidget), _tmp21_); -#line 916 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 918 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" result = _tmp22_; -#line 916 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 918 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _gtk_tree_path_free0 (path); -#line 916 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 918 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return result; -#line 5753 "Tree.c" +#line 5764 "Tree.c" } -#line 919 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 921 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp23_ = path; -#line 919 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 921 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp24_ = sidebar_tree_get_wrapper_at_path (self, _tmp23_); -#line 919 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - wrapper = _tmp24_; #line 921 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" + wrapper = _tmp24_; +#line 923 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp25_ = wrapper; -#line 921 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 923 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp25_ == NULL) { -#line 5765 "Tree.c" +#line 5776 "Tree.c" GdkEventButton* _tmp26_ = NULL; gboolean _tmp27_ = FALSE; -#line 922 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 924 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _gtk_tree_row_reference_free0 (self->priv->old_path_ref); -#line 922 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 924 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" self->priv->old_path_ref = NULL; -#line 923 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 925 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp26_ = event; -#line 923 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 925 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp27_ = GTK_WIDGET_CLASS (sidebar_tree_parent_class)->button_press_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), gtk_widget_get_type (), GtkWidget), _tmp26_); -#line 923 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 925 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" result = _tmp27_; -#line 923 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 925 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (wrapper); -#line 923 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 925 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _gtk_tree_path_free0 (path); -#line 923 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 925 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return result; -#line 5784 "Tree.c" +#line 5795 "Tree.c" } -#line 927 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 929 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp29_ = wrapper; -#line 927 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 929 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp30_ = _tmp29_->entry; -#line 927 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 929 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp30_, SIDEBAR_TYPE_EXPANDABLE_ENTRY)) { -#line 927 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 929 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp28_ = TRUE; -#line 5794 "Tree.c" +#line 5805 "Tree.c" } else { SidebarTreeEntryWrapper* _tmp31_ = NULL; SidebarEntry* _tmp32_ = NULL; -#line 928 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 930 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp31_ = wrapper; -#line 928 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 930 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp32_ = _tmp31_->entry; -#line 928 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 930 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp28_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp32_, SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY); -#line 5804 "Tree.c" +#line 5815 "Tree.c" } -#line 927 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 929 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp28_) { -#line 5808 "Tree.c" +#line 5819 "Tree.c" GtkTreePath* _tmp33_ = NULL; -#line 930 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 932 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp33_ = path; -#line 930 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 932 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" sidebar_tree_toggle_branch_expansion (self, _tmp33_, FALSE); -#line 5814 "Tree.c" +#line 5825 "Tree.c" } -#line 934 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 936 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp36_ = self->priv->old_path_ref; -#line 934 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 936 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp36_ != NULL) { -#line 5820 "Tree.c" +#line 5831 "Tree.c" const GtkTreeRowReference* _tmp37_ = NULL; GtkTreePath* _tmp38_ = NULL; GtkTreePath* _tmp39_ = NULL; -#line 934 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 936 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp37_ = self->priv->old_path_ref; -#line 934 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 936 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp38_ = gtk_tree_row_reference_get_path (_tmp37_); -#line 934 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 936 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp39_ = _tmp38_; -#line 934 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 936 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp35_ = _tmp39_ != NULL; -#line 934 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 936 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _gtk_tree_path_free0 (_tmp39_); -#line 5834 "Tree.c" +#line 5845 "Tree.c" } else { -#line 934 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 936 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp35_ = FALSE; -#line 5838 "Tree.c" +#line 5849 "Tree.c" } -#line 934 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 936 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp35_) { -#line 5842 "Tree.c" +#line 5853 "Tree.c" const GtkTreeRowReference* _tmp40_ = NULL; GtkTreePath* _tmp41_ = NULL; GtkTreePath* _tmp42_ = NULL; GtkTreePath* _tmp43_ = NULL; gint _tmp44_ = 0; -#line 935 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 937 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp40_ = self->priv->old_path_ref; -#line 935 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 937 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp41_ = gtk_tree_row_reference_get_path (_tmp40_); -#line 935 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 937 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp42_ = _tmp41_; -#line 935 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 937 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp43_ = path; -#line 935 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 937 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp44_ = gtk_tree_path_compare (_tmp42_, _tmp43_); -#line 935 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 937 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp34_ = _tmp44_ == 0; -#line 935 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 937 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _gtk_tree_path_free0 (_tmp42_); -#line 5862 "Tree.c" +#line 5873 "Tree.c" } else { -#line 934 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 936 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp34_ = FALSE; -#line 5866 "Tree.c" +#line 5877 "Tree.c" } -#line 934 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 936 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp34_) { -#line 5870 "Tree.c" +#line 5881 "Tree.c" GtkCellRendererText* _tmp45_ = NULL; GdkEventButton* _tmp46_ = NULL; gboolean _tmp47_ = FALSE; -#line 938 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 940 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp45_ = self->priv->text_renderer; -#line 938 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 940 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" g_object_set (_tmp45_, "editable", FALSE, NULL); -#line 939 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 941 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp46_ = event; -#line 939 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 941 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp47_ = GTK_WIDGET_CLASS (sidebar_tree_parent_class)->button_press_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), gtk_widget_get_type (), GtkWidget), _tmp46_); -#line 939 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 941 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" result = _tmp47_; -#line 939 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 941 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (wrapper); -#line 939 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 941 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _gtk_tree_path_free0 (path); -#line 939 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 941 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return result; -#line 5890 "Tree.c" +#line 5901 "Tree.c" } -#line 944 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 946 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp49_ = wrapper; -#line 944 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 946 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp50_ = _tmp49_->entry; -#line 944 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 946 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp50_, SIDEBAR_TYPE_RENAMEABLE_ENTRY)) { -#line 5898 "Tree.c" +#line 5909 "Tree.c" SidebarTreeEntryWrapper* _tmp51_ = NULL; SidebarEntry* _tmp52_ = NULL; gboolean _tmp53_ = FALSE; -#line 945 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 947 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp51_ = wrapper; -#line 945 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 947 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp52_ = _tmp51_->entry; -#line 945 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 947 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp53_ = sidebar_renameable_entry_is_user_renameable (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntry)); -#line 945 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 947 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp48_ = _tmp53_; -#line 5910 "Tree.c" +#line 5921 "Tree.c" } else { -#line 944 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 946 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp48_ = FALSE; -#line 5914 "Tree.c" +#line 5925 "Tree.c" } -#line 944 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 946 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp48_) { -#line 5918 "Tree.c" +#line 5929 "Tree.c" GtkCellRendererText* _tmp54_ = NULL; -#line 946 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 948 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp54_ = self->priv->text_renderer; -#line 946 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 948 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" g_object_set (_tmp54_, "editable", TRUE, NULL); -#line 5924 "Tree.c" +#line 5935 "Tree.c" } -#line 950 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 952 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp55_ = self->priv->store; -#line 950 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 952 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp56_ = path; -#line 950 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 952 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp57_ = gtk_tree_row_reference_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, GTK_TYPE_TREE_MODEL, GtkTreeModel), _tmp56_); -#line 950 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 952 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _gtk_tree_row_reference_free0 (self->priv->old_path_ref); -#line 950 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 952 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" self->priv->old_path_ref = _tmp57_; -#line 913 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 915 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (wrapper); -#line 5938 "Tree.c" +#line 5949 "Tree.c" } } -#line 953 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 955 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp58_ = event; -#line 953 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 955 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp59_ = GTK_WIDGET_CLASS (sidebar_tree_parent_class)->button_press_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), gtk_widget_get_type (), GtkWidget), _tmp58_); -#line 953 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 955 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" result = _tmp59_; -#line 953 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 955 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _gtk_tree_path_free0 (path); -#line 953 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 955 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return result; -#line 5951 "Tree.c" +#line 5962 "Tree.c" } @@ -5958,53 +5969,53 @@ gboolean sidebar_tree_is_keypress_interpreted (SidebarTree* self, GdkEventKey* e const gchar* _tmp2_ = NULL; const gchar* _tmp3_ = NULL; GQuark _tmp5_ = 0U; -#line 957 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 959 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" static GQuark _tmp4_label0 = 0; -#line 957 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 959 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" static GQuark _tmp4_label1 = 0; -#line 957 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 959 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" static GQuark _tmp4_label2 = 0; -#line 957 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 959 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" static GQuark _tmp4_label3 = 0; -#line 956 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 958 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE); -#line 956 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 958 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 957 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 959 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp0_ = event; -#line 957 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 959 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp1_ = _tmp0_->keyval; -#line 957 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 959 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp2_ = gdk_keyval_name (_tmp1_); -#line 957 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 959 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp3_ = _tmp2_; -#line 957 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 959 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp5_ = (NULL == _tmp3_) ? 0 : g_quark_from_string (_tmp3_); -#line 957 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 959 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if ((((_tmp5_ == ((0 != _tmp4_label0) ? _tmp4_label0 : (_tmp4_label0 = g_quark_from_static_string ("F2")))) || (_tmp5_ == ((0 != _tmp4_label1) ? _tmp4_label1 : (_tmp4_label1 = g_quark_from_static_string ("Delete"))))) || (_tmp5_ == ((0 != _tmp4_label2) ? _tmp4_label2 : (_tmp4_label2 = g_quark_from_static_string ("Return"))))) || (_tmp5_ == ((0 != _tmp4_label3) ? _tmp4_label3 : (_tmp4_label3 = g_quark_from_static_string ("KP_Enter"))))) { -#line 957 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 959 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" switch (0) { -#line 5988 "Tree.c" +#line 5999 "Tree.c" default: { -#line 962 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 964 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" result = TRUE; -#line 962 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 964 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return result; -#line 5995 "Tree.c" +#line 6006 "Tree.c" } } } else { -#line 957 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 959 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" switch (0) { -#line 6001 "Tree.c" +#line 6012 "Tree.c" default: { -#line 965 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 967 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" result = FALSE; -#line 965 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 967 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return result; -#line 6008 "Tree.c" +#line 6019 "Tree.c" } } } @@ -6019,134 +6030,134 @@ static gboolean sidebar_tree_real_key_press_event (GtkWidget* base, GdkEventKey* const gchar* _tmp2_ = NULL; const gchar* _tmp3_ = NULL; GQuark _tmp5_ = 0U; -#line 970 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 972 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" static GQuark _tmp4_label0 = 0; -#line 970 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 972 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" static GQuark _tmp4_label1 = 0; -#line 970 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 972 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" static GQuark _tmp4_label2 = 0; -#line 970 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 972 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" static GQuark _tmp4_label3 = 0; -#line 6031 "Tree.c" +#line 6042 "Tree.c" GdkEventKey* _tmp15_ = NULL; gboolean _tmp16_ = FALSE; -#line 969 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 971 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, SIDEBAR_TYPE_TREE, SidebarTree); -#line 969 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 971 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 970 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 972 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp0_ = event; -#line 970 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 972 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp1_ = _tmp0_->keyval; -#line 970 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 972 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp2_ = gdk_keyval_name (_tmp1_); -#line 970 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 972 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp3_ = _tmp2_; -#line 970 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 972 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp5_ = (NULL == _tmp3_) ? 0 : g_quark_from_string (_tmp3_); -#line 970 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 972 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if ((_tmp5_ == ((0 != _tmp4_label0) ? _tmp4_label0 : (_tmp4_label0 = g_quark_from_static_string ("Return")))) || (_tmp5_ == ((0 != _tmp4_label1) ? _tmp4_label1 : (_tmp4_label1 = g_quark_from_static_string ("KP_Enter"))))) { -#line 970 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 972 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" switch (0) { -#line 6052 "Tree.c" +#line 6063 "Tree.c" default: { GtkTreePath* path = NULL; GtkTreePath* _tmp6_ = NULL; GtkTreePath* _tmp7_ = NULL; -#line 973 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 975 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp6_ = sidebar_tree_get_current_path (self); -#line 973 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 975 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" path = _tmp6_; -#line 974 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 976 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp7_ = path; -#line 974 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 976 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp7_ != NULL) { -#line 6066 "Tree.c" +#line 6077 "Tree.c" GtkTreePath* _tmp8_ = NULL; -#line 975 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 977 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp8_ = path; -#line 975 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 977 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" sidebar_tree_toggle_branch_expansion (self, _tmp8_, FALSE); -#line 6072 "Tree.c" +#line 6083 "Tree.c" } -#line 977 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 979 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" result = TRUE; -#line 977 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 979 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _gtk_tree_path_free0 (path); -#line 977 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 979 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return result; -#line 6080 "Tree.c" +#line 6091 "Tree.c" } } } else if (_tmp5_ == ((0 != _tmp4_label2) ? _tmp4_label2 : (_tmp4_label2 = g_quark_from_static_string ("F2")))) { -#line 970 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 972 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" switch (0) { -#line 6086 "Tree.c" +#line 6097 "Tree.c" default: { gboolean _tmp9_ = FALSE; -#line 980 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 982 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp9_ = sidebar_tree_rename_in_place (self); -#line 980 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 982 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" result = _tmp9_; -#line 980 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 982 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return result; -#line 6096 "Tree.c" +#line 6107 "Tree.c" } } } else if (_tmp5_ == ((0 != _tmp4_label3) ? _tmp4_label3 : (_tmp4_label3 = g_quark_from_static_string ("Delete")))) { -#line 970 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 972 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" switch (0) { -#line 6102 "Tree.c" +#line 6113 "Tree.c" default: { GtkTreePath* path = NULL; GtkTreePath* _tmp10_ = NULL; gboolean _tmp11_ = FALSE; GtkTreePath* _tmp12_ = NULL; -#line 983 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 985 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp10_ = sidebar_tree_get_current_path (self); -#line 983 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - path = _tmp10_; #line 985 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" + path = _tmp10_; +#line 987 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp12_ = path; -#line 985 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 987 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp12_ != NULL) { -#line 6117 "Tree.c" +#line 6128 "Tree.c" GtkTreePath* _tmp13_ = NULL; gboolean _tmp14_ = FALSE; -#line 985 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 987 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp13_ = path; -#line 985 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 987 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp14_ = sidebar_tree_destroy_path (self, _tmp13_); -#line 985 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 987 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp11_ = _tmp14_; -#line 6126 "Tree.c" +#line 6137 "Tree.c" } else { -#line 985 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 987 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp11_ = FALSE; -#line 6130 "Tree.c" +#line 6141 "Tree.c" } -#line 985 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 987 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" result = _tmp11_; -#line 985 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 987 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _gtk_tree_path_free0 (path); -#line 985 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 987 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return result; -#line 6138 "Tree.c" +#line 6149 "Tree.c" } } } -#line 988 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 990 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp15_ = event; -#line 988 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 990 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp16_ = GTK_WIDGET_CLASS (sidebar_tree_parent_class)->key_press_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), gtk_widget_get_type (), GtkWidget), _tmp15_); -#line 988 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 990 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" result = _tmp16_; -#line 988 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 990 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return result; -#line 6150 "Tree.c" +#line 6161 "Tree.c" } @@ -6157,41 +6168,41 @@ gboolean sidebar_tree_rename_entry_in_place (SidebarTree* self, SidebarEntry* en SidebarEntry* _tmp2_ = NULL; gboolean _tmp3_ = FALSE; gboolean _tmp4_ = FALSE; -#line 991 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 993 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE); -#line 991 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 993 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" g_return_val_if_fail (SIDEBAR_IS_ENTRY (entry), FALSE); -#line 992 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 994 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp0_ = entry; -#line 992 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 994 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp1_ = sidebar_tree_expand_to_entry (self, _tmp0_); -#line 992 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 994 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (!_tmp1_) { -#line 993 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 995 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" result = FALSE; -#line 993 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 995 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return result; -#line 6175 "Tree.c" +#line 6186 "Tree.c" } -#line 995 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 997 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp2_ = entry; -#line 995 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 997 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp3_ = sidebar_tree_place_cursor (self, _tmp2_, FALSE); -#line 995 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 997 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (!_tmp3_) { -#line 996 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 998 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" result = FALSE; -#line 996 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 998 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return result; -#line 6187 "Tree.c" +#line 6198 "Tree.c" } -#line 998 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1000 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp4_ = sidebar_tree_rename_in_place (self); -#line 998 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1000 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" result = _tmp4_; -#line 998 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1000 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return result; -#line 6195 "Tree.c" +#line 6206 "Tree.c" } @@ -6204,57 +6215,57 @@ static gboolean sidebar_tree_rename_in_place (SidebarTree* self) { GtkTreeViewColumn* _tmp2_ = NULL; GtkTreePath* _tmp3_ = NULL; gboolean _tmp4_ = FALSE; -#line 1001 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1003 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE); -#line 1004 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1006 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" gtk_tree_view_get_cursor (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), &_tmp0_, &_tmp1_); -#line 1004 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1006 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _gtk_tree_path_free0 (cursor_path); -#line 1004 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1006 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" cursor_path = _tmp0_; -#line 1004 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1006 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (cursor_column); -#line 1004 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1006 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp2_ = _g_object_ref0 (_tmp1_); -#line 1004 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - cursor_column = _tmp2_; #line 1006 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" + cursor_column = _tmp2_; +#line 1008 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp3_ = cursor_path; -#line 1006 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1008 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp4_ = sidebar_tree_can_rename_path (self, _tmp3_); -#line 1006 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1008 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp4_) { -#line 6228 "Tree.c" +#line 6239 "Tree.c" GtkTreePath* _tmp5_ = NULL; GtkTreeViewColumn* _tmp6_ = NULL; GtkCellRendererText* _tmp7_ = NULL; -#line 1007 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1009 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp5_ = cursor_path; -#line 1007 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1009 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp6_ = cursor_column; -#line 1007 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1009 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp7_ = self->priv->text_renderer; -#line 1007 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_view_set_cursor_on_cell (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), _tmp5_, _tmp6_, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_cell_renderer_get_type (), GtkCellRenderer), TRUE); #line 1009 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" + gtk_tree_view_set_cursor_on_cell (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), _tmp5_, _tmp6_, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_cell_renderer_get_type (), GtkCellRenderer), TRUE); +#line 1011 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" result = TRUE; -#line 1009 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1011 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (cursor_column); -#line 1009 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1011 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _gtk_tree_path_free0 (cursor_path); -#line 1009 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1011 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return result; -#line 6248 "Tree.c" +#line 6259 "Tree.c" } -#line 1012 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1014 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" result = FALSE; -#line 1012 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1014 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (cursor_column); -#line 1012 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1014 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _gtk_tree_path_free0 (cursor_path); -#line 1012 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1014 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return result; -#line 6258 "Tree.c" +#line 6269 "Tree.c" } @@ -6267,45 +6278,45 @@ gboolean sidebar_tree_scroll_to_entry (SidebarTree* self, SidebarEntry* entry) { SidebarTreeEntryWrapper* _tmp3_ = NULL; GtkTreePath* _tmp4_ = NULL; GtkTreePath* _tmp5_ = NULL; -#line 1015 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1017 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE); -#line 1015 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1017 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" g_return_val_if_fail (SIDEBAR_IS_ENTRY (entry), FALSE); -#line 1016 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1018 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp0_ = entry; -#line 1016 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1018 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp1_ = sidebar_tree_get_wrapper (self, _tmp0_); -#line 1016 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1018 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" wrapper = _tmp1_; -#line 1017 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1019 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp2_ = wrapper; -#line 1017 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1019 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp2_ == NULL) { -#line 1018 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1020 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" result = FALSE; -#line 1018 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1020 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (wrapper); -#line 1018 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1020 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return result; -#line 6291 "Tree.c" +#line 6302 "Tree.c" } -#line 1020 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1022 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp3_ = wrapper; -#line 1020 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1022 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp4_ = sidebar_tree_entry_wrapper_get_path (_tmp3_); -#line 1020 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1022 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp5_ = _tmp4_; -#line 1020 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1022 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" gtk_tree_view_scroll_to_cell (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), _tmp5_, NULL, FALSE, (gfloat) 0, (gfloat) 0); -#line 1020 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _gtk_tree_path_free0 (_tmp5_); #line 1022 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" + _gtk_tree_path_free0 (_tmp5_); +#line 1024 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" result = TRUE; -#line 1022 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1024 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (wrapper); -#line 1022 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1024 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return result; -#line 6309 "Tree.c" +#line 6320 "Tree.c" } @@ -6316,55 +6327,55 @@ static void sidebar_tree_real_drag_data_get (GtkWidget* base, GdkDragContext* co SidebarInternalDragSourceEntry* _tmp6_ = NULL; SidebarInternalDragSourceEntry* _tmp16_ = NULL; GtkSelectionData* _tmp17_ = NULL; -#line 1025 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1027 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, SIDEBAR_TYPE_TREE, SidebarTree); -#line 1025 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1027 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" g_return_if_fail (GDK_IS_DRAG_CONTEXT (context)); -#line 1025 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (selection_data != NULL); #line 1027 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - drag_source = NULL; + g_return_if_fail (selection_data != NULL); #line 1029 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" + drag_source = NULL; +#line 1031 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp0_ = self->priv->internal_drag_source_entry; -#line 1029 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1031 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp0_ != NULL) { -#line 6332 "Tree.c" +#line 6343 "Tree.c" SidebarSelectableEntry* selectable = NULL; SidebarEntry* _tmp1_ = NULL; SidebarSelectableEntry* _tmp2_ = NULL; SidebarSelectableEntry* _tmp3_ = NULL; -#line 1030 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1032 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp1_ = self->priv->internal_drag_source_entry; -#line 1030 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1032 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, SIDEBAR_TYPE_SELECTABLE_ENTRY) ? ((SidebarSelectableEntry*) _tmp1_) : NULL); -#line 1030 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - selectable = _tmp2_; #line 1032 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" + selectable = _tmp2_; +#line 1034 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp3_ = selectable; -#line 1032 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1034 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp3_ == NULL) { -#line 6347 "Tree.c" +#line 6358 "Tree.c" SidebarEntry* _tmp4_ = NULL; SidebarInternalDragSourceEntry* _tmp5_ = NULL; -#line 1033 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1035 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp4_ = self->priv->internal_drag_source_entry; -#line 1033 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1035 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, SIDEBAR_TYPE_INTERNAL_DRAG_SOURCE_ENTRY) ? ((SidebarInternalDragSourceEntry*) _tmp4_) : NULL); -#line 1033 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1035 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (drag_source); -#line 1033 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1035 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" drag_source = _tmp5_; -#line 6358 "Tree.c" +#line 6369 "Tree.c" } -#line 1029 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1031 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (selectable); -#line 6362 "Tree.c" +#line 6373 "Tree.c" } -#line 1037 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1039 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp6_ = drag_source; -#line 1037 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1039 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp6_ == NULL) { -#line 6368 "Tree.c" +#line 6379 "Tree.c" GtkTreePath* selected_path = NULL; GtkTreePath* _tmp7_ = NULL; GtkTreePath* _tmp8_ = NULL; @@ -6376,81 +6387,81 @@ static void sidebar_tree_real_drag_data_get (GtkWidget* base, GdkDragContext* co SidebarEntry* _tmp13_ = NULL; SidebarInternalDragSourceEntry* _tmp14_ = NULL; SidebarInternalDragSourceEntry* _tmp15_ = NULL; -#line 1038 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1040 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp7_ = sidebar_tree_get_selected_path (self); -#line 1038 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1040 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" selected_path = _tmp7_; -#line 1039 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1041 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp8_ = selected_path; -#line 1039 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1041 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp8_ == NULL) { -#line 1040 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1042 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _gtk_tree_path_free0 (selected_path); -#line 1040 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1042 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (drag_source); -#line 1040 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1042 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return; -#line 6394 "Tree.c" +#line 6405 "Tree.c" } -#line 1042 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1044 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp9_ = selected_path; -#line 1042 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1044 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp10_ = sidebar_tree_get_wrapper_at_path (self, _tmp9_); -#line 1042 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1044 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" wrapper = _tmp10_; -#line 1043 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1045 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp11_ = wrapper; -#line 1043 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1045 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp11_ == NULL) { -#line 1044 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1046 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (wrapper); -#line 1044 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1046 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _gtk_tree_path_free0 (selected_path); -#line 1044 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1046 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (drag_source); -#line 1044 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1046 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return; -#line 6414 "Tree.c" +#line 6425 "Tree.c" } -#line 1046 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1048 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp12_ = wrapper; -#line 1046 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1048 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp13_ = _tmp12_->entry; -#line 1046 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1048 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp14_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp13_, SIDEBAR_TYPE_INTERNAL_DRAG_SOURCE_ENTRY) ? ((SidebarInternalDragSourceEntry*) _tmp13_) : NULL); -#line 1046 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1048 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (drag_source); -#line 1046 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1048 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" drag_source = _tmp14_; -#line 1047 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1049 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp15_ = drag_source; -#line 1047 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1049 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp15_ == NULL) { -#line 1048 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1050 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (wrapper); -#line 1048 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1050 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _gtk_tree_path_free0 (selected_path); -#line 1048 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1050 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (drag_source); -#line 1048 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1050 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return; -#line 6438 "Tree.c" +#line 6449 "Tree.c" } -#line 1037 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1039 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (wrapper); -#line 1037 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1039 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _gtk_tree_path_free0 (selected_path); -#line 6444 "Tree.c" +#line 6455 "Tree.c" } -#line 1051 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1053 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp16_ = drag_source; -#line 1051 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1053 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp17_ = selection_data; -#line 1051 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1053 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" sidebar_internal_drag_source_entry_prepare_selection_data (_tmp16_, _tmp17_); -#line 1025 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1027 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (drag_source); -#line 6454 "Tree.c" +#line 6465 "Tree.c" } @@ -6483,87 +6494,87 @@ static void sidebar_tree_real_drag_data_received (GtkWidget* base, GdkDragContex GdkDragContext* _tmp57_ = NULL; gboolean _tmp58_ = FALSE; guint _tmp59_ = 0U; -#line 1054 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1056 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, SIDEBAR_TYPE_TREE, SidebarTree); -#line 1054 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1056 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" g_return_if_fail (GDK_IS_DRAG_CONTEXT (context)); -#line 1054 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1056 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" g_return_if_fail (selection_data != NULL); -#line 1059 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1061 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp0_ = x; -#line 1059 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1061 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp1_ = y; -#line 1059 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1061 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp4_ = gtk_tree_view_get_dest_row_at_pos (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), _tmp0_, _tmp1_, &_tmp2_, &_tmp3_); -#line 1059 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1061 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _gtk_tree_path_free0 (path); -#line 1059 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1061 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" path = _tmp2_; -#line 1059 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1061 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" pos = _tmp3_; -#line 1059 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1061 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (!_tmp4_) { -#line 6507 "Tree.c" +#line 6518 "Tree.c" GdkDragContext* _tmp5_ = NULL; GtkWidget* _tmp6_ = NULL; -#line 1061 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1063 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp5_ = context; -#line 1061 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1063 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp6_ = gtk_drag_get_source_widget (_tmp5_); -#line 1061 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1063 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp6_ == NULL) { -#line 6516 "Tree.c" +#line 6527 "Tree.c" SidebarTreeExternalDropHandler _tmp7_ = NULL; void* _tmp7__target = NULL; GdkDragContext* _tmp8_ = NULL; GtkSelectionData* _tmp9_ = NULL; guint _tmp10_ = 0U; guint _tmp11_ = 0U; -#line 1062 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1064 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp7_ = self->priv->drop_handler; -#line 1062 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1064 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp7__target = self->priv->drop_handler_target; -#line 1062 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1064 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp8_ = context; -#line 1062 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1064 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp9_ = selection_data; -#line 1062 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1064 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp10_ = info; -#line 1062 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1064 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp11_ = time; -#line 1062 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1064 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp7_ (_tmp8_, NULL, _tmp9_, _tmp10_, _tmp11_, _tmp7__target); -#line 6537 "Tree.c" +#line 6548 "Tree.c" } else { GdkDragContext* _tmp12_ = NULL; guint _tmp13_ = 0U; -#line 1064 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1066 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp12_ = context; -#line 1064 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1066 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp13_ = time; -#line 1064 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1066 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" gtk_drag_finish (_tmp12_, FALSE, FALSE, (guint32) _tmp13_); -#line 6547 "Tree.c" +#line 6558 "Tree.c" } -#line 1066 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1068 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _gtk_tree_path_free0 (path); -#line 1066 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1068 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return; -#line 6553 "Tree.c" +#line 6564 "Tree.c" } -#line 1070 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1072 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp14_ = path; -#line 1070 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1072 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp15_ = sidebar_tree_get_wrapper_at_path (self, _tmp14_); -#line 1070 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1072 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" wrapper = _tmp15_; -#line 1073 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1075 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp16_ = context; -#line 1073 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1075 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp17_ = gtk_drag_get_source_widget (_tmp16_); -#line 1073 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1075 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp17_ == NULL) { -#line 6567 "Tree.c" +#line 6578 "Tree.c" SidebarEntry* _tmp18_ = NULL; SidebarTreeEntryWrapper* _tmp19_ = NULL; SidebarTreeExternalDropHandler _tmp22_ = NULL; @@ -6572,128 +6583,128 @@ static void sidebar_tree_real_drag_data_received (GtkWidget* base, GdkDragContex GtkSelectionData* _tmp24_ = NULL; guint _tmp25_ = 0U; guint _tmp26_ = 0U; -#line 1074 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1076 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp19_ = wrapper; -#line 1074 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1076 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp19_ != NULL) { -#line 6580 "Tree.c" +#line 6591 "Tree.c" SidebarTreeEntryWrapper* _tmp20_ = NULL; SidebarEntry* _tmp21_ = NULL; -#line 1074 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1076 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp20_ = wrapper; -#line 1074 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1076 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp21_ = _tmp20_->entry; -#line 1074 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1076 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp18_ = _tmp21_; -#line 6589 "Tree.c" +#line 6600 "Tree.c" } else { -#line 1074 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1076 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp18_ = NULL; -#line 6593 "Tree.c" +#line 6604 "Tree.c" } -#line 1074 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1076 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp22_ = self->priv->drop_handler; -#line 1074 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1076 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp22__target = self->priv->drop_handler_target; -#line 1074 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1076 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp23_ = context; -#line 1074 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1076 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp24_ = selection_data; -#line 1074 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1076 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp25_ = info; -#line 1074 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1076 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp26_ = time; -#line 1074 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1076 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp22_ (_tmp23_, _tmp18_, _tmp24_, _tmp25_, _tmp26_, _tmp22__target); -#line 1077 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1079 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (wrapper); -#line 1077 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1079 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _gtk_tree_path_free0 (path); -#line 1077 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1079 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return; -#line 6615 "Tree.c" +#line 6626 "Tree.c" } -#line 1081 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1083 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp27_ = wrapper; -#line 1081 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1083 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp27_ == NULL) { -#line 6621 "Tree.c" +#line 6632 "Tree.c" GdkDragContext* _tmp28_ = NULL; guint _tmp29_ = 0U; -#line 1082 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1084 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp28_ = context; -#line 1082 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1084 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp29_ = time; -#line 1082 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_drag_finish (_tmp28_, FALSE, FALSE, (guint32) _tmp29_); #line 1084 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" + gtk_drag_finish (_tmp28_, FALSE, FALSE, (guint32) _tmp29_); +#line 1086 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (wrapper); -#line 1084 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1086 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _gtk_tree_path_free0 (path); -#line 1084 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1086 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return; -#line 6636 "Tree.c" +#line 6647 "Tree.c" } -#line 1087 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1089 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp30_ = wrapper; -#line 1087 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1089 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp31_ = _tmp30_->entry; -#line 1087 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1089 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp32_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp31_, SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY) ? ((SidebarInternalDropTargetEntry*) _tmp31_) : NULL); -#line 1087 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1089 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" targetable = _tmp32_; -#line 1088 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1090 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp33_ = targetable; -#line 1088 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1090 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp33_ == NULL) { -#line 6650 "Tree.c" +#line 6661 "Tree.c" GdkDragContext* _tmp34_ = NULL; guint _tmp35_ = 0U; -#line 1089 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1091 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp34_ = context; -#line 1089 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1091 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp35_ = time; -#line 1089 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_drag_finish (_tmp34_, FALSE, FALSE, (guint32) _tmp35_); #line 1091 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" + gtk_drag_finish (_tmp34_, FALSE, FALSE, (guint32) _tmp35_); +#line 1093 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (targetable); -#line 1091 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1093 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (wrapper); -#line 1091 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1093 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _gtk_tree_path_free0 (path); -#line 1091 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1093 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return; -#line 6667 "Tree.c" +#line 6678 "Tree.c" } -#line 1094 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - success = FALSE; #line 1096 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" + success = FALSE; +#line 1098 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp36_ = selection_data; -#line 1096 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1098 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp37_ = gtk_selection_data_get_data_type (_tmp36_); -#line 1096 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1098 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp38_ = gdk_atom_name (_tmp37_); -#line 1096 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1098 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp39_ = _tmp38_; -#line 1096 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1098 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp40_ = g_strcmp0 (_tmp39_, LIBRARY_WINDOW_TAG_PATH_MIME_TYPE) == 0; -#line 1096 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1098 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_free0 (_tmp39_); -#line 1096 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1098 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp40_) { -#line 6685 "Tree.c" +#line 6696 "Tree.c" SidebarInternalDropTargetEntry* _tmp41_ = NULL; GtkSelectionData* _tmp42_ = NULL; gboolean _tmp43_ = FALSE; -#line 1097 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1099 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp41_ = targetable; -#line 1097 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1099 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp42_ = selection_data; -#line 1097 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1099 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp43_ = sidebar_internal_drop_target_entry_internal_drop_received_arbitrary (_tmp41_, _tmp42_); -#line 1097 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1099 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" success = _tmp43_; -#line 6697 "Tree.c" +#line 6708 "Tree.c" } else { GeeList* media = NULL; GtkSelectionData* _tmp44_ = NULL; @@ -6703,75 +6714,75 @@ static void sidebar_tree_real_drag_data_received (GtkWidget* base, GdkDragContex GeeList* _tmp48_ = NULL; gboolean _tmp49_ = FALSE; GeeList* _tmp50_ = NULL; -#line 1099 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1101 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp44_ = selection_data; -#line 1099 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1101 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp45_ = gtk_selection_data_get_data (_tmp44_); -#line 1099 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1101 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp46_ = selection_data; -#line 1099 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1101 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp47_ = gtk_selection_data_get_length (_tmp46_); -#line 1099 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1101 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp48_ = unserialize_media_sources (_tmp45_, _tmp47_); -#line 1099 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - media = _tmp48_; #line 1101 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" + media = _tmp48_; +#line 1103 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp50_ = media; -#line 1101 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1103 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp50_ != NULL) { -#line 6723 "Tree.c" +#line 6734 "Tree.c" GeeList* _tmp51_ = NULL; gint _tmp52_ = 0; gint _tmp53_ = 0; -#line 1101 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1103 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp51_ = media; -#line 1101 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1103 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp52_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1101 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1103 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp53_ = _tmp52_; -#line 1101 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1103 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp49_ = _tmp53_ > 0; -#line 6735 "Tree.c" +#line 6746 "Tree.c" } else { -#line 1101 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1103 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp49_ = FALSE; -#line 6739 "Tree.c" +#line 6750 "Tree.c" } -#line 1101 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1103 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp49_) { -#line 6743 "Tree.c" +#line 6754 "Tree.c" SidebarInternalDropTargetEntry* _tmp54_ = NULL; GeeList* _tmp55_ = NULL; gboolean _tmp56_ = FALSE; -#line 1102 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1104 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp54_ = targetable; -#line 1102 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1104 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp55_ = media; -#line 1102 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1104 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp56_ = sidebar_internal_drop_target_entry_internal_drop_received (_tmp54_, _tmp55_); -#line 1102 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1104 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" success = _tmp56_; -#line 6755 "Tree.c" +#line 6766 "Tree.c" } -#line 1096 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1098 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (media); -#line 6759 "Tree.c" +#line 6770 "Tree.c" } -#line 1105 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1107 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp57_ = context; -#line 1105 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1107 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp58_ = success; -#line 1105 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1107 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp59_ = time; -#line 1105 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1107 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" gtk_drag_finish (_tmp57_, _tmp58_, FALSE, (guint32) _tmp59_); -#line 1054 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1056 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (targetable); -#line 1054 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1056 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (wrapper); -#line 1054 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1056 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _gtk_tree_path_free0 (path); -#line 6775 "Tree.c" +#line 6786 "Tree.c" } @@ -6796,90 +6807,90 @@ static gboolean sidebar_tree_real_drag_motion (GtkWidget* base, GdkDragContext* GdkDragContext* _tmp16_ = NULL; GdkDragAction _tmp17_ = 0; guint _tmp18_ = 0U; -#line 1108 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1110 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, SIDEBAR_TYPE_TREE, SidebarTree); -#line 1108 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (GDK_IS_DRAG_CONTEXT (context), FALSE); #line 1110 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" + g_return_val_if_fail (GDK_IS_DRAG_CONTEXT (context), FALSE); +#line 1112 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp0_ = context; -#line 1110 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1112 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp1_ = x; -#line 1110 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1112 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp2_ = y; -#line 1110 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1112 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp3_ = time; -#line 1110 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1112 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" GTK_WIDGET_CLASS (sidebar_tree_parent_class)->drag_motion (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), gtk_widget_get_type (), GtkWidget), _tmp0_, _tmp1_, _tmp2_, _tmp3_); -#line 1114 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1116 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp4_ = x; -#line 1114 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1116 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp5_ = y; -#line 1114 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1116 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp8_ = gtk_tree_view_get_dest_row_at_pos (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), _tmp4_, _tmp5_, &_tmp6_, &_tmp7_); -#line 1114 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1116 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _gtk_tree_path_free0 (path); -#line 1114 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1116 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" path = _tmp6_; -#line 1114 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1116 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" pos = _tmp7_; -#line 1114 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1116 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" has_dest = _tmp8_; -#line 1117 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1119 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp10_ = has_dest; -#line 1117 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1119 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (!_tmp10_) { -#line 1117 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1119 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp9_ = TRUE; -#line 6834 "Tree.c" +#line 6845 "Tree.c" } else { GtkTreeViewDropPosition _tmp11_ = 0; -#line 1117 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1119 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp11_ = pos; -#line 1117 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1119 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp9_ = _tmp11_ == GTK_TREE_VIEW_DROP_BEFORE; -#line 6841 "Tree.c" +#line 6852 "Tree.c" } -#line 1117 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1119 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp9_) { -#line 6845 "Tree.c" +#line 6856 "Tree.c" GtkTreePath* _tmp12_ = NULL; -#line 1118 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1120 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp12_ = path; -#line 1118 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1120 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" gtk_tree_view_set_drag_dest_row (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), _tmp12_, GTK_TREE_VIEW_DROP_INTO_OR_BEFORE); -#line 6851 "Tree.c" +#line 6862 "Tree.c" } else { GtkTreeViewDropPosition _tmp13_ = 0; -#line 1119 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1121 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp13_ = pos; -#line 1119 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1121 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp13_ == GTK_TREE_VIEW_DROP_AFTER) { -#line 6858 "Tree.c" +#line 6869 "Tree.c" GtkTreePath* _tmp14_ = NULL; -#line 1120 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1122 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp14_ = path; -#line 1120 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1122 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" gtk_tree_view_set_drag_dest_row (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), _tmp14_, GTK_TREE_VIEW_DROP_INTO_OR_AFTER); -#line 6864 "Tree.c" +#line 6875 "Tree.c" } } -#line 1122 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1124 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp15_ = context; -#line 1122 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1124 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp16_ = context; -#line 1122 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1124 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp17_ = gdk_drag_context_get_suggested_action (_tmp16_); -#line 1122 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1124 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp18_ = time; -#line 1122 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gdk_drag_status (_tmp15_, _tmp17_, (guint32) _tmp18_); #line 1124 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" + gdk_drag_status (_tmp15_, _tmp17_, (guint32) _tmp18_); +#line 1126 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" result = has_dest; -#line 1124 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1126 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _gtk_tree_path_free0 (path); -#line 1124 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1126 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return result; -#line 6883 "Tree.c" +#line 6894 "Tree.c" } @@ -6899,91 +6910,91 @@ static gboolean sidebar_tree_can_rename_path (SidebarTree* self, GtkTreePath* pa SidebarEntry* _tmp9_ = NULL; GtkTreeSelection* _tmp10_ = NULL; GtkTreePath* _tmp11_ = NULL; -#line 1128 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1130 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE); -#line 1128 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1130 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" g_return_val_if_fail (path != NULL, FALSE); -#line 1129 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1131 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp0_ = self->priv->editing_disabled; -#line 1129 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1131 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp0_ > 0) { -#line 1130 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1132 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" result = FALSE; -#line 1130 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1132 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return result; -#line 6915 "Tree.c" +#line 6926 "Tree.c" } -#line 1132 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1134 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp1_ = path; -#line 1132 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1134 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp2_ = sidebar_tree_get_wrapper_at_path (self, _tmp1_); -#line 1132 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1134 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" wrapper = _tmp2_; -#line 1133 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1135 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp3_ = wrapper; -#line 1133 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1135 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp3_ == NULL) { -#line 1134 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1136 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" result = FALSE; -#line 1134 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1136 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (wrapper); -#line 1134 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1136 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return result; -#line 6933 "Tree.c" +#line 6944 "Tree.c" } -#line 1136 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1138 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp4_ = wrapper; -#line 1136 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1138 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp5_ = _tmp4_->entry; -#line 1136 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1138 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, SIDEBAR_TYPE_RENAMEABLE_ENTRY) ? ((SidebarRenameableEntry*) _tmp5_) : NULL); -#line 1136 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1138 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" renameable = _tmp6_; -#line 1137 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1139 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp7_ = renameable; -#line 1137 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1139 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp7_ == NULL) { -#line 1138 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1140 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" result = FALSE; -#line 1138 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1140 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (renameable); -#line 1138 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1140 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (wrapper); -#line 1138 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1140 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return result; -#line 6955 "Tree.c" +#line 6966 "Tree.c" } -#line 1140 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1142 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp8_ = wrapper; -#line 1140 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1142 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp9_ = _tmp8_->entry; -#line 1140 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1142 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, SIDEBAR_TYPE_HEADER)) { -#line 1141 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1143 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" result = FALSE; -#line 1141 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1143 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (renameable); -#line 1141 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1143 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (wrapper); -#line 1141 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1143 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return result; -#line 6971 "Tree.c" +#line 6982 "Tree.c" } -#line 1143 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1145 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp10_ = gtk_tree_view_get_selection (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView)); -#line 1143 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1145 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp11_ = path; -#line 1143 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_selection_select_path (_tmp10_, _tmp11_); #line 1145 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" + gtk_tree_selection_select_path (_tmp10_, _tmp11_); +#line 1147 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" result = TRUE; -#line 1145 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1147 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (renameable); -#line 1145 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1147 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (wrapper); -#line 1145 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1147 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return result; -#line 6987 "Tree.c" +#line 6998 "Tree.c" } @@ -6999,121 +7010,121 @@ static gboolean sidebar_tree_destroy_path (SidebarTree* self, GtkTreePath* path) SidebarDestroyableEntry* _tmp5_ = NULL; SidebarDestroyableEntry* _tmp6_ = NULL; SidebarDestroyableEntry* _tmp7_ = NULL; -#line 1148 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1150 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE); -#line 1148 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1150 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" g_return_val_if_fail (path != NULL, FALSE); -#line 1149 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1151 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp0_ = path; -#line 1149 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1151 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp1_ = sidebar_tree_get_wrapper_at_path (self, _tmp0_); -#line 1149 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1151 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" wrapper = _tmp1_; -#line 1150 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1152 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp2_ = wrapper; -#line 1150 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1152 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp2_ == NULL) { -#line 1151 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1153 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" result = FALSE; -#line 1151 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1153 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (wrapper); -#line 1151 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1153 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return result; -#line 7023 "Tree.c" +#line 7034 "Tree.c" } -#line 1153 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1155 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp3_ = wrapper; -#line 1153 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1155 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp4_ = _tmp3_->entry; -#line 1153 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1155 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, SIDEBAR_TYPE_DESTROYABLE_ENTRY) ? ((SidebarDestroyableEntry*) _tmp4_) : NULL); -#line 1153 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1155 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" destroyable = _tmp5_; -#line 1154 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1156 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp6_ = destroyable; -#line 1154 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1156 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp6_ == NULL) { -#line 1155 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1157 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" result = FALSE; -#line 1155 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1157 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (destroyable); -#line 1155 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1157 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (wrapper); -#line 1155 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1157 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return result; -#line 7045 "Tree.c" +#line 7056 "Tree.c" } -#line 1157 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1159 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp7_ = destroyable; -#line 1157 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_destroyable_entry_destroy_source (_tmp7_); #line 1159 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" + sidebar_destroyable_entry_destroy_source (_tmp7_); +#line 1161 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" result = TRUE; -#line 1159 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1161 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (destroyable); -#line 1159 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1161 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (wrapper); -#line 1159 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1161 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return result; -#line 7059 "Tree.c" +#line 7070 "Tree.c" } static void _sidebar_tree_on_editing_done_gtk_cell_editable_editing_done (GtkCellEditable* _sender, gpointer self) { -#line 1165 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1167 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" sidebar_tree_on_editing_done ((SidebarTree*) self); -#line 7066 "Tree.c" +#line 7077 "Tree.c" } static gboolean _sidebar_tree_on_editing_focus_out_gtk_widget_focus_out_event (GtkWidget* _sender, GdkEventFocus* event, gpointer self) { gboolean result; result = sidebar_tree_on_editing_focus_out ((SidebarTree*) self, event); -#line 1166 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1168 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return result; -#line 7075 "Tree.c" +#line 7086 "Tree.c" } static void sidebar_tree_on_editing_started (SidebarTree* self, GtkCellEditable* editable, const gchar* path) { GtkCellEditable* _tmp0_ = NULL; -#line 1162 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1164 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" g_return_if_fail (SIDEBAR_IS_TREE (self)); -#line 1162 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1164 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" g_return_if_fail (GTK_IS_CELL_EDITABLE (editable)); -#line 1162 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1164 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" g_return_if_fail (path != NULL); -#line 1163 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1165 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp0_ = editable; -#line 1163 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1165 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, gtk_entry_get_type ())) { -#line 7091 "Tree.c" +#line 7102 "Tree.c" GtkCellEditable* _tmp1_ = NULL; GtkEntry* _tmp2_ = NULL; GtkEntry* _tmp3_ = NULL; GtkEntry* _tmp4_ = NULL; GtkEntry* _tmp5_ = NULL; -#line 1164 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1166 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp1_ = editable; -#line 1164 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1166 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_entry_get_type (), GtkEntry)); -#line 1164 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1166 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (self->priv->text_entry); -#line 1164 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1166 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" self->priv->text_entry = _tmp2_; -#line 1165 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1167 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp3_ = self->priv->text_entry; -#line 1165 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1167 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GTK_TYPE_CELL_EDITABLE, GtkCellEditable), "editing-done", (GCallback) _sidebar_tree_on_editing_done_gtk_cell_editable_editing_done, self, 0); -#line 1166 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1168 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp4_ = self->priv->text_entry; -#line 1166 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1168 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget), "focus-out-event", (GCallback) _sidebar_tree_on_editing_focus_out_gtk_widget_focus_out_event, self, 0); -#line 1167 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1169 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp5_ = self->priv->text_entry; -#line 1167 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1169 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" g_object_set (_tmp5_, "editable", TRUE, NULL); -#line 7117 "Tree.c" +#line 7128 "Tree.c" } } @@ -7124,25 +7135,25 @@ static void sidebar_tree_on_editing_canceled (SidebarTree* self) { guint _tmp2_ = 0U; GtkEntry* _tmp3_ = NULL; guint _tmp4_ = 0U; -#line 1171 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1173 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" g_return_if_fail (SIDEBAR_IS_TREE (self)); -#line 1172 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1174 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp0_ = self->priv->text_entry; -#line 1172 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_object_set (_tmp0_, "editable", FALSE, NULL); #line 1174 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" + g_object_set (_tmp0_, "editable", FALSE, NULL); +#line 1176 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp1_ = self->priv->text_entry; -#line 1174 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1176 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" g_signal_parse_name ("editing-done", GTK_TYPE_CELL_EDITABLE, &_tmp2_, NULL, FALSE); -#line 1174 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1176 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GTK_TYPE_CELL_EDITABLE, GtkCellEditable), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _sidebar_tree_on_editing_done_gtk_cell_editable_editing_done, self); -#line 1175 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1177 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp3_ = self->priv->text_entry; -#line 1175 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1177 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" g_signal_parse_name ("focus-out-event", gtk_widget_get_type (), &_tmp4_, NULL, FALSE); -#line 1175 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1177 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp4_, 0, NULL, (GCallback) _sidebar_tree_on_editing_focus_out_gtk_widget_focus_out_event, self); -#line 7146 "Tree.c" +#line 7157 "Tree.c" } @@ -7158,110 +7169,110 @@ static void sidebar_tree_on_editing_done (SidebarTree* self) { guint _tmp14_ = 0U; GtkEntry* _tmp15_ = NULL; guint _tmp16_ = 0U; -#line 1178 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1180 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" g_return_if_fail (SIDEBAR_IS_TREE (self)); -#line 1179 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1181 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp0_ = self->priv->text_entry; -#line 1179 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_object_set (_tmp0_, "editable", FALSE, NULL); #line 1181 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" + g_object_set (_tmp0_, "editable", FALSE, NULL); +#line 1183 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp1_ = sidebar_tree_get_current_path (self); -#line 1181 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1183 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp2_ = _tmp1_; -#line 1181 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1183 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp3_ = sidebar_tree_get_wrapper_at_path (self, _tmp2_); -#line 1181 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1183 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp4_ = _tmp3_; -#line 1181 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1183 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _gtk_tree_path_free0 (_tmp2_); -#line 1181 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1183 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" wrapper = _tmp4_; -#line 1182 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1184 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp5_ = wrapper; -#line 1182 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1184 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp5_ != NULL) { -#line 7184 "Tree.c" +#line 7195 "Tree.c" SidebarRenameableEntry* renameable = NULL; SidebarTreeEntryWrapper* _tmp6_ = NULL; SidebarEntry* _tmp7_ = NULL; SidebarRenameableEntry* _tmp8_ = NULL; SidebarRenameableEntry* _tmp9_ = NULL; -#line 1183 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1185 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp6_ = wrapper; -#line 1183 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1185 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp7_ = _tmp6_->entry; -#line 1183 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1185 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp8_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, SIDEBAR_TYPE_RENAMEABLE_ENTRY) ? ((SidebarRenameableEntry*) _tmp7_) : NULL); -#line 1183 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1185 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" renameable = _tmp8_; -#line 1184 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1186 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp9_ = renameable; -#line 1184 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1186 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" if (_tmp9_ != NULL) { -#line 7202 "Tree.c" +#line 7213 "Tree.c" SidebarRenameableEntry* _tmp10_ = NULL; GtkEntry* _tmp11_ = NULL; const gchar* _tmp12_ = NULL; -#line 1185 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1187 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp10_ = renameable; -#line 1185 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1187 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp11_ = self->priv->text_entry; -#line 1185 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1187 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp12_ = gtk_entry_get_text (_tmp11_); -#line 1185 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1187 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" sidebar_renameable_entry_rename (_tmp10_, _tmp12_); -#line 7214 "Tree.c" +#line 7225 "Tree.c" } -#line 1182 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1184 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (renameable); -#line 7218 "Tree.c" +#line 7229 "Tree.c" } -#line 1188 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1190 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp13_ = self->priv->text_entry; -#line 1188 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1190 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" g_signal_parse_name ("editing-done", GTK_TYPE_CELL_EDITABLE, &_tmp14_, NULL, FALSE); -#line 1188 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1190 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GTK_TYPE_CELL_EDITABLE, GtkCellEditable), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp14_, 0, NULL, (GCallback) _sidebar_tree_on_editing_done_gtk_cell_editable_editing_done, self); -#line 1189 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1191 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp15_ = self->priv->text_entry; -#line 1189 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1191 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" g_signal_parse_name ("focus-out-event", gtk_widget_get_type (), &_tmp16_, NULL, FALSE); -#line 1189 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1191 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_widget_get_type (), GtkWidget), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp16_, 0, NULL, (GCallback) _sidebar_tree_on_editing_focus_out_gtk_widget_focus_out_event, self); -#line 1178 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1180 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (wrapper); -#line 7234 "Tree.c" +#line 7245 "Tree.c" } static gboolean sidebar_tree_on_editing_focus_out (SidebarTree* self, GdkEventFocus* event) { gboolean result = FALSE; -#line 1192 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1194 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE); -#line 1192 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1194 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" g_return_val_if_fail (event != NULL, FALSE); -#line 1196 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1198 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" result = FALSE; -#line 1196 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1198 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return result; -#line 7248 "Tree.c" +#line 7259 "Tree.c" } static void sidebar_tree_on_new_search (SidebarTree* self) { SavedSearchDialog* _tmp0_ = NULL; SavedSearchDialog* _tmp1_ = NULL; -#line 1199 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1201 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" g_return_if_fail (SIDEBAR_IS_TREE (self)); -#line 1200 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1202 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp0_ = saved_search_dialog_new (); -#line 1200 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1202 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp1_ = _tmp0_; -#line 1200 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1202 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" saved_search_dialog_show (_tmp1_); -#line 1200 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1202 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _saved_search_dialog_unref0 (_tmp1_); -#line 7265 "Tree.c" +#line 7276 "Tree.c" } @@ -7274,37 +7285,37 @@ static void sidebar_tree_on_new_tag (SidebarTree* self) { LibraryWindow* _tmp4_ = NULL; Tag* _tmp5_ = NULL; Tag* _tmp6_ = NULL; -#line 1203 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1205 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" g_return_if_fail (SIDEBAR_IS_TREE (self)); -#line 1204 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1206 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp0_ = new_root_tag_command_new (); -#line 1204 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1206 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" creation_command = _tmp0_; -#line 1205 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1207 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp1_ = app_window_get_command_manager (); -#line 1205 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1207 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp2_ = _tmp1_; -#line 1205 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1207 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" command_manager_execute (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (creation_command, TYPE_COMMAND, Command)); -#line 1205 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1207 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _command_manager_unref0 (_tmp2_); -#line 1206 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1208 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp3_ = library_window_get_app (); -#line 1206 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1208 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp4_ = _tmp3_; -#line 1206 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1208 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp5_ = new_root_tag_command_get_created_tag (creation_command); -#line 1206 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1208 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _tmp6_ = _tmp5_; -#line 1206 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1208 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" library_window_rename_tag_in_sidebar (_tmp4_, _tmp6_); -#line 1206 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1208 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (_tmp6_); -#line 1206 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1208 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (_tmp4_); -#line 1203 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" +#line 1205 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" _g_object_unref0 (creation_command); -#line 7308 "Tree.c" +#line 7319 "Tree.c" } @@ -7323,19 +7334,19 @@ static void g_cclosure_user_marshal_VOID__OBJECT_BOOLEAN (GClosure * closure, GV data1 = closure->data; #line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" data2 = param_values->data[0].v_pointer; -#line 7327 "Tree.c" +#line 7338 "Tree.c" } else { #line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" data1 = param_values->data[0].v_pointer; #line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" data2 = closure->data; -#line 7333 "Tree.c" +#line 7344 "Tree.c" } #line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" callback = (GMarshalFunc_VOID__OBJECT_BOOLEAN) (marshal_data ? marshal_data : cc->callback); #line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" callback (data1, g_value_get_object (param_values + 1), g_value_get_boolean (param_values + 2), data2); -#line 7339 "Tree.c" +#line 7350 "Tree.c" } @@ -7354,19 +7365,19 @@ static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT (GClosure * closure, GVa data1 = closure->data; #line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" data2 = param_values->data[0].v_pointer; -#line 7358 "Tree.c" +#line 7369 "Tree.c" } else { #line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" data1 = param_values->data[0].v_pointer; #line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" data2 = closure->data; -#line 7364 "Tree.c" +#line 7375 "Tree.c" } #line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" callback = (GMarshalFunc_VOID__OBJECT_OBJECT) (marshal_data ? marshal_data : cc->callback); #line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" callback (data1, g_value_get_object (param_values + 1), g_value_get_object (param_values + 2), data2); -#line 7370 "Tree.c" +#line 7381 "Tree.c" } @@ -7405,14 +7416,14 @@ static SidebarTreeEntryWrapper* sidebar_tree_entry_wrapper_construct (GType obje self->row = _tmp4_; #line 19 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return self; -#line 7409 "Tree.c" +#line 7420 "Tree.c" } static SidebarTreeEntryWrapper* sidebar_tree_entry_wrapper_new (GtkTreeModel* model, SidebarEntry* entry, GtkTreePath* path) { #line 19 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return sidebar_tree_entry_wrapper_construct (SIDEBAR_TREE_TYPE_ENTRY_WRAPPER, model, entry, path); -#line 7416 "Tree.c" +#line 7427 "Tree.c" } @@ -7430,7 +7441,7 @@ static GtkTreePath* sidebar_tree_entry_wrapper_get_path (SidebarTreeEntryWrapper result = _tmp1_; #line 25 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return result; -#line 7434 "Tree.c" +#line 7445 "Tree.c" } @@ -7470,7 +7481,7 @@ static void sidebar_tree_entry_wrapper_get_iter (SidebarTreeEntryWrapper* self, *result = iter; #line 33 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return; -#line 7474 "Tree.c" +#line 7485 "Tree.c" } @@ -7479,7 +7490,7 @@ static void sidebar_tree_entry_wrapper_class_init (SidebarTreeEntryWrapperClass sidebar_tree_entry_wrapper_parent_class = g_type_class_peek_parent (klass); #line 15 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" G_OBJECT_CLASS (klass)->finalize = sidebar_tree_entry_wrapper_finalize; -#line 7483 "Tree.c" +#line 7494 "Tree.c" } @@ -7497,7 +7508,7 @@ static void sidebar_tree_entry_wrapper_finalize (GObject* obj) { _gtk_tree_row_reference_free0 (self->row); #line 15 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" G_OBJECT_CLASS (sidebar_tree_entry_wrapper_parent_class)->finalize (obj); -#line 7501 "Tree.c" +#line 7512 "Tree.c" } @@ -7539,14 +7550,14 @@ static SidebarTreeRootWrapper* sidebar_tree_root_wrapper_construct (GType object self->root_position = _tmp3_; #line 40 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return self; -#line 7543 "Tree.c" +#line 7554 "Tree.c" } static SidebarTreeRootWrapper* sidebar_tree_root_wrapper_new (GtkTreeModel* model, SidebarEntry* entry, GtkTreePath* path, gint root_position) { #line 40 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" return sidebar_tree_root_wrapper_construct (SIDEBAR_TREE_TYPE_ROOT_WRAPPER, model, entry, path, root_position); -#line 7550 "Tree.c" +#line 7561 "Tree.c" } @@ -7555,7 +7566,7 @@ static void sidebar_tree_root_wrapper_class_init (SidebarTreeRootWrapperClass * sidebar_tree_root_wrapper_parent_class = g_type_class_peek_parent (klass); #line 37 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" G_OBJECT_CLASS (klass)->finalize = sidebar_tree_root_wrapper_finalize; -#line 7559 "Tree.c" +#line 7570 "Tree.c" } @@ -7569,7 +7580,7 @@ static void sidebar_tree_root_wrapper_finalize (GObject* obj) { self = G_TYPE_CHECK_INSTANCE_CAST (obj, SIDEBAR_TREE_TYPE_ROOT_WRAPPER, SidebarTreeRootWrapper); #line 37 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" G_OBJECT_CLASS (sidebar_tree_root_wrapper_parent_class)->finalize (obj); -#line 7573 "Tree.c" +#line 7584 "Tree.c" } @@ -7620,7 +7631,7 @@ static void sidebar_tree_class_init (SidebarTreeClass * klass) { g_signal_new ("page_created", SIDEBAR_TYPE_TREE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT, G_TYPE_NONE, 2, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, TYPE_PAGE); #line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" g_signal_new ("destroying_page", SIDEBAR_TYPE_TREE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT, G_TYPE_NONE, 2, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, TYPE_PAGE); -#line 7624 "Tree.c" +#line 7635 "Tree.c" } @@ -7667,7 +7678,7 @@ static void sidebar_tree_instance_init (SidebarTree * self) { self->priv->internal_drag_source_entry = NULL; #line 77 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" self->priv->old_path_ref = NULL; -#line 7671 "Tree.c" +#line 7682 "Tree.c" } @@ -7711,7 +7722,7 @@ static void sidebar_tree_finalize (GObject* obj) { _gtk_tree_row_reference_free0 (self->priv->old_path_ref); #line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" G_OBJECT_CLASS (sidebar_tree_parent_class)->finalize (obj); -#line 7715 "Tree.c" +#line 7726 "Tree.c" } diff --git a/src/sidebar/Tree.vala b/src/sidebar/Tree.vala index 5ba28fa..9c80f00 100644 --- a/src/sidebar/Tree.vala +++ b/src/sidebar/Tree.vala @@ -845,7 +845,9 @@ public class Sidebar.Tree : Gtk.TreeView { if (context_menu == null) return false; - context_menu.attach_to_widget (this, null); + if (context_menu.get_attach_widget() == null) { + context_menu.attach_to_widget (this, null); + } if (event != null) context_menu.popup(null, null, null, event.button, event.time); diff --git a/src/sidebar/common.c b/src/sidebar/common.c index 1ef4450..582e3a9 100644 --- a/src/sidebar/common.c +++ b/src/sidebar/common.c @@ -1,4 +1,4 @@ -/* common.c generated by valac 0.32.1, the Vala compiler +/* common.c generated by valac 0.34.4, the Vala compiler * generated from common.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/slideshow/Slideshow.c b/src/slideshow/Slideshow.c index 1731cfa..33dd9b1 100644 --- a/src/slideshow/Slideshow.c +++ b/src/slideshow/Slideshow.c @@ -1,4 +1,4 @@ -/* Slideshow.c generated by valac 0.32.1, the Vala compiler +/* Slideshow.c generated by valac 0.34.4, the Vala compiler * generated from Slideshow.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/slideshow/TransitionEffects.c b/src/slideshow/TransitionEffects.c index 292187e..f874db1 100644 --- a/src/slideshow/TransitionEffects.c +++ b/src/slideshow/TransitionEffects.c @@ -1,4 +1,4 @@ -/* TransitionEffects.c generated by valac 0.32.1, the Vala compiler +/* TransitionEffects.c generated by valac 0.34.4, the Vala compiler * generated from TransitionEffects.vala, do not modify */ /* Copyright 2010 Maxim Kartashev diff --git a/src/tags/Branch.c b/src/tags/Branch.c index 30e05f0..2ed3ac9 100644 --- a/src/tags/Branch.c +++ b/src/tags/Branch.c @@ -1,4 +1,4 @@ -/* Branch.c generated by valac 0.32.1, the Vala compiler +/* Branch.c generated by valac 0.34.4, the Vala compiler * generated from Branch.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -1668,7 +1668,7 @@ static void tags_header_setup_context_menu (TagsHeader* self) { #line 138 "/home/jens/Source/shotwell/src/tags/Branch.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 1671 "Branch.c" - goto __catch51_g_error; + goto __catch53_g_error; } #line 140 "/home/jens/Source/shotwell/src/tags/Branch.vala" _tmp2_ = self->priv->builder; @@ -1692,8 +1692,8 @@ static void tags_header_setup_context_menu (TagsHeader* self) { _g_object_unref0 (model); #line 1694 "Branch.c" } - goto __finally51; - __catch51_g_error: + goto __finally53; + __catch53_g_error: { GError* _error_ = NULL; GError* _tmp7_ = NULL; @@ -1730,7 +1730,7 @@ static void tags_header_setup_context_menu (TagsHeader* self) { _g_error_free0 (_error_); #line 1732 "Branch.c" } - __finally51: + __finally53: #line 137 "/home/jens/Source/shotwell/src/tags/Branch.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 137 "/home/jens/Source/shotwell/src/tags/Branch.vala" @@ -2212,11 +2212,11 @@ static gboolean tags_sidebar_entry_real_is_user_renameable (SidebarRenameableEnt static gchar* string_replace (const gchar* self, const gchar* old, const gchar* replacement) { gchar* result = NULL; GError * _inner_error_ = NULL; -#line 1380 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1380 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, NULL); -#line 1380 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1380 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (old != NULL, NULL); -#line 1380 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1380 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (replacement != NULL, NULL); #line 2222 "Branch.c" { @@ -2231,98 +2231,98 @@ static gchar* string_replace (const gchar* self, const gchar* old, const gchar* const gchar* _tmp7_ = NULL; gchar* _tmp8_ = NULL; gchar* _tmp9_ = NULL; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = old; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = g_regex_escape_string (_tmp0_, -1); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = _tmp1_; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = g_regex_new (_tmp2_, 0, 0, &_inner_error_); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = _tmp3_; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_free0 (_tmp2_); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" regex = _tmp4_; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_inner_error_->domain == G_REGEX_ERROR) { #line 2253 "Branch.c" - goto __catch52_g_regex_error; + goto __catch54_g_regex_error; } -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_clear_error (&_inner_error_); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return NULL; #line 2262 "Branch.c" } -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp6_ = regex; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp7_ = replacement; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp8_ = g_regex_replace_literal (_tmp6_, self, (gssize) -1, 0, _tmp7_, 0, &_inner_error_); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = _tmp8_; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_regex_unref0 (regex); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_inner_error_->domain == G_REGEX_ERROR) { #line 2278 "Branch.c" - goto __catch52_g_regex_error; + goto __catch54_g_regex_error; } -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_regex_unref0 (regex); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_clear_error (&_inner_error_); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return NULL; #line 2289 "Branch.c" } -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp9_ = _tmp5_; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = NULL; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp9_; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_free0 (_tmp5_); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_regex_unref0 (regex); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 2303 "Branch.c" } - goto __finally52; - __catch52_g_regex_error: + goto __finally54; + __catch54_g_regex_error: { GError* e = NULL; -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" e = _inner_error_; -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _inner_error_ = NULL; -#line 1385 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1385 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_assert_not_reached (); -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_error_free0 (e); #line 2317 "Branch.c" } - __finally52: -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" + __finally54: +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_clear_error (&_inner_error_); -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return NULL; #line 2328 "Branch.c" } @@ -2837,39 +2837,39 @@ static guint8* string_get_data (const gchar* self, int* result_length1) { gint _tmp3__length1 = 0; guint8* _tmp4_ = NULL; gint _tmp4__length1 = 0; -#line 1398 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1398 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, NULL); -#line 1399 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1399 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" res = (guint8*) self; -#line 1399 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1399 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" res_length1 = -1; -#line 1399 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1399 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _res_size_ = res_length1; -#line 1400 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1400 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = strlen (self); -#line 1400 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1400 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = _tmp0_; -#line 1400 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1400 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" res_length1 = (gint) _tmp1_; -#line 1400 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1400 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = res_length1; -#line 1401 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1401 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = res; -#line 1401 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1401 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3__length1 = res_length1; -#line 1401 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1401 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = _tmp3_; -#line 1401 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1401 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4__length1 = _tmp3__length1; -#line 1401 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1401 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (result_length1) { -#line 1401 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1401 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" *result_length1 = _tmp4__length1; #line 2869 "Branch.c" } -#line 1401 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1401 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp4_; -#line 1401 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1401 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 2875 "Branch.c" } diff --git a/src/tags/HierarchicalTagIndex.c b/src/tags/HierarchicalTagIndex.c index dc5e970..0a163d3 100644 --- a/src/tags/HierarchicalTagIndex.c +++ b/src/tags/HierarchicalTagIndex.c @@ -1,4 +1,4 @@ -/* HierarchicalTagIndex.c generated by valac 0.32.1, the Vala compiler +/* HierarchicalTagIndex.c generated by valac 0.34.4, the Vala compiler * generated from HierarchicalTagIndex.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/tags/HierarchicalTagUtilities.c b/src/tags/HierarchicalTagUtilities.c index 05d9126..0977264 100644 --- a/src/tags/HierarchicalTagUtilities.c +++ b/src/tags/HierarchicalTagUtilities.c @@ -1,4 +1,4 @@ -/* HierarchicalTagUtilities.c generated by valac 0.32.1, the Vala compiler +/* HierarchicalTagUtilities.c generated by valac 0.34.4, the Vala compiler * generated from HierarchicalTagUtilities.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -263,37 +263,37 @@ static glong string_strnlen (gchar* str, glong maxlen) { glong _tmp1_ = 0L; gchar* _tmp2_ = NULL; gchar* _tmp3_ = NULL; -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = str; -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = maxlen; -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = memchr (_tmp0_, 0, (gsize) _tmp1_); -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" end = _tmp2_; -#line 1296 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1296 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = end; -#line 1296 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1296 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp3_ == NULL) { #line 279 "HierarchicalTagUtilities.c" glong _tmp4_ = 0L; -#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = maxlen; -#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp4_; -#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 287 "HierarchicalTagUtilities.c" } else { gchar* _tmp5_ = NULL; gchar* _tmp6_ = NULL; -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = end; -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp6_ = str; -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = (glong) (_tmp5_ - _tmp6_); -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 299 "HierarchicalTagUtilities.c" } @@ -313,112 +313,112 @@ static gchar* string_substring (const gchar* self, glong offset, glong len) { glong _tmp20_ = 0L; glong _tmp21_ = 0L; gchar* _tmp22_ = NULL; -#line 1306 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1306 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, NULL); -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = offset; -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp1_ >= ((glong) 0)) { #line 323 "HierarchicalTagUtilities.c" glong _tmp2_ = 0L; -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = len; -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = _tmp2_ >= ((glong) 0); #line 329 "HierarchicalTagUtilities.c" } else { -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = FALSE; #line 333 "HierarchicalTagUtilities.c" } -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp0_) { #line 337 "HierarchicalTagUtilities.c" glong _tmp3_ = 0L; glong _tmp4_ = 0L; glong _tmp5_ = 0L; -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = offset; -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = len; -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = string_strnlen ((gchar*) self, _tmp3_ + _tmp4_); -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" string_length = _tmp5_; #line 349 "HierarchicalTagUtilities.c" } else { gint _tmp6_ = 0; gint _tmp7_ = 0; -#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp6_ = strlen (self); -#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp7_ = _tmp6_; -#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" string_length = (glong) _tmp7_; #line 359 "HierarchicalTagUtilities.c" } -#line 1315 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1315 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp8_ = offset; -#line 1315 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1315 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp8_ < ((glong) 0)) { #line 365 "HierarchicalTagUtilities.c" glong _tmp9_ = 0L; glong _tmp10_ = 0L; glong _tmp11_ = 0L; -#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp9_ = string_length; -#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp10_ = offset; -#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" offset = _tmp9_ + _tmp10_; -#line 1317 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1317 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp11_ = offset; -#line 1317 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1317 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (_tmp11_ >= ((glong) 0), NULL); #line 379 "HierarchicalTagUtilities.c" } else { glong _tmp12_ = 0L; glong _tmp13_ = 0L; -#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp12_ = offset; -#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp13_ = string_length; -#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (_tmp12_ <= _tmp13_, NULL); #line 389 "HierarchicalTagUtilities.c" } -#line 1321 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1321 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp14_ = len; -#line 1321 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1321 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp14_ < ((glong) 0)) { #line 395 "HierarchicalTagUtilities.c" glong _tmp15_ = 0L; glong _tmp16_ = 0L; -#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp15_ = string_length; -#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp16_ = offset; -#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" len = _tmp15_ - _tmp16_; #line 404 "HierarchicalTagUtilities.c" } -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp17_ = offset; -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp18_ = len; -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp19_ = string_length; -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail ((_tmp17_ + _tmp18_) <= _tmp19_, NULL); -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp20_ = offset; -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp21_ = len; -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp22_ = g_strndup (((gchar*) self) + _tmp20_, (gsize) _tmp21_); -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp22_; -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 424 "HierarchicalTagUtilities.c" } @@ -756,72 +756,72 @@ static gchar* _vala_g_strjoinv (const gchar* separator, gchar** str_array, int s gboolean _tmp2_ = FALSE; gchar** _tmp3_ = NULL; gint _tmp3__length1 = 0; -#line 1054 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1054 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = separator; -#line 1054 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1054 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp0_ == NULL) { -#line 1055 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1055 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" separator = ""; #line 766 "HierarchicalTagUtilities.c" } -#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = str_array; -#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3__length1 = str_array_length1; -#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp3_ != NULL) { -#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = TRUE; #line 776 "HierarchicalTagUtilities.c" } else { gchar** _tmp4_ = NULL; gint _tmp4__length1 = 0; -#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = str_array; -#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4__length1 = str_array_length1; -#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = _tmp4__length1 > 0; #line 786 "HierarchicalTagUtilities.c" } -#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp2_) { -#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = TRUE; #line 792 "HierarchicalTagUtilities.c" } else { gboolean _tmp5_ = FALSE; gchar** _tmp6_ = NULL; gint _tmp6__length1 = 0; -#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp6_ = str_array; -#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp6__length1 = str_array_length1; -#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp6__length1 == -1) { #line 803 "HierarchicalTagUtilities.c" gchar** _tmp7_ = NULL; gint _tmp7__length1 = 0; const gchar* _tmp8_ = NULL; -#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp7_ = str_array; -#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp7__length1 = str_array_length1; -#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp8_ = _tmp7_[0]; -#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = _tmp8_ != NULL; #line 815 "HierarchicalTagUtilities.c" } else { -#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = FALSE; #line 819 "HierarchicalTagUtilities.c" } -#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = _tmp5_; #line 823 "HierarchicalTagUtilities.c" } -#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp1_) { #line 827 "HierarchicalTagUtilities.c" gint i = 0; @@ -844,16 +844,16 @@ static gchar* _vala_g_strjoinv (const gchar* separator, gchar** str_array, int s const gchar* _tmp44_ = NULL; void* _tmp45_ = NULL; const gchar* _tmp62_ = NULL; -#line 1059 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1059 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" len = (gsize) 1; #line 850 "HierarchicalTagUtilities.c" { gboolean _tmp9_ = FALSE; -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" i = 0; -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp9_ = TRUE; -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" while (TRUE) { #line 859 "HierarchicalTagUtilities.c" gboolean _tmp11_ = FALSE; @@ -866,97 +866,97 @@ static gchar* _vala_g_strjoinv (const gchar* separator, gchar** str_array, int s gint _tmp23_ = 0; const gchar* _tmp24_ = NULL; gsize _tmp30_ = 0UL; -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (!_tmp9_) { #line 872 "HierarchicalTagUtilities.c" gint _tmp10_ = 0; -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp10_ = i; -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" i = _tmp10_ + 1; #line 878 "HierarchicalTagUtilities.c" } -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp9_ = FALSE; -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp13_ = str_array; -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp13__length1 = str_array_length1; -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp13__length1 != -1) { #line 888 "HierarchicalTagUtilities.c" gint _tmp14_ = 0; gchar** _tmp15_ = NULL; gint _tmp15__length1 = 0; -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp14_ = i; -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp15_ = str_array; -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp15__length1 = str_array_length1; -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp12_ = _tmp14_ < _tmp15__length1; #line 900 "HierarchicalTagUtilities.c" } else { -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp12_ = FALSE; #line 904 "HierarchicalTagUtilities.c" } -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp12_) { -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp11_ = TRUE; #line 910 "HierarchicalTagUtilities.c" } else { gboolean _tmp16_ = FALSE; gchar** _tmp17_ = NULL; gint _tmp17__length1 = 0; -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp17_ = str_array; -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp17__length1 = str_array_length1; -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp17__length1 == -1) { #line 921 "HierarchicalTagUtilities.c" gchar** _tmp18_ = NULL; gint _tmp18__length1 = 0; gint _tmp19_ = 0; const gchar* _tmp20_ = NULL; -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp18_ = str_array; -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp18__length1 = str_array_length1; -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp19_ = i; -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp20_ = _tmp18_[_tmp19_]; -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp16_ = _tmp20_ != NULL; #line 936 "HierarchicalTagUtilities.c" } else { -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp16_ = FALSE; #line 940 "HierarchicalTagUtilities.c" } -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp11_ = _tmp16_; #line 944 "HierarchicalTagUtilities.c" } -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (!_tmp11_) { -#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" break; #line 950 "HierarchicalTagUtilities.c" } -#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp22_ = str_array; -#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp22__length1 = str_array_length1; -#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp23_ = i; -#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp24_ = _tmp22_[_tmp23_]; -#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp24_ != NULL) { #line 962 "HierarchicalTagUtilities.c" gchar** _tmp25_ = NULL; @@ -965,91 +965,91 @@ static gchar* _vala_g_strjoinv (const gchar* separator, gchar** str_array, int s const gchar* _tmp27_ = NULL; gint _tmp28_ = 0; gint _tmp29_ = 0; -#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp25_ = str_array; -#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp25__length1 = str_array_length1; -#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp26_ = i; -#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp27_ = _tmp25_[_tmp26_]; -#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp28_ = strlen ((const gchar*) _tmp27_); -#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp29_ = _tmp28_; -#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp21_ = _tmp29_; #line 983 "HierarchicalTagUtilities.c" } else { -#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp21_ = 0; #line 987 "HierarchicalTagUtilities.c" } -#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp30_ = len; -#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" len = _tmp30_ + _tmp21_; #line 993 "HierarchicalTagUtilities.c" } } -#line 1063 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1063 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp31_ = i; -#line 1063 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1063 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp31_ == 0) { #line 1000 "HierarchicalTagUtilities.c" gchar* _tmp32_ = NULL; -#line 1064 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1064 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp32_ = g_strdup (""); -#line 1064 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1064 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp32_; -#line 1064 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1064 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 1008 "HierarchicalTagUtilities.c" } -#line 1066 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1066 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp33_ = i; -#line 1066 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1066 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" str_array_length1 = _tmp33_; -#line 1066 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1066 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp34_ = str_array_length1; -#line 1067 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1067 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp35_ = len; -#line 1067 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1067 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp36_ = separator; -#line 1067 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1067 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp37_ = strlen ((const gchar*) _tmp36_); -#line 1067 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1067 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp38_ = _tmp37_; -#line 1067 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1067 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp39_ = i; -#line 1067 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1067 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" len = _tmp35_ + (_tmp38_ * (_tmp39_ - 1)); -#line 1069 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1069 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp40_ = len; -#line 1069 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1069 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp41_ = g_malloc (_tmp40_); -#line 1069 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1069 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" res = _tmp41_; -#line 1070 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1070 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp42_ = res; -#line 1070 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1070 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp43_ = str_array; -#line 1070 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1070 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp43__length1 = str_array_length1; -#line 1070 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1070 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp44_ = _tmp43_[0]; -#line 1070 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1070 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp45_ = g_stpcpy ((void*) _tmp42_, (const gchar*) _tmp44_); -#line 1070 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1070 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" ptr = _tmp45_; #line 1046 "HierarchicalTagUtilities.c" { gboolean _tmp46_ = FALSE; -#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" i = 1; -#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp46_ = TRUE; -#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" while (TRUE) { #line 1055 "HierarchicalTagUtilities.c" gint _tmp48_ = 0; @@ -1065,94 +1065,94 @@ static gchar* _vala_g_strjoinv (const gchar* separator, gchar** str_array, int s const gchar* _tmp56_ = NULL; void* _tmp60_ = NULL; void* _tmp61_ = NULL; -#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (!_tmp46_) { #line 1071 "HierarchicalTagUtilities.c" gint _tmp47_ = 0; -#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp47_ = i; -#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" i = _tmp47_ + 1; #line 1077 "HierarchicalTagUtilities.c" } -#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp46_ = FALSE; -#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp48_ = i; -#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp49_ = str_array; -#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp49__length1 = str_array_length1; -#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (!(_tmp48_ < _tmp49__length1)) { -#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" break; #line 1091 "HierarchicalTagUtilities.c" } -#line 1072 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1072 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp50_ = ptr; -#line 1072 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1072 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp51_ = separator; -#line 1072 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1072 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp52_ = g_stpcpy (_tmp50_, (const gchar*) _tmp51_); -#line 1072 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1072 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" ptr = _tmp52_; -#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp54_ = str_array; -#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp54__length1 = str_array_length1; -#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp55_ = i; -#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp56_ = _tmp54_[_tmp55_]; -#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp56_ != NULL) { #line 1111 "HierarchicalTagUtilities.c" gchar** _tmp57_ = NULL; gint _tmp57__length1 = 0; gint _tmp58_ = 0; const gchar* _tmp59_ = NULL; -#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp57_ = str_array; -#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp57__length1 = str_array_length1; -#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp58_ = i; -#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp59_ = _tmp57_[_tmp58_]; -#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp53_ = (const gchar*) _tmp59_; #line 1126 "HierarchicalTagUtilities.c" } else { -#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp53_ = ""; #line 1130 "HierarchicalTagUtilities.c" } -#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp60_ = ptr; -#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp61_ = g_stpcpy (_tmp60_, _tmp53_); -#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" ptr = _tmp61_; #line 1138 "HierarchicalTagUtilities.c" } } -#line 1076 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1076 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp62_ = res; -#line 1076 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1076 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" res = NULL; -#line 1076 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1076 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = (gchar*) _tmp62_; -#line 1076 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1076 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 1149 "HierarchicalTagUtilities.c" } else { gchar* _tmp63_ = NULL; -#line 1078 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1078 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp63_ = g_strdup (""); -#line 1078 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1078 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp63_; -#line 1078 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1078 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 1158 "HierarchicalTagUtilities.c" } @@ -1273,11 +1273,11 @@ gchar* hierarchical_tag_utilities_get_basename (const gchar* in_path) { static gchar* string_replace (const gchar* self, const gchar* old, const gchar* replacement) { gchar* result = NULL; GError * _inner_error_ = NULL; -#line 1380 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1380 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, NULL); -#line 1380 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1380 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (old != NULL, NULL); -#line 1380 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1380 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (replacement != NULL, NULL); #line 1283 "HierarchicalTagUtilities.c" { @@ -1292,98 +1292,98 @@ static gchar* string_replace (const gchar* self, const gchar* old, const gchar* const gchar* _tmp7_ = NULL; gchar* _tmp8_ = NULL; gchar* _tmp9_ = NULL; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = old; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = g_regex_escape_string (_tmp0_, -1); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = _tmp1_; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = g_regex_new (_tmp2_, 0, 0, &_inner_error_); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = _tmp3_; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_free0 (_tmp2_); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" regex = _tmp4_; -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_inner_error_->domain == G_REGEX_ERROR) { #line 1314 "HierarchicalTagUtilities.c" - goto __catch53_g_regex_error; + goto __catch55_g_regex_error; } -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_clear_error (&_inner_error_); -#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return NULL; #line 1323 "HierarchicalTagUtilities.c" } -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp6_ = regex; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp7_ = replacement; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp8_ = g_regex_replace_literal (_tmp6_, self, (gssize) -1, 0, _tmp7_, 0, &_inner_error_); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = _tmp8_; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_regex_unref0 (regex); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_inner_error_->domain == G_REGEX_ERROR) { #line 1339 "HierarchicalTagUtilities.c" - goto __catch53_g_regex_error; + goto __catch55_g_regex_error; } -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_regex_unref0 (regex); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_clear_error (&_inner_error_); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return NULL; #line 1350 "HierarchicalTagUtilities.c" } -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp9_ = _tmp5_; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = NULL; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp9_; -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_free0 (_tmp5_); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_regex_unref0 (regex); -#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 1364 "HierarchicalTagUtilities.c" } - goto __finally53; - __catch53_g_regex_error: + goto __finally55; + __catch55_g_regex_error: { GError* e = NULL; -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" e = _inner_error_; -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _inner_error_ = NULL; -#line 1385 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1385 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_assert_not_reached (); -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _g_error_free0 (e); #line 1378 "HierarchicalTagUtilities.c" } - __finally53: -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" + __finally55: +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_clear_error (&_inner_error_); -#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return NULL; #line 1389 "HierarchicalTagUtilities.c" } @@ -1394,15 +1394,15 @@ static gchar string_get (const gchar* self, glong index) { gchar result = '\0'; glong _tmp0_ = 0L; gchar _tmp1_ = '\0'; -#line 1086 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1086 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, '\0'); -#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = index; -#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = ((gchar*) self)[_tmp0_]; -#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp1_; -#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 1408 "HierarchicalTagUtilities.c" } diff --git a/src/tags/TagPage.c b/src/tags/TagPage.c index 8a95878..9c8acc0 100644 --- a/src/tags/TagPage.c +++ b/src/tags/TagPage.c @@ -1,4 +1,4 @@ -/* TagPage.c generated by valac 0.32.1, the Vala compiler +/* TagPage.c generated by valac 0.34.4, the Vala compiler * generated from TagPage.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -12,9 +12,9 @@ #include <gtk/gtk.h> #include <stdlib.h> #include <string.h> +#include <gio/gio.h> #include <gee.h> #include <gdk/gdk.h> -#include <gio/gio.h> #define TYPE_PAGE (page_get_type ()) @@ -304,16 +304,6 @@ typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; typedef struct _ConfigFacade ConfigFacade; typedef struct _ConfigFacadeClass ConfigFacadeClass; -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; - #define TYPE_COMMAND (command_get_type ()) #define COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND, Command)) #define COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND, CommandClass)) @@ -365,6 +355,16 @@ typedef struct _CommandManager CommandManager; typedef struct _CommandManagerClass CommandManagerClass; #define _command_manager_unref0(var) ((var == NULL) ? NULL : (var = (command_manager_unref (var), NULL))) +#define TYPE_APP_WINDOW (app_window_get_type ()) +#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) +#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) +#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) +#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) +#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) + +typedef struct _AppWindow AppWindow; +typedef struct _AppWindowClass AppWindowClass; + #define TYPE_LIBRARY_WINDOW (library_window_get_type ()) #define LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_WINDOW, LibraryWindow)) #define LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_WINDOW, LibraryWindowClass)) @@ -435,7 +435,8 @@ struct _PageClass { void (*ready) (Page* self); void (*switching_to_fullscreen) (Page* self, FullscreenWindow* fsw); void (*returning_from_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*add_actions) (Page* self); + void (*add_actions) (Page* self, GActionMap* map); + void (*remove_actions) (Page* self, GActionMap* map); void (*init_collect_ui_filenames) (Page* self, GeeList* ui_filenames); InjectionGroup** (*init_collect_injection_groups) (Page* self, int* result_length1); void (*init_actions) (Page* self, gint selected_count, gint count); @@ -681,10 +682,10 @@ ConfigFacade* config_facade_get_instance (void); void configuration_facade_get_event_photos_sort (ConfigurationFacade* self, gboolean* sort_order, gint* sort_by); static void tag_page_real_set_config_photos_sort (MediaPage* base, gboolean sort_order, gint sort_by); void configuration_facade_set_event_photos_sort (ConfigurationFacade* self, gboolean sort_order, gint sort_by); -static void tag_page_real_add_actions (Page* base); -void page_add_actions (Page* self); -GType app_window_get_type (void) G_GNUC_CONST; -AppWindow* app_window_get_instance (void); +static void tag_page_real_add_actions (Page* base, GActionMap* map); +void page_add_actions (Page* self, GActionMap* map); +static void tag_page_real_remove_actions (Page* base, GActionMap* map); +void page_remove_actions (Page* self, GActionMap* map); void page_set_page_name (Page* self, const gchar* page_name); void page_update_actions (Page* self, gint selected_count, gint count); gint view_collection_get_selected_count (ViewCollection* self); @@ -713,6 +714,7 @@ gpointer value_get_command_manager (const GValue* value); GType command_manager_get_type (void) G_GNUC_CONST; CommandManager* app_window_get_command_manager (void); void command_manager_execute (CommandManager* self, Command* command); +GType app_window_get_type (void) G_GNUC_CONST; GType library_window_get_type (void) G_GNUC_CONST; LibraryWindow* library_window_get_app (void); void library_window_rename_tag_in_sidebar (LibraryWindow* self, Tag* tag); @@ -735,42 +737,42 @@ static const GActionEntry TAG_PAGE_entries[4] = {{"DeleteTag", _tag_page_on_dele static void _tag_page_on_tags_altered_data_collection_items_altered (DataCollection* _sender, GeeMap* items, gpointer self) { #line 23 "/home/jens/Source/shotwell/src/tags/TagPage.vala" tag_page_on_tags_altered ((TagPage*) self, items); -#line 739 "TagPage.c" +#line 741 "TagPage.c" } static void _tag_page_on_delete_tag_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 43 "/home/jens/Source/shotwell/src/tags/TagPage.vala" tag_page_on_delete_tag ((TagPage*) self); -#line 746 "TagPage.c" +#line 748 "TagPage.c" } static void _tag_page_on_rename_tag_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 43 "/home/jens/Source/shotwell/src/tags/TagPage.vala" tag_page_on_rename_tag ((TagPage*) self); -#line 753 "TagPage.c" +#line 755 "TagPage.c" } static void _tag_page_on_remove_tag_from_photos_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 43 "/home/jens/Source/shotwell/src/tags/TagPage.vala" tag_page_on_remove_tag_from_photos ((TagPage*) self); -#line 760 "TagPage.c" +#line 762 "TagPage.c" } static void _tag_page_on_new_child_tag_sidebar_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) { #line 43 "/home/jens/Source/shotwell/src/tags/TagPage.vala" tag_page_on_new_child_tag_sidebar ((TagPage*) self); -#line 767 "TagPage.c" +#line 769 "TagPage.c" } static gpointer _g_object_ref0 (gpointer self) { #line 13 "/home/jens/Source/shotwell/src/tags/TagPage.vala" return self ? g_object_ref (self) : NULL; -#line 774 "TagPage.c" +#line 776 "TagPage.c" } @@ -779,7 +781,7 @@ static DataView* _media_page_create_thumbnail_create_view (DataSource* source, g result = media_page_create_thumbnail ((MediaPage*) self, source); #line 16 "/home/jens/Source/shotwell/src/tags/TagPage.vala" return result; -#line 783 "TagPage.c" +#line 785 "TagPage.c" } @@ -832,14 +834,14 @@ TagPage* tag_page_construct (GType object_type, Tag* tag) { checkerboard_page_init_page_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), "TagsContextMenu"); #line 10 "/home/jens/Source/shotwell/src/tags/TagPage.vala" return self; -#line 836 "TagPage.c" +#line 838 "TagPage.c" } TagPage* tag_page_new (Tag* tag) { #line 10 "/home/jens/Source/shotwell/src/tags/TagPage.vala" return tag_page_construct (TYPE_TAG_PAGE, tag); -#line 843 "TagPage.c" +#line 845 "TagPage.c" } @@ -859,7 +861,7 @@ static void tag_page_real_init_collect_ui_filenames (Page* base, GeeList* ui_fil _tmp1_ = ui_filenames; #line 28 "/home/jens/Source/shotwell/src/tags/TagPage.vala" gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection), "tags.ui"); -#line 863 "TagPage.c" +#line 865 "TagPage.c" } @@ -877,7 +879,7 @@ Tag* tag_page_get_tag (TagPage* self) { result = _tmp1_; #line 32 "/home/jens/Source/shotwell/src/tags/TagPage.vala" return result; -#line 881 "TagPage.c" +#line 883 "TagPage.c" } @@ -907,13 +909,13 @@ static void tag_page_real_get_config_photos_sort (MediaPage* base, gboolean* sor if (sort_order) { #line 35 "/home/jens/Source/shotwell/src/tags/TagPage.vala" *sort_order = _vala_sort_order; -#line 911 "TagPage.c" +#line 913 "TagPage.c" } #line 35 "/home/jens/Source/shotwell/src/tags/TagPage.vala" if (sort_by) { #line 35 "/home/jens/Source/shotwell/src/tags/TagPage.vala" *sort_by = _vala_sort_by; -#line 917 "TagPage.c" +#line 919 "TagPage.c" } } @@ -938,27 +940,74 @@ static void tag_page_real_set_config_photos_sort (MediaPage* base, gboolean sort configuration_facade_set_event_photos_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_); #line 40 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _g_object_unref0 (_tmp1_); -#line 942 "TagPage.c" +#line 944 "TagPage.c" } -static void tag_page_real_add_actions (Page* base) { +static void tag_page_real_add_actions (Page* base, GActionMap* map) { TagPage * self; - AppWindow* _tmp0_ = NULL; - AppWindow* _tmp1_ = NULL; + GActionMap* _tmp0_ = NULL; + GActionMap* _tmp1_ = NULL; #line 50 "/home/jens/Source/shotwell/src/tags/TagPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG_PAGE, TagPage); +#line 50 "/home/jens/Source/shotwell/src/tags/TagPage.vala" + g_return_if_fail (G_IS_ACTION_MAP (map)); #line 51 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - PAGE_CLASS (tag_page_parent_class)->add_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page)); -#line 53 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp0_ = app_window_get_instance (); -#line 53 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp1_ = _tmp0_; + _tmp0_ = map; +#line 51 "/home/jens/Source/shotwell/src/tags/TagPage.vala" + PAGE_CLASS (tag_page_parent_class)->add_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page), _tmp0_); #line 53 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - g_action_map_add_action_entries (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, g_action_map_get_type (), GActionMap), TAG_PAGE_entries, G_N_ELEMENTS (TAG_PAGE_entries), self); + _tmp1_ = map; #line 53 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _g_object_unref0 (_tmp1_); -#line 962 "TagPage.c" + g_action_map_add_action_entries (_tmp1_, TAG_PAGE_entries, G_N_ELEMENTS (TAG_PAGE_entries), self); +#line 964 "TagPage.c" +} + + +static void tag_page_real_remove_actions (Page* base, GActionMap* map) { + TagPage * self; + GActionMap* _tmp0_ = NULL; +#line 56 "/home/jens/Source/shotwell/src/tags/TagPage.vala" + self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG_PAGE, TagPage); +#line 56 "/home/jens/Source/shotwell/src/tags/TagPage.vala" + g_return_if_fail (G_IS_ACTION_MAP (map)); +#line 57 "/home/jens/Source/shotwell/src/tags/TagPage.vala" + _tmp0_ = map; +#line 57 "/home/jens/Source/shotwell/src/tags/TagPage.vala" + PAGE_CLASS (tag_page_parent_class)->remove_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page), _tmp0_); +#line 979 "TagPage.c" + { + GActionEntry* entry_collection = NULL; + gint entry_collection_length1 = 0; + gint _entry_collection_size_ = 0; + gint entry_it = 0; +#line 58 "/home/jens/Source/shotwell/src/tags/TagPage.vala" + entry_collection = TAG_PAGE_entries; +#line 58 "/home/jens/Source/shotwell/src/tags/TagPage.vala" + entry_collection_length1 = G_N_ELEMENTS (TAG_PAGE_entries); +#line 58 "/home/jens/Source/shotwell/src/tags/TagPage.vala" + for (entry_it = 0; entry_it < G_N_ELEMENTS (TAG_PAGE_entries); entry_it = entry_it + 1) { +#line 991 "TagPage.c" + GActionEntry entry = {0}; +#line 58 "/home/jens/Source/shotwell/src/tags/TagPage.vala" + entry = entry_collection[entry_it]; +#line 995 "TagPage.c" + { + GActionMap* _tmp1_ = NULL; + GActionEntry _tmp2_ = {0}; + const gchar* _tmp3_ = NULL; +#line 59 "/home/jens/Source/shotwell/src/tags/TagPage.vala" + _tmp1_ = map; +#line 59 "/home/jens/Source/shotwell/src/tags/TagPage.vala" + _tmp2_ = entry; +#line 59 "/home/jens/Source/shotwell/src/tags/TagPage.vala" + _tmp3_ = _tmp2_.name; +#line 59 "/home/jens/Source/shotwell/src/tags/TagPage.vala" + g_action_map_remove_action (_tmp1_, _tmp3_); +#line 1008 "TagPage.c" + } + } + } } @@ -966,19 +1015,19 @@ static void tag_page_on_tags_altered (TagPage* self, GeeMap* map) { GeeMap* _tmp0_ = NULL; Tag* _tmp1_ = NULL; gboolean _tmp2_ = FALSE; -#line 56 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 63 "/home/jens/Source/shotwell/src/tags/TagPage.vala" g_return_if_fail (IS_TAG_PAGE (self)); -#line 56 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 63 "/home/jens/Source/shotwell/src/tags/TagPage.vala" g_return_if_fail (GEE_IS_MAP (map)); -#line 57 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 64 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp0_ = map; -#line 57 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 64 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp1_ = self->priv->tag; -#line 57 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 64 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp2_ = gee_map_has_key (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_OBJECT, DataObject)); -#line 57 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 64 "/home/jens/Source/shotwell/src/tags/TagPage.vala" if (_tmp2_) { -#line 982 "TagPage.c" +#line 1031 "TagPage.c" Tag* _tmp3_ = NULL; gchar* _tmp4_ = NULL; gchar* _tmp5_ = NULL; @@ -988,35 +1037,35 @@ static void tag_page_on_tags_altered (TagPage* self, GeeMap* map) { ViewCollection* _tmp9_ = NULL; ViewCollection* _tmp10_ = NULL; gint _tmp11_ = 0; -#line 58 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 65 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp3_ = self->priv->tag; -#line 58 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 65 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp4_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_OBJECT, DataObject)); -#line 58 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 65 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp5_ = _tmp4_; -#line 58 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 65 "/home/jens/Source/shotwell/src/tags/TagPage.vala" page_set_page_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), _tmp5_); -#line 58 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 65 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _g_free0 (_tmp5_); -#line 59 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 66 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp6_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 59 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 66 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp7_ = _tmp6_; -#line 59 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 66 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp8_ = view_collection_get_selected_count (_tmp7_); -#line 59 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 66 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp9_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 59 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 66 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp10_ = _tmp9_; -#line 59 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 66 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp11_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_DATA_COLLECTION, DataCollection)); -#line 59 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 66 "/home/jens/Source/shotwell/src/tags/TagPage.vala" page_update_actions (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), _tmp8_, _tmp11_); -#line 59 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 66 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _data_collection_unref0 (_tmp10_); -#line 59 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 66 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _data_collection_unref0 (_tmp7_); -#line 1020 "TagPage.c" +#line 1069 "TagPage.c" } } @@ -1038,59 +1087,59 @@ static void tag_page_real_switched_to (Page* base) { gchar* _tmp12_ = NULL; gchar* _tmp13_ = NULL; gchar* _tmp14_ = NULL; -#line 63 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 70 "/home/jens/Source/shotwell/src/tags/TagPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG_PAGE, TagPage); -#line 64 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 71 "/home/jens/Source/shotwell/src/tags/TagPage.vala" PAGE_CLASS (tag_page_parent_class)->switched_to (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page)); -#line 65 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 72 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp0_ = self->priv->tag; -#line 65 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 72 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp1_ = tag_get_user_visible_name (_tmp0_); -#line 65 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 72 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp2_ = _tmp1_; -#line 65 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 72 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp3_ = resources_delete_tag_menu (_tmp2_); -#line 65 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 72 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp4_ = _tmp3_; -#line 65 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 72 "/home/jens/Source/shotwell/src/tags/TagPage.vala" page_update_menu_item_label (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DeleteTag", _tmp4_); -#line 65 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 72 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _g_free0 (_tmp4_); -#line 65 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 72 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _g_free0 (_tmp2_); -#line 67 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 74 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp5_ = self->priv->tag; -#line 67 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 74 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp6_ = tag_get_user_visible_name (_tmp5_); -#line 67 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 74 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp7_ = _tmp6_; -#line 67 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 74 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp8_ = resources_rename_tag_menu (_tmp7_); -#line 67 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 74 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp9_ = _tmp8_; -#line 67 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 74 "/home/jens/Source/shotwell/src/tags/TagPage.vala" page_update_menu_item_label (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RenameTag", _tmp9_); -#line 67 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 74 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _g_free0 (_tmp9_); -#line 67 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 74 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _g_free0 (_tmp7_); -#line 69 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 76 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp10_ = self->priv->tag; -#line 69 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 76 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp11_ = tag_get_user_visible_name (_tmp10_); -#line 69 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 76 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp12_ = _tmp11_; -#line 69 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 76 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp13_ = resources_untag_photos_menu (_tmp12_, 0); -#line 69 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 76 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp14_ = _tmp13_; -#line 69 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 76 "/home/jens/Source/shotwell/src/tags/TagPage.vala" page_update_menu_item_label (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RemoveTagFromPhotos", _tmp14_); -#line 69 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 76 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _g_free0 (_tmp14_); -#line 69 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 76 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _g_free0 (_tmp12_); -#line 1094 "TagPage.c" +#line 1143 "TagPage.c" } @@ -1115,67 +1164,67 @@ static void tag_page_real_update_actions (Page* base, gint selected_count, gint gint _tmp16_ = 0; gint _tmp17_ = 0; gint _tmp18_ = 0; -#line 73 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 80 "/home/jens/Source/shotwell/src/tags/TagPage.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG_PAGE, TagPage); -#line 74 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 81 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp0_ = self->priv->tag; -#line 74 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 81 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp1_ = tag_get_user_visible_name (_tmp0_); -#line 74 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 81 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp2_ = _tmp1_; -#line 74 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 81 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp3_ = resources_delete_tag_menu (_tmp2_); -#line 74 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 81 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp4_ = _tmp3_; -#line 74 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 81 "/home/jens/Source/shotwell/src/tags/TagPage.vala" page_set_action_details (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DeleteTag", _tmp4_, NULL, TRUE); -#line 74 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 81 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _g_free0 (_tmp4_); -#line 74 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 81 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _g_free0 (_tmp2_); -#line 79 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 86 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp5_ = self->priv->tag; -#line 79 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 86 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp6_ = tag_get_user_visible_name (_tmp5_); -#line 79 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 86 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp7_ = _tmp6_; -#line 79 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 86 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp8_ = resources_rename_tag_menu (_tmp7_); -#line 79 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 86 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp9_ = _tmp8_; -#line 79 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 86 "/home/jens/Source/shotwell/src/tags/TagPage.vala" page_set_action_details (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RenameTag", _tmp9_, NULL, TRUE); -#line 79 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 86 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _g_free0 (_tmp9_); -#line 79 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 86 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _g_free0 (_tmp7_); -#line 84 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 91 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp10_ = self->priv->tag; -#line 84 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 91 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp11_ = tag_get_user_visible_name (_tmp10_); -#line 84 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 91 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp12_ = _tmp11_; -#line 84 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 91 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp13_ = selected_count; -#line 84 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 91 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp14_ = resources_untag_photos_menu (_tmp12_, _tmp13_); -#line 84 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 91 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp15_ = _tmp14_; -#line 84 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 91 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp16_ = selected_count; -#line 84 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 91 "/home/jens/Source/shotwell/src/tags/TagPage.vala" page_set_action_details (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RemoveTagFromPhotos", _tmp15_, NULL, _tmp16_ > 0); -#line 84 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 91 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _g_free0 (_tmp15_); -#line 84 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 91 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _g_free0 (_tmp12_); -#line 89 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 96 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp17_ = selected_count; -#line 89 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 96 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp18_ = count; -#line 89 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 96 "/home/jens/Source/shotwell/src/tags/TagPage.vala" PAGE_CLASS (tag_page_parent_class)->update_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page), _tmp17_, _tmp18_); -#line 1179 "TagPage.c" +#line 1228 "TagPage.c" } @@ -1189,39 +1238,39 @@ static void tag_page_on_new_child_tag_sidebar (TagPage* self) { LibraryWindow* _tmp5_ = NULL; Tag* _tmp6_ = NULL; Tag* _tmp7_ = NULL; -#line 92 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 99 "/home/jens/Source/shotwell/src/tags/TagPage.vala" g_return_if_fail (IS_TAG_PAGE (self)); -#line 93 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 100 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp0_ = self->priv->tag; -#line 93 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 100 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp1_ = new_child_tag_command_new (_tmp0_); -#line 93 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 100 "/home/jens/Source/shotwell/src/tags/TagPage.vala" creation_command = _tmp1_; -#line 95 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 102 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp2_ = app_window_get_command_manager (); -#line 95 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 102 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp3_ = _tmp2_; -#line 95 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 102 "/home/jens/Source/shotwell/src/tags/TagPage.vala" command_manager_execute (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (creation_command, TYPE_COMMAND, Command)); -#line 95 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 102 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _command_manager_unref0 (_tmp3_); -#line 97 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 104 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp4_ = library_window_get_app (); -#line 97 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 104 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp5_ = _tmp4_; -#line 97 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 104 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp6_ = new_child_tag_command_get_created_child (creation_command); -#line 97 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 104 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp7_ = _tmp6_; -#line 97 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 104 "/home/jens/Source/shotwell/src/tags/TagPage.vala" library_window_rename_tag_in_sidebar (_tmp5_, _tmp7_); -#line 97 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 104 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _g_object_unref0 (_tmp7_); -#line 97 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 104 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _g_object_unref0 (_tmp5_); -#line 92 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 99 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _g_object_unref0 (creation_command); -#line 1225 "TagPage.c" +#line 1274 "TagPage.c" } @@ -1229,56 +1278,56 @@ static void tag_page_on_rename_tag (TagPage* self) { LibraryWindow* _tmp0_ = NULL; LibraryWindow* _tmp1_ = NULL; Tag* _tmp2_ = NULL; -#line 100 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 107 "/home/jens/Source/shotwell/src/tags/TagPage.vala" g_return_if_fail (IS_TAG_PAGE (self)); -#line 101 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 108 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp0_ = library_window_get_app (); -#line 101 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 108 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp1_ = _tmp0_; -#line 101 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 108 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp2_ = self->priv->tag; -#line 101 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 108 "/home/jens/Source/shotwell/src/tags/TagPage.vala" library_window_rename_tag_in_sidebar (_tmp1_, _tmp2_); -#line 101 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 108 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _g_object_unref0 (_tmp1_); -#line 1245 "TagPage.c" +#line 1294 "TagPage.c" } static void tag_page_on_delete_tag (TagPage* self) { Tag* _tmp0_ = NULL; gboolean _tmp1_ = FALSE; -#line 104 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 111 "/home/jens/Source/shotwell/src/tags/TagPage.vala" g_return_if_fail (IS_TAG_PAGE (self)); -#line 105 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 112 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp0_ = self->priv->tag; -#line 105 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 112 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp1_ = dialogs_confirm_delete_tag (_tmp0_); -#line 105 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 112 "/home/jens/Source/shotwell/src/tags/TagPage.vala" if (_tmp1_) { -#line 1260 "TagPage.c" +#line 1309 "TagPage.c" CommandManager* _tmp2_ = NULL; CommandManager* _tmp3_ = NULL; Tag* _tmp4_ = NULL; DeleteTagCommand* _tmp5_ = NULL; DeleteTagCommand* _tmp6_ = NULL; -#line 106 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 113 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp2_ = app_window_get_command_manager (); -#line 106 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 113 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp3_ = _tmp2_; -#line 106 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 113 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp4_ = self->priv->tag; -#line 106 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 113 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp5_ = delete_tag_command_new (_tmp4_); -#line 106 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 113 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp6_ = _tmp5_; -#line 106 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 113 "/home/jens/Source/shotwell/src/tags/TagPage.vala" command_manager_execute (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_COMMAND, Command)); -#line 106 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 113 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _g_object_unref0 (_tmp6_); -#line 106 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 113 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _command_manager_unref0 (_tmp3_); -#line 1282 "TagPage.c" +#line 1331 "TagPage.c" } } @@ -1288,21 +1337,21 @@ static void tag_page_on_remove_tag_from_photos (TagPage* self) { ViewCollection* _tmp1_ = NULL; gint _tmp2_ = 0; gboolean _tmp3_ = FALSE; -#line 109 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 116 "/home/jens/Source/shotwell/src/tags/TagPage.vala" g_return_if_fail (IS_TAG_PAGE (self)); -#line 110 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 117 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 110 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 117 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp1_ = _tmp0_; -#line 110 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 117 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp2_ = view_collection_get_selected_count (_tmp1_); -#line 110 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 117 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp3_ = _tmp2_ > 0; -#line 110 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 117 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _data_collection_unref0 (_tmp1_); -#line 110 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 117 "/home/jens/Source/shotwell/src/tags/TagPage.vala" if (_tmp3_) { -#line 1306 "TagPage.c" +#line 1355 "TagPage.c" CommandManager* _tmp4_ = NULL; CommandManager* _tmp5_ = NULL; Tag* _tmp6_ = NULL; @@ -1315,43 +1364,43 @@ static void tag_page_on_remove_tag_from_photos (TagPage* self) { gint _tmp13_ = 0; TagUntagPhotosCommand* _tmp14_ = NULL; TagUntagPhotosCommand* _tmp15_ = NULL; -#line 111 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp4_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 111 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp5_ = _tmp4_; -#line 111 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp6_ = self->priv->tag; -#line 111 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp7_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 111 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp8_ = _tmp7_; -#line 111 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp9_ = view_collection_get_selected_sources (_tmp8_); -#line 111 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp10_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_COLLECTION, GeeCollection); -#line 111 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp11_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 111 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp12_ = _tmp11_; -#line 111 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp13_ = view_collection_get_selected_count (_tmp12_); -#line 111 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp14_ = tag_untag_photos_command_new (_tmp6_, _tmp10_, _tmp13_, FALSE); -#line 111 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _tmp15_ = _tmp14_; -#line 111 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala" command_manager_execute (_tmp5_, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_COMMAND, Command)); -#line 111 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _g_object_unref0 (_tmp15_); -#line 111 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _data_collection_unref0 (_tmp12_); -#line 111 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _g_object_unref0 (_tmp10_); -#line 111 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _data_collection_unref0 (_tmp8_); -#line 111 "/home/jens/Source/shotwell/src/tags/TagPage.vala" +#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala" _command_manager_unref0 (_tmp5_); -#line 1355 "TagPage.c" +#line 1404 "TagPage.c" } } @@ -1370,19 +1419,21 @@ static void tag_page_class_init (TagPageClass * klass) { #line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala" ((PageClass *) klass)->add_actions = tag_page_real_add_actions; #line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala" + ((PageClass *) klass)->remove_actions = tag_page_real_remove_actions; +#line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala" ((PageClass *) klass)->switched_to = tag_page_real_switched_to; #line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala" ((PageClass *) klass)->update_actions = tag_page_real_update_actions; #line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala" G_OBJECT_CLASS (klass)->finalize = tag_page_finalize; -#line 1379 "TagPage.c" +#line 1430 "TagPage.c" } static void tag_page_instance_init (TagPage * self) { #line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala" self->priv = TAG_PAGE_GET_PRIVATE (self); -#line 1386 "TagPage.c" +#line 1437 "TagPage.c" } @@ -1412,7 +1463,7 @@ static void tag_page_finalize (GObject* obj) { _g_object_unref0 (self->priv->tag); #line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala" G_OBJECT_CLASS (tag_page_parent_class)->finalize (obj); -#line 1416 "TagPage.c" +#line 1467 "TagPage.c" } diff --git a/src/tags/TagPage.vala b/src/tags/TagPage.vala index 04696c5..431eaf4 100644 --- a/src/tags/TagPage.vala +++ b/src/tags/TagPage.vala @@ -47,10 +47,17 @@ public class TagPage : CollectionPage { { "NewChildTagSidebar", on_new_child_tag_sidebar } }; - protected override void add_actions () { - base.add_actions (); + protected override void add_actions(GLib.ActionMap map) { + base.add_actions(map); - AppWindow.get_instance ().add_action_entries (entries, this); + map.add_action_entries(entries, this); + } + + protected override void remove_actions(GLib.ActionMap map) { + base.remove_actions(map); + foreach (var entry in entries) { + map.remove_action(entry.name); + } } private void on_tags_altered(Gee.Map<DataObject, Alteration> map) { diff --git a/src/tags/Tags.c b/src/tags/Tags.c index 0f14960..3cc2f18 100644 --- a/src/tags/Tags.c +++ b/src/tags/Tags.c @@ -1,4 +1,4 @@ -/* Tags.c generated by valac 0.32.1, the Vala compiler +/* Tags.c generated by valac 0.34.4, the Vala compiler * generated from Tags.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/threads/BackgroundJob.c b/src/threads/BackgroundJob.c index 006e1b0..ec7c78f 100644 --- a/src/threads/BackgroundJob.c +++ b/src/threads/BackgroundJob.c @@ -1,4 +1,4 @@ -/* BackgroundJob.c generated by valac 0.32.1, the Vala compiler +/* BackgroundJob.c generated by valac 0.34.4, the Vala compiler * generated from BackgroundJob.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -1155,7 +1155,7 @@ void background_job_notify (BackgroundJob* self, NotificationCallback callback, _background_job_notification_job_unref0 (_tmp5_); #line 1157 "BackgroundJob.c" } - __finally11: + __finally13: { GeeArrayList* _tmp6_ = NULL; #line 210 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" @@ -1258,7 +1258,7 @@ static gboolean background_job_on_notification_ready (BackgroundJob* self) { #line 1259 "BackgroundJob.c" } } - __finally12: + __finally14: { GeeArrayList* _tmp6_ = NULL; #line 227 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" diff --git a/src/threads/Semaphore.c b/src/threads/Semaphore.c index 9874b65..34c55e4 100644 --- a/src/threads/Semaphore.c +++ b/src/threads/Semaphore.c @@ -1,4 +1,4 @@ -/* Semaphore.c generated by valac 0.32.1, the Vala compiler +/* Semaphore.c generated by valac 0.34.4, the Vala compiler * generated from Semaphore.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/threads/Threads.c b/src/threads/Threads.c index d87457f..e50f83e 100644 --- a/src/threads/Threads.c +++ b/src/threads/Threads.c @@ -1,4 +1,4 @@ -/* Threads.c generated by valac 0.32.1, the Vala compiler +/* Threads.c generated by valac 0.34.4, the Vala compiler * generated from Threads.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/threads/Workers.c b/src/threads/Workers.c index 92d5e97..312f3e3 100644 --- a/src/threads/Workers.c +++ b/src/threads/Workers.c @@ -1,4 +1,4 @@ -/* Workers.c generated by valac 0.32.1, the Vala compiler +/* Workers.c generated by valac 0.34.4, the Vala compiler * generated from Workers.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -312,7 +312,7 @@ Workers* workers_construct (GType object_type, guint max_threads, gboolean exclu #line 31 "/home/jens/Source/shotwell/src/threads/Workers.vala" if (_inner_error_->domain == G_THREAD_ERROR) { #line 315 "Workers.c" - goto __catch6_g_thread_error; + goto __catch8_g_thread_error; } #line 31 "/home/jens/Source/shotwell/src/threads/Workers.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -334,8 +334,8 @@ Workers* workers_construct (GType object_type, guint max_threads, gboolean exclu _g_thread_pool_free0 (_tmp4_); #line 336 "Workers.c" } - goto __finally6; - __catch6_g_thread_error: + goto __finally8; + __catch8_g_thread_error: { GError* err = NULL; const gchar* _tmp9_ = NULL; @@ -351,7 +351,7 @@ Workers* workers_construct (GType object_type, guint max_threads, gboolean exclu _g_error_free0 (err); #line 353 "Workers.c" } - __finally6: + __finally8: #line 30 "/home/jens/Source/shotwell/src/threads/Workers.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 30 "/home/jens/Source/shotwell/src/threads/Workers.vala" @@ -508,7 +508,7 @@ void workers_enqueue (Workers* self, BackgroundJob* job) { self->priv->enqueued = _tmp5_ + 1; #line 510 "Workers.c" } - __finally7: + __finally9: { GAsyncQueue* _tmp6_ = NULL; #line 54 "/home/jens/Source/shotwell/src/threads/Workers.vala" @@ -542,7 +542,7 @@ void workers_enqueue (Workers* self, BackgroundJob* job) { #line 60 "/home/jens/Source/shotwell/src/threads/Workers.vala" if (_inner_error_->domain == G_THREAD_ERROR) { #line 545 "Workers.c" - goto __catch8_g_thread_error; + goto __catch10_g_thread_error; } #line 60 "/home/jens/Source/shotwell/src/threads/Workers.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -553,8 +553,8 @@ void workers_enqueue (Workers* self, BackgroundJob* job) { #line 554 "Workers.c" } } - goto __finally8; - __catch8_g_thread_error: + goto __finally10; + __catch10_g_thread_error: { GError* err = NULL; GError* _tmp9_ = NULL; @@ -573,7 +573,7 @@ void workers_enqueue (Workers* self, BackgroundJob* job) { _g_error_free0 (err); #line 575 "Workers.c" } - __finally8: + __finally10: #line 59 "/home/jens/Source/shotwell/src/threads/Workers.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 59 "/home/jens/Source/shotwell/src/threads/Workers.vala" @@ -687,7 +687,7 @@ gint workers_get_pending_job_count (Workers* self) { return result; #line 689 "Workers.c" } - __finally9: + __finally11: { GAsyncQueue* _tmp3_ = NULL; #line 79 "/home/jens/Source/shotwell/src/threads/Workers.vala" @@ -752,7 +752,7 @@ static void workers_thread_start (Workers* self, void* ignored) { empty = _tmp5_ == 0; #line 754 "Workers.c" } - __finally10: + __finally12: { GAsyncQueue* _tmp6_ = NULL; #line 87 "/home/jens/Source/shotwell/src/threads/Workers.vala" diff --git a/src/unit/Unit.c b/src/unit/Unit.c index d652834..41a26e9 100644 --- a/src/unit/Unit.c +++ b/src/unit/Unit.c @@ -1,4 +1,4 @@ -/* Unit.c generated by valac 0.32.1, the Vala compiler +/* Unit.c generated by valac 0.34.4, the Vala compiler * generated from Unit.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/util/KeyValueMap.c b/src/util/KeyValueMap.c index 003f0ca..40ffa4d 100644 --- a/src/util/KeyValueMap.c +++ b/src/util/KeyValueMap.c @@ -1,4 +1,4 @@ -/* KeyValueMap.c generated by valac 0.32.1, the Vala compiler +/* KeyValueMap.c generated by valac 0.34.4, the Vala compiler * generated from KeyValueMap.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -355,23 +355,23 @@ static gchar* double_to_string (gdouble self) { const gchar* _tmp2_ = NULL; gchar* _tmp3_ = NULL; gchar* _tmp4_ = NULL; -#line 863 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 863 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = g_new0 (gchar, G_ASCII_DTOSTR_BUF_SIZE); -#line 863 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 863 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = _tmp0_; -#line 863 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 863 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1__length1 = G_ASCII_DTOSTR_BUF_SIZE; -#line 863 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 863 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = g_ascii_dtostr (_tmp1_, G_ASCII_DTOSTR_BUF_SIZE, self); -#line 863 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 863 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = g_strdup (_tmp2_); -#line 863 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 863 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = _tmp3_; -#line 863 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 863 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = (g_free (_tmp1_), NULL); -#line 863 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 863 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp4_; -#line 863 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 863 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 377 "KeyValueMap.c" } @@ -445,24 +445,24 @@ void key_value_map_set_float (KeyValueMap* self, const gchar* key, gfloat value) static gchar* bool_to_string (gboolean self) { gchar* result = NULL; -#line 37 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 37 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (self) { #line 451 "KeyValueMap.c" gchar* _tmp0_ = NULL; -#line 38 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 38 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = g_strdup ("true"); -#line 38 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 38 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp0_; -#line 38 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 38 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 459 "KeyValueMap.c" } else { gchar* _tmp1_ = NULL; -#line 40 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 40 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = g_strdup ("false"); -#line 40 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 40 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp1_; -#line 40 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 40 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 468 "KeyValueMap.c" } @@ -610,15 +610,15 @@ static gdouble double_parse (const gchar* str) { gdouble result = 0.0; const gchar* _tmp0_ = NULL; gdouble _tmp1_ = 0.0; -#line 869 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 869 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (str != NULL, 0.0); -#line 870 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 870 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = str; -#line 870 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 870 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = g_ascii_strtod (_tmp0_, NULL); -#line 870 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 870 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp1_; -#line 870 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 870 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 624 "KeyValueMap.c" } @@ -731,21 +731,21 @@ gfloat key_value_map_get_float (KeyValueMap* self, const gchar* key, gfloat def) static gboolean bool_parse (const gchar* str) { gboolean result = FALSE; const gchar* _tmp0_ = NULL; -#line 44 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 44 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (str != NULL, FALSE); -#line 45 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 45 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = str; -#line 45 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 45 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (g_strcmp0 (_tmp0_, "true") == 0) { -#line 46 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 46 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = TRUE; -#line 46 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 46 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 745 "KeyValueMap.c" } else { -#line 48 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 48 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = FALSE; -#line 48 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 48 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 751 "KeyValueMap.c" } diff --git a/src/util/Util.c b/src/util/Util.c index ec9f4ff..b7aff8f 100644 --- a/src/util/Util.c +++ b/src/util/Util.c @@ -1,4 +1,4 @@ -/* Util.c generated by valac 0.32.1, the Vala compiler +/* Util.c generated by valac 0.34.4, the Vala compiler * generated from Util.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/util/file.c b/src/util/file.c index b219fd2..211fbe3 100644 --- a/src/util/file.c +++ b/src/util/file.c @@ -1,4 +1,4 @@ -/* file.c generated by valac 0.32.1, the Vala compiler +/* file.c generated by valac 0.34.4, the Vala compiler * generated from file.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -411,37 +411,37 @@ static glong string_strnlen (gchar* str, glong maxlen) { glong _tmp1_ = 0L; gchar* _tmp2_ = NULL; gchar* _tmp3_ = NULL; -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = str; -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = maxlen; -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = memchr (_tmp0_, 0, (gsize) _tmp1_); -#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" end = _tmp2_; -#line 1296 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1296 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = end; -#line 1296 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1296 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp3_ == NULL) { #line 427 "file.c" glong _tmp4_ = 0L; -#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = maxlen; -#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp4_; -#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 435 "file.c" } else { gchar* _tmp5_ = NULL; gchar* _tmp6_ = NULL; -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = end; -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp6_ = str; -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = (glong) (_tmp5_ - _tmp6_); -#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 447 "file.c" } @@ -461,112 +461,112 @@ static gchar* string_substring (const gchar* self, glong offset, glong len) { glong _tmp20_ = 0L; glong _tmp21_ = 0L; gchar* _tmp22_ = NULL; -#line 1306 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1306 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, NULL); -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = offset; -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp1_ >= ((glong) 0)) { #line 471 "file.c" glong _tmp2_ = 0L; -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = len; -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = _tmp2_ >= ((glong) 0); #line 477 "file.c" } else { -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = FALSE; #line 481 "file.c" } -#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp0_) { #line 485 "file.c" glong _tmp3_ = 0L; glong _tmp4_ = 0L; glong _tmp5_ = 0L; -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = offset; -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = len; -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = string_strnlen ((gchar*) self, _tmp3_ + _tmp4_); -#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" string_length = _tmp5_; #line 497 "file.c" } else { gint _tmp6_ = 0; gint _tmp7_ = 0; -#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp6_ = strlen (self); -#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp7_ = _tmp6_; -#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" string_length = (glong) _tmp7_; #line 507 "file.c" } -#line 1315 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1315 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp8_ = offset; -#line 1315 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1315 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp8_ < ((glong) 0)) { #line 513 "file.c" glong _tmp9_ = 0L; glong _tmp10_ = 0L; glong _tmp11_ = 0L; -#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp9_ = string_length; -#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp10_ = offset; -#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" offset = _tmp9_ + _tmp10_; -#line 1317 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1317 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp11_ = offset; -#line 1317 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1317 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (_tmp11_ >= ((glong) 0), NULL); #line 527 "file.c" } else { glong _tmp12_ = 0L; glong _tmp13_ = 0L; -#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp12_ = offset; -#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp13_ = string_length; -#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (_tmp12_ <= _tmp13_, NULL); #line 537 "file.c" } -#line 1321 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1321 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp14_ = len; -#line 1321 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1321 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp14_ < ((glong) 0)) { #line 543 "file.c" glong _tmp15_ = 0L; glong _tmp16_ = 0L; -#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp15_ = string_length; -#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp16_ = offset; -#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" len = _tmp15_ - _tmp16_; #line 552 "file.c" } -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp17_ = offset; -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp18_ = len; -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp19_ = string_length; -#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail ((_tmp17_ + _tmp18_) <= _tmp19_, NULL); -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp20_ = offset; -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp21_ = len; -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp22_ = g_strndup (((gchar*) self) + _tmp20_, (gsize) _tmp21_); -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp22_; -#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 572 "file.c" } diff --git a/src/util/image.c b/src/util/image.c index a68553e..f6c82ec 100644 --- a/src/util/image.c +++ b/src/util/image.c @@ -1,4 +1,4 @@ -/* image.c generated by valac 0.32.1, the Vala compiler +/* image.c generated by valac 0.34.4, the Vala compiler * generated from image.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/util/misc.c b/src/util/misc.c index 848194e..65c37e5 100644 --- a/src/util/misc.c +++ b/src/util/misc.c @@ -1,4 +1,4 @@ -/* misc.c generated by valac 0.32.1, the Vala compiler +/* misc.c generated by valac 0.34.4, the Vala compiler * generated from misc.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -684,7 +684,7 @@ gchar* md5_file (GFile* file, GError** error) { #line 90 "/home/jens/Source/shotwell/src/util/misc.vala" _tmp6__length1 = buffer_length1; #line 90 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp7_ = g_input_stream_read (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, G_TYPE_INPUT_STREAM, GInputStream), _tmp6_, (gsize) _tmp6__length1, NULL, &_inner_error_); + _tmp7_ = g_input_stream_read (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, g_input_stream_get_type (), GInputStream), _tmp6_, (gsize) _tmp6__length1, NULL, &_inner_error_); #line 90 "/home/jens/Source/shotwell/src/util/misc.vala" bytes_read = (gsize) _tmp7_; #line 90 "/home/jens/Source/shotwell/src/util/misc.vala" @@ -727,7 +727,7 @@ gchar* md5_file (GFile* file, GError** error) { #line 98 "/home/jens/Source/shotwell/src/util/misc.vala" _tmp12_ = fins; #line 98 "/home/jens/Source/shotwell/src/util/misc.vala" - g_input_stream_close (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, G_TYPE_INPUT_STREAM, GInputStream), NULL, &_inner_error_); + g_input_stream_close (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, g_input_stream_get_type (), GInputStream), NULL, &_inner_error_); #line 98 "/home/jens/Source/shotwell/src/util/misc.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 734 "misc.c" @@ -1968,35 +1968,35 @@ static gchar* g_time_format (struct tm *self, const gchar* format) { gchar* _tmp3_ = NULL; gint _tmp3__length1 = 0; gchar* _tmp4_ = NULL; -#line 2709 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2758 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (format != NULL, NULL); -#line 2710 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2759 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = g_new0 (gchar, 64); -#line 2710 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2759 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" buffer = _tmp0_; -#line 2710 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2759 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" buffer_length1 = 64; -#line 2710 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2759 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _buffer_size_ = buffer_length1; -#line 2711 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2760 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = buffer; -#line 2711 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2760 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1__length1 = buffer_length1; -#line 2711 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2760 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = format; -#line 2711 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2760 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" strftime (_tmp1_, _tmp1__length1, _tmp2_, &(*self)); -#line 2712 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2761 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = buffer; -#line 2712 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2761 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3__length1 = buffer_length1; -#line 2712 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2761 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = g_strdup ((const gchar*) _tmp3_); -#line 2712 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2761 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp4_; -#line 2712 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2761 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" buffer = (g_free (buffer), NULL); -#line 2712 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 2761 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; #line 2002 "misc.c" } diff --git a/src/util/string.c b/src/util/string.c index 4cfeedd..931e58d 100644 --- a/src/util/string.c +++ b/src/util/string.c @@ -1,4 +1,4 @@ -/* string.c generated by valac 0.32.1, the Vala compiler +/* string.c generated by valac 0.34.4, the Vala compiler * generated from string.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -16,6 +16,7 @@ #define _g_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL))) #define TYPE_PREPARE_INPUT_TEXT_OPTIONS (prepare_input_text_options_get_type ()) +#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) typedef enum { PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL = 1 << 0, @@ -41,6 +42,7 @@ gchar* guarded_markup_escape_text (const gchar* plain); glong find_last_offset (const gchar* str, gchar c); gboolean is_in_ci_array (const gchar* str, gchar** strings, int strings_length1); GType prepare_input_text_options_get_type (void) G_GNUC_CONST; +gchar* guess_convert (const gchar* text); gchar* prepare_input_text (const gchar* text, PrepareInputTextOptions options, gint dest_length); gint64 parse_int64 (const gchar* str, gint num_base); gboolean string_contains_char (const gchar* haystack, gunichar needle); @@ -65,17 +67,17 @@ static gchar string_get (const gchar* self, glong index) { gchar result = '\0'; glong _tmp0_ = 0L; gchar _tmp1_ = '\0'; -#line 1086 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1086 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, '\0'); -#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = index; -#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = ((gchar*) self)[_tmp0_]; -#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp1_; -#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; -#line 79 "string.c" +#line 81 "string.c" } @@ -89,7 +91,7 @@ inline gboolean is_string_empty (const gchar* s) { if (_tmp1_ == NULL) { #line 12 "/home/jens/Source/shotwell/src/util/string.vala" _tmp0_ = TRUE; -#line 93 "string.c" +#line 95 "string.c" } else { const gchar* _tmp2_ = NULL; gchar _tmp3_ = '\0'; @@ -99,13 +101,13 @@ inline gboolean is_string_empty (const gchar* s) { _tmp3_ = string_get (_tmp2_, (glong) 0); #line 12 "/home/jens/Source/shotwell/src/util/string.vala" _tmp0_ = _tmp3_ == '\0'; -#line 103 "string.c" +#line 105 "string.c" } #line 12 "/home/jens/Source/shotwell/src/util/string.vala" result = _tmp0_; #line 12 "/home/jens/Source/shotwell/src/util/string.vala" return result; -#line 109 "string.c" +#line 111 "string.c" } @@ -124,7 +126,7 @@ gint utf8_cs_compare (void* a, void* b) { result = _tmp2_; #line 17 "/home/jens/Source/shotwell/src/util/string.vala" return result; -#line 128 "string.c" +#line 130 "string.c" } @@ -162,7 +164,7 @@ gint utf8_ci_compare (void* a, void* b) { result = _tmp7_; #line 22 "/home/jens/Source/shotwell/src/util/string.vala" return result; -#line 166 "string.c" +#line 168 "string.c" } @@ -178,7 +180,7 @@ gchar* uchar_array_to_string (guchar* data, int data_length1, gint length) { _tmp0_ = length; #line 27 "/home/jens/Source/shotwell/src/util/string.vala" if (_tmp0_ < 0) { -#line 182 "string.c" +#line 184 "string.c" guchar* _tmp1_ = NULL; gint _tmp1__length1 = 0; #line 28 "/home/jens/Source/shotwell/src/util/string.vala" @@ -187,25 +189,25 @@ gchar* uchar_array_to_string (guchar* data, int data_length1, gint length) { _tmp1__length1 = data_length1; #line 28 "/home/jens/Source/shotwell/src/util/string.vala" length = _tmp1__length1; -#line 191 "string.c" +#line 193 "string.c" } #line 30 "/home/jens/Source/shotwell/src/util/string.vala" _tmp2_ = g_string_new (""); #line 30 "/home/jens/Source/shotwell/src/util/string.vala" builder = _tmp2_; -#line 197 "string.c" +#line 199 "string.c" { gint ctr = 0; #line 31 "/home/jens/Source/shotwell/src/util/string.vala" ctr = 0; -#line 202 "string.c" +#line 204 "string.c" { gboolean _tmp3_ = FALSE; #line 31 "/home/jens/Source/shotwell/src/util/string.vala" _tmp3_ = TRUE; #line 31 "/home/jens/Source/shotwell/src/util/string.vala" while (TRUE) { -#line 209 "string.c" +#line 211 "string.c" gint _tmp5_ = 0; gint _tmp6_ = 0; guchar* _tmp7_ = NULL; @@ -214,13 +216,13 @@ gchar* uchar_array_to_string (guchar* data, int data_length1, gint length) { guchar _tmp9_ = '\0'; #line 31 "/home/jens/Source/shotwell/src/util/string.vala" if (!_tmp3_) { -#line 218 "string.c" +#line 220 "string.c" gint _tmp4_ = 0; #line 31 "/home/jens/Source/shotwell/src/util/string.vala" _tmp4_ = ctr; #line 31 "/home/jens/Source/shotwell/src/util/string.vala" ctr = _tmp4_ + 1; -#line 224 "string.c" +#line 226 "string.c" } #line 31 "/home/jens/Source/shotwell/src/util/string.vala" _tmp3_ = FALSE; @@ -232,7 +234,7 @@ gchar* uchar_array_to_string (guchar* data, int data_length1, gint length) { if (!(_tmp5_ < _tmp6_)) { #line 31 "/home/jens/Source/shotwell/src/util/string.vala" break; -#line 236 "string.c" +#line 238 "string.c" } #line 32 "/home/jens/Source/shotwell/src/util/string.vala" _tmp7_ = data; @@ -244,7 +246,7 @@ gchar* uchar_array_to_string (guchar* data, int data_length1, gint length) { _tmp9_ = _tmp7_[_tmp8_]; #line 32 "/home/jens/Source/shotwell/src/util/string.vala" if (_tmp9_ != ((guchar) '\0')) { -#line 248 "string.c" +#line 250 "string.c" GString* _tmp10_ = NULL; guchar* _tmp11_ = NULL; gint _tmp11__length1 = 0; @@ -262,11 +264,11 @@ gchar* uchar_array_to_string (guchar* data, int data_length1, gint length) { _tmp13_ = _tmp11_[_tmp12_]; #line 33 "/home/jens/Source/shotwell/src/util/string.vala" g_string_append_c (_tmp10_, (gchar) _tmp13_); -#line 266 "string.c" +#line 268 "string.c" } else { #line 35 "/home/jens/Source/shotwell/src/util/string.vala" break; -#line 270 "string.c" +#line 272 "string.c" } } } @@ -283,7 +285,7 @@ gchar* uchar_array_to_string (guchar* data, int data_length1, gint length) { _g_string_free0 (builder); #line 38 "/home/jens/Source/shotwell/src/util/string.vala" return result; -#line 287 "string.c" +#line 289 "string.c" } @@ -294,11 +296,11 @@ static void _vala_array_add1 (guchar** array, int* length, int* size, guchar val *size = (*size) ? (2 * (*size)) : 4; #line 45 "/home/jens/Source/shotwell/src/util/string.vala" *array = g_renew (guchar, *array, *size); -#line 298 "string.c" +#line 300 "string.c" } #line 45 "/home/jens/Source/shotwell/src/util/string.vala" (*array)[(*length)++] = value; -#line 302 "string.c" +#line 304 "string.c" } @@ -320,19 +322,19 @@ guchar* string_to_uchar_array (const gchar* str, int* result_length1) { data_length1 = 0; #line 43 "/home/jens/Source/shotwell/src/util/string.vala" _data_size_ = data_length1; -#line 324 "string.c" +#line 326 "string.c" { gint ctr = 0; #line 44 "/home/jens/Source/shotwell/src/util/string.vala" ctr = 0; -#line 329 "string.c" +#line 331 "string.c" { gboolean _tmp1_ = FALSE; #line 44 "/home/jens/Source/shotwell/src/util/string.vala" _tmp1_ = TRUE; #line 44 "/home/jens/Source/shotwell/src/util/string.vala" while (TRUE) { -#line 336 "string.c" +#line 338 "string.c" gint _tmp3_ = 0; const gchar* _tmp4_ = NULL; gint _tmp5_ = 0; @@ -344,13 +346,13 @@ guchar* string_to_uchar_array (const gchar* str, int* result_length1) { gchar _tmp10_ = '\0'; #line 44 "/home/jens/Source/shotwell/src/util/string.vala" if (!_tmp1_) { -#line 348 "string.c" +#line 350 "string.c" gint _tmp2_ = 0; #line 44 "/home/jens/Source/shotwell/src/util/string.vala" _tmp2_ = ctr; #line 44 "/home/jens/Source/shotwell/src/util/string.vala" ctr = _tmp2_ + 1; -#line 354 "string.c" +#line 356 "string.c" } #line 44 "/home/jens/Source/shotwell/src/util/string.vala" _tmp1_ = FALSE; @@ -366,7 +368,7 @@ guchar* string_to_uchar_array (const gchar* str, int* result_length1) { if (!(_tmp3_ < _tmp6_)) { #line 44 "/home/jens/Source/shotwell/src/util/string.vala" break; -#line 370 "string.c" +#line 372 "string.c" } #line 45 "/home/jens/Source/shotwell/src/util/string.vala" _tmp7_ = data; @@ -380,7 +382,7 @@ guchar* string_to_uchar_array (const gchar* str, int* result_length1) { _tmp10_ = string_get (_tmp8_, (glong) _tmp9_); #line 45 "/home/jens/Source/shotwell/src/util/string.vala" _vala_array_add1 (&data, &data_length1, &_data_size_, (guchar) _tmp10_); -#line 384 "string.c" +#line 386 "string.c" } } } @@ -392,13 +394,13 @@ guchar* string_to_uchar_array (const gchar* str, int* result_length1) { if (result_length1) { #line 47 "/home/jens/Source/shotwell/src/util/string.vala" *result_length1 = _tmp11__length1; -#line 396 "string.c" +#line 398 "string.c" } #line 47 "/home/jens/Source/shotwell/src/util/string.vala" result = _tmp11_; #line 47 "/home/jens/Source/shotwell/src/util/string.vala" return result; -#line 402 "string.c" +#line 404 "string.c" } @@ -414,7 +416,7 @@ inline gchar* guarded_markup_escape_text (const gchar* plain) { _tmp3_ = is_string_empty (_tmp2_); #line 58 "/home/jens/Source/shotwell/src/util/string.vala" if (!_tmp3_) { -#line 418 "string.c" +#line 420 "string.c" const gchar* _tmp4_ = NULL; gboolean _tmp5_ = FALSE; #line 58 "/home/jens/Source/shotwell/src/util/string.vala" @@ -423,15 +425,15 @@ inline gchar* guarded_markup_escape_text (const gchar* plain) { _tmp5_ = g_utf8_validate (_tmp4_, (gssize) -1, NULL); #line 58 "/home/jens/Source/shotwell/src/util/string.vala" _tmp1_ = _tmp5_; -#line 427 "string.c" +#line 429 "string.c" } else { #line 58 "/home/jens/Source/shotwell/src/util/string.vala" _tmp1_ = FALSE; -#line 431 "string.c" +#line 433 "string.c" } #line 58 "/home/jens/Source/shotwell/src/util/string.vala" if (_tmp1_) { -#line 435 "string.c" +#line 437 "string.c" const gchar* _tmp6_ = NULL; gchar* _tmp7_ = NULL; #line 58 "/home/jens/Source/shotwell/src/util/string.vala" @@ -442,7 +444,7 @@ inline gchar* guarded_markup_escape_text (const gchar* plain) { _g_free0 (_tmp0_); #line 58 "/home/jens/Source/shotwell/src/util/string.vala" _tmp0_ = _tmp7_; -#line 446 "string.c" +#line 448 "string.c" } else { gchar* _tmp8_ = NULL; #line 58 "/home/jens/Source/shotwell/src/util/string.vala" @@ -451,13 +453,13 @@ inline gchar* guarded_markup_escape_text (const gchar* plain) { _g_free0 (_tmp0_); #line 58 "/home/jens/Source/shotwell/src/util/string.vala" _tmp0_ = _tmp8_; -#line 455 "string.c" +#line 457 "string.c" } #line 58 "/home/jens/Source/shotwell/src/util/string.vala" result = _tmp0_; #line 58 "/home/jens/Source/shotwell/src/util/string.vala" return result; -#line 461 "string.c" +#line 463 "string.c" } @@ -479,7 +481,7 @@ glong find_last_offset (const gchar* str, gchar c) { offset = (glong) _tmp2_; #line 63 "/home/jens/Source/shotwell/src/util/string.vala" while (TRUE) { -#line 483 "string.c" +#line 485 "string.c" glong _tmp3_ = 0L; glong _tmp4_ = 0L; const gchar* _tmp5_ = NULL; @@ -496,7 +498,7 @@ glong find_last_offset (const gchar* str, gchar c) { if (!(_tmp4_ >= ((glong) 0))) { #line 63 "/home/jens/Source/shotwell/src/util/string.vala" break; -#line 500 "string.c" +#line 502 "string.c" } #line 64 "/home/jens/Source/shotwell/src/util/string.vala" _tmp5_ = str; @@ -512,14 +514,14 @@ glong find_last_offset (const gchar* str, gchar c) { result = offset; #line 65 "/home/jens/Source/shotwell/src/util/string.vala" return result; -#line 516 "string.c" +#line 518 "string.c" } } #line 68 "/home/jens/Source/shotwell/src/util/string.vala" result = (glong) -1; #line 68 "/home/jens/Source/shotwell/src/util/string.vala" return result; -#line 523 "string.c" +#line 525 "string.c" } @@ -542,7 +544,7 @@ gboolean is_in_ci_array (const gchar* str, gchar** strings, int strings_length1) _tmp2_ = strings; #line 75 "/home/jens/Source/shotwell/src/util/string.vala" _tmp2__length1 = strings_length1; -#line 546 "string.c" +#line 548 "string.c" { gchar** str_element_collection = NULL; gint str_element_collection_length1 = 0; @@ -554,14 +556,14 @@ gboolean is_in_ci_array (const gchar* str, gchar** strings, int strings_length1) str_element_collection_length1 = _tmp2__length1; #line 75 "/home/jens/Source/shotwell/src/util/string.vala" for (str_element_it = 0; str_element_it < _tmp2__length1; str_element_it = str_element_it + 1) { -#line 558 "string.c" +#line 560 "string.c" gchar* _tmp3_ = NULL; gchar* str_element = NULL; #line 75 "/home/jens/Source/shotwell/src/util/string.vala" _tmp3_ = g_strdup (str_element_collection[str_element_it]); #line 75 "/home/jens/Source/shotwell/src/util/string.vala" str_element = _tmp3_; -#line 565 "string.c" +#line 567 "string.c" { const gchar* _tmp4_ = NULL; const gchar* _tmp5_ = NULL; @@ -579,11 +581,11 @@ gboolean is_in_ci_array (const gchar* str, gchar** strings, int strings_length1) _g_free0 (strdown); #line 77 "/home/jens/Source/shotwell/src/util/string.vala" return result; -#line 583 "string.c" +#line 585 "string.c" } #line 75 "/home/jens/Source/shotwell/src/util/string.vala" _g_free0 (str_element); -#line 587 "string.c" +#line 589 "string.c" } } } @@ -593,7 +595,7 @@ gboolean is_in_ci_array (const gchar* str, gchar** strings, int strings_length1) _g_free0 (strdown); #line 80 "/home/jens/Source/shotwell/src/util/string.vala" return result; -#line 597 "string.c" +#line 599 "string.c" } @@ -609,26 +611,294 @@ GType prepare_input_text_options_get_type (void) { } +gchar* guess_convert (const gchar* text) { + gchar* result = NULL; + gchar* output = NULL; + gsize bytes_read = 0UL; + const gchar* charset = NULL; + const gchar* _tmp0_ = NULL; + gboolean _tmp1_ = FALSE; + gsize _tmp30_ = 0UL; + const gchar* _tmp31_ = NULL; + gint _tmp32_ = 0; + gint _tmp33_ = 0; + GError * _inner_error_ = NULL; +#line 94 "/home/jens/Source/shotwell/src/util/string.vala" + g_return_val_if_fail (text != NULL, NULL); +#line 95 "/home/jens/Source/shotwell/src/util/string.vala" + output = NULL; +#line 96 "/home/jens/Source/shotwell/src/util/string.vala" + bytes_read = (gsize) 0; +#line 97 "/home/jens/Source/shotwell/src/util/string.vala" + charset = NULL; +#line 98 "/home/jens/Source/shotwell/src/util/string.vala" + g_debug ("string.vala:98: CONVERT: Text did not validate as UTF-8, trying conver" \ +"sion"); +#line 101 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp1_ = g_get_charset (&_tmp0_); +#line 101 "/home/jens/Source/shotwell/src/util/string.vala" + charset = _tmp0_; +#line 101 "/home/jens/Source/shotwell/src/util/string.vala" + if (!_tmp1_) { +#line 643 "string.c" + const gchar* _tmp2_ = NULL; + const gchar* _tmp3_ = NULL; + gint _tmp4_ = 0; + gint _tmp5_ = 0; + gsize _tmp6_ = 0UL; + gchar* _tmp7_ = NULL; + gsize _tmp8_ = 0UL; + const gchar* _tmp9_ = NULL; + gint _tmp10_ = 0; + gint _tmp11_ = 0; +#line 102 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp2_ = text; +#line 102 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp3_ = text; +#line 102 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp4_ = strlen (_tmp3_); +#line 102 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp5_ = _tmp4_; +#line 102 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp7_ = g_locale_to_utf8 (_tmp2_, (gssize) _tmp5_, &_tmp6_, NULL, NULL); +#line 102 "/home/jens/Source/shotwell/src/util/string.vala" + bytes_read = _tmp6_; +#line 102 "/home/jens/Source/shotwell/src/util/string.vala" + _g_free0 (output); +#line 102 "/home/jens/Source/shotwell/src/util/string.vala" + output = _tmp7_; +#line 103 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp8_ = bytes_read; +#line 103 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp9_ = text; +#line 103 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp10_ = strlen (_tmp9_); +#line 103 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp11_ = _tmp10_; +#line 103 "/home/jens/Source/shotwell/src/util/string.vala" + if (_tmp8_ == ((gsize) _tmp11_)) { +#line 680 "string.c" + const gchar* _tmp12_ = NULL; +#line 104 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp12_ = charset; +#line 104 "/home/jens/Source/shotwell/src/util/string.vala" + g_debug ("string.vala:104: CONVERT: Locale is not UTF-8, convert from %s", _tmp12_); +#line 105 "/home/jens/Source/shotwell/src/util/string.vala" + result = output; +#line 105 "/home/jens/Source/shotwell/src/util/string.vala" + return result; +#line 690 "string.c" + } + } + { + gchar* _tmp13_ = NULL; + const gchar* _tmp14_ = NULL; + const gchar* _tmp15_ = NULL; + gint _tmp16_ = 0; + gint _tmp17_ = 0; + gsize _tmp18_ = 0UL; + gchar* _tmp19_ = NULL; + gchar* _tmp20_ = NULL; +#line 110 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp14_ = text; +#line 110 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp15_ = text; +#line 110 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp16_ = strlen (_tmp15_); +#line 110 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp17_ = _tmp16_; +#line 110 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp19_ = g_convert (_tmp14_, (gssize) _tmp17_, "UTF-8", "WINDOWS-1252", &_tmp18_, NULL, &_inner_error_); +#line 110 "/home/jens/Source/shotwell/src/util/string.vala" + bytes_read = _tmp18_; +#line 110 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp13_ = _tmp19_; +#line 110 "/home/jens/Source/shotwell/src/util/string.vala" + if (G_UNLIKELY (_inner_error_ != NULL)) { +#line 110 "/home/jens/Source/shotwell/src/util/string.vala" + if (_inner_error_->domain == G_CONVERT_ERROR) { +#line 720 "string.c" + goto __catch6_g_convert_error; + } +#line 110 "/home/jens/Source/shotwell/src/util/string.vala" + _g_free0 (output); +#line 110 "/home/jens/Source/shotwell/src/util/string.vala" + g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); +#line 110 "/home/jens/Source/shotwell/src/util/string.vala" + g_clear_error (&_inner_error_); +#line 110 "/home/jens/Source/shotwell/src/util/string.vala" + return NULL; +#line 731 "string.c" + } +#line 110 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp20_ = _tmp13_; +#line 110 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp13_ = NULL; +#line 110 "/home/jens/Source/shotwell/src/util/string.vala" + _g_free0 (output); +#line 110 "/home/jens/Source/shotwell/src/util/string.vala" + output = _tmp20_; +#line 111 "/home/jens/Source/shotwell/src/util/string.vala" + charset = "WINDOWS-1252"; +#line 109 "/home/jens/Source/shotwell/src/util/string.vala" + _g_free0 (_tmp13_); +#line 745 "string.c" + } + goto __finally6; + __catch6_g_convert_error: + { + GError* _error_ = NULL; + GError* _tmp21_ = NULL; +#line 109 "/home/jens/Source/shotwell/src/util/string.vala" + _error_ = _inner_error_; +#line 109 "/home/jens/Source/shotwell/src/util/string.vala" + _inner_error_ = NULL; +#line 113 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp21_ = _error_; +#line 113 "/home/jens/Source/shotwell/src/util/string.vala" + if (g_error_matches (_tmp21_, G_CONVERT_ERROR, G_CONVERT_ERROR_NO_CONVERSION)) { +#line 760 "string.c" + { + gchar* _tmp22_ = NULL; + const gchar* _tmp23_ = NULL; + const gchar* _tmp24_ = NULL; + gint _tmp25_ = 0; + gint _tmp26_ = 0; + gsize _tmp27_ = 0UL; + gchar* _tmp28_ = NULL; + gchar* _tmp29_ = NULL; +#line 115 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp23_ = text; +#line 115 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp24_ = text; +#line 115 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp25_ = strlen (_tmp24_); +#line 115 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp26_ = _tmp25_; +#line 115 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp28_ = g_convert (_tmp23_, (gssize) _tmp26_, "UTF-8", "ISO-8859-1", &_tmp27_, NULL, &_inner_error_); +#line 115 "/home/jens/Source/shotwell/src/util/string.vala" + bytes_read = _tmp27_; +#line 115 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp22_ = _tmp28_; +#line 115 "/home/jens/Source/shotwell/src/util/string.vala" + if (G_UNLIKELY (_inner_error_ != NULL)) { +#line 786 "string.c" + goto __catch7_g_error; + } +#line 115 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp29_ = _tmp22_; +#line 115 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp22_ = NULL; +#line 115 "/home/jens/Source/shotwell/src/util/string.vala" + _g_free0 (output); +#line 115 "/home/jens/Source/shotwell/src/util/string.vala" + output = _tmp29_; +#line 116 "/home/jens/Source/shotwell/src/util/string.vala" + charset = "ISO-8859-1"; +#line 114 "/home/jens/Source/shotwell/src/util/string.vala" + _g_free0 (_tmp22_); +#line 801 "string.c" + } + goto __finally7; + __catch7_g_error: + { + GError* _error_ = NULL; +#line 114 "/home/jens/Source/shotwell/src/util/string.vala" + _error_ = _inner_error_; +#line 114 "/home/jens/Source/shotwell/src/util/string.vala" + _inner_error_ = NULL; +#line 114 "/home/jens/Source/shotwell/src/util/string.vala" + _g_error_free0 (_error_); +#line 813 "string.c" + } + __finally7: +#line 114 "/home/jens/Source/shotwell/src/util/string.vala" + if (G_UNLIKELY (_inner_error_ != NULL)) { +#line 114 "/home/jens/Source/shotwell/src/util/string.vala" + _g_error_free0 (_error_); +#line 114 "/home/jens/Source/shotwell/src/util/string.vala" + _g_error_free0 (_error_); +#line 114 "/home/jens/Source/shotwell/src/util/string.vala" + _g_free0 (output); +#line 114 "/home/jens/Source/shotwell/src/util/string.vala" + g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); +#line 114 "/home/jens/Source/shotwell/src/util/string.vala" + g_clear_error (&_inner_error_); +#line 114 "/home/jens/Source/shotwell/src/util/string.vala" + return NULL; +#line 830 "string.c" + } + } +#line 109 "/home/jens/Source/shotwell/src/util/string.vala" + _g_error_free0 (_error_); +#line 835 "string.c" + } + __finally6: +#line 109 "/home/jens/Source/shotwell/src/util/string.vala" + if (G_UNLIKELY (_inner_error_ != NULL)) { +#line 109 "/home/jens/Source/shotwell/src/util/string.vala" + _g_free0 (output); +#line 109 "/home/jens/Source/shotwell/src/util/string.vala" + g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); +#line 109 "/home/jens/Source/shotwell/src/util/string.vala" + g_clear_error (&_inner_error_); +#line 109 "/home/jens/Source/shotwell/src/util/string.vala" + return NULL; +#line 848 "string.c" + } +#line 121 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp30_ = bytes_read; +#line 121 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp31_ = text; +#line 121 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp32_ = strlen (_tmp31_); +#line 121 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp33_ = _tmp32_; +#line 121 "/home/jens/Source/shotwell/src/util/string.vala" + if (_tmp30_ == ((gsize) _tmp33_)) { +#line 860 "string.c" + const gchar* _tmp34_ = NULL; +#line 122 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp34_ = charset; +#line 122 "/home/jens/Source/shotwell/src/util/string.vala" + g_debug ("string.vala:122: CONVERT: Guessed conversion from %s", _tmp34_); +#line 124 "/home/jens/Source/shotwell/src/util/string.vala" + result = output; +#line 124 "/home/jens/Source/shotwell/src/util/string.vala" + return result; +#line 870 "string.c" + } +#line 127 "/home/jens/Source/shotwell/src/util/string.vala" + result = NULL; +#line 127 "/home/jens/Source/shotwell/src/util/string.vala" + _g_free0 (output); +#line 127 "/home/jens/Source/shotwell/src/util/string.vala" + return result; +#line 878 "string.c" +} + + static gchar* string_strip (const gchar* self) { gchar* result = NULL; gchar* _result_ = NULL; gchar* _tmp0_ = NULL; const gchar* _tmp1_ = NULL; -#line 1207 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1207 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, NULL); -#line 1208 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1208 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = g_strdup (self); -#line 1208 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1208 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _result_ = _tmp0_; -#line 1209 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1209 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = _result_; -#line 1209 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1209 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_strstrip (_tmp1_); -#line 1210 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1210 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _result_; -#line 1210 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1210 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; -#line 632 "string.c" +#line 901 "string.c" } @@ -639,231 +909,242 @@ static gchar* string_delimit (const gchar* self, const gchar* delimiters, gchar const gchar* _tmp1_ = NULL; const gchar* _tmp2_ = NULL; gchar _tmp3_ = '\0'; -#line 1215 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1215 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, NULL); -#line 1215 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1215 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (delimiters != NULL, NULL); -#line 1216 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1216 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = g_strdup (self); -#line 1216 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1216 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _result_ = _tmp0_; -#line 1217 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1217 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = _result_; -#line 1217 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1217 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = delimiters; -#line 1217 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1217 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = new_delimiter; -#line 1217 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1217 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_strdelimit (_tmp1_, _tmp2_, _tmp3_); -#line 1218 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1218 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _result_; -#line 1218 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1218 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; -#line 663 "string.c" +#line 932 "string.c" } gchar* prepare_input_text (const gchar* text, PrepareInputTextOptions options, gint dest_length) { gchar* result = NULL; const gchar* _tmp0_ = NULL; - gboolean _tmp1_ = FALSE; - PrepareInputTextOptions _tmp2_ = 0; gchar* prepped = NULL; - const gchar* _tmp8_ = NULL; - gchar* _tmp9_ = NULL; - PrepareInputTextOptions _tmp10_ = 0; - PrepareInputTextOptions _tmp13_ = 0; - PrepareInputTextOptions _tmp16_ = 0; - gboolean _tmp19_ = FALSE; - PrepareInputTextOptions _tmp20_ = 0; - gint _tmp23_ = 0; -#line 95 "/home/jens/Source/shotwell/src/util/string.vala" + const gchar* _tmp1_ = NULL; + gchar* _tmp2_ = NULL; + PrepareInputTextOptions _tmp3_ = 0; + PrepareInputTextOptions _tmp12_ = 0; + PrepareInputTextOptions _tmp15_ = 0; + PrepareInputTextOptions _tmp18_ = 0; + gboolean _tmp21_ = FALSE; + PrepareInputTextOptions _tmp22_ = 0; + gint _tmp25_ = 0; +#line 131 "/home/jens/Source/shotwell/src/util/string.vala" _tmp0_ = text; -#line 95 "/home/jens/Source/shotwell/src/util/string.vala" +#line 131 "/home/jens/Source/shotwell/src/util/string.vala" if (_tmp0_ == NULL) { -#line 96 "/home/jens/Source/shotwell/src/util/string.vala" +#line 132 "/home/jens/Source/shotwell/src/util/string.vala" result = NULL; -#line 96 "/home/jens/Source/shotwell/src/util/string.vala" +#line 132 "/home/jens/Source/shotwell/src/util/string.vala" return result; -#line 689 "string.c" +#line 957 "string.c" } -#line 98 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp2_ = options; -#line 98 "/home/jens/Source/shotwell/src/util/string.vala" - if ((_tmp2_ & PREPARE_INPUT_TEXT_OPTIONS_VALIDATE) != 0) { -#line 695 "string.c" - const gchar* _tmp3_ = NULL; - gboolean _tmp4_ = FALSE; -#line 98 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp3_ = text; -#line 98 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp4_ = g_utf8_validate (_tmp3_, (gssize) -1, NULL); -#line 98 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp1_ = !_tmp4_; -#line 704 "string.c" - } else { -#line 98 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp1_ = FALSE; -#line 708 "string.c" - } -#line 98 "/home/jens/Source/shotwell/src/util/string.vala" - if (_tmp1_) { -#line 712 "string.c" - const gchar* _tmp5_ = NULL; - PrepareInputTextOptions _tmp6_ = 0; - gchar* _tmp7_ = NULL; -#line 99 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp6_ = options; -#line 99 "/home/jens/Source/shotwell/src/util/string.vala" - if ((_tmp6_ & PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL) != 0) { -#line 99 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp5_ = NULL; -#line 722 "string.c" - } else { -#line 99 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp5_ = ""; -#line 726 "string.c" +#line 134 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp1_ = text; +#line 134 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp2_ = g_strdup (_tmp1_); +#line 134 "/home/jens/Source/shotwell/src/util/string.vala" + prepped = _tmp2_; +#line 135 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp3_ = options; +#line 135 "/home/jens/Source/shotwell/src/util/string.vala" + if ((_tmp3_ & PREPARE_INPUT_TEXT_OPTIONS_VALIDATE) == PREPARE_INPUT_TEXT_OPTIONS_VALIDATE) { +#line 969 "string.c" + const gchar* _tmp4_ = NULL; + gboolean _tmp5_ = FALSE; +#line 136 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp4_ = text; +#line 136 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp5_ = g_utf8_validate (_tmp4_, (gssize) -1, NULL); +#line 136 "/home/jens/Source/shotwell/src/util/string.vala" + if (!_tmp5_) { +#line 978 "string.c" + const gchar* _tmp6_ = NULL; + gchar* _tmp7_ = NULL; + const gchar* _tmp8_ = NULL; +#line 137 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp6_ = text; +#line 137 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp7_ = guess_convert (_tmp6_); +#line 137 "/home/jens/Source/shotwell/src/util/string.vala" + _g_free0 (prepped); +#line 137 "/home/jens/Source/shotwell/src/util/string.vala" + prepped = _tmp7_; +#line 139 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp8_ = prepped; +#line 139 "/home/jens/Source/shotwell/src/util/string.vala" + if (_tmp8_ == NULL) { +#line 994 "string.c" + const gchar* _tmp9_ = NULL; + PrepareInputTextOptions _tmp10_ = 0; + gchar* _tmp11_ = NULL; +#line 140 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp10_ = options; +#line 140 "/home/jens/Source/shotwell/src/util/string.vala" + if ((_tmp10_ & PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL) != 0) { +#line 140 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp9_ = NULL; +#line 1004 "string.c" + } else { +#line 140 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp9_ = ""; +#line 1008 "string.c" + } +#line 140 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp11_ = g_strdup (_tmp9_); +#line 140 "/home/jens/Source/shotwell/src/util/string.vala" + result = _tmp11_; +#line 140 "/home/jens/Source/shotwell/src/util/string.vala" + _g_free0 (prepped); +#line 140 "/home/jens/Source/shotwell/src/util/string.vala" + return result; +#line 1018 "string.c" + } } -#line 99 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp7_ = g_strdup (_tmp5_); -#line 99 "/home/jens/Source/shotwell/src/util/string.vala" - result = _tmp7_; -#line 99 "/home/jens/Source/shotwell/src/util/string.vala" - return result; -#line 734 "string.c" } -#line 101 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp8_ = text; -#line 101 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp9_ = g_strdup (_tmp8_); -#line 101 "/home/jens/Source/shotwell/src/util/string.vala" - prepped = _tmp9_; -#line 107 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp10_ = options; -#line 107 "/home/jens/Source/shotwell/src/util/string.vala" - if ((_tmp10_ & PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE) != 0) { -#line 746 "string.c" - const gchar* _tmp11_ = NULL; - gchar* _tmp12_ = NULL; -#line 108 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp11_ = prepped; -#line 108 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp12_ = g_utf8_normalize (_tmp11_, (gssize) -1, G_NORMALIZE_NFC); -#line 108 "/home/jens/Source/shotwell/src/util/string.vala" +#line 149 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp12_ = options; +#line 149 "/home/jens/Source/shotwell/src/util/string.vala" + if ((_tmp12_ & PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE) != 0) { +#line 1026 "string.c" + const gchar* _tmp13_ = NULL; + gchar* _tmp14_ = NULL; +#line 150 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp13_ = prepped; +#line 150 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp14_ = g_utf8_normalize (_tmp13_, (gssize) -1, G_NORMALIZE_NFC); +#line 150 "/home/jens/Source/shotwell/src/util/string.vala" _g_free0 (prepped); -#line 108 "/home/jens/Source/shotwell/src/util/string.vala" - prepped = _tmp12_; -#line 757 "string.c" +#line 150 "/home/jens/Source/shotwell/src/util/string.vala" + prepped = _tmp14_; +#line 1037 "string.c" } -#line 110 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp13_ = options; -#line 110 "/home/jens/Source/shotwell/src/util/string.vala" - if ((_tmp13_ & PREPARE_INPUT_TEXT_OPTIONS_STRIP) != 0) { -#line 763 "string.c" - const gchar* _tmp14_ = NULL; - gchar* _tmp15_ = NULL; -#line 111 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp14_ = prepped; -#line 111 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp15_ = string_strip (_tmp14_); -#line 111 "/home/jens/Source/shotwell/src/util/string.vala" +#line 152 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp15_ = options; +#line 152 "/home/jens/Source/shotwell/src/util/string.vala" + if ((_tmp15_ & PREPARE_INPUT_TEXT_OPTIONS_STRIP) != 0) { +#line 1043 "string.c" + const gchar* _tmp16_ = NULL; + gchar* _tmp17_ = NULL; +#line 153 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp16_ = prepped; +#line 153 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp17_ = string_strip (_tmp16_); +#line 153 "/home/jens/Source/shotwell/src/util/string.vala" _g_free0 (prepped); -#line 111 "/home/jens/Source/shotwell/src/util/string.vala" - prepped = _tmp15_; -#line 774 "string.c" +#line 153 "/home/jens/Source/shotwell/src/util/string.vala" + prepped = _tmp17_; +#line 1054 "string.c" } -#line 115 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp16_ = options; -#line 115 "/home/jens/Source/shotwell/src/util/string.vala" - if ((_tmp16_ & PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF) != 0) { -#line 780 "string.c" - const gchar* _tmp17_ = NULL; - gchar* _tmp18_ = NULL; -#line 116 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp17_ = prepped; -#line 116 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp18_ = string_delimit (_tmp17_, "\n\r", ' '); -#line 116 "/home/jens/Source/shotwell/src/util/string.vala" +#line 157 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp18_ = options; +#line 157 "/home/jens/Source/shotwell/src/util/string.vala" + if ((_tmp18_ & PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF) != 0) { +#line 1060 "string.c" + const gchar* _tmp19_ = NULL; + gchar* _tmp20_ = NULL; +#line 158 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp19_ = prepped; +#line 158 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp20_ = string_delimit (_tmp19_, "\n\r", ' '); +#line 158 "/home/jens/Source/shotwell/src/util/string.vala" _g_free0 (prepped); -#line 116 "/home/jens/Source/shotwell/src/util/string.vala" - prepped = _tmp18_; -#line 791 "string.c" +#line 158 "/home/jens/Source/shotwell/src/util/string.vala" + prepped = _tmp20_; +#line 1071 "string.c" } -#line 118 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp20_ = options; -#line 118 "/home/jens/Source/shotwell/src/util/string.vala" - if ((_tmp20_ & PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL) != 0) { -#line 797 "string.c" - const gchar* _tmp21_ = NULL; - gboolean _tmp22_ = FALSE; -#line 118 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp21_ = prepped; -#line 118 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp22_ = is_string_empty (_tmp21_); -#line 118 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp19_ = _tmp22_; -#line 806 "string.c" +#line 160 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp22_ = options; +#line 160 "/home/jens/Source/shotwell/src/util/string.vala" + if ((_tmp22_ & PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL) != 0) { +#line 1077 "string.c" + const gchar* _tmp23_ = NULL; + gboolean _tmp24_ = FALSE; +#line 160 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp23_ = prepped; +#line 160 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp24_ = is_string_empty (_tmp23_); +#line 160 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp21_ = _tmp24_; +#line 1086 "string.c" } else { -#line 118 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp19_ = FALSE; -#line 810 "string.c" +#line 160 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp21_ = FALSE; +#line 1090 "string.c" } -#line 118 "/home/jens/Source/shotwell/src/util/string.vala" - if (_tmp19_) { -#line 119 "/home/jens/Source/shotwell/src/util/string.vala" +#line 160 "/home/jens/Source/shotwell/src/util/string.vala" + if (_tmp21_) { +#line 161 "/home/jens/Source/shotwell/src/util/string.vala" result = NULL; -#line 119 "/home/jens/Source/shotwell/src/util/string.vala" +#line 161 "/home/jens/Source/shotwell/src/util/string.vala" _g_free0 (prepped); -#line 119 "/home/jens/Source/shotwell/src/util/string.vala" +#line 161 "/home/jens/Source/shotwell/src/util/string.vala" return result; -#line 820 "string.c" +#line 1100 "string.c" } -#line 124 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp23_ = dest_length; -#line 124 "/home/jens/Source/shotwell/src/util/string.vala" - if (_tmp23_ >= 0) { -#line 826 "string.c" +#line 166 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp25_ = dest_length; +#line 166 "/home/jens/Source/shotwell/src/util/string.vala" + if (_tmp25_ >= 0) { +#line 1106 "string.c" GString* sb = NULL; - const gchar* _tmp24_ = NULL; - GString* _tmp25_ = NULL; - GString* _tmp26_ = NULL; - gint _tmp27_ = 0; + const gchar* _tmp26_ = NULL; + GString* _tmp27_ = NULL; GString* _tmp28_ = NULL; - const gchar* _tmp29_ = NULL; - gchar* _tmp30_ = NULL; -#line 125 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp24_ = prepped; -#line 125 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp25_ = g_string_new (_tmp24_); -#line 125 "/home/jens/Source/shotwell/src/util/string.vala" - sb = _tmp25_; -#line 126 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp26_ = sb; -#line 126 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp27_ = dest_length; -#line 126 "/home/jens/Source/shotwell/src/util/string.vala" - g_string_truncate (_tmp26_, (gsize) _tmp27_); -#line 127 "/home/jens/Source/shotwell/src/util/string.vala" + gint _tmp29_ = 0; + GString* _tmp30_ = NULL; + const gchar* _tmp31_ = NULL; + gchar* _tmp32_ = NULL; +#line 167 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp26_ = prepped; +#line 167 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp27_ = g_string_new (_tmp26_); +#line 167 "/home/jens/Source/shotwell/src/util/string.vala" + sb = _tmp27_; +#line 168 "/home/jens/Source/shotwell/src/util/string.vala" _tmp28_ = sb; -#line 127 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp29_ = _tmp28_->str; -#line 127 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp30_ = g_strdup (_tmp29_); -#line 127 "/home/jens/Source/shotwell/src/util/string.vala" - result = _tmp30_; -#line 127 "/home/jens/Source/shotwell/src/util/string.vala" +#line 168 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp29_ = dest_length; +#line 168 "/home/jens/Source/shotwell/src/util/string.vala" + g_string_truncate (_tmp28_, (gsize) _tmp29_); +#line 169 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp30_ = sb; +#line 169 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp31_ = _tmp30_->str; +#line 169 "/home/jens/Source/shotwell/src/util/string.vala" + _tmp32_ = g_strdup (_tmp31_); +#line 169 "/home/jens/Source/shotwell/src/util/string.vala" + result = _tmp32_; +#line 169 "/home/jens/Source/shotwell/src/util/string.vala" _g_string_free0 (sb); -#line 127 "/home/jens/Source/shotwell/src/util/string.vala" +#line 169 "/home/jens/Source/shotwell/src/util/string.vala" _g_free0 (prepped); -#line 127 "/home/jens/Source/shotwell/src/util/string.vala" +#line 169 "/home/jens/Source/shotwell/src/util/string.vala" return result; -#line 861 "string.c" +#line 1141 "string.c" } -#line 131 "/home/jens/Source/shotwell/src/util/string.vala" +#line 173 "/home/jens/Source/shotwell/src/util/string.vala" result = prepped; -#line 131 "/home/jens/Source/shotwell/src/util/string.vala" +#line 173 "/home/jens/Source/shotwell/src/util/string.vala" return result; -#line 867 "string.c" +#line 1147 "string.c" } @@ -872,19 +1153,19 @@ gint64 parse_int64 (const gchar* str, gint num_base) { const gchar* _tmp0_ = NULL; gint _tmp1_ = 0; gint64 _tmp2_ = 0LL; -#line 134 "/home/jens/Source/shotwell/src/util/string.vala" +#line 176 "/home/jens/Source/shotwell/src/util/string.vala" g_return_val_if_fail (str != NULL, 0LL); -#line 135 "/home/jens/Source/shotwell/src/util/string.vala" +#line 177 "/home/jens/Source/shotwell/src/util/string.vala" _tmp0_ = str; -#line 135 "/home/jens/Source/shotwell/src/util/string.vala" +#line 177 "/home/jens/Source/shotwell/src/util/string.vala" _tmp1_ = num_base; -#line 135 "/home/jens/Source/shotwell/src/util/string.vala" +#line 177 "/home/jens/Source/shotwell/src/util/string.vala" _tmp2_ = g_ascii_strtoll (_tmp0_, NULL, (guint) _tmp1_); -#line 135 "/home/jens/Source/shotwell/src/util/string.vala" +#line 177 "/home/jens/Source/shotwell/src/util/string.vala" result = _tmp2_; -#line 135 "/home/jens/Source/shotwell/src/util/string.vala" +#line 177 "/home/jens/Source/shotwell/src/util/string.vala" return result; -#line 888 "string.c" +#line 1168 "string.c" } @@ -895,35 +1176,35 @@ static gint string_index_of_char (const gchar* self, gunichar c, gint start_inde gunichar _tmp1_ = 0U; gchar* _tmp2_ = NULL; gchar* _tmp3_ = NULL; -#line 1007 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1007 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, 0); -#line 1008 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1008 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = start_index; -#line 1008 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1008 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = c; -#line 1008 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1008 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = g_utf8_strchr (((gchar*) self) + _tmp0_, (gssize) -1, _tmp1_); -#line 1008 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1008 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _result_ = _tmp2_; -#line 1010 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1010 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = _result_; -#line 1010 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1010 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp3_ != NULL) { -#line 913 "string.c" +#line 1193 "string.c" gchar* _tmp4_ = NULL; -#line 1011 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1011 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = _result_; -#line 1011 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1011 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = (gint) (_tmp4_ - ((gchar*) self)); -#line 1011 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1011 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; -#line 921 "string.c" +#line 1201 "string.c" } else { -#line 1013 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1013 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = -1; -#line 1013 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1013 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; -#line 927 "string.c" +#line 1207 "string.c" } } @@ -933,19 +1214,19 @@ inline gboolean string_contains_char (const gchar* haystack, gunichar needle) { const gchar* _tmp0_ = NULL; gunichar _tmp1_ = 0U; gint _tmp2_ = 0; -#line 140 "/home/jens/Source/shotwell/src/util/string.vala" +#line 182 "/home/jens/Source/shotwell/src/util/string.vala" g_return_val_if_fail (haystack != NULL, FALSE); -#line 141 "/home/jens/Source/shotwell/src/util/string.vala" +#line 183 "/home/jens/Source/shotwell/src/util/string.vala" _tmp0_ = haystack; -#line 141 "/home/jens/Source/shotwell/src/util/string.vala" +#line 183 "/home/jens/Source/shotwell/src/util/string.vala" _tmp1_ = needle; -#line 141 "/home/jens/Source/shotwell/src/util/string.vala" +#line 183 "/home/jens/Source/shotwell/src/util/string.vala" _tmp2_ = string_index_of_char (_tmp0_, _tmp1_, 0); -#line 141 "/home/jens/Source/shotwell/src/util/string.vala" +#line 183 "/home/jens/Source/shotwell/src/util/string.vala" result = _tmp2_ >= 0; -#line 141 "/home/jens/Source/shotwell/src/util/string.vala" +#line 183 "/home/jens/Source/shotwell/src/util/string.vala" return result; -#line 949 "string.c" +#line 1229 "string.c" } @@ -956,37 +1237,37 @@ static gint string_index_of (const gchar* self, const gchar* needle, gint start_ const gchar* _tmp1_ = NULL; gchar* _tmp2_ = NULL; gchar* _tmp3_ = NULL; -#line 987 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 987 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, 0); -#line 987 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 987 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (needle != NULL, 0); -#line 988 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 988 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = start_index; -#line 988 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 988 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = needle; -#line 988 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 988 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = strstr (((gchar*) self) + _tmp0_, (gchar*) _tmp1_); -#line 988 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 988 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _result_ = _tmp2_; -#line 990 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 990 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = _result_; -#line 990 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 990 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp3_ != NULL) { -#line 976 "string.c" +#line 1256 "string.c" gchar* _tmp4_ = NULL; -#line 991 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 991 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = _result_; -#line 991 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 991 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = (gint) (_tmp4_ - ((gchar*) self)); -#line 991 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 991 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; -#line 984 "string.c" +#line 1264 "string.c" } else { -#line 993 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 993 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = -1; -#line 993 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 993 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; -#line 990 "string.c" +#line 1270 "string.c" } } @@ -996,21 +1277,21 @@ inline gboolean string_contains_str (const gchar* haystack, const gchar* needle) const gchar* _tmp0_ = NULL; const gchar* _tmp1_ = NULL; gint _tmp2_ = 0; -#line 144 "/home/jens/Source/shotwell/src/util/string.vala" +#line 186 "/home/jens/Source/shotwell/src/util/string.vala" g_return_val_if_fail (haystack != NULL, FALSE); -#line 144 "/home/jens/Source/shotwell/src/util/string.vala" +#line 186 "/home/jens/Source/shotwell/src/util/string.vala" g_return_val_if_fail (needle != NULL, FALSE); -#line 145 "/home/jens/Source/shotwell/src/util/string.vala" +#line 187 "/home/jens/Source/shotwell/src/util/string.vala" _tmp0_ = haystack; -#line 145 "/home/jens/Source/shotwell/src/util/string.vala" +#line 187 "/home/jens/Source/shotwell/src/util/string.vala" _tmp1_ = needle; -#line 145 "/home/jens/Source/shotwell/src/util/string.vala" +#line 187 "/home/jens/Source/shotwell/src/util/string.vala" _tmp2_ = string_index_of (_tmp0_, _tmp1_, 0); -#line 145 "/home/jens/Source/shotwell/src/util/string.vala" +#line 187 "/home/jens/Source/shotwell/src/util/string.vala" result = _tmp2_ >= 0; -#line 145 "/home/jens/Source/shotwell/src/util/string.vala" +#line 187 "/home/jens/Source/shotwell/src/util/string.vala" return result; -#line 1014 "string.c" +#line 1294 "string.c" } @@ -1031,105 +1312,105 @@ static gchar* string_slice (const gchar* self, glong start, glong end) { glong _tmp19_ = 0L; glong _tmp20_ = 0L; gchar* _tmp21_ = NULL; -#line 1328 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1328 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, NULL); -#line 1329 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1329 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = strlen (self); -#line 1329 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1329 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = _tmp0_; -#line 1329 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1329 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" string_length = (glong) _tmp1_; -#line 1330 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1330 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = start; -#line 1330 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1330 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp2_ < ((glong) 0)) { -#line 1047 "string.c" +#line 1327 "string.c" glong _tmp3_ = 0L; glong _tmp4_ = 0L; -#line 1331 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1331 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = string_length; -#line 1331 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1331 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = start; -#line 1331 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1331 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" start = _tmp3_ + _tmp4_; -#line 1056 "string.c" +#line 1336 "string.c" } -#line 1333 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1333 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp5_ = end; -#line 1333 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1333 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp5_ < ((glong) 0)) { -#line 1062 "string.c" +#line 1342 "string.c" glong _tmp6_ = 0L; glong _tmp7_ = 0L; -#line 1334 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1334 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp6_ = string_length; -#line 1334 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1334 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp7_ = end; -#line 1334 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1334 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" end = _tmp6_ + _tmp7_; -#line 1071 "string.c" +#line 1351 "string.c" } -#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp9_ = start; -#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp9_ >= ((glong) 0)) { -#line 1077 "string.c" +#line 1357 "string.c" glong _tmp10_ = 0L; glong _tmp11_ = 0L; -#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp10_ = start; -#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp11_ = string_length; -#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp8_ = _tmp10_ <= _tmp11_; -#line 1086 "string.c" +#line 1366 "string.c" } else { -#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp8_ = FALSE; -#line 1090 "string.c" +#line 1370 "string.c" } -#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (_tmp8_, NULL); -#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp13_ = end; -#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp13_ >= ((glong) 0)) { -#line 1098 "string.c" +#line 1378 "string.c" glong _tmp14_ = 0L; glong _tmp15_ = 0L; -#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp14_ = end; -#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp15_ = string_length; -#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp12_ = _tmp14_ <= _tmp15_; -#line 1107 "string.c" +#line 1387 "string.c" } else { -#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp12_ = FALSE; -#line 1111 "string.c" +#line 1391 "string.c" } -#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (_tmp12_, NULL); -#line 1338 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1338 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp16_ = start; -#line 1338 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1338 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp17_ = end; -#line 1338 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1338 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (_tmp16_ <= _tmp17_, NULL); -#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp18_ = start; -#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp19_ = end; -#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp20_ = start; -#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp21_ = g_strndup (((gchar*) self) + _tmp18_, (gsize) (_tmp19_ - _tmp20_)); -#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp21_; -#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; -#line 1133 "string.c" +#line 1413 "string.c" } @@ -1137,48 +1418,48 @@ inline gchar* string_sliced_at (const gchar* str, gint index) { gchar* result = NULL; gchar* _tmp0_ = NULL; gint _tmp1_ = 0; -#line 148 "/home/jens/Source/shotwell/src/util/string.vala" +#line 190 "/home/jens/Source/shotwell/src/util/string.vala" g_return_val_if_fail (str != NULL, NULL); -#line 149 "/home/jens/Source/shotwell/src/util/string.vala" +#line 191 "/home/jens/Source/shotwell/src/util/string.vala" _tmp1_ = index; -#line 149 "/home/jens/Source/shotwell/src/util/string.vala" +#line 191 "/home/jens/Source/shotwell/src/util/string.vala" if (_tmp1_ >= 0) { -#line 1147 "string.c" +#line 1427 "string.c" const gchar* _tmp2_ = NULL; gint _tmp3_ = 0; const gchar* _tmp4_ = NULL; gint _tmp5_ = 0; gint _tmp6_ = 0; gchar* _tmp7_ = NULL; -#line 149 "/home/jens/Source/shotwell/src/util/string.vala" +#line 191 "/home/jens/Source/shotwell/src/util/string.vala" _tmp2_ = str; -#line 149 "/home/jens/Source/shotwell/src/util/string.vala" +#line 191 "/home/jens/Source/shotwell/src/util/string.vala" _tmp3_ = index; -#line 149 "/home/jens/Source/shotwell/src/util/string.vala" +#line 191 "/home/jens/Source/shotwell/src/util/string.vala" _tmp4_ = str; -#line 149 "/home/jens/Source/shotwell/src/util/string.vala" +#line 191 "/home/jens/Source/shotwell/src/util/string.vala" _tmp5_ = strlen (_tmp4_); -#line 149 "/home/jens/Source/shotwell/src/util/string.vala" +#line 191 "/home/jens/Source/shotwell/src/util/string.vala" _tmp6_ = _tmp5_; -#line 149 "/home/jens/Source/shotwell/src/util/string.vala" +#line 191 "/home/jens/Source/shotwell/src/util/string.vala" _tmp7_ = string_slice (_tmp2_, (glong) _tmp3_, (glong) _tmp6_); -#line 149 "/home/jens/Source/shotwell/src/util/string.vala" +#line 191 "/home/jens/Source/shotwell/src/util/string.vala" _g_free0 (_tmp0_); -#line 149 "/home/jens/Source/shotwell/src/util/string.vala" +#line 191 "/home/jens/Source/shotwell/src/util/string.vala" _tmp0_ = _tmp7_; -#line 1170 "string.c" +#line 1450 "string.c" } else { -#line 149 "/home/jens/Source/shotwell/src/util/string.vala" +#line 191 "/home/jens/Source/shotwell/src/util/string.vala" _g_free0 (_tmp0_); -#line 149 "/home/jens/Source/shotwell/src/util/string.vala" +#line 191 "/home/jens/Source/shotwell/src/util/string.vala" _tmp0_ = NULL; -#line 1176 "string.c" +#line 1456 "string.c" } -#line 149 "/home/jens/Source/shotwell/src/util/string.vala" +#line 191 "/home/jens/Source/shotwell/src/util/string.vala" result = _tmp0_; -#line 149 "/home/jens/Source/shotwell/src/util/string.vala" +#line 191 "/home/jens/Source/shotwell/src/util/string.vala" return result; -#line 1182 "string.c" +#line 1462 "string.c" } @@ -1190,27 +1471,27 @@ inline gchar* string_sliced_at_first_str (const gchar* haystack, const gchar* ne gint _tmp3_ = 0; gint _tmp4_ = 0; gchar* _tmp5_ = NULL; -#line 152 "/home/jens/Source/shotwell/src/util/string.vala" +#line 194 "/home/jens/Source/shotwell/src/util/string.vala" g_return_val_if_fail (haystack != NULL, NULL); -#line 152 "/home/jens/Source/shotwell/src/util/string.vala" +#line 194 "/home/jens/Source/shotwell/src/util/string.vala" g_return_val_if_fail (needle != NULL, NULL); -#line 153 "/home/jens/Source/shotwell/src/util/string.vala" +#line 195 "/home/jens/Source/shotwell/src/util/string.vala" _tmp0_ = haystack; -#line 153 "/home/jens/Source/shotwell/src/util/string.vala" +#line 195 "/home/jens/Source/shotwell/src/util/string.vala" _tmp1_ = haystack; -#line 153 "/home/jens/Source/shotwell/src/util/string.vala" +#line 195 "/home/jens/Source/shotwell/src/util/string.vala" _tmp2_ = needle; -#line 153 "/home/jens/Source/shotwell/src/util/string.vala" +#line 195 "/home/jens/Source/shotwell/src/util/string.vala" _tmp3_ = start_index; -#line 153 "/home/jens/Source/shotwell/src/util/string.vala" +#line 195 "/home/jens/Source/shotwell/src/util/string.vala" _tmp4_ = string_index_of (_tmp1_, _tmp2_, _tmp3_); -#line 153 "/home/jens/Source/shotwell/src/util/string.vala" +#line 195 "/home/jens/Source/shotwell/src/util/string.vala" _tmp5_ = string_sliced_at (_tmp0_, _tmp4_); -#line 153 "/home/jens/Source/shotwell/src/util/string.vala" +#line 195 "/home/jens/Source/shotwell/src/util/string.vala" result = _tmp5_; -#line 153 "/home/jens/Source/shotwell/src/util/string.vala" +#line 195 "/home/jens/Source/shotwell/src/util/string.vala" return result; -#line 1214 "string.c" +#line 1494 "string.c" } @@ -1221,37 +1502,37 @@ static gint string_last_index_of (const gchar* self, const gchar* needle, gint s const gchar* _tmp1_ = NULL; gchar* _tmp2_ = NULL; gchar* _tmp3_ = NULL; -#line 997 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 997 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, 0); -#line 997 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 997 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (needle != NULL, 0); -#line 998 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 998 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = start_index; -#line 998 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 998 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = needle; -#line 998 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 998 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = g_strrstr (((gchar*) self) + _tmp0_, (gchar*) _tmp1_); -#line 998 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 998 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _result_ = _tmp2_; -#line 1000 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1000 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = _result_; -#line 1000 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1000 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp3_ != NULL) { -#line 1241 "string.c" +#line 1521 "string.c" gchar* _tmp4_ = NULL; -#line 1001 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1001 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = _result_; -#line 1001 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1001 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = (gint) (_tmp4_ - ((gchar*) self)); -#line 1001 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1001 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; -#line 1249 "string.c" +#line 1529 "string.c" } else { -#line 1003 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1003 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = -1; -#line 1003 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1003 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; -#line 1255 "string.c" +#line 1535 "string.c" } } @@ -1264,27 +1545,27 @@ inline gchar* string_sliced_at_last_str (const gchar* haystack, const gchar* nee gint _tmp3_ = 0; gint _tmp4_ = 0; gchar* _tmp5_ = NULL; -#line 156 "/home/jens/Source/shotwell/src/util/string.vala" +#line 198 "/home/jens/Source/shotwell/src/util/string.vala" g_return_val_if_fail (haystack != NULL, NULL); -#line 156 "/home/jens/Source/shotwell/src/util/string.vala" +#line 198 "/home/jens/Source/shotwell/src/util/string.vala" g_return_val_if_fail (needle != NULL, NULL); -#line 157 "/home/jens/Source/shotwell/src/util/string.vala" +#line 199 "/home/jens/Source/shotwell/src/util/string.vala" _tmp0_ = haystack; -#line 157 "/home/jens/Source/shotwell/src/util/string.vala" +#line 199 "/home/jens/Source/shotwell/src/util/string.vala" _tmp1_ = haystack; -#line 157 "/home/jens/Source/shotwell/src/util/string.vala" +#line 199 "/home/jens/Source/shotwell/src/util/string.vala" _tmp2_ = needle; -#line 157 "/home/jens/Source/shotwell/src/util/string.vala" +#line 199 "/home/jens/Source/shotwell/src/util/string.vala" _tmp3_ = start_index; -#line 157 "/home/jens/Source/shotwell/src/util/string.vala" +#line 199 "/home/jens/Source/shotwell/src/util/string.vala" _tmp4_ = string_last_index_of (_tmp1_, _tmp2_, _tmp3_); -#line 157 "/home/jens/Source/shotwell/src/util/string.vala" +#line 199 "/home/jens/Source/shotwell/src/util/string.vala" _tmp5_ = string_sliced_at (_tmp0_, _tmp4_); -#line 157 "/home/jens/Source/shotwell/src/util/string.vala" +#line 199 "/home/jens/Source/shotwell/src/util/string.vala" result = _tmp5_; -#line 157 "/home/jens/Source/shotwell/src/util/string.vala" +#line 199 "/home/jens/Source/shotwell/src/util/string.vala" return result; -#line 1288 "string.c" +#line 1568 "string.c" } @@ -1296,25 +1577,25 @@ inline gchar* string_sliced_at_first_char (const gchar* haystack, gunichar ch, g gint _tmp3_ = 0; gint _tmp4_ = 0; gchar* _tmp5_ = NULL; -#line 160 "/home/jens/Source/shotwell/src/util/string.vala" +#line 202 "/home/jens/Source/shotwell/src/util/string.vala" g_return_val_if_fail (haystack != NULL, NULL); -#line 161 "/home/jens/Source/shotwell/src/util/string.vala" +#line 203 "/home/jens/Source/shotwell/src/util/string.vala" _tmp0_ = haystack; -#line 161 "/home/jens/Source/shotwell/src/util/string.vala" +#line 203 "/home/jens/Source/shotwell/src/util/string.vala" _tmp1_ = haystack; -#line 161 "/home/jens/Source/shotwell/src/util/string.vala" +#line 203 "/home/jens/Source/shotwell/src/util/string.vala" _tmp2_ = ch; -#line 161 "/home/jens/Source/shotwell/src/util/string.vala" +#line 203 "/home/jens/Source/shotwell/src/util/string.vala" _tmp3_ = start_index; -#line 161 "/home/jens/Source/shotwell/src/util/string.vala" +#line 203 "/home/jens/Source/shotwell/src/util/string.vala" _tmp4_ = string_index_of_char (_tmp1_, _tmp2_, _tmp3_); -#line 161 "/home/jens/Source/shotwell/src/util/string.vala" +#line 203 "/home/jens/Source/shotwell/src/util/string.vala" _tmp5_ = string_sliced_at (_tmp0_, _tmp4_); -#line 161 "/home/jens/Source/shotwell/src/util/string.vala" +#line 203 "/home/jens/Source/shotwell/src/util/string.vala" result = _tmp5_; -#line 161 "/home/jens/Source/shotwell/src/util/string.vala" +#line 203 "/home/jens/Source/shotwell/src/util/string.vala" return result; -#line 1318 "string.c" +#line 1598 "string.c" } @@ -1325,35 +1606,35 @@ static gint string_last_index_of_char (const gchar* self, gunichar c, gint start gunichar _tmp1_ = 0U; gchar* _tmp2_ = NULL; gchar* _tmp3_ = NULL; -#line 1017 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1017 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, 0); -#line 1018 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1018 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = start_index; -#line 1018 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1018 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = c; -#line 1018 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1018 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = g_utf8_strrchr (((gchar*) self) + _tmp0_, (gssize) -1, _tmp1_); -#line 1018 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1018 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _result_ = _tmp2_; -#line 1020 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1020 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = _result_; -#line 1020 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1020 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp3_ != NULL) { -#line 1343 "string.c" +#line 1623 "string.c" gchar* _tmp4_ = NULL; -#line 1021 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1021 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = _result_; -#line 1021 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1021 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = (gint) (_tmp4_ - ((gchar*) self)); -#line 1021 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1021 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; -#line 1351 "string.c" +#line 1631 "string.c" } else { -#line 1023 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1023 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = -1; -#line 1023 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1023 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; -#line 1357 "string.c" +#line 1637 "string.c" } } @@ -1366,25 +1647,25 @@ inline gchar* string_sliced_at_last_char (const gchar* haystack, gunichar ch, gi gint _tmp3_ = 0; gint _tmp4_ = 0; gchar* _tmp5_ = NULL; -#line 164 "/home/jens/Source/shotwell/src/util/string.vala" +#line 206 "/home/jens/Source/shotwell/src/util/string.vala" g_return_val_if_fail (haystack != NULL, NULL); -#line 165 "/home/jens/Source/shotwell/src/util/string.vala" +#line 207 "/home/jens/Source/shotwell/src/util/string.vala" _tmp0_ = haystack; -#line 165 "/home/jens/Source/shotwell/src/util/string.vala" +#line 207 "/home/jens/Source/shotwell/src/util/string.vala" _tmp1_ = haystack; -#line 165 "/home/jens/Source/shotwell/src/util/string.vala" +#line 207 "/home/jens/Source/shotwell/src/util/string.vala" _tmp2_ = ch; -#line 165 "/home/jens/Source/shotwell/src/util/string.vala" +#line 207 "/home/jens/Source/shotwell/src/util/string.vala" _tmp3_ = start_index; -#line 165 "/home/jens/Source/shotwell/src/util/string.vala" +#line 207 "/home/jens/Source/shotwell/src/util/string.vala" _tmp4_ = string_last_index_of_char (_tmp1_, _tmp2_, _tmp3_); -#line 165 "/home/jens/Source/shotwell/src/util/string.vala" +#line 207 "/home/jens/Source/shotwell/src/util/string.vala" _tmp5_ = string_sliced_at (_tmp0_, _tmp4_); -#line 165 "/home/jens/Source/shotwell/src/util/string.vala" +#line 207 "/home/jens/Source/shotwell/src/util/string.vala" result = _tmp5_; -#line 165 "/home/jens/Source/shotwell/src/util/string.vala" +#line 207 "/home/jens/Source/shotwell/src/util/string.vala" return result; -#line 1388 "string.c" +#line 1668 "string.c" } @@ -1392,17 +1673,17 @@ static gunichar string_get_char (const gchar* self, glong index) { gunichar result = 0U; glong _tmp0_ = 0L; gunichar _tmp1_ = 0U; -#line 1116 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1116 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, 0U); -#line 1117 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1117 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = index; -#line 1117 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1117 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = g_utf8_get_char (((gchar*) self) + _tmp0_); -#line 1117 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1117 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = _tmp1_; -#line 1117 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1117 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; -#line 1406 "string.c" +#line 1686 "string.c" } @@ -1414,30 +1695,30 @@ gchar* string_strip_leading_zeroes (const gchar* str) { GString* _tmp16_ = NULL; const gchar* _tmp17_ = NULL; gchar* _tmp18_ = NULL; -#line 169 "/home/jens/Source/shotwell/src/util/string.vala" +#line 211 "/home/jens/Source/shotwell/src/util/string.vala" g_return_val_if_fail (str != NULL, NULL); -#line 170 "/home/jens/Source/shotwell/src/util/string.vala" +#line 212 "/home/jens/Source/shotwell/src/util/string.vala" _tmp0_ = g_string_new (""); -#line 170 "/home/jens/Source/shotwell/src/util/string.vala" +#line 212 "/home/jens/Source/shotwell/src/util/string.vala" stripped = _tmp0_; -#line 171 "/home/jens/Source/shotwell/src/util/string.vala" +#line 213 "/home/jens/Source/shotwell/src/util/string.vala" prev_is_space = TRUE; -#line 1426 "string.c" +#line 1706 "string.c" { const gchar* iter = NULL; const gchar* _tmp1_ = NULL; -#line 172 "/home/jens/Source/shotwell/src/util/string.vala" +#line 214 "/home/jens/Source/shotwell/src/util/string.vala" _tmp1_ = str; -#line 172 "/home/jens/Source/shotwell/src/util/string.vala" +#line 214 "/home/jens/Source/shotwell/src/util/string.vala" iter = _tmp1_; -#line 1434 "string.c" +#line 1714 "string.c" { gboolean _tmp2_ = FALSE; -#line 172 "/home/jens/Source/shotwell/src/util/string.vala" +#line 214 "/home/jens/Source/shotwell/src/util/string.vala" _tmp2_ = TRUE; -#line 172 "/home/jens/Source/shotwell/src/util/string.vala" +#line 214 "/home/jens/Source/shotwell/src/util/string.vala" while (TRUE) { -#line 1441 "string.c" +#line 1721 "string.c" const gchar* _tmp5_ = NULL; gunichar _tmp6_ = 0U; gunichar ch = 0U; @@ -1445,89 +1726,89 @@ gchar* string_strip_leading_zeroes (const gchar* str) { gunichar _tmp8_ = 0U; gboolean _tmp9_ = FALSE; gboolean _tmp10_ = FALSE; -#line 172 "/home/jens/Source/shotwell/src/util/string.vala" +#line 214 "/home/jens/Source/shotwell/src/util/string.vala" if (!_tmp2_) { -#line 1451 "string.c" +#line 1731 "string.c" const gchar* _tmp3_ = NULL; const gchar* _tmp4_ = NULL; -#line 172 "/home/jens/Source/shotwell/src/util/string.vala" +#line 214 "/home/jens/Source/shotwell/src/util/string.vala" _tmp3_ = iter; -#line 172 "/home/jens/Source/shotwell/src/util/string.vala" +#line 214 "/home/jens/Source/shotwell/src/util/string.vala" _tmp4_ = g_utf8_next_char (_tmp3_); -#line 172 "/home/jens/Source/shotwell/src/util/string.vala" +#line 214 "/home/jens/Source/shotwell/src/util/string.vala" iter = _tmp4_; -#line 1460 "string.c" +#line 1740 "string.c" } -#line 172 "/home/jens/Source/shotwell/src/util/string.vala" +#line 214 "/home/jens/Source/shotwell/src/util/string.vala" _tmp2_ = FALSE; -#line 172 "/home/jens/Source/shotwell/src/util/string.vala" +#line 214 "/home/jens/Source/shotwell/src/util/string.vala" _tmp5_ = iter; -#line 172 "/home/jens/Source/shotwell/src/util/string.vala" +#line 214 "/home/jens/Source/shotwell/src/util/string.vala" _tmp6_ = string_get_char (_tmp5_, (glong) 0); -#line 172 "/home/jens/Source/shotwell/src/util/string.vala" +#line 214 "/home/jens/Source/shotwell/src/util/string.vala" if (!(_tmp6_ != ((gunichar) 0))) { -#line 172 "/home/jens/Source/shotwell/src/util/string.vala" +#line 214 "/home/jens/Source/shotwell/src/util/string.vala" break; -#line 1472 "string.c" +#line 1752 "string.c" } -#line 173 "/home/jens/Source/shotwell/src/util/string.vala" +#line 215 "/home/jens/Source/shotwell/src/util/string.vala" _tmp7_ = iter; -#line 173 "/home/jens/Source/shotwell/src/util/string.vala" +#line 215 "/home/jens/Source/shotwell/src/util/string.vala" _tmp8_ = string_get_char (_tmp7_, (glong) 0); -#line 173 "/home/jens/Source/shotwell/src/util/string.vala" +#line 215 "/home/jens/Source/shotwell/src/util/string.vala" ch = _tmp8_; -#line 175 "/home/jens/Source/shotwell/src/util/string.vala" +#line 217 "/home/jens/Source/shotwell/src/util/string.vala" _tmp10_ = prev_is_space; -#line 175 "/home/jens/Source/shotwell/src/util/string.vala" +#line 217 "/home/jens/Source/shotwell/src/util/string.vala" if (!_tmp10_) { -#line 175 "/home/jens/Source/shotwell/src/util/string.vala" +#line 217 "/home/jens/Source/shotwell/src/util/string.vala" _tmp9_ = TRUE; -#line 1486 "string.c" +#line 1766 "string.c" } else { gunichar _tmp11_ = 0U; -#line 175 "/home/jens/Source/shotwell/src/util/string.vala" +#line 217 "/home/jens/Source/shotwell/src/util/string.vala" _tmp11_ = ch; -#line 175 "/home/jens/Source/shotwell/src/util/string.vala" +#line 217 "/home/jens/Source/shotwell/src/util/string.vala" _tmp9_ = _tmp11_ != ((gunichar) '0'); -#line 1493 "string.c" +#line 1773 "string.c" } -#line 175 "/home/jens/Source/shotwell/src/util/string.vala" +#line 217 "/home/jens/Source/shotwell/src/util/string.vala" if (_tmp9_) { -#line 1497 "string.c" +#line 1777 "string.c" GString* _tmp12_ = NULL; gunichar _tmp13_ = 0U; gunichar _tmp14_ = 0U; gboolean _tmp15_ = FALSE; -#line 176 "/home/jens/Source/shotwell/src/util/string.vala" +#line 218 "/home/jens/Source/shotwell/src/util/string.vala" _tmp12_ = stripped; -#line 176 "/home/jens/Source/shotwell/src/util/string.vala" +#line 218 "/home/jens/Source/shotwell/src/util/string.vala" _tmp13_ = ch; -#line 176 "/home/jens/Source/shotwell/src/util/string.vala" +#line 218 "/home/jens/Source/shotwell/src/util/string.vala" g_string_append_unichar (_tmp12_, _tmp13_); -#line 177 "/home/jens/Source/shotwell/src/util/string.vala" +#line 219 "/home/jens/Source/shotwell/src/util/string.vala" _tmp14_ = ch; -#line 177 "/home/jens/Source/shotwell/src/util/string.vala" +#line 219 "/home/jens/Source/shotwell/src/util/string.vala" _tmp15_ = g_unichar_isspace (_tmp14_); -#line 177 "/home/jens/Source/shotwell/src/util/string.vala" +#line 219 "/home/jens/Source/shotwell/src/util/string.vala" prev_is_space = _tmp15_; -#line 1514 "string.c" +#line 1794 "string.c" } } } } -#line 181 "/home/jens/Source/shotwell/src/util/string.vala" +#line 223 "/home/jens/Source/shotwell/src/util/string.vala" _tmp16_ = stripped; -#line 181 "/home/jens/Source/shotwell/src/util/string.vala" +#line 223 "/home/jens/Source/shotwell/src/util/string.vala" _tmp17_ = _tmp16_->str; -#line 181 "/home/jens/Source/shotwell/src/util/string.vala" +#line 223 "/home/jens/Source/shotwell/src/util/string.vala" _tmp18_ = g_strdup (_tmp17_); -#line 181 "/home/jens/Source/shotwell/src/util/string.vala" +#line 223 "/home/jens/Source/shotwell/src/util/string.vala" result = _tmp18_; -#line 181 "/home/jens/Source/shotwell/src/util/string.vala" +#line 223 "/home/jens/Source/shotwell/src/util/string.vala" _g_string_free0 (stripped); -#line 181 "/home/jens/Source/shotwell/src/util/string.vala" +#line 223 "/home/jens/Source/shotwell/src/util/string.vala" return result; -#line 1531 "string.c" +#line 1811 "string.c" } @@ -1537,56 +1818,56 @@ static gboolean string_get_next_char (const gchar* self, gint* index, gunichar* gint _tmp0_ = 0; gunichar _tmp1_ = 0U; gunichar _tmp2_ = 0U; -#line 1105 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1105 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, FALSE); -#line 1106 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1106 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp0_ = *index; -#line 1106 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1106 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp1_ = g_utf8_get_char (((gchar*) self) + _tmp0_); -#line 1106 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1106 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _vala_c = _tmp1_; -#line 1107 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1107 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp2_ = _vala_c; -#line 1107 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1107 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (_tmp2_ != ((gunichar) 0)) { -#line 1553 "string.c" +#line 1833 "string.c" gint _tmp3_ = 0; gchar* _tmp4_ = NULL; -#line 1108 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1108 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp3_ = *index; -#line 1108 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1108 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" _tmp4_ = g_utf8_next_char (((gchar*) self) + _tmp3_); -#line 1108 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1108 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" *index = (gint) (_tmp4_ - ((gchar*) self)); -#line 1109 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1109 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = TRUE; -#line 1109 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1109 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (c) { -#line 1109 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1109 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" *c = _vala_c; -#line 1568 "string.c" +#line 1848 "string.c" } -#line 1109 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1109 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; -#line 1572 "string.c" +#line 1852 "string.c" } else { -#line 1111 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1111 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" result = FALSE; -#line 1111 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1111 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (c) { -#line 1111 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1111 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" *c = _vala_c; -#line 1580 "string.c" +#line 1860 "string.c" } -#line 1111 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1111 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" return result; -#line 1584 "string.c" +#line 1864 "string.c" } -#line 1105 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1105 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" if (c) { -#line 1105 "/usr/share/vala-0.32/vapi/glib-2.0.vapi" +#line 1105 "/usr/share/vala-0.34/vapi/glib-2.0.vapi" *c = _vala_c; -#line 1590 "string.c" +#line 1870 "string.c" } } @@ -1600,17 +1881,17 @@ gchar* string_remove_diacritics (const gchar* istring) { GString* _tmp11_ = NULL; const gchar* _tmp12_ = NULL; gchar* _tmp13_ = NULL; -#line 184 "/home/jens/Source/shotwell/src/util/string.vala" +#line 226 "/home/jens/Source/shotwell/src/util/string.vala" g_return_val_if_fail (istring != NULL, NULL); -#line 185 "/home/jens/Source/shotwell/src/util/string.vala" +#line 227 "/home/jens/Source/shotwell/src/util/string.vala" _tmp0_ = g_string_new (""); -#line 185 "/home/jens/Source/shotwell/src/util/string.vala" +#line 227 "/home/jens/Source/shotwell/src/util/string.vala" builder = _tmp0_; -#line 187 "/home/jens/Source/shotwell/src/util/string.vala" +#line 229 "/home/jens/Source/shotwell/src/util/string.vala" i = 0; -#line 188 "/home/jens/Source/shotwell/src/util/string.vala" +#line 230 "/home/jens/Source/shotwell/src/util/string.vala" while (TRUE) { -#line 1614 "string.c" +#line 1894 "string.c" const gchar* _tmp1_ = NULL; gchar* _tmp2_ = NULL; gchar* _tmp3_ = NULL; @@ -1621,76 +1902,76 @@ gchar* string_remove_diacritics (const gchar* istring) { GUnicodeType _tmp8_ = 0; GString* _tmp9_ = NULL; gunichar _tmp10_ = 0U; -#line 188 "/home/jens/Source/shotwell/src/util/string.vala" +#line 230 "/home/jens/Source/shotwell/src/util/string.vala" _tmp1_ = istring; -#line 188 "/home/jens/Source/shotwell/src/util/string.vala" +#line 230 "/home/jens/Source/shotwell/src/util/string.vala" _tmp2_ = g_utf8_normalize (_tmp1_, (gssize) -1, G_NORMALIZE_DEFAULT); -#line 188 "/home/jens/Source/shotwell/src/util/string.vala" +#line 230 "/home/jens/Source/shotwell/src/util/string.vala" _tmp3_ = _tmp2_; -#line 188 "/home/jens/Source/shotwell/src/util/string.vala" +#line 230 "/home/jens/Source/shotwell/src/util/string.vala" _tmp5_ = string_get_next_char (_tmp3_, &i, &_tmp4_); -#line 188 "/home/jens/Source/shotwell/src/util/string.vala" +#line 230 "/home/jens/Source/shotwell/src/util/string.vala" ch = _tmp4_; -#line 188 "/home/jens/Source/shotwell/src/util/string.vala" +#line 230 "/home/jens/Source/shotwell/src/util/string.vala" _tmp6_ = !_tmp5_; -#line 188 "/home/jens/Source/shotwell/src/util/string.vala" +#line 230 "/home/jens/Source/shotwell/src/util/string.vala" _g_free0 (_tmp3_); -#line 188 "/home/jens/Source/shotwell/src/util/string.vala" +#line 230 "/home/jens/Source/shotwell/src/util/string.vala" if (_tmp6_) { -#line 188 "/home/jens/Source/shotwell/src/util/string.vala" +#line 230 "/home/jens/Source/shotwell/src/util/string.vala" break; -#line 1643 "string.c" +#line 1923 "string.c" } -#line 189 "/home/jens/Source/shotwell/src/util/string.vala" +#line 231 "/home/jens/Source/shotwell/src/util/string.vala" _tmp7_ = ch; -#line 189 "/home/jens/Source/shotwell/src/util/string.vala" +#line 231 "/home/jens/Source/shotwell/src/util/string.vala" _tmp8_ = g_unichar_type (_tmp7_); -#line 189 "/home/jens/Source/shotwell/src/util/string.vala" +#line 231 "/home/jens/Source/shotwell/src/util/string.vala" switch (_tmp8_) { -#line 189 "/home/jens/Source/shotwell/src/util/string.vala" +#line 231 "/home/jens/Source/shotwell/src/util/string.vala" case G_UNICODE_CONTROL: -#line 189 "/home/jens/Source/shotwell/src/util/string.vala" +#line 231 "/home/jens/Source/shotwell/src/util/string.vala" case G_UNICODE_FORMAT: -#line 189 "/home/jens/Source/shotwell/src/util/string.vala" +#line 231 "/home/jens/Source/shotwell/src/util/string.vala" case G_UNICODE_UNASSIGNED: -#line 189 "/home/jens/Source/shotwell/src/util/string.vala" +#line 231 "/home/jens/Source/shotwell/src/util/string.vala" case G_UNICODE_NON_SPACING_MARK: -#line 189 "/home/jens/Source/shotwell/src/util/string.vala" +#line 231 "/home/jens/Source/shotwell/src/util/string.vala" case G_UNICODE_COMBINING_MARK: -#line 189 "/home/jens/Source/shotwell/src/util/string.vala" +#line 231 "/home/jens/Source/shotwell/src/util/string.vala" case G_UNICODE_ENCLOSING_MARK: -#line 1663 "string.c" +#line 1943 "string.c" { -#line 197 "/home/jens/Source/shotwell/src/util/string.vala" +#line 239 "/home/jens/Source/shotwell/src/util/string.vala" continue; -#line 1667 "string.c" +#line 1947 "string.c" } default: -#line 189 "/home/jens/Source/shotwell/src/util/string.vala" +#line 231 "/home/jens/Source/shotwell/src/util/string.vala" break; -#line 1672 "string.c" +#line 1952 "string.c" } -#line 199 "/home/jens/Source/shotwell/src/util/string.vala" +#line 241 "/home/jens/Source/shotwell/src/util/string.vala" _tmp9_ = builder; -#line 199 "/home/jens/Source/shotwell/src/util/string.vala" +#line 241 "/home/jens/Source/shotwell/src/util/string.vala" _tmp10_ = ch; -#line 199 "/home/jens/Source/shotwell/src/util/string.vala" +#line 241 "/home/jens/Source/shotwell/src/util/string.vala" g_string_append_unichar (_tmp9_, _tmp10_); -#line 1680 "string.c" +#line 1960 "string.c" } -#line 201 "/home/jens/Source/shotwell/src/util/string.vala" +#line 243 "/home/jens/Source/shotwell/src/util/string.vala" _tmp11_ = builder; -#line 201 "/home/jens/Source/shotwell/src/util/string.vala" +#line 243 "/home/jens/Source/shotwell/src/util/string.vala" _tmp12_ = _tmp11_->str; -#line 201 "/home/jens/Source/shotwell/src/util/string.vala" +#line 243 "/home/jens/Source/shotwell/src/util/string.vala" _tmp13_ = g_strdup (_tmp12_); -#line 201 "/home/jens/Source/shotwell/src/util/string.vala" +#line 243 "/home/jens/Source/shotwell/src/util/string.vala" result = _tmp13_; -#line 201 "/home/jens/Source/shotwell/src/util/string.vala" +#line 243 "/home/jens/Source/shotwell/src/util/string.vala" _g_string_free0 (builder); -#line 201 "/home/jens/Source/shotwell/src/util/string.vala" +#line 243 "/home/jens/Source/shotwell/src/util/string.vala" return result; -#line 1694 "string.c" +#line 1974 "string.c" } @@ -1703,67 +1984,67 @@ gchar* string_to_hex_string (const gchar* str) { GString* _tmp7_ = NULL; const gchar* _tmp8_ = NULL; gchar* _tmp9_ = NULL; -#line 204 "/home/jens/Source/shotwell/src/util/string.vala" +#line 246 "/home/jens/Source/shotwell/src/util/string.vala" g_return_val_if_fail (str != NULL, NULL); -#line 205 "/home/jens/Source/shotwell/src/util/string.vala" +#line 247 "/home/jens/Source/shotwell/src/util/string.vala" _tmp0_ = g_string_new (""); -#line 205 "/home/jens/Source/shotwell/src/util/string.vala" +#line 247 "/home/jens/Source/shotwell/src/util/string.vala" builder = _tmp0_; -#line 207 "/home/jens/Source/shotwell/src/util/string.vala" +#line 249 "/home/jens/Source/shotwell/src/util/string.vala" _tmp1_ = str; -#line 207 "/home/jens/Source/shotwell/src/util/string.vala" +#line 249 "/home/jens/Source/shotwell/src/util/string.vala" data = (guint8*) _tmp1_; -#line 208 "/home/jens/Source/shotwell/src/util/string.vala" +#line 250 "/home/jens/Source/shotwell/src/util/string.vala" while (TRUE) { -#line 1719 "string.c" +#line 1999 "string.c" guint8* _tmp2_ = NULL; const gchar* _tmp3_ = NULL; guint8* _tmp4_ = NULL; GString* _tmp5_ = NULL; guint8* _tmp6_ = NULL; -#line 208 "/home/jens/Source/shotwell/src/util/string.vala" +#line 250 "/home/jens/Source/shotwell/src/util/string.vala" _tmp2_ = data; -#line 208 "/home/jens/Source/shotwell/src/util/string.vala" +#line 250 "/home/jens/Source/shotwell/src/util/string.vala" if (!(((gint) (*_tmp2_)) != 0)) { -#line 208 "/home/jens/Source/shotwell/src/util/string.vala" +#line 250 "/home/jens/Source/shotwell/src/util/string.vala" break; -#line 1731 "string.c" +#line 2011 "string.c" } -#line 209 "/home/jens/Source/shotwell/src/util/string.vala" +#line 251 "/home/jens/Source/shotwell/src/util/string.vala" _tmp4_ = data; -#line 209 "/home/jens/Source/shotwell/src/util/string.vala" +#line 251 "/home/jens/Source/shotwell/src/util/string.vala" if (((gint) (*_tmp4_)) != 0) { -#line 209 "/home/jens/Source/shotwell/src/util/string.vala" +#line 251 "/home/jens/Source/shotwell/src/util/string.vala" _tmp3_ = " "; -#line 1739 "string.c" +#line 2019 "string.c" } else { -#line 209 "/home/jens/Source/shotwell/src/util/string.vala" +#line 251 "/home/jens/Source/shotwell/src/util/string.vala" _tmp3_ = ""; -#line 1743 "string.c" +#line 2023 "string.c" } -#line 209 "/home/jens/Source/shotwell/src/util/string.vala" +#line 251 "/home/jens/Source/shotwell/src/util/string.vala" _tmp5_ = builder; -#line 209 "/home/jens/Source/shotwell/src/util/string.vala" +#line 251 "/home/jens/Source/shotwell/src/util/string.vala" _tmp6_ = data; -#line 209 "/home/jens/Source/shotwell/src/util/string.vala" +#line 251 "/home/jens/Source/shotwell/src/util/string.vala" data = _tmp6_ + 1; -#line 209 "/home/jens/Source/shotwell/src/util/string.vala" +#line 251 "/home/jens/Source/shotwell/src/util/string.vala" g_string_append_printf (_tmp5_, "%02Xh%s", (guint) (*_tmp6_), _tmp3_); -#line 1753 "string.c" +#line 2033 "string.c" } -#line 211 "/home/jens/Source/shotwell/src/util/string.vala" +#line 253 "/home/jens/Source/shotwell/src/util/string.vala" _tmp7_ = builder; -#line 211 "/home/jens/Source/shotwell/src/util/string.vala" +#line 253 "/home/jens/Source/shotwell/src/util/string.vala" _tmp8_ = _tmp7_->str; -#line 211 "/home/jens/Source/shotwell/src/util/string.vala" +#line 253 "/home/jens/Source/shotwell/src/util/string.vala" _tmp9_ = g_strdup (_tmp8_); -#line 211 "/home/jens/Source/shotwell/src/util/string.vala" +#line 253 "/home/jens/Source/shotwell/src/util/string.vala" result = _tmp9_; -#line 211 "/home/jens/Source/shotwell/src/util/string.vala" +#line 253 "/home/jens/Source/shotwell/src/util/string.vala" _g_string_free0 (builder); -#line 211 "/home/jens/Source/shotwell/src/util/string.vala" +#line 253 "/home/jens/Source/shotwell/src/util/string.vala" return result; -#line 1767 "string.c" +#line 2047 "string.c" } @@ -1777,31 +2058,31 @@ guint string_collated_hash (void* ptr) { gchar* _tmp4_ = NULL; guint _tmp5_ = 0U; guint _tmp6_ = 0U; -#line 231 "/home/jens/Source/shotwell/src/util/string.vala" +#line 273 "/home/jens/Source/shotwell/src/util/string.vala" _tmp0_ = ptr; -#line 231 "/home/jens/Source/shotwell/src/util/string.vala" +#line 273 "/home/jens/Source/shotwell/src/util/string.vala" _tmp1_ = g_strdup ((const gchar*) _tmp0_); -#line 231 "/home/jens/Source/shotwell/src/util/string.vala" +#line 273 "/home/jens/Source/shotwell/src/util/string.vala" str = _tmp1_; -#line 233 "/home/jens/Source/shotwell/src/util/string.vala" +#line 275 "/home/jens/Source/shotwell/src/util/string.vala" _tmp2_ = g_str_hash; -#line 233 "/home/jens/Source/shotwell/src/util/string.vala" +#line 275 "/home/jens/Source/shotwell/src/util/string.vala" _tmp3_ = g_utf8_collate_key (str, (gssize) -1); -#line 233 "/home/jens/Source/shotwell/src/util/string.vala" +#line 275 "/home/jens/Source/shotwell/src/util/string.vala" _tmp4_ = _tmp3_; -#line 233 "/home/jens/Source/shotwell/src/util/string.vala" +#line 275 "/home/jens/Source/shotwell/src/util/string.vala" _tmp5_ = _tmp2_ (_tmp4_); -#line 233 "/home/jens/Source/shotwell/src/util/string.vala" +#line 275 "/home/jens/Source/shotwell/src/util/string.vala" _tmp6_ = _tmp5_; -#line 233 "/home/jens/Source/shotwell/src/util/string.vala" +#line 275 "/home/jens/Source/shotwell/src/util/string.vala" _g_free0 (_tmp4_); -#line 233 "/home/jens/Source/shotwell/src/util/string.vala" +#line 275 "/home/jens/Source/shotwell/src/util/string.vala" result = _tmp6_; -#line 233 "/home/jens/Source/shotwell/src/util/string.vala" +#line 275 "/home/jens/Source/shotwell/src/util/string.vala" _g_free0 (str); -#line 233 "/home/jens/Source/shotwell/src/util/string.vala" +#line 275 "/home/jens/Source/shotwell/src/util/string.vala" return result; -#line 1805 "string.c" +#line 2085 "string.c" } @@ -1810,17 +2091,17 @@ guint string_precollated_hash (void* ptr) { GHashFunc _tmp0_ = NULL; void* _tmp1_ = NULL; guint _tmp2_ = 0U; -#line 238 "/home/jens/Source/shotwell/src/util/string.vala" +#line 280 "/home/jens/Source/shotwell/src/util/string.vala" _tmp0_ = g_str_hash; -#line 238 "/home/jens/Source/shotwell/src/util/string.vala" +#line 280 "/home/jens/Source/shotwell/src/util/string.vala" _tmp1_ = ptr; -#line 238 "/home/jens/Source/shotwell/src/util/string.vala" +#line 280 "/home/jens/Source/shotwell/src/util/string.vala" _tmp2_ = _tmp0_ ((const gchar*) _tmp1_); -#line 238 "/home/jens/Source/shotwell/src/util/string.vala" +#line 280 "/home/jens/Source/shotwell/src/util/string.vala" result = _tmp2_; -#line 238 "/home/jens/Source/shotwell/src/util/string.vala" +#line 280 "/home/jens/Source/shotwell/src/util/string.vala" return result; -#line 1824 "string.c" +#line 2104 "string.c" } @@ -1838,63 +2119,63 @@ gint string_collated_compare (void* a, void* b) { gint _tmp6_ = 0; gint _tmp7_ = 0; gint _tmp8_ = 0; -#line 243 "/home/jens/Source/shotwell/src/util/string.vala" +#line 285 "/home/jens/Source/shotwell/src/util/string.vala" _tmp0_ = a; -#line 243 "/home/jens/Source/shotwell/src/util/string.vala" +#line 285 "/home/jens/Source/shotwell/src/util/string.vala" _tmp1_ = g_strdup ((const gchar*) _tmp0_); -#line 243 "/home/jens/Source/shotwell/src/util/string.vala" +#line 285 "/home/jens/Source/shotwell/src/util/string.vala" astr = _tmp1_; -#line 244 "/home/jens/Source/shotwell/src/util/string.vala" +#line 286 "/home/jens/Source/shotwell/src/util/string.vala" _tmp2_ = b; -#line 244 "/home/jens/Source/shotwell/src/util/string.vala" +#line 286 "/home/jens/Source/shotwell/src/util/string.vala" _tmp3_ = g_strdup ((const gchar*) _tmp2_); -#line 244 "/home/jens/Source/shotwell/src/util/string.vala" +#line 286 "/home/jens/Source/shotwell/src/util/string.vala" bstr = _tmp3_; -#line 246 "/home/jens/Source/shotwell/src/util/string.vala" +#line 288 "/home/jens/Source/shotwell/src/util/string.vala" _tmp4_ = astr; -#line 246 "/home/jens/Source/shotwell/src/util/string.vala" +#line 288 "/home/jens/Source/shotwell/src/util/string.vala" _tmp5_ = bstr; -#line 246 "/home/jens/Source/shotwell/src/util/string.vala" +#line 288 "/home/jens/Source/shotwell/src/util/string.vala" _tmp6_ = g_utf8_collate (_tmp4_, _tmp5_); -#line 246 "/home/jens/Source/shotwell/src/util/string.vala" +#line 288 "/home/jens/Source/shotwell/src/util/string.vala" _result_ = _tmp6_; -#line 248 "/home/jens/Source/shotwell/src/util/string.vala" +#line 290 "/home/jens/Source/shotwell/src/util/string.vala" _tmp8_ = _result_; -#line 248 "/home/jens/Source/shotwell/src/util/string.vala" +#line 290 "/home/jens/Source/shotwell/src/util/string.vala" if (_tmp8_ != 0) { -#line 1866 "string.c" +#line 2146 "string.c" gint _tmp9_ = 0; -#line 248 "/home/jens/Source/shotwell/src/util/string.vala" +#line 290 "/home/jens/Source/shotwell/src/util/string.vala" _tmp9_ = _result_; -#line 248 "/home/jens/Source/shotwell/src/util/string.vala" +#line 290 "/home/jens/Source/shotwell/src/util/string.vala" _tmp7_ = _tmp9_; -#line 1872 "string.c" +#line 2152 "string.c" } else { GCompareFunc _tmp10_ = NULL; const gchar* _tmp11_ = NULL; const gchar* _tmp12_ = NULL; gint _tmp13_ = 0; -#line 248 "/home/jens/Source/shotwell/src/util/string.vala" +#line 290 "/home/jens/Source/shotwell/src/util/string.vala" _tmp10_ = g_strcmp0; -#line 248 "/home/jens/Source/shotwell/src/util/string.vala" +#line 290 "/home/jens/Source/shotwell/src/util/string.vala" _tmp11_ = astr; -#line 248 "/home/jens/Source/shotwell/src/util/string.vala" +#line 290 "/home/jens/Source/shotwell/src/util/string.vala" _tmp12_ = bstr; -#line 248 "/home/jens/Source/shotwell/src/util/string.vala" +#line 290 "/home/jens/Source/shotwell/src/util/string.vala" _tmp13_ = _tmp10_ (_tmp11_, _tmp12_); -#line 248 "/home/jens/Source/shotwell/src/util/string.vala" +#line 290 "/home/jens/Source/shotwell/src/util/string.vala" _tmp7_ = _tmp13_; -#line 1888 "string.c" +#line 2168 "string.c" } -#line 248 "/home/jens/Source/shotwell/src/util/string.vala" +#line 290 "/home/jens/Source/shotwell/src/util/string.vala" result = _tmp7_; -#line 248 "/home/jens/Source/shotwell/src/util/string.vala" +#line 290 "/home/jens/Source/shotwell/src/util/string.vala" _g_free0 (bstr); -#line 248 "/home/jens/Source/shotwell/src/util/string.vala" +#line 290 "/home/jens/Source/shotwell/src/util/string.vala" _g_free0 (astr); -#line 248 "/home/jens/Source/shotwell/src/util/string.vala" +#line 290 "/home/jens/Source/shotwell/src/util/string.vala" return result; -#line 1898 "string.c" +#line 2178 "string.c" } @@ -1907,57 +2188,57 @@ gint string_precollated_compare (const gchar* astr, const gchar* akey, const gch gint _tmp3_ = 0; gint _tmp4_ = 0; gint _tmp5_ = 0; -#line 252 "/home/jens/Source/shotwell/src/util/string.vala" +#line 294 "/home/jens/Source/shotwell/src/util/string.vala" g_return_val_if_fail (astr != NULL, 0); -#line 252 "/home/jens/Source/shotwell/src/util/string.vala" +#line 294 "/home/jens/Source/shotwell/src/util/string.vala" g_return_val_if_fail (akey != NULL, 0); -#line 252 "/home/jens/Source/shotwell/src/util/string.vala" +#line 294 "/home/jens/Source/shotwell/src/util/string.vala" g_return_val_if_fail (bstr != NULL, 0); -#line 252 "/home/jens/Source/shotwell/src/util/string.vala" +#line 294 "/home/jens/Source/shotwell/src/util/string.vala" g_return_val_if_fail (bkey != NULL, 0); -#line 253 "/home/jens/Source/shotwell/src/util/string.vala" +#line 295 "/home/jens/Source/shotwell/src/util/string.vala" _tmp0_ = g_strcmp0; -#line 253 "/home/jens/Source/shotwell/src/util/string.vala" +#line 295 "/home/jens/Source/shotwell/src/util/string.vala" _tmp1_ = akey; -#line 253 "/home/jens/Source/shotwell/src/util/string.vala" +#line 295 "/home/jens/Source/shotwell/src/util/string.vala" _tmp2_ = bkey; -#line 253 "/home/jens/Source/shotwell/src/util/string.vala" +#line 295 "/home/jens/Source/shotwell/src/util/string.vala" _tmp3_ = _tmp0_ (_tmp1_, _tmp2_); -#line 253 "/home/jens/Source/shotwell/src/util/string.vala" +#line 295 "/home/jens/Source/shotwell/src/util/string.vala" _result_ = _tmp3_; -#line 255 "/home/jens/Source/shotwell/src/util/string.vala" +#line 297 "/home/jens/Source/shotwell/src/util/string.vala" _tmp5_ = _result_; -#line 255 "/home/jens/Source/shotwell/src/util/string.vala" +#line 297 "/home/jens/Source/shotwell/src/util/string.vala" if (_tmp5_ != 0) { -#line 1933 "string.c" +#line 2213 "string.c" gint _tmp6_ = 0; -#line 255 "/home/jens/Source/shotwell/src/util/string.vala" +#line 297 "/home/jens/Source/shotwell/src/util/string.vala" _tmp6_ = _result_; -#line 255 "/home/jens/Source/shotwell/src/util/string.vala" +#line 297 "/home/jens/Source/shotwell/src/util/string.vala" _tmp4_ = _tmp6_; -#line 1939 "string.c" +#line 2219 "string.c" } else { GCompareFunc _tmp7_ = NULL; const gchar* _tmp8_ = NULL; const gchar* _tmp9_ = NULL; gint _tmp10_ = 0; -#line 255 "/home/jens/Source/shotwell/src/util/string.vala" +#line 297 "/home/jens/Source/shotwell/src/util/string.vala" _tmp7_ = g_strcmp0; -#line 255 "/home/jens/Source/shotwell/src/util/string.vala" +#line 297 "/home/jens/Source/shotwell/src/util/string.vala" _tmp8_ = astr; -#line 255 "/home/jens/Source/shotwell/src/util/string.vala" +#line 297 "/home/jens/Source/shotwell/src/util/string.vala" _tmp9_ = bstr; -#line 255 "/home/jens/Source/shotwell/src/util/string.vala" +#line 297 "/home/jens/Source/shotwell/src/util/string.vala" _tmp10_ = _tmp7_ (_tmp8_, _tmp9_); -#line 255 "/home/jens/Source/shotwell/src/util/string.vala" +#line 297 "/home/jens/Source/shotwell/src/util/string.vala" _tmp4_ = _tmp10_; -#line 1955 "string.c" +#line 2235 "string.c" } -#line 255 "/home/jens/Source/shotwell/src/util/string.vala" +#line 297 "/home/jens/Source/shotwell/src/util/string.vala" result = _tmp4_; -#line 255 "/home/jens/Source/shotwell/src/util/string.vala" +#line 297 "/home/jens/Source/shotwell/src/util/string.vala" return result; -#line 1961 "string.c" +#line 2241 "string.c" } @@ -1966,17 +2247,17 @@ gboolean string_collated_equals (void* a, void* b) { void* _tmp0_ = NULL; void* _tmp1_ = NULL; gint _tmp2_ = 0; -#line 260 "/home/jens/Source/shotwell/src/util/string.vala" +#line 302 "/home/jens/Source/shotwell/src/util/string.vala" _tmp0_ = a; -#line 260 "/home/jens/Source/shotwell/src/util/string.vala" +#line 302 "/home/jens/Source/shotwell/src/util/string.vala" _tmp1_ = b; -#line 260 "/home/jens/Source/shotwell/src/util/string.vala" +#line 302 "/home/jens/Source/shotwell/src/util/string.vala" _tmp2_ = string_collated_compare (_tmp0_, _tmp1_); -#line 260 "/home/jens/Source/shotwell/src/util/string.vala" +#line 302 "/home/jens/Source/shotwell/src/util/string.vala" result = _tmp2_ == 0; -#line 260 "/home/jens/Source/shotwell/src/util/string.vala" +#line 302 "/home/jens/Source/shotwell/src/util/string.vala" return result; -#line 1980 "string.c" +#line 2260 "string.c" } @@ -1987,29 +2268,29 @@ gboolean string_precollated_equals (const gchar* astr, const gchar* akey, const const gchar* _tmp2_ = NULL; const gchar* _tmp3_ = NULL; gint _tmp4_ = 0; -#line 264 "/home/jens/Source/shotwell/src/util/string.vala" +#line 306 "/home/jens/Source/shotwell/src/util/string.vala" g_return_val_if_fail (astr != NULL, FALSE); -#line 264 "/home/jens/Source/shotwell/src/util/string.vala" +#line 306 "/home/jens/Source/shotwell/src/util/string.vala" g_return_val_if_fail (akey != NULL, FALSE); -#line 264 "/home/jens/Source/shotwell/src/util/string.vala" +#line 306 "/home/jens/Source/shotwell/src/util/string.vala" g_return_val_if_fail (bstr != NULL, FALSE); -#line 264 "/home/jens/Source/shotwell/src/util/string.vala" +#line 306 "/home/jens/Source/shotwell/src/util/string.vala" g_return_val_if_fail (bkey != NULL, FALSE); -#line 265 "/home/jens/Source/shotwell/src/util/string.vala" +#line 307 "/home/jens/Source/shotwell/src/util/string.vala" _tmp0_ = astr; -#line 265 "/home/jens/Source/shotwell/src/util/string.vala" +#line 307 "/home/jens/Source/shotwell/src/util/string.vala" _tmp1_ = akey; -#line 265 "/home/jens/Source/shotwell/src/util/string.vala" +#line 307 "/home/jens/Source/shotwell/src/util/string.vala" _tmp2_ = bstr; -#line 265 "/home/jens/Source/shotwell/src/util/string.vala" +#line 307 "/home/jens/Source/shotwell/src/util/string.vala" _tmp3_ = bkey; -#line 265 "/home/jens/Source/shotwell/src/util/string.vala" +#line 307 "/home/jens/Source/shotwell/src/util/string.vala" _tmp4_ = string_precollated_compare (_tmp0_, _tmp1_, _tmp2_, _tmp3_); -#line 265 "/home/jens/Source/shotwell/src/util/string.vala" +#line 307 "/home/jens/Source/shotwell/src/util/string.vala" result = _tmp4_ == 0; -#line 265 "/home/jens/Source/shotwell/src/util/string.vala" +#line 307 "/home/jens/Source/shotwell/src/util/string.vala" return result; -#line 2013 "string.c" +#line 2293 "string.c" } diff --git a/src/util/string.vala b/src/util/string.vala index 7331780..bf7e605 100644 --- a/src/util/string.vala +++ b/src/util/string.vala @@ -91,15 +91,57 @@ public enum PrepareInputTextOptions { DEFAULT = EMPTY_IS_NULL | VALIDATE | INVALID_IS_NULL | STRIP_CRLF | STRIP | NORMALIZE; } +private string? guess_convert(string text) { + string? output = null; + size_t bytes_read = 0; + unowned string charset = null; + debug ("CONVERT: Text did not validate as UTF-8, trying conversion"); + + // Try with locale + if (!GLib.get_charset(out charset)) { + output = text.locale_to_utf8(text.length, out bytes_read, null, null); + if (bytes_read == text.length) { + debug ("CONVERT: Locale is not UTF-8, convert from %s", charset); + return output; + } + } + + try { + output = GLib.convert (text, text.length, "UTF-8", "WINDOWS-1252", out bytes_read); + charset = "WINDOWS-1252"; + } catch (ConvertError error) { + if (error is ConvertError.NO_CONVERSION) { + try { + output = GLib.convert (text, text.length, "UTF-8", "ISO-8859-1", out bytes_read); + charset = "ISO-8859-1"; + } catch (Error error) { /* do nothing */ } + } + } + + if (bytes_read == text.length) { + debug ("CONVERT: Guessed conversion from %s", charset); + + return output; + } + + return null; +} + public string? prepare_input_text(string? text, PrepareInputTextOptions options, int dest_length) { if (text == null) return null; - if ((options & PrepareInputTextOptions.VALIDATE) != 0 && !text.validate()) - return (options & PrepareInputTextOptions.INVALID_IS_NULL) != 0 ? null : ""; - - string prepped = text; - + string? prepped = text; + if (PrepareInputTextOptions.VALIDATE in options) { + if (!text.validate()) { + prepped = guess_convert (text); + + if (prepped == null) { + return (options & PrepareInputTextOptions.INVALID_IS_NULL) != 0 ? null : ""; + } + } + } + // Using composed form rather than GLib's default (decomposed) as NFC is the preferred form in // Linux and WWW. More importantly, Pango seems to have serious problems displaying decomposed // forms of Korean language glyphs (and perhaps others). See: diff --git a/src/util/system.c b/src/util/system.c index cef9603..d56348e 100644 --- a/src/util/system.c +++ b/src/util/system.c @@ -1,4 +1,4 @@ -/* system.c generated by valac 0.32.1, the Vala compiler +/* system.c generated by valac 0.34.4, the Vala compiler * generated from system.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. diff --git a/src/util/ui.c b/src/util/ui.c index ee1017e..2cb3739 100644 --- a/src/util/ui.c +++ b/src/util/ui.c @@ -1,4 +1,4 @@ -/* ui.c generated by valac 0.32.1, the Vala compiler +/* ui.c generated by valac 0.34.4, the Vala compiler * generated from ui.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. |